Issue tracker built for humans and coding agents together
Own product Published Jun 30, 2026 Reviewed Nov 21, 2026
My own live product: a single-process issue tracker where people use a browser or phone app and coding agents use a typed CLI over the exact same issues, protected by optimistic concurrency and idempotency keys.
At a glance
- Problem
- Coding agents need a shared backlog to read specs, log progress and record completed work, while the people managing them need live visibility and a clean review loop.
- Constraint
- Agents retry requests, run concurrently and write from stale reads, so every mutation had to handle retries and parallel human edits without clobbering anyone's work.
- System built
- One ASP.NET Core process backed by a single SQLite file serving Razor pages and a typed CLI API, using revision-checked edits, idempotency keys, browser-approved device auth and content-free SignalR invalidations.
- Outcome
- Stale updates return clean conflicts instead of silent overwrites, retried creates return the original record, and CLI-completed work lands in a phone review queue.
Overview
Coding agents work far better when tasks, decisions and results live in one shared backlog rather than scattered terminal logs. This product provides workspaces, projects, numbered issues, labels, assignees, comments, an activity stream and an inbox. People use it in the browser (including as an installed mobile web app), while agents interact through a typed CLI client over the same API. The repository's own agent instructions direct coding agents to track plans, progress and decisions inside it.
The tracker has been rebuilt twice in search of simplicity. It began in TypeScript with Drizzle and Postgres, shifted to Go on Postgres in July 2026, and since September 21, 2026 runs on C# (.NET 10) with SQLite. The .NET rewrite cut roughly 79,000 lines down to 11,600. The production version endpoint reports the exact commit running on main.
Agents sign in as their person
Early iterations modeled coding agents as a special actor class with separate identities, API keys, an MCP server, capability routing, work-in-progress caps and a background lease-expiration daemon. In September 2026 I deleted all of it (around 22,000 lines) and unified every actor as a person.
Now an agent authenticates as the human it represents. The CLI opens a device-authorization request, the user approves the code inside an already-signed-in browser session, and the CLI polls every 5 seconds until issued a credential. Pending requests expire after 10 minutes; issued credentials store only as SHA-256 hashes, expire after 90 days and revoke cleanly from the account page.
Every activity entry tags its origin as browser or CLI. Whenever an agent marks an issue done from the CLI, its owner receives a push notification ("Finished in your terminal. Tap to review.") and the issue surfaces in a Review section on the home screen until acknowledged. That queue needs no separate database column: it is derived purely from the activity log whenever an issue's latest state transition is a CLI completion by that user.
This delivers clear oversight without maintaining a parallel agent permission model. The product contract states the boundary explicitly: no MCP, no built-in agent orchestration, no automated prioritization.
Writes that survive retries and stale reads
Coding agents retry after network blips and often submit edits based on snapshots read minutes earlier. Two protocol rules keep those writes safe.
Every issue and comment edit sends the revision number the caller read. If the stored revision has advanced, the server rejects the write with HTTP 409, which the CLI turns into exit code 5. The bundled agent guide instructs callers to re-read and merge carefully rather than blindly resubmitting stale text with a bumped revision. Browser edits trigger the same conflict notice while preserving the user's unsaved draft.
Creating an issue or comment accepts an idempotency key stored alongside user ID, endpoint and a SHA-256 hash of the request payload for 24 hours. Replaying the same key and body returns the original record; reusing a key with a different payload returns 409. After an uncertain timeout, an agent safely repeats the exact request without creating duplicate issues or comments.
One process, one SQLite file
The .NET application deploys as a single container with one SQLite volume behind Traefik. There is no external database server, and the operations guide explicitly forbids horizontal scaling beyond one instance.
Every mutation passes through a single-slot in-process SemaphoreSlim, wrapping permission checks and database changes inside one short transaction:
await gate.Gate.WaitAsync();
try
{
await using var tx = await db.Database.BeginTransactionAsync();
var result = await action();
await db.SaveChangesAsync();
await tx.CommitAsync();
foreach (var workspaceId in changedWorkspaces)
await live.Notify(workspaceId);
return result;
}
finally
{
gate.Gate.Release();
}
One writer at a time, and live notifications only after commit.
SQLite runs in WAL mode with foreign keys enabled and a 15-second busy timeout. If contention still triggers a lock error, the API answers HTTP 503 with code busy, mapped by the CLI to exit code 6 as a retryable transient failure. Serializing writes inside the gate makes sequential issue numbering trivial: the project counter increments inside the same transaction that inserts the issue and activity row.
Deploys ship from my workstation via make ship: lint, tests, secret scanning and Docker image builds run in parallel, after which the VM stops the app, takes an online SQLite backup, runs migrations, boots the new image and verifies health. A failed migration stops the rollout beside the pre-release backup with no automatic downgrade. Backups run SQLite's online backup API and must pass both PRAGMA integrity_check and PRAGMA foreign_key_check. The suite includes 112 tests covering full browser journeys of humans and CLI agents collaborating live.
Live updates that carry no content
Once a write commits, SignalR broadcasts a minimal changed event carrying only the workspace ID (or nothing for personal updates) to current workspace members. Open browser tabs re-fetch their rendered fragments from the server, re-validating workspace membership on every read.
Client code patches display blocks and keyed rows in place without disturbing an active text editor, cursor selection or revision token; only a remote change to the currently edited field displays a conflict banner. Dropped sockets reconnect at 0, 2, 10 and 30 seconds, backed by a 20-second poll plus window focus, visibility and online triggers so a missed event lags visible state by at most 20 seconds. Failed SignalR pushes simply log on the server.
Optional AI issue analysis follows the same non-blocking rule. Edits to title, description, state or comments bump an analysis generation counter inside the write transaction. An in-process worker calls the model outside the lock and writes results only if the generation still matches, retrying failed calls after 5 minutes.
Limitations
- Single-instance, single-writer architecture caps peak write throughput; it fits small teams well, while larger scale would require a client-server database.
- Device credentials inherit the approving user's full permissions rather than scoped agent roles.
- Nothing locks an issue against two agents starting it simultaneously; coordination belongs to humans and explicit issue states.
- Search performs literal substring matching, so locating related threads can take multiple queries.
- List pagination is not snapshot-isolated, allowing rows to shift between pages during concurrent updates.
- Automated issue analysis inspects text only; a reported test pass counts as reported without executing project code.
- The .NET rebuild started on clean accounts and tables instead of migrating legacy data, a shortcut suitable for a personal product and never for client data.
Related case studies
Replacing five ad-hoc job runners with one Postgres queue
Background jobs survive deploys, and retries never double-post replies or repeat actions.
One access-controlled platform for internal AI tools
Internal teams ship new AI tools on one shared, role-gated platform instead of starting over.