Product
Platform overview Tomosu engine (open source) Tomosu Cloud Reliability rules
Solutions
Prevent outages before merge Reliability Radar Fix safety For developers For SRE and platform teams
Developers
Quickstart Documentation Contribute a rule
Resources
Blog Case studies Learn FAQ News
Company
Pricing About Contact Join the Waitlist
Theme

Commands

Everything Tomosu does is one tomosu command. This page lists them by task, as tomosu --help prints them. Commands that act on a running engine take --engine URL (or TOMOSU_ENGINE).

  • tomosu --help
  • --engine URL
  • Updated

Which command do I need?

TaskCommandsGuide
Scan codescan, scan --diff, scan --githubScan your code
Scan a branch on the enginescans start, scans list, scans forgetScan a branch
Post results from CIpublishCI and pull request comments
Read findingsfindings, explainRead a finding
Decide on fixesfix accept, fix reject, fix draft, fix accept-all, autofixAccept or reject a fix
Follow fixesfix prs, fix timeline, fix revert, fix gateFix safety
Run the enginerun, health, runtime, graph, ingest pause|resume|statusSend OpenTelemetry data
Code indexesindex, index push, index pullCode indexes
Rulesrules stats|catalog|new|test|try|create|factsWrite a rule
Rule bundlesrules pull|import|watch|status|rollback|bundle|verifyRule bundles
Tomosu Agentagent status|ask|schedule|budget, digest, memory, rules proposeTomosu Agent
Contributionscontrib, rules contributeContribute
Accessconnect, login, logout, auth status, keys, unlock-linkSign-in and access keys
Tomosu Cloudcloud, prorules, profile, signalsPRI and plans
Settingsconfig init|check, settingsSettings

Every command prints its own options with --help, for example tomosu fix accept --help. Every flag can also be set as an environment variable, TOMOSU_<COMMAND>_<FLAG> (TOMOSU_SCAN_FORMAT).

What does tomosu --help list?

The full list, as this version of the engine prints it:

$ tomosu --help
tomosu Tomosu: reliability engine

Usage:
  tomosu version
  tomosu rules validate [paths...]        validate checks (default: rules dir)
  tomosu rules stats [paths...]           summarize the rules matrix
  tomosu rules test [dirs...]             run checks against their examples and the facts contract
  tomosu rules facts [--lang l] [--target t] list the facts each language gives each kind of site
  tomosu rules eval [--corpus] [rules]     evals: cross-rule precision, fixes, runtime examples, corpus noise
  tomosu rules new <id> [flags]           scaffold a new check with test folders
  tomosu rules try <check-dir> <path>     run a rule on your own code
  tomosu rules create --name .. --calls .. --when .. --bad file   make a rule from a few answers (the console's New rule)
  tomosu rules bundle [flags]             build and sign a rule bundle
  tomosu rules verify [flags] <bundle>    verify a signed bundle
  tomosu keys generate --out <dir>        create a development signing key

Configuration (see docs/scan.md):
  tomosu config init [--out file]         write an example config.yaml (scan, index and run read it)
  tomosu config check [--config file]     check that a config.yaml is usable; lists every setting and its source
  tomosu config init --env                write .env.example with every environment variable

Model assist (your own model, off by default; see docs/model-assist.md):
  tomosu memory show [--json] [-n N]      what model assist remembers locally (verdicts, drafts, suggestions)
  tomosu memory stats [--json]            what the agent memory stores, why, and how much
  tomosu memory reset --yes               delete the local agent memory
  tomosu audit [--since 30d] [--format text|json|csv] [--engine URL | path]
                                         audit report: repositories, files, when, agents run, weakness rate, decisions
  tomosu contrib queue [--engine URL]     rejected findings ready to contribute
  tomosu health [--engine URL]            a running engine's setup health, with fixes
  tomosu cloud status [--json]            what is sent to Tomosu cloud and why (switches, DO_NOT_TRACK), the sign-in and the last sync
  tomosu cloud off | cloud on              send nothing at all to Tomosu cloud for your user account on this computer (all folders), or allow it again (no running engine needed)
  tomosu cloud logout                     sign out of Tomosu cloud and forget its scores (no more PRI is sent)
  tomosu unlock-link [--open]             a one-time link that opens the console ready to make changes
  tomosu keys create --name NAME          an access key for scripts, CI and installs (also: keys list, keys revoke ID)
  tomosu runtime [--engine URL]           services a running engine sees in production
  tomosu runtime --pdf <file> --service <name>  one service's runtime report as a PDF
  tomosu digest [--since 7d] [--json]     summary of the agent's work: verdicts, drafts, patterns, reactions
  tomosu rules propose [--min N]          turn often-accepted AI-suggested patterns into candidate rules (shadow)
  tomosu rules contribute <id> --signoff "Name <email>" [--yes]   contribute one of your rules (shows what is sent first)

Pre-merge analysis (see docs/scan.md):
  tomosu scan [flags] [path]              find reliability risks in code (text, json, sarif); with no path, scans the path in config.yaml
  tomosu scan --diff origin/main          only lines changed in this branch
  tomosu index [--out file] [path]        build a code index (for CI and the running engine)
  tomosu index push --to <store> <dir>     upload index packages to your bucket (CI)
  tomosu index pull --from <store> --to <dir>  fetch new index packages (cron, air-gapped)
  tomosu explain <finding-id> [path]      the full reasoning behind a finding (--engine URL to ask an engine)
  tomosu fix accept <finding-id> [path]   write a finding's drop-in fix into your checkout (with a model configured, also a confirmed AI-drafted fix)
  tomosu fix reject <finding-id> --reason <r>   dismiss a finding for this code
  tomosu fix draft <finding-id> [path]    ask your own model for a fix where no template exists (off by default)
  tomosu scan --github owner/name [--branch b] [--public]   scan a branch on GitHub through your app, or any public repository with --public (downloaded, scanned, deleted)
  tomosu scan --pdf report.pdf [path | --github owner/name ...]   also write a PDF report: summary and charts, problem categories, pattern detectors, findings, recommended fixes, how the rules decide
  tomosu fix accept --pr <finding-id>      open the fix as a pull request on GitHub as you, with auto-merge (needs login github)
  tomosu fix prs [--refresh] [--json]      fix pull requests opened from Accept, and their status
  tomosu fix timeline [<finding-id>]       each accepted fix on its way to production: merged, in the code, deployed, kept or reverted
  tomosu graph [--engine URL | --index-dir D] [--focus id] [--format json|graphml|cypher]   the Production Context Graph: code and production connected
  tomosu rules contribute finding:<id> [path]   turn a rejected finding into a contribution (shown in full; sent only with --yes)
  tomosu publish --to github|gitlab|bitbucket --report results.json   post or update the PR/MR comment (and Bitbucket Code Insights) from CI

Runtime (see docs/runtime.md):
  tomosu run [flags]                      receive OpenTelemetry, link it to code, serve the local UI

Rule delivery (online and air-gapped; see docs/air-gapped.md):
  tomosu rules pull [flags]               download the latest bundle into an outbox
  tomosu rules import [flags] <path>...   verify and install a bundle, set or folder
  tomosu rules watch [flags]              install sets as they arrive in an inbox
  tomosu rules status [--json]            show the installed bundle and last attempts
  tomosu rules rollback                   make the previous bundle active again
  tomosu ui [flags]                       local web UI (status, token-protected upload)
  tomosu connect github [--org ORG]       create your own GitHub App in one click (sign-in and fix pull requests)
  tomosu disconnect github                forget the GitHub App's keys on this engine
  tomosu login github [--device]          sign in with GitHub for actions taken as you
  tomosu logout                           sign out of GitHub on this machine
  tomosu auth status [--json]             show the GitHub connection, who is signed in, and the engines this terminal is signed in to
  tomosu signals show | export --out DIR   the learning signals the next upload holds, or write them to an outbox

Everything the console does, on a running engine (--engine URL, or TOMOSU_ENGINE; see docs/parity.md).
Sign this terminal in first to act as you (pull and merge requests as you, your branches):
  tomosu login github|gitlab|bitbucket --engine URL [--no-browser]   sign this terminal in to the engine, like the console's sign-in
  tomosu logout --engine URL               sign this terminal out of the engine
  tomosu connect gitlab|bitbucket --client-id ID [--secret-file F] [--url URL]   connect your own GitLab or Bitbucket OAuth application
  tomosu disconnect gitlab|bitbucket       disconnect it (everyone signed in with it is signed out)
  tomosu integrations test github|gitlab|bitbucket   check a code host's connection
  tomosu findings [--view V] [--repo R] [--origin O] [--severity S]   the Findings page
  tomosu fix accept --pr <finding-id> --engine URL   Accept: the fix as a pull or merge request as you (GitHub, GitLab, Bitbucket)
  tomosu fix accept-all|reject-all --repo R   Accept all / Reject all for one repository
  tomosu fix pr --repo R                   one pull or merge request with the repository's accepted fixes
  tomosu fix revert <finding-id>           open a pull request that takes an accepted fix out again (fix safety)
  tomosu fix gate apply <gate-id> | fix gate use <finding-id> corrected|original   answer the CI/CD check
  tomosu autofix plan --repo R|--service S [--apply]   Auto Fix: plan (and apply) for a repository or a service
  tomosu autofix show|apply <plan-id> [--only IDS] [--skip IDS]   a plan, or Apply plan
  tomosu scans start --github|--gitlab|--bitbucket owner/name [--branch B] [--public]   Pre-Merge: scan a branch on the engine
  tomosu scans list | scans forget --id ID|--repo R [--branch B|--all-branches]   scanned branches, or remove them
  tomosu settings list|get KEY|set KEY=VALUE...   the Settings page (set.* as on the page)
  tomosu settings models [KEY=VALUE...]   Load models for a provider
  tomosu settings restart                 Restart now
  tomosu settings test-index-store [KEY=VALUE...]   check the code index storage
  tomosu keys create|list|revoke --engine URL   access keys on a running engine
  tomosu agent status                     the agent's schedule and today's model budget
  tomosu agent ask <finding-id>            Ask Tomosu Agent now, whatever the schedule (the daily budget still applies)
  tomosu agent schedule continuous|hourly|daily|every 6h|on-signal|manual [--min-severity S] [--signals R08,E02]   when the running engine's agent works
  tomosu agent budget <requests-a-day> [--tokens N]   the daily model budget (0 = no cap; default 200)
  tomosu ingest status|pause|resume        pause or resume taking in OpenTelemetry data (paused data is dropped and counted)
  tomosu memory reset --engine URL --yes  the Memory page's Reset
  tomosu rules catalog list|customize|test|save|rollback <rule-id>   Community Rules: one rule on the engine
  tomosu rules contribute --all --engine URL   Auto Contribute: plan everything not yet sent (contrib apply sends it)
  tomosu contrib list | contrib correct <finding-id> | contrib propose <pattern> | contrib apply <plan-id>   the Contributions page
  tomosu cloud login [--provider google|github] | cloud sync | cloud backfill --repo R | cloud logout --engine URL   Tomosu cloud and the PRI
  tomosu prorules [list] | prorules update   the Pro Rules page, and Update now
  tomosu profile                          the Profile page: plan and accounts
  tomosu dashboard                        the Dashboard's headline numbers (--json for everything)
  tomosu tasks                            console work running in the background
  tomosu dev registry [flags]             serve a folder of bundles as a local registry
  tomosu dev practice-model [flags]       a stand-in model with recorded answers, to try model assist without a key
  tomosu dev fake-github [flags]          a stand-in GitHub, to try Connect GitHub and sign-in without an organisation

Environment (every variable, and the older names still accepted: tomosu config init --env):
  TOMOSU_CONFIG           config file (default ./config.yaml)
  TOMOSU_ENGINE           the running engine commands talk to (default http://127.0.0.1:7600)
  TOMOSU_UI_TOKEN         the start-up key: a fixed console key for scripts and CI (or --token-file)
  TOMOSU_DATA_DIR         engine data directory (default ~/.tomosu/data)
  TOMOSU_RULES_DIR        rules directory (default ./rules)
  TOMOSU_TRUST            comma-separated trusted public key files
  TOMOSU_LICENSE_ID       license id (needed to accept Pro bundles)
  TOMOSU_LICENSE_TOKEN    license token for rules pull (or --license-file)
  TOMOSU_REGISTRY_URL     rules registry URL
  TOMOSU_LLM_ENABLED      true turns on model assist with your own model (off by default)
  TOMOSU_LLM_PROVIDER     anthropic, openai, gemini, ollama, openai-compatible, ... (docs/model-providers.md)
  TOMOSU_LLM_MODEL        model name, matching the provider
  TOMOSU_LLM_API_KEY      the provider's API key
  TOMOSU_LLM_BASE_URL     the provider's endpoint, when it is not the usual one
  TOMOSU_CLOUD_ENABLED    false sends nothing at all to Tomosu cloud (as cloud off)
  DO_NOT_TRACK            1 turns off the learning signals and identity sent without a sign-in
  TOMOSU_SIGNALS_ON_EXIT  0 stops scan from sending learning signals when it ends
A .env file in the working directory fills in variables the environment does not set.