Install Agent Hooks
install_agent_hooksInstalls a guard that blocks text-search answers for C# symbol questions and redirects them to semantic tools, writing the harness wiring for Claude Code, Codex, or OpenCode.
Instructions
Install the aicb symbol guard into this project for an agent harness, so a C#-symbol question is REFUSED on a text search and redirected to the tool that answers it. Writes the guard script plus the harness's wiring entry (.claude/settings.json, .codex/hooks.json or opencode.json) and nothing else - no .mcp.json, no skills, and only inside the directory of the session's own solution. Omit 'harness' to install for the harness that is calling. An existing guard or wiring is kept unless force=true. Restart or reconnect the client afterwards, then call refresh_session so the session stops reporting the guard as missing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Overwrite an existing guard script and rewrite an existing wiring entry. | |
| harness | No | Which harness to install for: claude-code, codex or opencode. Omit to use the harness the calling MCP client belongs to. | |
| sessionId | Yes | The session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use. |