OtōtoOtōto

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 · Open source · Documentation

Claude Code asksotō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:144for 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:174tokio::time::sleep(RETRY_AFTER).await;
4 turns · 6 tool calls · 20.0k tokens on the small model · 18 s
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.

01How 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.

1

Claude Code delegates

Your agent passes high-level questions to ask, or queries specific symbol locations and references using locate and callers.

2

Otōto explores locally

A small model hosted on your hardware reads files, inspects structural outlines, and runs targeted regex searches across multiple turns.

3

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 CodeRaw file dumps persist across all subsequent turns.

~2,600 lines of search results and source code

Delegated exploration with OtōtoOnly 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

02Tools

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.

ToolFunctionExample Query
askmodelAnswers complex questions with verified source citations.how is auth wired into the router?
locatemodelPinpoints where a symbol is defined or where a specific behavior originates.where are retries configured?
callersmodelIdentifies all callers or consumers of a function, type, or configuration parameter.who uses DOWN_FOR?
readFetches code by exact identifier, line range, or configuration key across multiple files at once.src/ototo/agent/llm.rs#brief, pom.xml#spring-core
outlineGenerates structural symbol outlines for files or directories with line coordinates.src/agent/
searchExecutes exact-string or regular expression searches across the repository.-F RETRY_AFTER
changesSummarizes changes across commits, branches, or ranges organized by declaration.--commit 907d144
historyTraces the commit history behind specific lines or code declarations.src/ototo/agent/llm.rs#request
digestFilters 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

03Plugins

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

04Dashboard

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
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
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.

05Organisations

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

06Numbers

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

07Install

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, 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 so you can begin using it right away. You can also inspect the installer script 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 · A model server, of each kind we have run · Your coding agent · Settings

08What's new

In the latest release.

2026.23 beta

  • 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 · Follow releases with the feed

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. 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.