Perseusβ’ πͺ β One command. Zero orientation.
pip install perseus-ctx && cd your-project && perseus quickstart

π‘οΈ Product Family
Perseus is the live context engine. Six specialized products extend it:
| Product | Description | Page |
|---|---|---|
| Mimir | 23 MCP tools β persistent memory with FTS5, entities, layers, confidence decay | /mimir/ |
| MCTS | 120 security analyzers for MCP servers β tool poisoning, prompt injection, credential leaks | /mcts/ |
| PR Pilot | 5-agent autonomous PR review pipeline β graduated autonomy L1βL3 | /pr-pilot/ |
| Blast Radius | GitLab-native dependency impact analysis β 1 mention, instant risk report | /blast-radius/ |
| Rapid Agent | Dual-backend memory agent (Elastic β Engram-rs) β Google Cloud Hackathon | /rapid-agent/ |
| Qwen Memory | Agent that gets smarter every session β Qwen Cloud Hackathon | /qwen-memory/ |
| Anna Recall | 435-line Anna AI plugin β persistent memory powered by Mimir | /anna-recall/ |
Mimir β Persistent Memory (MCP)
Mimir is the persistent memory backend for Perseus β a lightweight Rust MCP server with SQLite + FTS5. Zero network calls, no API keys, no embeddings model required. v0.5.0 provides 23 MCP tools across structured entities, layers, confidence decay, journal events, and state management: mimir_recall, mimir_store, mimir_entity_*, mimir_layer_*, mimir_decay_config, mimir_stats, mimir_health, and more.
π Product page β | β GitHub β
Install:
curl -sSL https://raw.githubusercontent.com/tcconnally/mimir/main/scripts/bootstrap.sh | bashHermes Agent β add to ~/.hermes/config.yaml:
mcp_servers:
mimir:
command: "mimir"
args: ["--db", "~/.mimir/data/mimir.db"]Claude Desktop / Cursor β add to your MCP settings:
{
"mcpServers": {
"mimir": {
"command": "mimir",
"args": ["--db", "/home/YOU/.mimir/data/mimir.db"]
}
}
}Perseus integration β add to .perseus/config.yaml:
mimir:
enabled: true
command: ["mimir", "--db", "~/.mimir/data/mimir.db"]Then add @memory mode=search query="your terms" to .perseus/context.md and Perseus resolves live recall at render time.
Works with any MCP-compatible assistant.
π Hackathons β 3 Entries Submitted
Google Cloud Rapid Agent (Elastic Partner Track)
Status: Submitted | Deadline: June 11, 2026 | Devpost: perseus-cmzeu9 π Product page β
Perseus is entered in the Google Cloud Rapid Agent Hackathon (Elastic Partner Track). The submission demonstrates persistent agent memory across three consecutive sessions, with live backend swap from Elastic Cloud to Engram-rs (self-hosted).
Qwen Cloud Hackathon (MemoryAgent Track)
Status: Submitted | π Product page β
Agent that gets smarter every session. Persistent memory, confidence decay, cross-session compounding. Track requirements checklist with contradiction demo beat.
GitLab Transcend Hackathon (Showcase Track)
Status: Submitted | π Product page β
Blast Radius β GitLab-native dependency impact analysis via Orbit knowledge graph. One @mention, instant risk report.
Build with Gemini XPRIZE
Status: Submitted | π Product page β
PR Pilot β 5-agent autonomous PR review pipeline. Gemini API, Google Cloud Run, Stripe integration.
Wire Perseus to Your Assistant (MCP)
Perseus implements the Model Context Protocol (MCP), exposing tools over stdio or SSE transport. Every tool resolves live workspace state at invocation time β no stale cache, no pre-computed snapshots.
β οΈ Security Gate: Shell-executing directives (
@query,@agent,@services command:) requireexport PERSEUS_ALLOW_DANGEROUS=1. Without it, shell directives are silently skipped.
Quick Start (MCP Server)
pip install perseus-ctx
perseus mcp serve # stdio (Claude Desktop, Claude Code, Cursor, Codex)
perseus mcp serve --transport sse --port 8420 # SSE (remote agents, multi-machine)Assistant-Specific Wiring
Pick your assistant and add the config block shown:
Hermes Agent (~/.hermes/config.yaml):
mcp_servers:
perseus:
command: perseus
args: ["mcp", "serve", "--workspace", "/path/to/workspace"]Then verify with hermes mcp test perseus. Tools appear as mcp_perseus_* in your session.
Use an absolute path for
--workspace. Perseus's non-interactive shell context has a limited PATH β a bareperseuscommand works in the Hermes MCP config because Hermes resolves it from the user's environment, but the workspace path must be absolute.
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"perseus": {
"command": "perseus",
"args": ["mcp", "serve", "--workspace", "/path/to/workspace"]
}
}
}Claude Code (.mcp.json in your project root):
{
"mcpServers": {
"perseus": {
"command": "perseus",
"args": ["mcp", "serve"]
}
}
}Cursor (.cursor/mcp.json):
{
"mcpServers": {
"perseus": {
"command": "perseus",
"args": ["mcp", "serve"]
}
}
}Codex (~/.codex/config.toml or per-project .mcp.json):
{
"mcpServers": {
"perseus": {
"command": "perseus",
"args": ["mcp", "serve"]
}
}
}Rovo Dev (.mcp.json in repo root):
{
"mcpServers": {
"perseus": {
"command": "perseus",
"args": ["mcp", "serve"]
}
}
}Rovo Dev also reads AGENTS.md at session start β pair MCP tools with rendered context for a complete setup.
Docker
docker build -t perseus .
docker run --rm -v /path/to/workspace:/workspace perseus mcp serveSee Container Runtime for full Docker and compose deployment.
MCP Registry
Published as io.github.tcconnally/perseus on the official MCP Registry (search "perseus"). Includes server.json for zero-config discovery.
MCP Tools
<!-- test-count: 1032 -->24 MCP tools resolve live state at invocation time. Two sensitive tools (perseus_query and perseus_agent) require explicit mcp.tool_allowlist opt-in because they execute commands in the user's local shell β not sandboxed, full user permissions apply:
| Tool | Description |
|---|---|
perseus_services | Health-check running services |
perseus_query | Run a shell command and return stdout |
perseus_read | Read file contents |
perseus_list | List directory or structured data |
perseus_tree | Tree view of directory |
perseus_env | Read environment variables |
perseus_date | Current date/time |
perseus_waypoint | Latest checkpoint summary |
perseus_session | Recent session digests |
perseus_health | Context maintenance report |
perseus_drift | Oracle drift report |
perseus_memory | MnΔmΔ narrative memory (+ Mimir persistent store) |
perseus_mimir | Recall persistent memories via Mimir BM25 |
perseus_skills | List available skills with staleness flags |
perseus_include | Include and render another file |
perseus_agent | Execute local agent subprocess |
perseus_agora | Task board from tasks/*.md |
perseus_inbox | Agent message inbox |
perseus_prompt | System prompt block |
perseus_validate | Validate rendered block against schema |
perseus_tool | Run allowlisted external tool |
perseus_perseus | Fetch context from remote Perseus instance |
perseus_get_context | Full rendered workspace context |
perseus_get_health | Daedalus context-maintenance heuristics |
The Problem
Every AI assistant session starts cold. Before useful work begins, the assistant burns turns on orientation β checking which services are running, reading stale config files, rediscovering where you left off. Static markdown files (.cursorrules, CLAUDE.md) rot immediately. The port you wrote down has changed. The container that was "always running" hasn't been started since Tuesday.
Stale context isn't neutral. It's drag.
The Fix: Resolve Before Context
Perseus is a pre-processor. You write directives in a source document β @query, @services, @waypoint β and Perseus resolves them at render time, then outputs plain markdown. The assistant reads verified facts, not instructions to go find facts.
Without Perseus With Perseus
ββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββ
"Port is 3001 (check .env)" β Port: 3001
"47 tests (may be stale)" β Tests: all passing (run 8s ago)
"Check docker ps first" β mongo-dev: Up 4h 12m
"Where did we leave off?" β Checkpoint: webhook handler written,
pending test runPerseus replaces your assistant's context file β CLAUDE.md, .cursorrules, AGENTS.md, .hermes.md β with rendered live context. If you already have a hand-written context file, migrate its static content into .perseus/context.md first. Perseus overwrites the output file on every render. Add @perseus to line 1 of your source and it becomes live. The assistant never sees directive syntax. It sees a document that was already true.
Quick Start (30 Seconds to Live Context)
perseus quickstart # auto-detects project, scaffolds context, rendersSmart init detects your stack and tailors the setup:
- Python β
@memoryqueries for test patterns, type annotations - Rust β trait bounds, lifetime annotations, cargo config
- Node.js/TS β npm scripts, ESLint config, component patterns
- Go, Java, C/C++, Docker β all detected automatically
- Falls back to a sensible generic query when unknown
The output file name is the only assistant-specific detail:
| Assistant | Output file |
|---|---|
| Claude Code | CLAUDE.md |
| Hermes Agent | .hermes.md (top priority) or AGENTS.md |
| Cursor | .cursorrules or .cursor/context.md |
| Codex | AGENTS.md |
| Rovo Dev | AGENTS.md |
| Any other | Whatever your assistant reads at session start |
Hermes priority order:
.hermes.mdβAGENTS.mdβCLAUDE.md. Render to.hermes.mdfor highest priority.
Keep it fresh with cron, launchd, systemd, or perseus watch:
# Linux systemd (auto-refresh every 5 minutes)
perseus systemd .perseus/context.md --output AGENTS.md --interval 5m --install --enable
# macOS launchd
perseus launchd .perseus/context.md --o
β¦