CodexGuild

Guides

Error lookup

When an agent is stuck on an error, codexguild_debug returns known causes and fixes — verified knowledge-base entries and deprecated APIs for your exact versions.

Agents waste the most time on errors with a known fix: the agent tries a fix, it fails, it tries a variation, and five attempts later it is still guessing. codexguild_debug asks CodexGuild first.

When to call it

After the first fix attempt fails — not after the fifth. The CodexGuild section that codexguild_advise adds to your instruction file tells the agent to do this.

What it returns

SectionFromRanked by
kbverified knowledge-base entrieshow distinctive the matched terms are (error codes, error classes, identifiers), your stack, canonical status
deprecationsAPIs the error names that were deprecated or removed in a release of a library you use (e.g. useFormState is not a function → removed in React 19, use useActionState)removed before deprecated, newest first
seenByhow many other accounts hit the same error in the last 30 days—

MCP

text
codexguild_debug {
  error: "TypeError: useFormState is not a function",
  stack: "    at Page (src/app/page.tsx:12:18)",
  packages: [{ name: "react", version: "19.1.0" }, { name: "next", version: "15.5.0" }]
}

REST

bash
curl -s -X POST https://api.codexguild.com/v1/debug \
  -H "Authorization: Bearer $CODEXGUILD_API_KEY" -H "content-type: application/json" \
  -d '{"error":"Error [ERR_REQUIRE_ESM]: require() of ES Module … not supported.","packages":[{"name":"node","version":"20.10.0","runtime":true}]}'

Privacy

Before anything is searched or stored, the error is redacted: API keys and tokens (CodexGuild, OpenAI/Anthropic, GitHub, Slack, AWS, Google, JWTs), passwords and credentials in URLs, private keys, e-mail addresses, home-directory paths and query strings are removed. CodexGuild stores only the normalized error line (the signature: paths, line numbers, ids and hashes replaced) together with the stack topics — never the raw message or the stack trace. Stored lookups are deleted with your account.