bitreka

Software Engineering Leader | AI-Assisted Development | .NET & C# | FinTech & Payments | E-Commerce | Architecture • Backend • Microservices • DevOps • Test Automation • AI Agents

All work

claude-monitor

Follow AI coding sessions from the browser: an agent on each machine, a central API, and a web app that can also send a session a prompt.

Status
being rebuiltWorked before; currently being rebuilt on a new architecture.
Role
Sole engineer: architecture decisions, agent, API, web app, deployment runbook and the merge gate.
Started
Categories
Developer tools, AI and LLM
Parts
Web

Purpose

Let a person or a team see what their AI coding sessions are doing across machines, live, and answer or steer them from the web.

The problem

AI coding sessions run in terminals on several machines, and following them means sitting at each one. The first version of this project was a local board — one machine, one user, one harness — and it could not serve a team or Windows.

What I built

  • A per-machine agent in .NET 10: one self-contained binary for macOS and Windows that acts as hook, MCP server and daemon. It never blocks a session, opens no network port and keeps a durable outbox, so events written offline arrive later without duplicates.
  • A central ASP.NET Core API on PostgreSQL with accounts, team workspaces, device sign-in for the agent and fail-closed, workspace-scoped checks on every call.
  • A React web app that follows sessions live over server-sent events, reads a session as a conversation, and sends a prompt, answers a question or approves a plan.
  • An opt-in push that starts a turn in an idle session within about a second; every message from the web is wrapped, labelled as untrusted and capped.
  • A local merge gate that CI calls unchanged: tests, at least 80% line coverage per codebase, secret scan, SAST and a backward-compatibility scan.

Features

  • A live web view of Claude Code sessions: events, chat view and permission prompts.
  • Send a prompt to a running session, or stop it, from the web, with command history.
  • A machines page with CPU, memory and disk metrics and alerts.
  • Remote command runs on another machine with the owner's approval, standing grants and named jobs.
  • Workspaces and members, with settings for masking, retention and update mode.
  • Sign-in with e-mail and password, Google and a second factor.
  • An agent for macOS and Windows with a durable outbox and a secure credential store.
  • English and Turkish interface.

Stack

  • .NET
  • ASP.NET Core
  • EF Core
  • PostgreSQL
  • SQLite
  • React
  • Vite
  • TypeScript
  • Playwright
  • GitHub Actions

AI in this project

In the product

  • The product itself calls no model: it observes and relays Claude Code sessions. Hooks capture prompts, tool input and output and the transcript, with secrets masked by default, an event size cap and a retention period.
  • It gives the model tools through an MCP server: status, notes, machines, metrics, alerts, remote runs and access requests. The model calls them, the product never calls a model. Read-only tools are marked as such, run and cancel are marked destructive, and a remote run needs the approval of the target machine's owner and a stated reason.
  • A prompt typed in the web is delivered into a running Claude session through a hook, or through an opt-in experimental channel push. Messages from the web are wrapped, labelled as untrusted and capped, and only the session owner may command a session.
  • Output of remote runs is handed back to the model wrapped in markers that say it is data, not instructions.
  • The agent can update Claude Code only while it is idle and never restarts a session; this is opt-in per workspace.

In how it was built

  • 303 of 353 commits carry a Claude co-author trailer.
  • The project works in a full-team agent mode with a shared gate (type check, tests, an 80% coverage minimum, static analysis, a backward-compatibility scan and a web security baseline) and written decision records for each major choice.

Key flows

Steps

From a session to the browser and back

  1. Step 1 of 5: Install and sign in

    The agent is installed on a machine and signed in with a code approved on the web; its tokens go to the operating system's credential store.

  2. Step 2 of 5: Capture

    Claude Code's hooks and MCP entry hand events to the agent, which writes them to a local database first.

  3. Step 3 of 5: Upload

    The daemon sends numbered batches to the API; a retried batch is never stored twice.

  4. Step 4 of 5: Follow

    The web app shows the session live, as a conversation.

  5. Step 5 of 5: Answer

    A prompt sent from the web reaches the session at its next turn, or at once when push is on.

Limitations

  • Being rebuilt: the earlier single-machine board was retired and the new agent platform arrives in phases, with Claude Code as the first supported harness.
  • Pushing into an idle session relies on a research-preview feature of Claude Code and needs a start-up flag.

Want something like this?

Tell me about your project — I reply within two working days.

Start a project