agentleFS
makifbaysalmakifbaysal/tasktrooper/server/CLAUDE.md

tasktrooper / server

CLAUDE.md109 starsChanged 2 months agoApache-2.0View on GitHub

The TaskTrooper backend: HTTP API + agent runtime, one Go binary. Local is the only mode — one machine, one user, no control plane. The desktop app spawns this binary; make dev runs it in a terminal. Detailed docs: This file and README.md are the current word on how the process is configured and started; the docs above cover the domain model, the tool surface, the API and the orchestration agents. Do not add code comments unless truly necessary —…

  • Reads credentials

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not add code comments unless truly necessary — a non-obvious invariant, a workaround, or a WHY that isn't clear from the code itself.

    line 24

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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

server

The TaskTrooper backend: HTTP API + agent runtime, one Go binary. Local is the only mode — one machine, one user, no control plane. The desktop app spawns this binary; make dev runs it in a terminal.

Detailed docs:

  • Coding Standards
  • Testing Standards
  • Architecture Overview
  • API Specification
  • Tool Reference
  • Orchestration Agents
  • Configuration Reference
  • Workspace
  • Repositories & Projects

This file and README.md are the current word on how the process is configured and started; the docs above cover the domain model, the tool surface, the API and the orchestration agents.

Code comments

Do not add code comments unless truly necessary — a non-obvious invariant, a workaround, or a WHY that isn't clear from the code itself. Never explain WHAT the code does; well-named identifiers already do that.

Layout

cmd/agent-server/   server binary (env → internal/platform/runtime.Run)
cmd/migrate/        migration runner; migrations/ must stay in this module
                    because the embed path is relative to it
internal/
  domain/           entities and value objects
  port/             interfaces (LLMClient, ToolExecutor, ToolRegistry, …)
  application/      agent loop, config loading, registry, board/orchestration
  adapter/          http, llm, agentcli/*, tools/*, mcp, mcpserver, github,
                    postgres — anything external (agentcli = agent CLIs run as
                    a local process, e.g. Claude Code; mcp = MCP client,
                    mcpserver = the /mcp endpoint those CLIs call back on)
  platform/         process plumbing: runtime wiring, embeddedpg, secrets
migrations/         SQL migrations (embedded)
resources/          config.yml, openapi.yaml (embedded into the binary)

Hexagonal rules apply: domain and application must not import adapters; new external integrations go behind a port interface with an adapter implementing it.

The local-mode invariants

InvariantWhere
Auth is the SERVER_API_KEY bearer tokenadapter/http/handler.go (authMiddleware)
The listener binds 127.0.0.1 onlyplatform/runtime/runtime.go
Exactly one stdout line: LISTENING http://127.0.0.1:<port>; logs go to stderrplatform/runtime/runtime.go (ConfigureLogger)
Empty DATABASE_URL ⇒ embedded Postgres 17platform/embeddedpg

Migration 133 dropped the multi-tenant schema (row-level security, every tenant_id, tenants). It cannot be undone, so the embedded cluster is copied to $DATA_DIR/postgres-backup-pre-133 before its first start on that build.

Build

CGO_ENABLED=1 — smacker/go-tree-sitter is a cgo package.

go build ./... && go vet ./... && go test ./...

Tests that need Postgres start their own embedded instance (platform/database.StartEmbedded); nothing external has to be running.

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.