Adapter

FORG for Claude Code

Full session observability for Claude Code. Track every tool call, token, cost, and session — with real-time rule enforcement.

forg connect claude-code

Session lifecycle

Captures session start, end, and every tool call in between. Full timeline available in the dashboard.

Tool call tracking

Every Bash, Read, Write, Edit, and Task call is logged with timing and outcome.

HMAC authentication

All signals are signed with HMAC-SHA256. The adapter verifies the session key before emitting.

What gets tracked

Session start and end timestamps
Total input and output tokens
Model name and version
Every tool call (name, duration, outcome)
Cost in USD (estimated from token usage)
Session context (project, git branch)
Subagent spawns and hierarchy
Hook executions (PreToolUse, PostToolUse, etc.)
Compact events and compaction stats
Custom metadata via emit()

Installation

The Claude Code adapter integrates via the Claude Code hooks system. It installs a PostToolUse, SessionStart, and SessionEnd hook that emits to the local FORG agent.

Requires FORG agent running locally
Hooks installed automatically by forg activate
No changes to your Claude Code config needed
Works with all Claude Code versions ≥ 1.0
Installation steps
1.curl -fsSL https://forg.pro/install | sh
2.forg activate <license-key>
3.forg connect claude-code
4.forg start

Start observing Claude Code today

Full session visibility in under 2 minutes.

Install FORG