# Your coding agent's little brother

Otōto is an MCP server for coding agents: Claude Code, OpenCode, and any other that speaks MCP. When your agent needs to understand a codebase, Otōto offloads the heavy reading to a small model running on your own infrastructure. It explores your files, finds the relevant logic, and returns concise answers backed by verified source citations.

`curl -fsSL https://ototo.sh | sh`

macOS (Apple silicon) and Linux · [Inspect installer script](https://ototo.dev/installer) · [Open source](https://ototo.dev/#source) · [Documentation](https://docs.ototo.dev)

**Rust**

**Claude Code asks (otōto)**

Where does a failed request move on to the next model server?

**Otōto answers**

Llm::request tries each endpoint in turn; one that fails is marked down for 60 s and the next is asked. When every failure was one that passes (a dropped connection, a 502), it goes round once more after 2 s.

- src/ototo/agent/llm.rs:144 `for round in 0..2 {`
- src/ototo/agent/llm.rs:163 `*b.down_until.lock().unwrap() = Some(Instant::now() + DOWN_FOR);`
- src/ototo/agent/llm.rs:174 `tokio::time::sleep(RETRY_AFTER).await;`

4 turns · 6 tool calls · 20.0k tokens on the small model · 18 s

**TypeScript**

**Claude Code asks (maplibre-gl-js)**

How does flyTo work out how long its animation takes?

**Otōto answers**

Camera.flyTo computes its animation duration from the "optimal path" model of Van Wijk & Nuij (2003), unless the caller passes an explicit duration: … options.duration = 1000 \* S / V. So the time is proportional to the path length in screenfulls divided by the speed in screenfulls per second. If options.maxDuration is set and the computed duration exceeds it, duration is set to 0, which makes _ease jump instantly to the end.

- src/ui/camera.ts:1121 `let S = (zoomOutFactor(true) - r0) / rho;`
- src/ui/camera.ts:1139 `options.duration = 1000 * S / V;`
- src/ui/camera.ts:1143 `options.duration = 0;`

4 turns · 4 tool calls · 15.5k tokens on the small model · 47 s

**Python**

**Claude Code asks (httpx)**

How does the client decide whether to follow a redirect, and what stops it following redirects forever?

**Otōto answers**

After each response, the client checks response.has_redirect_location. That property is True only for 301/302/303/307/308 status codes AND a Location header present. … What stops infinite redirects: at the top of each loop iteration, if len(history) > self.max_redirects: raise TooManyRedirects(...). max_redirects is a client constructor parameter defaulting to DEFAULT_MAX_REDIRECTS = 20.

- httpx/_client.py:971 `if len(history) > self.max_redirects:`
- httpx/_client.py:985 `if not response.has_redirect_location:`
- httpx/_config.py:248 `DEFAULT_MAX_REDIRECTS = 20`

5 turns · 7 tool calls · 16.7k tokens on the small model · 40 s

**Java**

**Claude Code asks (spring-petclinic)**

Where is the database chosen between H2, MySQL and Postgres, and how does a user switch it?

**Otōto answers**

The database is chosen via Spring Boot profiles, not a single config flag. The default profile uses H2: application.properties sets database=h2 … The mysql and postgres profiles each have their own property file that override database to mysql/postgres and set the JDBC datasource URL. To switch, a user activates the corresponding Spring profile: run with `--spring.profiles.active=mysql` or `--spring.profiles.active=postgres`.

- src/main/resources/application.properties:2 `database=h2`
- src/main/resources/application-mysql.properties:3 `spring.datasource.url=${MYSQL_URL:jdbc:mysql://localhost/petclinic}`
- src/main/resources/application-postgres.properties:2 `database=postgres`

3 turns · 4 tool calls · 11.2k tokens on the small model · 39 s

**Terraform**

**Claude Code asks (terraform-aws-vpc)**

When does this module create one NAT gateway per availability zone, and when only one?

**Otōto answers**

The module decides the NAT gateway count in one local (main.tf:1203). One NAT gateway: when single_nat_gateway = true (takes precedence over one_nat_gateway_per_az). One NAT gateway per availability zone: when single_nat_gateway = false and one_nat_gateway_per_az = true. … All of this only applies when create_vpc && enable_nat_gateway is true.

- main.tf:1203 `nat_gateway_count = var.single_nat_gateway ? 1 : var.one_nat_gateway_per_az ? length(var.azs) : local.max_subnet_length`
- main.tf:1229 `count = local.create_vpc && var.enable_nat_gateway ? local.nat_gateway_count : 0`
- main.tf:1239 `var.single_nat_gateway ? 0 : count.index,`

4 turns · 5 tool calls · 24.0k tokens on the small model · 45 s

**Maven plugin**

**Claude Code reads (spring-petclinic)**

`read pom.xml#webjars-locator-lite`

**The maven plugin answers**

The dependency as Maven resolves it: its version worked out through the property that sets it, each part with the line it comes from.

```
<dependency>  # pom.xml:96-101
  <groupId>org.webjars</groupId>
  <artifactId>webjars-locator-lite</artifactId>
  <version>${webjars-locator.version}</version>
  <scope>runtime</scope>
</dependency>
version: 1.1.3  # pom.xml:99: ${webjars-locator.version}
  webjars-locator.version = 1.1.3  # pom.xml:26
scope: runtime  # pom.xml:100
```

the maven plugin · no model · 58 ms

**Fig. 1** Live queries executed against public repositories and Otōto's own codebase (summarized for display). Claude Code receives a concise synthesis with verified line citations rather than consuming thousands of tokens reading raw source files.

How it works

## Your primary agent asks the questions. Otōto does the reading.

Every file an agent opens, every search query it runs, and every dead end it encounters remains trapped in its conversation history. As sessions grow longer, repeating this accumulated context inflates token costs and degrades reasoning. Otōto isolates codebase exploration within its own ephemeral context window, discarding raw search noise once the answer is found.

- **Claude Code delegates**
  Your agent passes high-level questions to `ask`, or queries specific symbol locations and references using `locate` and `callers`.
- **Otōto explores locally**
  A small model hosted on your hardware reads files, inspects structural outlines, and runs targeted regex searches across multiple turns.
- **Verified answers returned**
  Otōto returns a concise summary where every `path:line` reference is validated against the live files on disk. Any unverified hallucination is automatically flagged.

### Standard exploration in Claude Code (Raw file dumps persist across all subsequent turns.)

~2,600 lines of search results and source code

### Delegated exploration with Otōto (Only the verified answer and cited lines enter the main context.)

one concise paragraph and three citations

**Fig. 2** Context footprint comparison for a single code query (conceptual illustration). Offloading exploratory reads keeps your frontier model's context clean, significantly lowering API expenses and preventing context drift.

[Read the in-depth architectural breakdown in the docs](https://docs.ototo.dev/how-it-works)

Tools

## Delegated tools need the small model. Direct tools do not.

Otōto provides three delegated tools powered by the small model for open-ended queries. For routine lookups, it offers six direct tools that query your filesystem and git history instantly without invoking any model at all. [Learn what the small model does and how Otōto functions without one.](https://ototo.dev/small-model)

| Tool | Function | Example Query |
| --- | --- | --- |
| ask (model) | Answers complex questions with verified source citations. | how is auth wired into the router? |
| locate (model) | Pinpoints where a symbol is defined or where a specific behavior originates. | where are retries configured? |
| callers (model) | Identifies all callers or consumers of a function, type, or configuration parameter. | who uses DOWN_FOR? |
| read | Fetches code by exact identifier, line range, or configuration key across multiple files at once. | src/ototo/agent/llm.rs#brief, pom.xml#spring-core |
| outline | Generates structural symbol outlines for files or directories with line coordinates. | src/agent/ |
| search | Executes exact-string or regular expression searches across the repository. | -F RETRY_AFTER |
| changes | Summarizes changes across commits, branches, or ranges organized by declaration. | --commit 907d144 |
| history | Traces the commit history behind specific lines or code declarations. | src/ototo/agent/llm.rs#request |
| digest | Filters verbose build and test outputs down to actionable errors, failures, and summaries. | ototo digest -- cargo test |

```
$ ototo read src/ototo/agent/llm.rs#brief
── src/ototo/agent/llm.rs:290-301  brief · fn brief(e: &anyhow::Error) -> String
290| fn brief(e: &anyhow::Error) -> String {
291|     if let Some(r) = e.downcast_ref::<reqwest::Error>() {
292|         if r.is_connect() {
293|             return "unreachable".into();
294|         }
295|         if r.is_timeout() {
296|             return "timed out".into();
297|         }
298|     }
299|     let s = e.to_string();
300|     if s.chars().count() > 120 { … } else { s }
301| }
```

**Fig. 3** Direct lookup of a single function by name: returns exact source lines immediately without model overhead.

```
$ ototo changes --commit 907d144
── changes in 907d144 changes: one commit, or a range, told by declaration, 3 files, +123 −20
M src/ototo/main.rs  +13 −2
  changed  Command (69-291)
  changed  main (361-585)
M src/ototo/mcp.rs  +19 −7
  changed  instructions (31-86)
  changed  tools (220-380)
M src/ototo/tools/git.rs  +91 −11
  added    commit (171-181)
  added    range (184-205)
```

**Fig. 4** Semantic commit review: outlines modified declarations directly instead of forcing an agent to parse sprawling git diffs.

[Explore full tool specifications and parameter guides in the docs](https://docs.ototo.dev/tools)

Plugins

## Native comprehension for complex build tools and configurations.

Standard coding agents often struggle to parse multi-layered build configs, archive contents, and variable interpolations. Otōto plugins parse these files exactly as your build tooling does—such as resolving effective Maven dependency trees or Docker Compose overlays. Plugins run as isolated, signed WebAssembly binaries with strict permission boundaries: local plugins operate strictly read-only, archive plugins access only requested files in memory, and forge plugins connect exclusively to pre-approved host domains without touching raw secrets.

- **archive (archive)**
  Inspects classes and resources inside JAR, WAR, and ZIP archives in memory without requiring extraction or decompiler tools.
  \*.jar, \*.war, \*.zip, \*.whl, \*.class
- **maven (file)**
  Resolves effective dependency versions, scopes, and properties across parent POMs and BOM imports.
  pom.xml
- **spring-config (file)**
  Traces application properties across active Spring profiles and reveals exactly where each value is defined.
  application\*.yml, .properties
- **terraform (file)**
  Evaluates infrastructure modules with environment-specific variable assignments and interpolations.
  \*.tf, \*.tfvars, \*.tofu
- **kube (file)**
  Renders Kustomize overlays and maps Helm values to the Kubernetes templates that consume them.
  kustomization.yaml, values.yaml
- **gitlab-ci (file)**
  Parses pipeline jobs as GitLab evaluates them, resolving includes, extends, and YAML anchors.
  .gitlab-ci.yml
- **compose (file)**
  Renders container services with all Compose file overlays, extends directives, and .env variables resolved.
  compose.yaml
- **gitlab (forge)**
  Fetches branch merge requests, monitors pipeline stages, and extracts targeted failure logs from CI jobs.
  gitlab.com or self-hosted

[Every plugin, by tag, and how to add one](https://ototo.dev/plugins)

Dashboard

## Complete visibility into every agent interaction.

Running `ototo ui` launches a local, private observability dashboard backed by your machine's run logs. It tracks tool execution latency, traces the small model's step-by-step reasoning, and displays the exact citations returned to your coding agent. You can also stream live calls in your terminal with `ototo tail`. For privacy and security, the interface binds exclusively to `127.0.0.1` and requires an authentication token.

![The dashboard: totals, reliability, activity over time and calls by tool](https://ototo.dev/assets/ui-overview.png)

**Fig. 5** Operational dashboard overview: tracking query volume, execution reliability, latency trends, and tool usage across projects.

![One call opened: the question, the small model's steps turn by turn, and the reply](https://ototo.dev/assets/ui-call.png)

**Fig. 6** Detailed call inspection: reviewing the initial prompt, intermediate tool invocations by the small model, and the final validated response delivered to Claude Code.

Organisations

## Enterprise security and control across developer fleets.

Otōto executes strictly within your local environment and communicates only with model endpoints you configure. No proprietary code or prompts are ever routed through our servers, and background telemetry or updates are completely disabled by default. When deploying across an engineering organization, Otōto provides robust administrative controls:

### Self-Hosted Model Endpoints

Direct traffic to internal vLLM, llama.cpp, Ollama, LM Studio, or OpenAI-compatible servers. Administrators can mandate private endpoints so code never leaves corporate firewalls.

### Centralized Policy Enforcement

Define global configuration profiles that override user-level preferences for model endpoints, telemetry destinations, and permitted plugin signing keys. Run `ototo doctor` to verify active policies.

### Automated Fleet Deployment

Generate deployment configurations for MDM, Ansible, or standardized developer VM images using `ototo managed`. Pre-configure MCP server registrations, policies, and trusted keys seamlessly.

### Fleet-Wide Observability

Export operational metrics (never source code) via standard OpenTelemetry pipelines to Prometheus and Grafana. Measure token savings, query latency, and software version distribution across teams.

### Cryptographically Verified Plugins

Ensure workstations run only plugins signed by your internal security keys. Restrict forge integrations to designated corporate hosts with granular access controls.

### Audited Security Architecture

Review comprehensive documentation detailing all filesystem and network access patterns. Every binary release is cryptographically signed and accompanied by an automated CycloneDX SBOM.

[Read the full enterprise deployment and policy guide](https://docs.ototo.dev/organisations)

Numbers

## Demonstrated token and cost reductions.

- **31%** Lower Claude API spend across structured coding benchmarks, maintaining 100% solution accuracy. (nine coding tasks we wrote, three runs each)
- **58%** Cost reduction compared to Claude Code's native Explore agent on real-world bug fixes with identical success rates. (four Java libraries, judged by each library's own tests)
- **17%** Lower token costs compared to standalone Claude Code on identical bug fix challenges. (same tasks, same model, three runs each)

Evaluated using Claude Code on Claude Opus 5.5. Real-world savings will vary depending on repository architecture, query patterns, and chosen local model servers.

[Inspect the complete benchmark methodology, dataset, and latency metrics](https://ototo.dev/results)

Install

## Get started with a single command.

1. `curl -fsSL https://ototo.sh | sh`
   Compatible with macOS (Apple silicon) and Linux (x86_64 and arm64). The script verifies release signatures against [Otōto's public release key](https://ototo.dev/release-key.txt), detects local model servers, and configures Claude Code and OpenCode after asking for your confirmation. To point Otōto at an external model server immediately, pass `sh -s -- --base-url http://gpu:8000/v1`. If you do not have a local model running, Otōto automatically configures its [direct tools](https://ototo.dev/small-model#without) so you can begin using it right away. You can also [inspect the installer script](https://ototo.dev/installer) before running it.
2. `ototo doctor`
   Validates your environment by verifying configuration files, testing model server connectivity with live tool calls, checking MCP agent integrations, and confirming installed plugins.
3. `ototo update`
   Checks for new releases and updates binaries in place after cryptographic verification. Otōto never updates silently in the background.

[The quick start](https://docs.ototo.dev/quick-start) · [A model server, of each kind we have run](https://docs.ototo.dev/small-model/) · [Your coding agent](https://docs.ototo.dev/agents/) · [Settings](https://docs.ototo.dev/settings)

What's new

## In the latest release.

### 2026.23 (beta) 24 November 2026

- **Otōto waits on a pipeline or a job.** Agents waiting for CI write loops of `glab api` and `sleep`; Otōto now does the waiting. Give `forge` a pipeline or a job with `wait` (minutes, at most 20) and it answers once that one has passed, failed, been canceled or skipped, or reached a manual job waiting for someone to start it: the pipeline with its jobs by stage, or the failed job's log cut to what failed. On the command line, `ototo forge --job <id> --wait` (or `--pipeline <id>`) waits up to an hour, or the minutes you give it, and says each change of state as it goes; run it in the background. Otōto looks every 5 seconds at first, then less often, at most every 30. It still only reads the forge: it never starts a manual job. Waiting needs the gitlab plugin 0.2.0, which `ototo update` offers after it installs this release (or `ototo plugins update`); with 0.1.0, `wait` says to update it.
- **Claude is told it can wait.** The block Otōto keeps in `CLAUDE.md` gains a sentence saying to wait with `ototo forge`, not a loop of sleeps; the update rewrites the block. When a forge plugin is granted and Claude starts a Bash loop that polls GitLab's or GitHub's API with `sleep`, Otōto adds a note saying it can wait instead. The loop still runs.
- **For plugin authors: a forge plugin can say where a pipeline or a job is.** Build against the `forge-plugin-with-states` world in `src/wit/plugin.wit` to have Otōto wait with it. A plugin built without it still loads and answers as before, and a plugin built with it loads in earlier releases too.
- **Security: the plugin runtime is updated.** Wasmtime, which runs Otōto's plugins, moves to 48.0.10 for nine advisories dated 16 and 19 November. One reached Otōto: a plugin could make Otōto's process abort with a kind of function-type check that Wasmtime, built as Otōto builds it, could not carry out (RUSTSEC-2026-0570, rated low). A plugin runs only when signed by a key you trust. The one rated high, a way out of WASI's filesystem sandbox on Windows (RUSTSEC-2026-0587), needs a directory lent to the plugin, and Otōto lends none; the other seven need a feature or setting Otōto does not use (RUSTSEC-2026-0566 to 0569, 0571 to 0573). url moves to 2.5.9 for RUSTSEC-2026-0592, a stack overflow in working out a `blob:` URL's origin, which nothing in Otōto does. quinn-proto and quinn-udp, QUIC libraries named in the lock file but not built into Otōto, are updated for RUSTSEC-2026-0523, 0524 and 0538. A scanner will list chrono as unmaintained (RUSTSEC-2026-0543): there is no vulnerability in it, and no release to move to yet.
- Upgrading from 2026.22: `ototo update`.

[Every release](https://ototo.dev/changelog) · [Follow releases with the feed](https://ototo.dev/feed.xml)

## Open source.

Otōto's source, its plugins and the kit for writing your own are public under MIT or Apache-2.0, your choice, [on GitLab](https://gitlab.com/handmadedigital/projects/ototo). Found a bug, or missing something? Open an issue there.

Releases are signed, and since 2.10 a download can be checked against the source: `sh dist/reproduce.sh` rebuilds the commit a release was built from and compares the binary and every plugin, byte for byte.

---

© 2026 [Handmade Digital Co.](https://hmd.dev) · [hello@ototo.dev](mailto:hello@ototo.dev) · [Source](https://gitlab.com/handmadedigital/projects/ototo) · [Docs](https://docs.ototo.dev) · [Changelog](https://ototo.dev/changelog) · [Feed](https://ototo.dev/feed.xml) · [Installer](https://ototo.dev/installer) · [The small model](https://ototo.dev/small-model) · [Release key](https://ototo.dev/release-key.txt) · [Security](https://ototo.dev/.well-known/security.txt)

Otōto is provided as is, without warranty of any kind: [the terms](https://ototo.dev/installer#warranty).

Claude and Claude Code are Anthropic's; Otōto is independent of Anthropic. This site sets no cookies and has no trackers, no analytics and nothing to sign up for; the fonts come from it too.
