Windsurf/Cascade works well with NEXO as a manual companion client: native MCP support, repo rules, and a good agentic editor loop, but without pretending it has the same hook depth as Claude Code.
- Install NEXO locally with
npx nexo-brain - Verify the runtime with
nexo doctor - Decide whether you want local
stdioMCP or remote HTTP MCP
Windsurf supports MCP via the MCP marketplace/UI and by editing ~/.codeium/windsurf/mcp_config.json directly.
Local stdio example:
{
"mcpServers": {
"nexo": {
"command": "python3",
"args": [
"/Users/YOU/.nexo/server.py"
],
"env": {
"NEXO_HOME": "/Users/YOU/.nexo"
}
}
}
}Remote HTTP example when you run NEXO through docker compose up -d:
{
"mcpServers": {
"nexo": {
"serverUrl": "http://127.0.0.1:8000/mcp"
}
}
}After adding the server, refresh MCPs in Cascade so the tool list reloads.
Windsurf supports durable rules in .windsurf/rules/, and its docs explicitly recommend repo AGENTS.md when you want something remembered durably.
Create .windsurf/rules/nexo.md:
# NEXO shared-brain protocol
- Call `nexo_startup` once at session start.
- Call `nexo_heartbeat` on every new user turn.
- Open `nexo_task_open` before non-trivial work.
- Use `nexo_guard_check` before touching conditioned files.
- Close real work with `nexo_task_close` and evidence.
- Convert reusable corrections into `nexo_learning_add`.If your repo already has an AGENTS.md, keep the durable NEXO protocol there and let Windsurf reuse it instead of duplicating longer operator instructions.
Inside Cascade, ask:
Use the nexo MCP tools to call nexo_startup, then nexo_heartbeat, and report the session id.
If the tools do not appear:
- refresh the MCP list in Cascade
- inspect
~/.codeium/windsurf/mcp_config.json - check the Windsurf MCP settings panel for connection errors
- No NEXO-managed hook stack in Windsurf.
- No automatic transcript parity for Deep Sleep today.
- Conditioned-file discipline has to be made explicit through rules and operator prompts.
- Repo
AGENTS.mdworks well for durable behavior, but it is still prompt-level guidance, not native hook enforcement.
- Use Windsurf when you want NEXO tools plus editor-native agent UX.
- Use Claude Code or Codex for the deepest runtime discipline and shared-brain parity.
- Keep one
NEXO_HOMEand point every client at the same runtime.