Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

add-editor

FreeNo executable scriptsNot checked

Wire Deus's memory + evolution layers into an external code editor (Zed and other ACP/MCP clients) so the editor's own agent gains Deus's vault recall and…

sliamh11by sliamh11★ 50 GitHub stars

About this skill

Add Editor Integration (ACP / MCP)

Use Deus's memory and evolution layers from inside an external editor (or any MCP-capable client) by composing them onto the editor's own coding agent — you do not run Deus's container in the editor. The editor's agent keeps handling editor mechanics (diffs, permissions, buffers); Deus's two MCP servers supply the "brain":

  • deus-memory → memory_recall (semantic recall over your vault).
  • deus-evolution → get_reflections / log_interaction / get_active_prompt / record_feedback (the reflexion loop).

This skill performs the wiring interactively. For the why (compose-not-port rationale, caveats, why reflexion learns from mistakes not stated style), read docs/EDITOR_INTEGRATION.md — do not duplicate that reasoning here; just point the user at it if they ask.

Principle: when a precondition is missing, fix it (create the venv, pull the model). Only pause for genuine user decisions (which editor, employer-machine containment, target project). Use AskUserQuestion for every user-facing choice.


0. Scope — two independent parts

Tell the user this skill has two parts they can run independently:

  1. Machine-level editor config (steps 1-5) — wires the two MCP servers into the editor. Run once per machine.
  2. Per-project instruction file (step 6) — the close-the-loop AGENTS.md. Run once per repo you want the loop active in.

If they only want one part, skip to it. Do not assume the directory you're invoked from is the project they want the loop in — step 6 asks explicitly.

1. Resolve the Deus repo root (absolute path)

The config below needs an absolute path to this Deus clone — some MCP clients do not expand ~, and on another machine (e.g. a work PC) the clone lives at a different path. Resolve it in order and record it as ROOT:

git rev-parse --show-toplevel 2>/dev/null
  • If that prints a path and it contains scripts/deus-memory-mcp → that's ROOT.
  • Else if $HOME/deus/scripts/deus-memory-mcp exists → ROOT="$HOME/deus".
  • Else → AskUserQuestion: "Where is your Deus repo cloned?" and use the answer.

Verify ROOT is absolute (starts with /). Use it verbatim everywhere below.

2. Verify preconditions (deterministic — fix what's missing)

Run these against ROOT:

# (a) memory server present + executable
[ -x "$ROOT/scripts/deus-memory-mcp" ] && echo "memory OK" || echo "memory MISSING"

# (b) evolution server importable in the canonical venv
PYTHONPATH="$ROOT" "$ROOT/eval/.venv/bin/python3" -c "import mcp, evolution.mcp_server" \
  && echo "evolution OK" || echo "evolution venv MISSING/incomplete"
  • (a) missing → the repo is incomplete; stop and tell the user to re-clone / run /setup.
  • (b) missing → create the venv, then re-check:
    python3 -m venv "$ROOT/eval/.venv" && "$ROOT/eval/.venv/bin/pip" install -r "$ROOT/eval/requirements.txt"
    
  • (c) Judge — the silent-failure point. Make this prominent. Reflection generation needs a model to score each turn. With no judge reachable, interactions are logged but never produce reflections — the loop looks wired but learns nothing. Check:
    ollama list 2>/dev/null | grep -i gemma4 || echo "no local judge"
    
    • Local model present → good (keyless, no egress).
    • No local model and no GEMINI_API_KEY / configured key → warn loudly: "Evolution will log but never reflect until a judge exists." Offer ollama pull gemma4:e4b (≈9.6 GB).
    • On a managed/MDM machine, confirm Ollama is actually running (ollama list responds), not just installed — that is the make-or-break for this feature there.

3. Detect the editor

AskUserQuestion: "Which editor / client are you wiring Deus into?"

  • Zed (worked example below) — uses ~/.config/zed/settings.json.
  • Other ACP editor — same two servers, the editor's own MCP/context-server config.
  • Generic MCP client (e.g. Codex CLI) — register the two server commands directly.

4. Merge the editor config — MERGE, NEVER OVERWRITE

Guard (read this before touching the file): the editor config is JSONC — it has comments and likely existing settings. Read it first with the Read tool, then make targeted Edits in place. Do not round-trip it through jq / JSON.parse / a full rewrite — those silently strip the user's comments and unrelated settings. If an agent_servers or context_servers key already exists, merge into it (add/​update only the claude-acp / deus-memory / deus-evolution entries); do not replace the file or the block. If deus-* entries already exist, update their paths in place.

Zed (~/.config/zed/settings.json)

Ensure these keys exist (substituting the real ROOT). claude-acp is Zed's built-in ACP registry entry; the adapter auto-installs on first use.

{
  "agent_servers":
Full SKILL.md on GitHub

Install add-editor in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the add-editor skill do?

Wire Deus's memory + evolution layers into an external code editor (Zed and other ACP/MCP clients) so the editor's own agent gains Deus's vault recall and self-improving reflexion loop. Configuration only — no new code. Triggers on "add editor", "use Deus in my editor", "zed integration", "editor integration", "wire Deus into Zed", or ACP/MCP editor setup requests.

How do I install the add-editor skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the add-editor skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare add-editor with