add-editor
БесплатноБез исполняемых скриптовНе проверен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…
от sliamh11★ 50 звёзд на GitHubОб этом скилле
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:
- Machine-level editor config (steps 1-5) — wires the two MCP servers into the editor. Run once per machine.
- 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'sROOT. - Else if
$HOME/deus/scripts/deus-memory-mcpexists →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." Offerollama pull gemma4:e4b(≈9.6 GB). - On a managed/MDM machine, confirm Ollama is actually running (
ollama listresponds), 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 anagent_serversorcontext_serverskey already exists, merge into it (add/update only theclaude-acp/deus-memory/deus-evolutionentries); do not replace the file or the block. Ifdeus-*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":
Установить add-editor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл add-editor?
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.
Как установить скилл add-editor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add-editor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic