Skip to main content

Trovex — token-efficient routing for agent-generated .md docs. MCP + Web UI.

Project description

trovex — one canonical doc for your coding agents, ~60% fewer tokens.

trovex

trovex — one canonical doc for your coding agents, ~60% fewer tokens.

Your coding agents (Claude Code, Cursor, Windsurf, Zed, any MCP client) reread the repo every session to work out which .md is current, then answer from a guess. You pay for that on every session, every agent, every teammate.

trovex indexes your repo's markdown and exposes one MCP tool. Your agent asks a question; trovex returns the single current doc that answers it as a path:line pointer with a freshness marker (canonical / stale / duplicate), and serves just the section that answers instead of the whole file. Agents also write what they learn back through one shared point, so every agent and teammate reads the same source of truth instead of re-deriving it.

About 60% fewer tokens on doc lookups, same context quality. Runs locally: vectors in SQLite, embeddings via ONNX, no cloud or API keys.

Quick start

trovex is in public beta. No clone, no pip install step — uv tool install builds it straight from git and puts trovex on your PATH:

uv tool install git+https://github.com/TsukumoHQ/trovex   # one-time, no clone

trovex index /path/to/your/repo        # index your markdown (~1 min)
trovex search "how do we roll back a deploy?"   # ask — prints the tokens it saved
trovex serve                           # wire into your agent: MCP at /mcp, dashboard at /savings

Don't have uv? It's a one-line install: curl -LsSf https://astral.sh/uv/install.sh | sh (or brew install uv).

The search step is the fast way to see the point: it returns the one canonical doc and prints how many tokens that saved versus reading the top few candidates. Once trovex is wired into your agent over MCP, the same numbers accumulate on the savings dashboard at http://localhost:8765/savings.

Prefer not to install anything yet? uvx --from git+https://github.com/TsukumoHQ/trovex trovex search "..." runs a single command in a throwaway environment. After the public launch, that shortens to uvx trovex.

Wire it into your agent

trovex is an MCP server. Point your client at http://localhost:8765/mcp after trovex serve. Per-client setup (Claude Code, Cursor, Windsurf, Cline, Zed, Roo) is at trovex.dev/for. For Claude Code:

claude mcp add --transport http trovex http://localhost:8765/mcp

MCP tools

  • trovex(q) — route a question to the right on-disk .md and get back path:line pointers with freshness markers, not a pile of files to rank.
  • trovex_write(content, kind?, doc_id?, tags?) / trovex_read(query | doc_id, section?) — docs owned inside trovex. An agent stores a record (an incident, a decision, "what actually worked") once; every other agent and a second dev read it back as content (optionally just one section) instead of re-deriving it. See REFONTE.md.
  • trovex_search(query, k?, tags?) — passage-level retrieval across the store with tag filters, for when you want the top matching chunks rather than one canonical doc.

Humans read trovex-owned docs at /doc/{id} in the rendered reader. To make agents route .md writes through trovex_write instead of the disk, install the PreToolUse hook deploy/hooks/trovex-md-guard.sh and carve out exceptions in .trovexignore.

How it compares

  • vs CLAUDE.md / AGENTS.md: one static file that goes stale and can't route a question to the right doc, vs many docs kept canonical and served per query. More.
  • vs repomix / files-to-prompt: pack the whole repo into the window vs retrieve the one answer. More.
  • vs a vector DB / plain RAG: a ranked pile of candidate chunks with no freshness signal vs one current doc with an explicit marker. More.

The reasoning behind the ~60% number is written up in the token cost of agents rereading docs.

Stack

  • Python 3.11 + uv
  • FastAPI (MCP HTTP + server-rendered HTML UI)
  • fastembed (local embeddings, ONNX under the hood)
  • sqlite-vec (vector search in SQLite)
  • Jinja2 + HTMX (UI, no build step)

Public beta

trovex is in public beta. Install it, run it on your repo, and if it saves you tokens a GitHub star helps other devs find it. Issues and PRs welcome.

Questions, or comparing notes with other people running agents? Join the community Slack: tsukumo.ch/slack.

License

trovex is licensed under the GNU AGPL-3.0-or-later (see LICENSE). You can self-host and modify it freely; if you run a modified version as a network service, AGPL requires you to share your changes.

Working with a team?

trovex is free to run yourself. If your team is rolling out coding agents at scale and wants hands-on help doing it well, or to embed and host a modified trovex privately without the AGPL's copyleft obligations, that's what the consulting is for. Reach out: tsukumo, the team behind trovex.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trovex-0.11.0.tar.gz (129.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trovex-0.11.0-py3-none-any.whl (151.5 kB view details)

Uploaded Python 3

File details

Details for the file trovex-0.11.0.tar.gz.

File metadata

  • Download URL: trovex-0.11.0.tar.gz
  • Upload date:
  • Size: 129.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for trovex-0.11.0.tar.gz
Algorithm Hash digest
SHA256 ec642f586ec118a2b431878e4448bcb86dbe8b03217f57a08edb9c9c9883a79e
MD5 e8e04715003a749eca0a037f7dcfc2f2
BLAKE2b-256 c3cc8cb3ad622612d7281f946fcd9e45a190c81f72ff0e0675d177c0c1691441

See more details on using hashes here.

File details

Details for the file trovex-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: trovex-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 151.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for trovex-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1056448be1927923997795239f4f137dbc3eeab0480ef76f76902027f98694e7
MD5 8a3fb9358280dae0a49b27db04a15f72
BLAKE2b-256 d61a53bd87e1423558a135aaddb1e10d7210d0e050fbc97da41b8f26a68739a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page