Skip to content

Claude Code Setup

Omnodex’s primary integration is with Claude Code via the hooks system. This provides the deepest level of tracing with zero performance overhead.

This guide applies to all Claude Code surfaces: the CLI (claude command in a terminal), and the IDE extension (VS Code and compatible editors). The hook is registered globally in your Claude Code settings, so it activates automatically regardless of how you launch Claude Code.

Claude Code supports hooks that fire at specific points during execution. Omnodex registers as a hook that captures:

  • Every tool invocation (file reads/writes, bash commands, web searches, MCP calls)
  • The parameters passed to each tool
  • The results returned
  • Session start and end events

The hook fires asynchronously and outside Claude’s context window. This means:

  • Claude never sees the hook output (zero token overhead)
  • The hook cannot slow down or block Claude’s execution
  • There is no way for the hook to influence Claude’s behavior
  1. Install the hook:

    Terminal window
    npx omnodex install claude-code
  2. Verify it is registered:

    Terminal window
    npx omnodex status

    You should see output confirming the Claude Code hook is active.

  3. Use Claude Code normally. Every session from this point forward is traced.

Event TypeDescription
tool.invokedA tool was called (includes tool name, parameters, result)
file.readA file was read from disk
file.writeA file was written or modified
credential.usedAn API key or token was referenced
network.requestAn outbound HTTP request was made
session.startA Claude Code session began
session.endA Claude Code session ended

After a Claude Code session completes (or while it is running), you can view traced events:

Terminal window
# Open the live dashboard
npx omnodex dashboard
# Or run detection on collected events
npx omnodex detect
# Or view a text-based report
npx omnodex report

Hook not firing:

  • Confirm the hook is registered with npx omnodex status
  • Check that your Claude Code version supports hooks
  • Verify OMNODEX_HOME points to a writable directory

Events not appearing:

  • Events are written asynchronously. There may be a brief delay (typically under 1 second).
  • Check $OMNODEX_HOME/events.jsonl to see if events are being written