Five agents.
One knowledge.
Pathrule connects to Claude Code, Codex, Cursor, GitHub Copilot and Windsurf. It reaches each one the deepest way that agent allows, which is not the same for all five.
On Claude Code
- files it reads: yesfiles it reads
- CLAUDE.md and .claude/rules
- before each prompt: yesbefore each prompt
- Prompt hook
- around tool calls: yesaround tool calls
- Tool hooks
- when it asks: yeswhen it asks
- Local, or Remote MCP
in short Context arrives before Claude Code acts on each prompt, and the knowledge for each file follows it into its tool calls. Setup guide
- files it reads: yesfiles it reads
- AGENTS.md and .codex config
- before each prompt: yesbefore each prompt
- Prompt hook
- around tool calls: yesaround tool calls
- Tool hooks
- when it asks: yeswhen it asks
- Local, or Remote MCP
in short The same delivery as Claude Code: hooks before each prompt and around tool calls, with AGENTS.md kept current. Setup guide
- files it reads: yesfiles it reads
- .cursor/rules
- before each prompt: nobefore each prompt
- No prompt hook
- around tool calls: yesaround tool calls
- Tool hooks
- when it asks: yeswhen it asks
- Local
in short Hooks at session start and around tool calls, a rules file Cursor loads itself, and MCP for anything the agent asks for. Setup guide
- files it reads: yesfiles it reads
- copilot-instructions.md and .github/instructions
- before each prompt: nobefore each prompt
- No prompt hook
- around tool calls: yesaround tool calls
- Tool hooks
- when it asks: yeswhen it asks
- Local, registered by the VS Code extension
in short Session and tool hooks where Copilot runs them, instruction files it reads on its own, and MCP in agent mode. Setup guide
- files it reads: yesfiles it reads
- .windsurf/rules
- before each prompt: nobefore each prompt
- No prompt hook
- around tool calls: noaround tool calls
- No hooks
- when it asks: yeswhen it asks
- Local
in short No hooks: Pathrule compiles a rules file Windsurf reads, and the agent reaches the rest through MCP. Setup guide
Not the same for all five.
| Agent | files it reads | before each prompt | around tool calls | MCP |
|---|---|---|---|---|
| files it reads: yes | before each prompt: yes | around tool calls: yes | MCP: yes | |
| files it reads: yes | before each prompt: yes | around tool calls: yes | MCP: yes | |
| files it reads: yes | before each prompt: no | around tool calls: yes | MCP: yes | |
| files it reads: yes | before each prompt: no | around tool calls: yes | MCP: yes | |
| files it reads: yes | before each prompt: no | around tool calls: no | MCP: yes |
One pathrule setup connects every agent it finds. Each is reached the way it allows, and this page never rounds that up.
Before it acts, or after.
A prompt hook puts context in front of the agent before it acts on what you asked. Without one, Pathrule delivers at session start, around tool calls and when the agent asks.
Three ways in.
Same knowledge.
Remote MCP is documented for Claude Code, Codex and Claude.ai. The other clients use the local server that comes with the CLI or the VS Code extension.