agentleFS
makifbaysalmakifbaysal/tasktrooper/CLAUDE.md

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

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
  1. Distinctive:

    No code comments that explain WHAT.

    line 37
  2. Very specific:

    No LLM-facing prose in Go: prompts, guard wording and tool descriptions live in catalog/system (see catalog/system/README.md).

    line 48

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

TaskTrooper — monorepo

Three parts, one product: the desktop app (macOS, Windows, Linux). Read the directory's own CLAUDE.md before working in it.

dirwhatverify
server/Go backend (hexagonal), embedded Postgres, agent runtimego 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 insteadnpm run typecheck && npm run lint && npm test
desktop/runner/Go runner for account mode (its own module): the tunnel, CLI runs, the executorgo build ./... && go vet ./... && go test ./...
desktop/ui/React UI, bundled into the appnpx 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_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 and shows the account's own web app from its origin; the shell then runs desktop/runner, which tunnels to the control plane and starts server/cmd/executor with the member's own keys. Leaving it brings local mode back unchanged. See desktop/CLAUDE.md.
  • The desktop app is the backend's supervisor. It spawns bin/agent-server with PORT=0, reads the LISTENING 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 when DATABASE_URL is 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 in server/README.md ↔ desktop/src/main/supervisor/.

Rules

  • No code comments that explain WHAT. Only a non-obvious invariant, a workaround, or a WHY.
  • domain/application never import adapter in server/.
  • 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 no X-Internal-* headers in server/. Outside it, and only there: the desktop shell's optional account mode (the account's web app on its own origin, desktop/runner and its tunnel), and server/cmd/executor taking 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 with shell: false.
  • No LLM-facing prose in Go: prompts, guard wording and tool descriptions live in catalog/system (see catalog/system/README.md); code passes data.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.