tasktrooper
CLAUDE.md123 starsChanged 2 months agoApache-2.0View on GitHub
Three parts, one product: the desktop app (macOS, Windows, Linux). Read the directory's own CLAUDE.md before working in it. make test runs all of them. - Local by default. One user, no login. The UI authenticates to the backend with one bearer token: the desktop generates it and passes it to the server as SERVER_API_KEY and to the page as window.__tasktrooperDesktop.apiToken; make dev uses VITE_API_KEY. - Account mode is the desktop shell's, and optional. Signing in stops the local backend…
- Reads credentials
In this repository2 other files it gives its agents.
- desktop/CLAUDE.mdCLAUDE.md
- server/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
No code comments that explain WHAT.
- Very specific: line 48
No LLM-facing prose in Go: prompts, guard wording and tool descriptions live in catalog/system (see catalog/system/README.md).
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
TaskTrooper — monorepo
Three parts, one product: the desktop app (macOS, Windows, Linux). Read the directory's own
CLAUDE.md before working in it.
| dir | what | verify |
server/ | Go backend (hexagonal), embedded Postgres, agent runtime | go build ./... && go vet ./... && go test ./... |
desktop/ | Electron shell: supervises the backend + embedder and serves the UI from app://tasktrooper; in account mode, the runner and the account's web app instead | npm run typecheck && npm run lint && npm test |
desktop/runner/ | Go runner for account mode (its own module): the tunnel, CLI runs, the executor | go build ./... && go vet ./... && go test ./... |
desktop/ui/ | React UI, bundled into the app | npx tsc --noEmit && npm run build && npm run check:locales |
make test runs all of them.
Shape
- Local by default. One user, no login. The UI authenticates to the backend
with one bearer token: the desktop generates it and passes it to the server
as
SERVER_API_KEYand to the page aswindow.__tasktrooperDesktop.apiToken;make devusesVITE_API_KEY. - Account mode is the desktop shell's, and optional. Signing in stops the
local backend and shows the account's own web app from its origin; the shell
then runs
desktop/runner, which tunnels to the control plane and startsserver/cmd/executorwith the member's own keys. Leaving it brings local mode back unchanged. Seedesktop/CLAUDE.md. - The desktop app is the backend's supervisor. It spawns
bin/agent-serverwithPORT=0, reads theLISTENING http://127.0.0.1:<port>line, polls/health, then opens the window. The server starts its own Postgres from the zonky binaries under the data directory whenDATABASE_URLis empty. - Two contracts cross directories and move together:
desktop/src/ipc/host.ts↔desktop/ui/src/lib/desktop-bridge.ts(the bridge), and the server's env/stdout contract inserver/README.md↔desktop/src/main/supervisor/.
Rules
- No code comments that explain WHAT. Only a non-obvious invariant, a workaround, or a WHY.
domain/applicationnever importadapterinserver/.- The local edition stays single-user and cloud-free: no Firebase SDK and no
team/invite/billing-plan UI in
desktop/ui; no tenants, no control plane and noX-Internal-*headers inserver/. Outside it, and only there: the desktop shell's optional account mode (the account's web app on its own origin,desktop/runnerand its tunnel), andserver/cmd/executortaking a per-run coordination MCP URL and token from its parent. None of that reaches a local-mode code path. - Secrets never go on argv; children are
spawned withshell: false. - No LLM-facing prose in Go: prompts, guard wording and tool descriptions live
in
catalog/system(seecatalog/system/README.md); code passes data.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

