Claude Code
Claude Code gets a skill, five hooks and nine allow rules. The skill makes Jevlin the default search; the hooks thread each search into the session's trajectory and allow exactly the search and fetch commands the skill renders, so they run without an approval prompt.
Install
Setup finds Claude Code when claude is on PATH and sets it up when you say yes to Set up the coding agents found on this machine now? The plan is shown first, with what made each agent count as present. Nothing is run to find out.
jevlin setup # sets up every agent it finds
jevlin setup -with claude # found or not
jevlin agents install -client claude # later, without the rest of setup
Restart any Claude Code session that was already open.
Claude Code can also run the install itself: /plugin install jevlin --marketplace jevlinai/jevlin-go adds a setup skill that installs the client and runs jevlin setup, which writes the skill, hooks and allow rules below.
MCP instead of the skill
jevlin mcp serves search, fetch and decide (where the router offers it) as MCP tools, for a host that prefers MCP to a shell skill. Setup does not register it. To add it by hand, with jevlin on Claude Code's PATH (or its full path in its place):
claude mcp add jevlin -- jevlin mcp
It runs only while Claude Code holds it open. See The MCP server.
What is written
| path | what |
|---|---|
~/.claude/skills/jevlin/ | The skill: how to build the request, read the envelope, and what /jevlin does. Rendered for your OS and shell, with your paths filled in. A reference.md beside SKILL.md holds the settings, the failure actions and the fields a result carries. |
~/.claude/settings.json | Five hooks: PreToolUse on the Bash and PowerShell tools threads each search into the turn; SessionStart, PreCompact and PostCompact track the context window, and SessionStart also starts the daily release check; Stop reports the turn end and starts the check. Nine permissions.allow rules, listed below. Reinstalling replaces those rules rather than adding more. |
requests/, beside your config | Not written by setup: the folder the agent writes a request holding a ' or a $ into, below. |
The nine allow rules
- Six for the commands: the single-quoted, quoted and bare spellings of the search command and of
fetch --stdin, each ending with the installation's-config <file>. - Three for folders, naming no binary: an
Editand aReadrule for therequestsfolder beside that config, and aReadrule for the skill's own folder, so the agent opens thereference.mdbesideSKILL.mdwithout a question.
Requests holding a quote or a dollar sign
A request that holds a ' or a $ cannot ride on the one-line call. The skill has the agent write it to the requests folder with the Write tool, which Claude Code governs by Edit rules, and the call reads it with --stdin < <file>, which Claude Code checks against Read rules. The Write tool creates the folder. Nothing prunes it; jevlin uninstall -purge-state removes it.
A hook of yours in the same group as Jevlin's stays where it is. Only Jevlin's handler is touched by agents install, uninstall and an upgrade's re-render.
Use it
Ask Claude Code anything that needs the web. The skill tells it to prefer this search over its built-in one, and it sends one JSON request on stdin:
/jevlin what changed in Vite 7's rollup migration
The slash commands the skill teaches:
| command | what it does |
|---|---|
/jevlin <question> | One search. Naming jevlin in an ordinary request does the same. |
/jevlin off, /jevlin on, /jevlin status | Whether this search or Claude Code's own is the default. |
/jevlin tier fast|balanced|max|default | The tier every search carries unless a request names one. |
Claude Code runs Bash on macOS and Linux. On Windows the model picks Git Bash or PowerShell per call, so the skill teaches both forms. See Search from your agent and Choosing a tier.
What to know
No approval prompt for the search. The hook prefixes the search with the trace, which an allow rule matched on how a command begins no longer matches, so the hook answers allow itself for exactly the search the skill renders, under the Bash and PowerShell tools alike. It does the same for the search read from a request file directly inside the requests folder, and for exactly the fetch the skill renders. Any other spelling waits for approval, and a headless session refuses it.
The trace. Each search carries hashed session, turn and call ids, the context window after compactions, and the assistant text before the search, scrubbed. A subagent's search carries its parent's session id too. See Trajectory observability.
The turn end. With [search] turn_end = true in your config, the Stop hook reports a turn in which a search was served: what you asked, the final message, each tool by name, duration and outcome, the model and the token counts. Never a tool's input or output. A turn Claude Code started itself, such as a loop tick or a compaction summary, is reported with its searches and no user text. See The turn end.
Known limits
- The turn end needs Claude Code 2.1.196 or later. Earlier versions give the hook no prompt id, so with
turn_endon they send no final answer. Searches are unaffected. - The sentence written just before a search does not travel. Claude Code records a message after the hook runs, so narration in the same message as the search is not in the trace. An earlier message of the turn does travel, and the ids are correct either way.
Remove
jevlin agents uninstall -client claude
Removes the skill, Jevlin's hooks and allow rules. A hook of yours in the same group stays. Your config and key are untouched; see Removing and coming back.