Perseus
About
# Perseusβ’ πͺ β One command. Zero orientation. [](https://smithery.ai/servers/Perseus-Computing-LLC/perseus) **`pip install perseus-ctx && cd your-project && perseus quickstart`** β¦
Details
- Transport
- SSE
Explore
- Resolves live workspace state at invocation time β no stale cache
- 30 default MCP tools (services, files, environment, checkpoints, etc.)
- Two optβin shellβexecution tools (perseus_query, perseus_agent)
- Integrates with persistent memory backend Mimir (optional)
- Works with any MCPβcompatible assistant (Claude, Cursor, Codex, Hermes, Rovo Dev)
- SSE transport support for remote agents and multiβmachine setups
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
PerseusCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
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)
perseus quickstart # auto-detects project, scaffolds context, renders
Smart init detects your stack and tailors the setup:
- Python β @memory queries 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.md for highest priority.
Keep it fresh with cron, launchd, systemd, or perseus watch:
@query "docker ps --format 'table {{.Names}}\t{{.Status}}'"
hooks:
enabled: true
on_render_complete:
- cmd: "notify-send 'Context refreshed'"
on_directive_error:
- plugin: "my_error_handler"
- Perseus reads project files, git state, and environment variables to resolve context directives.
- No project data leaves your machine. Perseus does not cache or store file contents beyond the render pipeline.
- When paired with Mimir for persistent memory, memory data is stored locally per Mimir's privacy policy.
perseus_services
Health-check running services
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 (+ persistent store)
perseus_mimir
Recall persistent memories via BM25 (legacy name of `perseus_mneme`)
perseus_mneme
Recall persistent memories from the external Mneme server via BM25
perseus_skills
List available skills with staleness flags
perseus_include
Include and render another file
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_auto_skill
Instruct the agent to load a specific skill before starting work
perseus_profile
Resolve a per-model context profile (context target + memory posture)
perseus_mason
Query the Mason code architecture concept map
perseus_research
Per-paper Methods/Results blocks from an external paper-search MCP server (external server is opt-in via config)
perseus_tokens
Embed token budget for rendered context
perseus_budget
Declare a token budget enforced by `perseus prompt-size`
perseus_tooltrim
Filtered toolset metadata and usage statistics
perseus_get_context
Full rendered workspace context (legacy alias)
perseus_get_health
Daedalus context-maintenance heuristics (legacy alias)
perseus_query
Run a shell command and return stdout
perseus_agent
Execute local agent subprocess
<!-- test-count: 1552 β recount with: grep -rE "^\sdef test_" tests/ | wc -l -->
<!-- The table below is the exact default output of _get_all_mcp_tools({}) β 30 rows. Recount before editing. -->
30 MCP tools resolve live state at invocation time (including the legacy aliases perseus_get_context/perseus_get_health). Two additional sensitive tools β perseus_query (run a shell command) and perseus_agent (execute a local agent subprocess) β are not part of this default set: they 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_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 (+ persistent store) |
| perseus_mimir | Recall persistent memories via BM25 (legacy name of perseus_mneme) |
| perseus_mneme | Recall persistent memories from the external Mneme server via BM25 |
| perseus_skills | List available skills with staleness flags |
| perseus_include | Include and render another file |
| 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_auto_skill | Instruct the agent to load a specific skill before starting work |
| perseus_profile | Resolve a per-model context profile (context target + memory posture) |
| perseus_mason | Query the Mason code architecture concept map |
| perseus_research | Per-paper Methods/Results blocks from an external paper-search MCP server (external server is opt-in via config) |
| perseus_tokens | Embed token budget for rendered context |
| perseus_budget | Declare a token budget enforced by perseus prompt-size |
| perseus_tooltrim | Filtered toolset metadata and usage statistics |
| perseus_get_context | Full rendered workspace context (legacy alias) |
| perseus_get_health | Daedalus context-maintenance heuristics (legacy alias) |
Opt-in only (excluded from the default set until added to mcp.tool_allowlist):
| Tool | Description |
|---|---|
| perseus_query | Run a shell command and return stdout |
| perseus_agent | Execute local agent subprocess |
---
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"perseus": {
"perseus": {
"command": "perseus",
"args": [
"mcp",
"serve",
"--workspace",
"/path/to/workspace"
],
"env": {
"PERSEUS_ALLOW_DANGEROUS": "1"
}
}
}
}
}
McpServers
{
"perseus": {
"command": "perseus",
"args": [
"mcp",
"serve",
"--workspace",
"/path/to/workspace"
],
"env": {
"PERSEUS_ALLOW_DANGEROUS": "1"
}
}
}
pip install perseus-ctx && cd your-project && perseus quickstart

<!-- mcp-name: io.github.Perseus-Computing-LLC/perseus -->
---
π‘οΈ Product Family
Perseus is the live context engine. Seven specialized products extend it:
| Product | Description | Page |
|---|---|---|
| Mimir | 48 MCP tools β persistent memory with FTS5, entities, layers, confidence decay | /mimir/ |
| MCTS | 31 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/ |
| CrewAI Memory | Persistent cross-session memory backend for CrewAI (54K stars) β community PR #6208 | /crewai/ |
---
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. As of v2.7.0, offline dense/hybrid embeddings are bundled by default (the model is compiled into the binary), so semantic recall works zero-config with no external model download. v2.12.0 provides 48 MCP tools across structured entities, hybrid vector search, RAG, connectors, confidence decay, journal events, and state management: mimir_remember, mimir_recall, mimir_context, mimir_traverse, mimir_decay, mimir_stats, mimir_health, and more.
π Product page β | β GitHub β
Install:
curl -sSL https://raw.githubusercontent.com/Perseus-Computing-LLC/mimir/main/scripts/bootstrap.sh | bash
Hermes 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", "serve", "--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:) require export 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 bare perseus command 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 serve
See Container Runtime for full Docker and compose deployment.
MCP Registry
Published as io.github.Perseus-Computing-LLC/perseus on the official MCP Registry (search \"perseus\"). Includes server.json for zero-config discovery.
---
MCP Tools
<!-- test-count: 1552 β recount with: grep -rE "^\sdef test_" tests/ | wc -l -->
<!-- The table below is the exact default output of _get_all_mcp_tools({}) β 30 rows. Recount before editing. -->
30 MCP tools resolve live state at invocation time (including the legacy aliases perseus_get_context/perseus_get_health). Two additional sensitive tools β perseus_query (run a shell command) and perseus_agent (execute a local agent subprocess) β are not part of this default set: they 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_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 (+ persistent store) |
| perseus_mimir | Recall persistent memories via BM25 (legacy name of perseus_mneme) |
| perseus_mneme | Recall persistent memories from the external Mneme server via BM25 |
| perseus_skills | List available skills with staleness flags |
| perseus_include | Include and render another file |
| 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_auto_skill | Instruct the agent to load a specific skill before starting work |
| perseus_profile | Resolve a per-model context profile (context target + memory posture) |
| perseus_mason | Query the Mason code architecture concept map |
| perseus_research | Per-paper Methods/Results blocks from an external paper-search MCP server (external server is opt-in via config) |
| perseus_tokens | Embed token budget for rendered context |
| perseus_budget | Declare a token budget enforced by perseus prompt-size |
| perseus_tooltrim | Filtered toolset metadata and usage statistics |
| perseus_get_context | Full rendered workspace context (legacy alias) |
| perseus_get_health | Daedalus context-maintenance heuristics (legacy alias) |
Opt-in only (excluded from the default set until added to mcp.tool_allowlist):
| Tool | Description |
|---|---|
| perseus_query | Run a shell command and return stdout |
| perseus_agent | Execute local agent subprocess |
---
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 run
Perseus 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, renders
Smart init detects your stack and tailors the setup:
- Python β @memory queries 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.md for highest priority.
Keep it fresh with cron, launchd, systemd, or perseus watch:
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



