A live context engine for AI coding assistants. Perseus resolves your
environment before the context window opens — directives like
@query "git log -5"
are rendered to facts at build time, so the assistant reads a document
that was already true. Works with any tool that reads a file.
Works with any assistant that reads a file — Claude Code, Cursor, Codex, Rovo Dev, Hermes, or your own. No plugin. No SDK. Drop a rendered markdown file where your assistant already looks.
pip install perseus-ctx
you deploy the api service to staging. ai running `make deploy-staging`... ai Makefile target removed in #482. Let me check the current scripts. ai Which branch are you on? Is the helm chart still at v0.3? What’s the staging cluster name?
Sessions start cold. Tooling drifts. Docs lie politely. Every conversation pays an orientation tax before the real work begins — and the assistant is staring straight at the Gorgon.
you deploy the api service to staging. ai You’re on feat/billing-v2, helm chart v0.4.1, staging = eu-west-2/stg-a. ai Running `./scripts/deploy.sh staging api`. ai ✓ Image pushed. ✓ Helm upgrade applied.
Perseus renders directives to live facts before the assistant reads the file. No guessing, no probing, no trusting yesterday’s notes. The mirror, polished.
The principle The assistant never sees a directive. It sees a document that was already true.
Resolves @query, @read, @waypoint, @services and friends before the assistant sees them. The output is plain markdown. No directives left for the model to chase. --tier 1|2|3 for progressive context disclosure.
Write a checkpoint at any natural pause; perseus recover finds the right one for your workspace; perseus diff shows what changed between two pauses. Continuity, without re-orientation.
Given a task and the current environment, Pythia surfaces the highest-utility skill or tool and tells you why. No extra model required. The loop closes inside the same context window.
tasks/, ensuring the AI and team share a single source of truth for work.One file · one render · every assistant reads the same live truth
@cache ttl=N. The workhorse directive.tasks/*.md. Single source of truth for AI and team.allow_agent_shell for safety..perseus/context.md + pack.yaml. Profile-aware: --profile hermes, codex, claude-code, cursor.--tier 1|2|3 for progressive disclosure.recover finds the right one; diff compares two.--every 30 minutes. Traditional, battle-tested.--interval 5m. Native Linux scheduling.
Listed on the official MCP Registry as io.github.tcconnally/perseus.
Every directive is a live tool: perseus_query, perseus_services,
perseus_memory, perseus_agora, perseus_skills,
perseus_inbox, perseus_drift, perseus_agent, and 16 more.
Works with Claude Desktop, Claude Code, Cursor, Codex,
Hermes Agent, Rovo Dev, and any MCP-compatible assistant.
perseus mcp serve — that's it. Tools resolve live at invocation time. No stale cache.
30 developers × 4 agents each. 150 concurrent checkpoint writes in 9.7s on local NVMe with atomic O_CREAT | O_EXCL locking. Writes hit the task board (tasks/*.md) with zero failures, zero collisions — protocol tested across edge cases: crash recovery, stale claims, TTL expiry.
450× cold→warm · 1,190× cache punch · 301× vs LLM · 94% token compression · 0 failures at 150 concurrent · 813 tests all green · full benchmark suite ↗
Perseus outputs plain markdown. Point the output at whatever file your assistant opens at session start — no plugin, no SDK, no migration. The next session opens warm.
Auto-renders .perseus/context.md on save. Status bar indicator. Hover-preview for any directive. Auto-detects the target assistant file. Install from source; Marketplace publishing pending.
git clone https://github.com/tcconnally/perseus.git && cp -r perseus/editors/vscode ~/.vscode/extensions/tcconnally.perseus-vscode
Runs perseus render automatically before every Claude Code session. The assistant opens already briefed — no orientation phase, ever.
perseus install --target claude-code
Renders on every push and on a schedule. Commits the resolved context back to the repo so every teammate gets pre-warmed context without installing anything locally.
uses: tcconnally/perseus-action@v1
Exposes 24 Perseus directives as MCP tools for any MCP-compatible assistant. Bearer-token authentication on SSE transport, platform-portable timeouts, and SSRF-hardened foreign resolver. Listed on the official MCP Registry.
perseus mcp serve
perseus quickstart detects your assistant, scaffolds a workspace, and renders live context in a single command. Or give your AI our LLM-tuned setup guide and say “set up Perseus for me.” Your assistant opens its next session already briefed.
pip install perseus-ctx
uv tool install perseus-ctx
perseus quickstart
perseus init --profile hermes /workspace/myproject
perseus doctor
After setup → perseus doctor verifies everything is wired correctly.