A pipeline fails, and someone opens a 40,000-line log to find the one line that matters. Hand that log to a model and it blames whatever looks loudest: a missing cache, a runner warning.
ci-doctor runs when a pipeline fails. Deterministic code decides where the job broke (which phase, which step); only then does a model, if you configure one, explain why, from evidence that open, tested matchers pick out of the log. You get a verdict a person, a script or a coding agent can act on.
- Read-only. It never touches your code, and once analysis starts it exits
0, so it can't change your pipeline's outcome. Only a broken setup exits1. - Useful with no LLM, and with any: OpenAI-compatible (self-hosted too), Anthropic, Azure, Bedrock, Google, Groq, Mistral, Cohere, xAI.
- Air-gap friendly. No telemetry; the matcher registry can be a local copy.
- GitHub Actions and GitLab CI, from one provider-neutral core.
- For coding agents too:
ci-doctor mcpserves the same diagnosis over MCP.
ci-doctor is in beta.
| Repo | What it is |
|---|---|
| ci-doctor | The analyzer, the GitHub Action, the CLI and the MCP server, plus the docs at docs.cidoc.dev. |
| matchers | The official matcher registry: the rules that know what a failure looks like in each tool, each proven on real logs. Catalogue at matchers.cidoc.dev. |
GitHub Actions, on a workflow triggered by workflow_run
(guide):
- uses: ci-doctor/[email protected]GitLab CI, as a .post job that runs when: on_failure, with the image
docker.io/fennet/ci-doctor:0.0.1b1 (guide).
Anywhere else: pip install ci-doctorr (two r's) and ci-doctor analyze
(install).
- Bugs, wrong diagnoses and ideas: open an issue on ci-doctor.
- A matcher for your tool, or one that misfires: open an issue on matchers.
- Contribute: each repo's
CONTRIBUTING.md. - Anything else: [email protected]