systems log compression for agents
$curl -fsSL https://codag.ai/install.sh | sh
Free forever.
{
"service": "api",
"window": "14:22:11 to 15:22:11",
"compression": 8021,
"evidence": [
{
"role": "root_cause",
"line": 412847,
"text": "psycopg2.OperationalError"
},
{
"role": "trigger",
"line": 412831,
"text": "pool acquire 480ms"
},
{
"role": "consequence",
"line": 412854,
"text": "pool exhausted, queue=18"
}
// + 4 more, all cited
],
"routine_summary": { "total_lines": 1085399, "template_count": 15 }
}
the problem
for individuals
Every read burns tokens and context. The window fills with routine noise before your agent reaches the answer.
for platform & infra
Millions of lines a day, more than any agent can hold. Most of it never fits the window at all.
the capsule
Codag returns schema-valid JSON. Every line it keeps points to a real line number, tagged by its role in the incident. Nothing summarized away, nothing invented.
Every claim references a real line number. No invented evidence.
root_cause, trigger, consequence. Your agent gets causality, not a flat dump.
Strict JSON your agent and tools parse every time.
for coding agents
Set up once, then wrap any log fetch your agent already makes.
claude code
codag setup installs the hook and the MCP server. Claude reads logs through Codag from then on.
Same Claude. Same answers. Fraction of the token bill.
$ codag setup detected Claude Code registered MCP server: codag claude tail_kubernetes returns compact incident capsule
codex
Point Codex at the Codag MCP server. Same prompts, compressed logs.
Sign in once. No agent config files to edit.
$ codag mcp serve tools: tail_aws_logs, tail_vercel, wrap codex wrap docker logs api raw logs stay out of the prompt
any source
Drop-in over HTTPS. Point Codag at any log stream you already run, and your agent gets one compact capsule back.
faq
Codag is a developer tool that compresses infrastructure logs into a schema-valid IncidentCapsule that AI agents can read. It turns up to 1.2M log lines into roughly 3,300 tokens in under a second, so your agent spends its context on reasoning instead of scrolling raw logs.
Codag keeps every line that matters and tags it by its role in the incident, with a pointer to the real log line number. Nothing is summarized away and nothing is invented. It is benchmarked against Drain3 and a raw-logs control on LogHub-2.0 with a blind-judge agent-diagnosis evaluation.
No. Codag sits in front of your LLM. Send raw logs to Codag, get a structured IncidentCapsule back, then pass that capsule to whatever agent you already use: Claude, GPT, Gemini, or a local model.
Anything line-oriented: JSON logs, syslog, framework-specific formats like Hadoop, Spark, HDFS, and Kubernetes, and unstructured application logs. Preprocessing handles parsing and PII redaction before templating.
Codag is free forever on the Free plan, which includes 50 MB per month. Paid plans start at $19 per month for Hobby and $199 per month plus usage for Team. Pricing is by compute, not seats.
Drop-in over HTTPS. Wired into Claude Code and Codex in one command.
$curl -fsSL https://codag.ai/install.sh | sh
Free forever.