Threadroot
БесплатноНе проверенCodex Context Optimizer for smaller prompts, JSONL flight recording, tokens-to-green scoring, verification, and repo-local tuning.
Описание
Codex Context Optimizer for smaller prompts, JSONL flight recording, tokens-to-green scoring, verification, and repo-local tuning.
README
Threadroot is a Codex Context Optimizer.
It makes Codex cheaper and better by turning repo work into small, evidence-backed, verified Codex runs. The product is optimized around tokens-to-green: the input, cached input, output, reasoning, tool-output, retry, and verification cost required to reach a correct result.
What It Does
- Preflight: builds a compact Codex-ready brief with the goal, first reads, likely tests, verification commands, and risk notes.
- Flight recorder: runs
codex exec --json, streams output to disk, captures token usage and event evidence, and verifies the result. - Autotuner: scores context waste and proposes routing or
AGENTS.mdimprovements from real run evidence.
Project-local Threadroot state lives only under:
.codex/threadroot/
Threadroot does not create or require .threadroot/.
Quick Start
npm install -g threadroot
threadroot init
threadroot codex install --refresh-skill
threadroot codex doctor
threadroot prep "fix the failing test" --memory tiny
threadroot codex run "fix the failing test" --memory tiny --mode balanced --ephemeral --require "pnpm test"
threadroot score latest
threadroot tune latest
If Codex does not already list the Threadroot MCP server, run the setup command printed by threadroot codex install:
codex mcp add threadroot -- threadroot mcp
Restart Codex after changing MCP config or refreshing the global Threadroot skill.
Codex-Native Files
threadroot init creates or updates a compact root AGENTS.md because Codex reads AGENTS.md before work and the official guidance recommends keeping repo instructions small, practical, and close to the code they affect.
threadroot codex install --refresh-skill writes a global skill to:
$HOME/.agents/skills/threadroot/SKILL.md
That .agents path is intentional: Codex documents $HOME/.agents/skills for global skills and .agents/skills for repo skills. Threadroot uses the global location so every repo can ask Codex to use the optimizer without committing a project skill.
Commands
threadroot init [--force]
threadroot prep "<task>" [--memory tiny|conservative|standard] [--json]
threadroot codex run "<task>" [--mode cheap|balanced|deep] [--ephemeral] [--require "pnpm test"] [--json]
threadroot codex install [--refresh-skill] [--check] [--status] [--undo] [--json]
threadroot codex status [--json]
threadroot codex doctor [--json]
threadroot score latest [--json]
threadroot tune latest [--json]
threadroot eval codex [--json]
threadroot mcp
threadroot mcp check [--json]
threadroot status and threadroot doctor are aliases for the Codex-focused status and doctor commands.
MCP Surface
Codex should call context_budget or task_packet before broad repo exploration. The MCP server exposes only the optimizer-focused tools:
task_packetcontext_budgetrepo_searchrepo_readscore_latesttrace_latesttune_latestcodex_status
Resources:
threadroot://brief/latestthreadroot://score/latestthreadroot://tuning/latestthreadroot://codexthreadroot://repo/{path}
RAM And Context Control
Threadroot defaults to the conservative memory profile. Use --memory tiny when Codex or the repo is pressuring local RAM; use --memory standard when you want broader preflight recall.
threadroot codex run streams Codex JSONL output directly to .codex/threadroot/runs/ and stores bounded compact samples, so large tool output does not have to stay in memory or get fed back into Codex uncompressed.
Use --ephemeral for automation runs where Threadroot's score and trace are the durable artifact and Codex does not need to persist its own session state.
Установить Threadroot в Claude Desktop, Claude Code, Cursor
unyly install threadrootСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add threadroot -- npx -y threadrootFAQ
Threadroot MCP бесплатный?
Да, Threadroot MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Threadroot?
Нет, Threadroot работает без API-ключей и переменных окружения.
Threadroot — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Threadroot в Claude Desktop, Claude Code или Cursor?
Открой Threadroot на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Threadroot with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
