Documentation
¶
Overview ¶
codag — token-efficient log compression for coding agents. Wraps log commands like `vercel logs`, `railway logs`, `aws logs`, etc. and replaces noisy raw output with a compact summary the agent can paste into its context.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
api
Package api is a thin HTTP client for the templater server.
|
Package api is a thin HTTP client for the templater server. |
|
auth
Package auth implements the OAuth 2.0 device-code flow that `codag setup` and `codag auth login` use to sign a user in via their browser, plus the single-flight refresh middleware that the api.Client uses to handle expired tokens transparently.
|
Package auth implements the OAuth 2.0 device-code flow that `codag setup` and `codag auth login` use to sign a user in via their browser, plus the single-flight refresh middleware that the api.Client uses to handle expired tokens transparently. |
|
config
Package config loads + persists user-level CLI config.
|
Package config loads + persists user-level CLI config. |
|
exec
Package exec runs child processes and streams their output line-by-line.
|
Package exec runs child processes and streams their output line-by-line. |
|
mcp
Package mcp implements a minimal stdio MCP (Model Context Protocol) server that exposes codag's log-tail tools to any MCP-aware agent — Claude Code, Cursor, Codex, Continue, Cline, etc.
|
Package mcp implements a minimal stdio MCP (Model Context Protocol) server that exposes codag's log-tail tools to any MCP-aware agent — Claude Code, Cursor, Codex, Continue, Cline, etc. |
|
onboard
Package onboard ingests historical logs from external sources and streams them to the codag server's /v1/onboard/warm endpoint to pre-populate the org's template_cache.
|
Package onboard ingests historical logs from external sources and streams them to the codag server's /v1/onboard/warm endpoint to pre-populate the org's template_cache. |
|
onboard/sources
Package sources contains the per-origin log fetchers used by `codag onboard`.
|
Package sources contains the per-origin log fetchers used by `codag onboard`. |
|
setup
Package setup implements `codag setup` — the one-shot installer that gets a developer from "binary on PATH" to "MCP-aware agents pulling codag for log work" with auth wired up.
|
Package setup implements `codag setup` — the one-shot installer that gets a developer from "binary on PATH" to "MCP-aware agents pulling codag for log work" with auth wired up. |
Click to show internal directories.
Click to hide internal directories.