How does this work?
Open Claude Code in a terminal (or the Claude app with access to your computer), paste a prompt and let it work. Claude runs the same commands you would, checks each step and tells you what it did. You approve each command it wants to run.
- Replace the parts in angle brackets, such as
<path to your repository>, or leave them and Claude will ask. - Nothing changes your code without you. The prompts tell Claude not to accept or apply fixes unless you say so, and Tomosu itself never merges anything without your Accept.
Can Claude set everything up in one go?
Yes. The quickest way: Claude runs ./setup.sh, the repository’s one-step setup, with your answers.
Set up Tomosu for me with its one-step script. Clone https://github.com/tomosuai/tomosu into ~/tomosu (or reuse it), read docs/setup.md, then run: ./setup.sh engine --repo <path to your repository> --service <your service name> --yes If a prerequisite is missing, tell me what and how to install it, and ask me first. When it finishes, show me the health summary it printed, the contents of ~/.tomosu/setup/app.env, and in plain words what is left for me to do. Do not change my repository's code.
Or have Claude do each step itself: it tries the demo, builds the CLI, scans your code and opens the console.
Set up Tomosu on this machine for me and walk me through it. Tomosu is an open-source reliability engine: https://github.com/tomosuai/tomosu. Its README and docs/ folder are the reference; read the Quick Start before you begin. Work in steps. After each one, tell me in a sentence or two what you did and what you saw. Ask me before installing anything system-wide. 1. Check what I have: git, Docker (running), and for building from source Go 1.26+, a C compiler and GNU Make (the make that comes with macOS works). Tell me what is missing and how you will get it. 2. Clone the repository into ~/tomosu, or reuse it if it is already there. 3. Start the demo: docker compose -f demo/docker-compose.yml up -d --build. Ports 7600, 8000, 4317 and 4318 must be free. Wait until http://localhost:7600 answers, give it a minute of traffic, then open it in my browser. 4. Build the CLI with make deps snapshot and check that ./bin/tomosu version works. 5. Scan my code at <path to your repository> with ./bin/tomosu scan <path> --format json. Summarise the findings by severity, then explain the three most important ones in plain words, using ./bin/tomosu explain <finding-id>. 6. Finish with what I am looking at in the console and the next step to connect my own telemetry. Do not change my repository's code, and do not accept or apply any fix.
How do I just try it?
Five minutes, nothing to configure: a sample shop with real problems planted in it, its traffic, and the console.
Run the Tomosu demo for me. Clone https://github.com/tomosuai/tomosu into ~/tomosu (or reuse it), check that Docker is running and that ports 7600, 8000, 4317 and 4318 are free, then run docker compose -f demo/docker-compose.yml up -d --build. The first build takes 5 to 10 minutes. When http://localhost:7600 answers, wait a minute for traffic and open it in my browser. Then run scripts/check-demo.sh and tell me whether it printed OK. Show me three things to look at in the console: a service and its slowest endpoint, an endpoint linked to its code, and a finding with its fix. When I am done, the demo stops with docker compose -f demo/docker-compose.yml down -v.
How do I scan my own code?
Install the Tomosu CLI and scan my code. In ~/tomosu (clone https://github.com/tomosuai/tomosu there if it is missing), build it with make deps snapshot. It needs Go 1.26+, a C compiler and GNU Make (the make that comes with macOS works). Add the bin folder to my PATH for this session. Then scan <path to your repository>: - tomosu scan <path> --format json for everything - tomosu scan <path> --diff origin/main for only what my branch changes Give me a short table of findings by severity and rule, and explain the top three in plain words with tomosu explain <finding-id>: what could fail in production, where, and the suggested fix. Do not change any code.
How do I open the console on my own code?
Run the Tomosu engine for my service and open its console. 1. Build a code index: tomosu index <path to your repository> --service <your service name> --out ~/tomosu-indexes/<service>.json (the service name must match the OTEL_SERVICE_NAME my app reports). 2. Start the engine in the background: tomosu run --index-dir ~/tomosu-indexes --data-dir ~/tomosu-data --open. It serves the console on http://localhost:7600 and receives OpenTelemetry on ports 4317 (gRPC) and 4318 (HTTP). 3. If the console asks me to unlock it, run tomosu unlock-link --open. 4. Run tomosu health --engine http://localhost:7600 and tell me, in order, what is still left to set up.
How do I connect my telemetry?
Tomosu links production to code through standard OpenTelemetry, matched on service.name and service.version. Use the first prompt in your service’s repository, the second where your Collector config lives.
Add OpenTelemetry to this codebase so the Tomosu engine can read it: traces, metrics and logs exported over OTLP. - Set service.name, service.version to the git commit at build time, deployment.environment.name, and on Kubernetes k8s.cluster.name. - Make server spans carry http.route and the handler's code.function.name, code.file.path and code.line.number. - Record exceptions on spans with stack traces. - Instrument outbound HTTP, database (db.system.name, db.query.text), cache, queue (messaging.*) and AI-provider (gen_ai.*) calls, without recording prompt or response text. - Put the trace and span ids on every log line. Use the official SDK and auto-instrumentation where they exist, add the configuration and environment variables, and do not change the app's behaviour. For a quick local test, point it at the engine with OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318. Show me the diff before you commit anything.
Add the Tomosu engine as a second exporter to our OpenTelemetry Collector config, in every pipeline, next to our current backend and never instead of it:
exporters:
otlp/tomosu:
endpoint: <engine host>:4317
tls: { insecure: true }
timeout: 2s
sending_queue: { enabled: true, num_consumers: 2, queue_size: 100 }
retry_on_failure: { enabled: true, initial_interval: 1s, max_elapsed_time: 5s }
The small queue and short retries are deliberate: a stopped or busy engine must never slow our pipeline. Also add tail sampling that keeps every error and slow trace. Validate the config, and show me the diff before applying it.My services show up in Tomosu but nothing links to code. Read tomosu health --engine http://localhost:7600 and curl -s localhost:7600/api/runtime/services (look for "match": "commit"), find what is missing (service.version, environment, code attributes or a code index) and fix it in this repository. Explain each change in one line.
Can Claude work through the findings?
Scan this repository with tomosu scan . --format json and pick the critical and high findings. For each one, run tomosu explain <finding-id>, then preview its fix with tomosu fix accept <finding-id> --dry-run and show me the change. Apply only the fixes I approve, one at a time, with tomosu fix accept <finding-id>, and run our tests after each. If a fix looks wrong, reject it with tomosu fix reject <finding-id> --reason fix-wrong and tell me why.
Can Claude add it to CI?
Add the Tomosu GitHub Action to this repository, following action/README.md in https://github.com/tomosuai/tomosu: scan every pull request with tomosu scan --diff origin/main and post one comment plus SARIF to code scanning (permissions: contents read, pull-requests write, security-events write; checkout with fetch-depth 0). Show me the workflow file before you commit it.
Should Claude use its own access key?
Yes, if it will change things on a running engine. Create one with tomosu keys create --name claude and give it to Claude: its actions then carry its own name in the audit log, and you can revoke the key at any time with tomosu keys revoke <id>.