Repository navigation
Adapter Windsurf
The Windsurf adapter (harness windsurf) discovers Windsurf (Cascade)
configuration statically. It never starts Windsurf, runs a hook, starts
an MCP server, expands ${env:...} or ${file:...} placeholders, or
invokes git. Every repository file is treated as attacker-controlled.
Cascade also loads AGENTS.md, which is reported by the
generic adapter; --harness windsurf runs it too.
| Location | Normalized kinds |
|---|---|
.devin/hooks.json (any depth) |
hook (legacy compatibility path; it does not suppress other hooks files) |
.windsurf/hooks.json (any depth) |
hook |
.windsurf/rules/**/*.md (any depth) |
instructions (role rule) |
.windsurf/global_rules.md (any depth) |
instructions (role global) |
.windsurfrules (repository root) |
instructions (role rules, legacy) |
Cascade discovers .windsurf/ directories in subdirectories of the
workspace too, so they are matched at any depth. Path matching is
case-insensitive.
| Location | Normalized kinds |
|---|---|
~/.codeium/windsurf/hooks.json |
hook |
~/.codeium/windsurf/mcp_config.json |
mcp-server |
~/.codeium/windsurf/memories/global_rules.md |
instructions (role global) |
~/.codeium/windsurf-next/ and ~/.codeium/windsurf-insiders/
|
the same three files, for the Next and Insiders channels |
~/.codeium/hooks.json (the JetBrains plugin's user hooks) |
hook |
Windsurf has no environment override for these paths.
The system-level hooks.json, deployed by an administrator for every
user of the machine. Devin Local can override the Windsurf file at
runtime, but both files are reported; an informational note marks the
Windsurf file as overridden when both are present.
| OS | Devin | Windsurf |
|---|---|---|
| macOS | /Library/Application Support/Devin/hooks.json |
/Library/Application Support/Windsurf/hooks.json |
| Linux | /etc/devin/hooks.json |
/etc/windsurf/hooks.json |
| Windows | %ProgramData%\Devin\hooks.json |
%ProgramData%\Windsurf\hooks.json |
Every key below also carries a trailing content digest of the full
sanitized entry, and, when sanitizing removed anything, a
secret discriminator (sig:k1: with a
fingerprint key, sig:s1: without one); see
fingerprint.md.
- Hooks:
{"hooks": {"<event>": [{"command", "powershell", "show_output", "working_directory"}]}}. Onehookitem per handler, with every field sanitized, pluseventand an emptymatcher. The key is["hook", event, "", "", action], where the action iscommand, orpowershellwhen only that is set. Every handler is reported whatever its event, since apre_*hook that exits 2 blocks the action. An event outside the documented list (pre_read_code,post_read_code,pre_write_code,post_write_code,pre_run_command,post_run_command,pre_mcp_tool_use,post_mcp_tool_use,pre_user_prompt,post_cascade_response,post_cascade_response_with_transcript,post_setup_worktree) is still emitted, and reported. A file without ahooksobject, an event that is not an array, or a handler that is not an object is reported. - MCP servers (
mcpServersinmcp_config.json): one item per server with every field (command,args,serverUrl,url,disabled,disabledTools, ...), sanitized, as for Codex.envandheadersvalues are redacted, with names inenv_keysandheader_keys. - Rules: the Markdown body as
content(URL userinfo, query, and fragment removed; the home directory rewritten in user scope) and the frontmatter (trigger,globs,description), read leniently.
hooks.json and mcp_config.json are parsed as JSONC (comments and
trailing commas are accepted). Duplicate keys use the last value and are
reported; keys that differ only by case are reported. Nesting deeper than
64 levels, and files larger than 1 MiB, fail closed with a diagnostic.
Reads, symlink handling, limits, and diagnostics are those of the
Claude adapter. An escaping symlink at a
.windsurf/ path or at .windsurfrules is reported once, by this
adapter.
- Workflows (
.windsurf/workflows/,~/.codeium/windsurf/global_workflows/) and skills (.windsurf/skills/). - Memories other than
global_rules.md(~/.codeium/windsurf/memories/) and Cascade's auto-generated memories. - Team- and enterprise-managed rules and MCP allow lists set in the Windsurf admin dashboard, which live server-side.
- The documented Devin Local hook locations (
.devin/hooks.v1.json, hooks in.devin/config.jsonand.devin/config.local.json) and the rest of the Devin Local configuration (rules, skills, MCP,~/.config/devin/config.json)..devin/hooks.jsonis only a legacy compatibility read..devin/blueprint.yamlis the Devin adapter. - Windsurf editor settings (
settings.json, terminal auto-execution allow and deny lists). - A file-level switch that turns every hook off. Cascade handler fields
are
command,powershell,show_output, andworking_directory(Cascade hooks, reviewed 2026-10-31), and that list has no such key. Fetched on 2026-11-02, the same URL serves Devin Local's customization page, which also documents no committed disable-all key. It says hooks neither load nor run while a workspace is open in Restricted Mode; that is a workspace mode, not ahooks.jsonsetting. This adapter does not invent a key, and TC-CFG-016 has no Windsurf clause.
This wiki is generated from docs/ on main by cmd/wikigen. Do not edit it here: change docs/ and open a pull request. Apache-2.0.
Start
Commands
CI and hooks
Configuration
Adapters
- Claude Code
- Codex
- Cursor
- GitHub Copilot
- Gemini CLI
- OpenCode
- Windsurf
- Devin
- Dev Container
- Shared Files
Project