-
-
Notifications
You must be signed in to change notification settings - Fork 205
Hook Health and Ingestion
Hooks provide low-latency events from Claude Code and Codex. Imports and remote mirrors complement them. Because hooks are fail-safe and non-blocking, agent work can continue even when CCAM is unavailable; monitoring may then have a gap.
npm run install-hooksInstall hooks on the machine where the provider CLI runs, not merely inside the dashboard container. The installer is interactive and provider-aware. Container installation is rejected by default because container hooks cannot normally observe host CLI sessions.
- Start CCAM.
- Create a short provider session.
- Confirm a session appears promptly.
- Trigger a simple tool use.
- End normally and confirm the state settles.
If historical sessions appear but live changes do not, focus on hook configuration. If neither appears, check provider paths, import discovery, and the server data directory.
On the dashboard, configure an independent hook token using DASHBOARD_HOOK_TOKEN or preferably DASHBOARD_HOOK_TOKEN_FILE. On the producer host:
export CCAM_DASHBOARD_URL=https://agent-monitor.example.com
export CCAM_HOOK_TOKEN_FILE=/secure/path/hook-token
npm run install-hooksNon-loopback destinations must use HTTPS and a hook token. Do not reuse the browser/API token as the hook token.
| Check | Healthy evidence | If unhealthy |
|---|---|---|
| Provider hook config | CCAM wrapper registered for expected events | Re-run installer and inspect provider config |
| Wrapper execution | Fast exit; no provider blockage | Check executable paths and permissions |
| Network/TLS | Dashboard endpoint reachable with valid certificate | Fix DNS, proxy, certificate, or firewall |
| Authentication | No 401/403 at hook endpoint | Match client token to dashboard hook token |
| Persistence | New events visible through CLI/API | Check server logs, disk, database health |
| Client update | Browser changes without manual refresh | Check WebSocket/proxy configuration |
Re-import or rescan provider history rather than fabricating hook events:
npx ccam import rescanImports are designed to be idempotent and can enrich existing sessions. For provider-specific paths and archives, use the History Import UI or hook reference.
Never make the hook wrapper block agent execution while attempting recovery.
Start Here · Localized product Wiki · Repository · Releases · Security · Report an issue
Guidance tracks the current master branch. For a deployed release, consult the repository documentation at that release tag before changing configuration.
CCAM Handbook
Use CCAM
- Read the dashboard
- Sessions and agents
- Kanban and tasks
- Tokens and costs
- Run agents
- Personal settings
Operate CCAM
- Deployment guide
- Hook health
- Security
- Backups and retention
- Prometheus and Grafana
- Remote machines
- Upgrades and rollback
- Incident runbooks
Automate and extend
- CLI patterns
- MCP workflows
- Alerts and webhooks
- Dynamic workflows
- Skills and plugins
- Safe config explorer
- Integration patterns
Help