Claude Code isn't connected or no output is arriving
Most of the time the hook is in place and is simply waiting for Claude Code’s first command: run a build or test in Claude Code and the card updates. If the card or Run checks shows one of the messages below, its section has the fix.
What you see
Section titled “What you see”| Message | Section |
|---|---|
| Connected · run a build or test in Claude Code, or in Run checks: “No Claude hook received yet. Restart Claude Code and run a Bash command.” | Waiting for the first result |
| Hooks disabled in Claude settings, or when connecting: “Claude hooks are disabled or managed by policy. No settings were changed.” | Hooks are turned off by policy |
| “Your HTTP hook allowlist needs review. TokenNibbler will not change security policy.” | The hook allowlist |
| Needs attention, with “Cannot parse Claude settings. The existing file has not been changed.” | The settings file can’t be read |
| Connected for Bash only | Update the connection |
| Local service unavailable | Local service unavailable |
| “Verify shortening: Claude Code (hook) did not come back shortened” | Still stuck? |
Waiting for the first result
Section titled “Waiting for the first result”Why it happens: The hook is installed, but no result has reached TokenNibbler yet. Results arrive when Claude Code uses its Bash, PowerShell, Grep or Glob tools, or an MCP tool.
- In Claude Code, run a build or a test that finishes without errors. Claude Code reports a failed command through a different hook event, so failed commands don’t reach TokenNibbler.
- If nothing arrives, restart Claude Code and run a Bash command again.
- In Claude Code, type
/hooksand check that the TokenNibblerPostToolUsehook is listed. - Update Claude Code. TokenNibbler uses Claude Code’s HTTP hooks, so it needs a current release.
Hooks are turned off by policy
Section titled “Hooks are turned off by policy”Why it happens: Your Claude Code settings turn all hooks off ("disableAllHooks": true) or allow only hooks managed by your organisation ("allowManagedHooksOnly": true). TokenNibbler never overrides your hook policy, so it changes nothing.
- Open the settings file shown in Settings › Integrations, usually
%USERPROFILE%\.claude\settings.json(on a Mac,~/.claude/settings.json). - If you set
disableAllHooksyourself and want hooks on, remove that line and save. - If your organisation manages hooks, ask your administrator to allow TokenNibbler’s hook.
- Select Connect Claude Code again.
The hook allowlist
Section titled “The hook allowlist”Why it happens: Your settings have an allowedHttpHookUrls list, and TokenNibbler’s address isn’t on it. TokenNibbler never edits security settings, so it asks you to review the list.
-
Add TokenNibbler’s address to
allowedHttpHookUrlsin your Claude Code settings:"allowedHttpHookUrls": ["http://127.0.0.1:17841/tokennibbler/v1/post-tool-use"]Keep any entries already in the list. If your organisation manages the list, ask your administrator to add it.
-
Select Connect Claude Code again.
The settings file can’t be read
Section titled “The settings file can’t be read”Why it happens: TokenNibbler reads settings.json as plain JSON. Comments, trailing commas or a typo stop it, and it then leaves the file exactly as it is. You may also see “Unsupported hooks format. No settings were changed.” if the hooks section isn’t in the shape Claude Code uses.
- Open the file shown in Settings › Integrations.
- Fix the JSON: remove comments and trailing commas, and check every bracket is closed.
- Select Connect Claude Code again.
If you see “Claude settings changed while saving. Please retry.”, another program saved the file at the same moment. TokenNibbler stopped so it wouldn’t overwrite that change. Select Connect Claude Code again.
Update the connection
Section titled “Update the connection”Why it happens: An earlier connection covers Bash only. The current hook also covers PowerShell, Grep, Glob and MCP tools.
- On the Claude card, select Update. The Bash part keeps working until you do.
Local service unavailable
Section titled “Local service unavailable”Why it happens: TokenNibbler’s local service on 127.0.0.1:17841 isn’t running, so neither agent’s hook can reach it. Your agents carry on with their original output meanwhile.
- If you see “The local port is already in use. Close the other app using port 17841 and restart TokenNibbler.”, close the other program using that port, for example a second copy of TokenNibbler, then restart TokenNibbler. TokenNibbler never stops other programs or moves to another port by itself.
- If you see “The local hook service could not start. Restart TokenNibbler.”, quit TokenNibbler from its tray icon (the menu bar on a Mac) and open it again.
Still stuck?
Section titled “Still stuck?”Select Run checks in Settings › Integrations, copy the results, and send them with a screenshot of the Claude card through the contact page. Troubleshooting: start here lists what else helps. To see what the connection changes, read Connect Claude Code.