How do I run it?
# Coming soon the public repository opens shortly
git clone https://github.com/tomosuai/tomosu
cd tomosu
./setup.sh
It asks what you want, then only what that needs, and checks each step. Or name the mode:
| Mode | What it does |
|---|---|
./setup.sh demo | Starts the demo (an instrumented shop, its traffic, a Collector and the engine) and opens the console |
./setup.sh scan | Scans a folder, or a GitHub repository: a public one straight from GitHub, a private one cloned with your own git access. --pdf adds a report |
./setup.sh engine | Indexes your code, starts the engine, opens the console and writes your telemetry settings |
./setup.sh status | What is running, and what is left to set up |
./setup.sh stop | Stops the engine it started; deletes nothing. --all also stops the demo |
What does it need?
Docker, or Go 1.26+, a C compiler and GNU Make (the make that comes with macOS works). With the Go toolchain it builds the tomosu binary; without it, it builds a Docker image from the repository and runs the same commands in a container. It runs on macOS and Linux; on Windows, use WSL.
What does the engine mode ask?
| Question | Option | Default |
|---|---|---|
| Your code: a folder or a GitHub URL | --repo | the current folder |
| The service name your app reports | --service | the folder’s name |
| Environment | --env | dev |
| Will other machines send telemetry? | --network | no |
| Do you run an OpenTelemetry Collector? | --collector yes|no | no |
| A model for Tomosu Agent (optional) | --model, --model-name | none |
| Open Connect GitHub when it is up? | --github yes|no | no |
With --network, the telemetry ports listen on the network and require a token; the console stays on your computer. If the demo already uses ports 7600, 4317 and 4318, it offers 7610, 14317 and 14318.
What does it give me for my telemetry?
Two files in ~/.tomosu/setup, ready to paste:
collector-exporter.yaml: the exporter to add to your Collector next to your current backend, with the safe settings (a small queue and short retries, so the engine can never slow your pipeline).app.env: the variables for your app’s OpenTelemetry SDK when there is no Collector, withservice.versionset to the commit it indexed.
Your app’s code still needs OpenTelemetry. That is a code change the script does not make; the Work with Claude prompt makes it for you. Then see Send OpenTelemetry data.
Can it run without questions?
Yes. Every question has an option, and --yes takes the default for the rest, for CI, scripts and Claude:
./setup.sh demo --yes
./setup.sh scan --repo ~/src/shop --pdf shop.pdf
./setup.sh scan --repo https://github.com/psf/requests --public
./setup.sh engine --repo ~/src/shop --service shop --collector yes --yes
A model key comes from its usual variable (such as ANTHROPIC_API_KEY) or is typed with the input hidden, never from the command line. ./setup.sh --help lists every option.
What will it never do?
- Install anything without your yes, or use
sudoon its own. - Delete data:
stoponly stops processes, and the demo and the engine keep their data. - Change your code, or accept or apply a fix.