Back to index
12/Open Source / Dev Tools/2025/Open Source

ctxrelay

Stop re-explaining your project every time you switch AI agents.

ctxrelay
~800 tok
Context size
0
Dependencies
// Overview

A zero-dependency CLI that maintains a git-diffable .aicontext/ folder in your repo — a compact, token-budgeted map of your codebase and project state. Switch between Claude Code, Codex, Cursor or a fresh session and the agent picks up where the last one left off, without re-reading the whole tree.

// Problem

Every time you switch AI coding agents — or just open a new session — context resets. You burn tokens and time re-explaining architecture the model already figured out an hour ago.

// Approach
01Committed context lives beside the code in .aicontext/, so state is version-controlled and diffable in PRs.
02WASM tree-sitter extraction pulls symbols, routes, components and DB schema — not raw code — for a dense, structured map.
03Token-budgeted output that degrades gracefully as the repo grows; full project context in ~800 tokens.
04Deterministic, byte-stable index.json — same repo state produces the same index, so diffs stay clean.
05Framework-aware extractors for Next.js, Express, React, Prisma and Mongoose.
06Multi-agent task board for coordinating work across tools; optional AI-generated file summaries.
// Outcome
Zero native dependencies — pure npx fetch, fully offline
No telemetry, no API keys required
Full project context in ~800 tokens
Deterministic byte-stable index for clean git diffs
// Stack
TypeScriptNode.jsWASM tree-sitterCLI
Next case →

multiagent RAG Platform