-
-
Notifications
You must be signed in to change notification settings - Fork 205
Integration Patterns
Choose the narrowest integration surface that fits the job. This keeps credentials, failure modes, and compatibility manageable.
| Need | Prefer | Why |
|---|---|---|
| Human terminal investigation | CLI | Stable task-oriented commands and readable output |
| Agent-driven structured queries | MCP | Typed tools and explicit mutation policy |
| Custom application integration | REST API | Versioned request/response contract |
| Live browser/service updates | WebSocket | Push events without polling |
| Alert delivery | Webhooks | Purpose-built retries and delivery history |
| Operational metrics | Prometheus endpoint | Standard scrape and aggregation model |
| Historical migration | Export/import | Supported, idempotent data transfer |
Build integrations in stages:
- authenticate and call health;
- perform a bounded read;
- handle pagination, timeouts, and errors;
- add observability and redaction;
- introduce one idempotent mutation if necessary;
- verify the resulting state;
- document recovery and credential rotation.
Persist stable CCAM IDs rather than matching sessions only by name or path. Remote sources and multiple providers can produce similar display labels. Downstream webhook consumers should deduplicate retries and tolerate out-of-order delivery.
Use the dashboard token for REST/WebSocket clients, the hook token for remote producers, and the MCP HTTP token for MCP transport. Store secrets in a secret manager or restricted file and redact request headers from logs.
Pin automation to a CCAM release and validate against that release's API, CLI, or MCP reference. Detect unknown fields permissively, but do not assume missing capabilities.
Set bounded timeouts and retries with backoff. Do not make Claude Code or Codex execution depend synchronously on a monitoring integration. Queue optional downstream work and preserve the originating session/event ID for replay.
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