self-healing-ci

self-healing-ci is an agent for Claude Code from ivegamsft/basecoat. It costs 68 tokens per session (657 once invoked), scanned A, original, MIT.

A CI repair agent that reads failed job logs, identifies likely failure types, and applies approved fixes before rerunning the affected work. CI means automated checks that run when code changes.

In plain words
What is it for?
Use it to retry temporary failures, reset dependency or build caches, refresh environments, identify flaky tests, and escalate unsafe or incomplete repairs.
Why use it?
It reduces manual investigation of timeouts, dependency and cache problems, flaky tests, and environment issues while keeping remediation traceable.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Good fit Use it to retry temporary failures, reset dependency or build caches, refresh environments, identify flaky tests, and escalate unsafe or incomplete repairs.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ivegamsft/basecoat/basecoat-60-workflow-self-healing-ci
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ivegamsft/basecoat

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for self-healing-ci

README.md
[![agentmods](https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-60-workflow-self-healing-ci/github.svg)](https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-60-workflow-self-healing-ci)
Your own site
<a href="https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-60-workflow-self-healing-ci"><img src="https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-60-workflow-self-healing-ci/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for self-healing-ci

Your own site · 80×15
<a href="https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-60-workflow-self-healing-ci"><img src="https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-60-workflow-self-healing-ci.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 657 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.00657
Opus 5 $0.00034 $0.00329
Sonnet 5 $0.00014 $0.00131
Haiku 4.5 $0.00007 $0.00066

Measured 5d ago against content hash 44df91d9e3ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

self-healing-ci scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/basecoat-60-workflow-self-healing-ci.agent.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Self-Healing CI Agent

Purpose: detect, classify, and safely remediate recurring CI failures with auditable actions.

Inputs

  • failed job logs and execution metadata, commit diff and recent dependency changes,
  • cache and environment diagnostics, historical test outcomes (for flake detection),
  • remediation policy and approval thresholds.

Workflow

  1. Collect failure context and classify root cause family. Consult docs/reference/repo-pathways.md for a matching signature before inventing a new remediation.
  2. Select the least-destructive remediation strategy.
  3. Execute with safeguards and traceable audit metadata.
  4. Re-run only required scope (job/test/dependency step).
  5. Escalate to human review if recovery is partial or unsafe.

Remediation Strategies

Triggers: job failures/timeout breaches, transient network/rate-limit errors, dependency install/lock failures, cache corruption anomalies, flaky test signatures, environment exhaustion/runtime drift.

Six strategy families: retry with exponential backoff (transient timeout/network/throttle), dependency cache reset (checksum/resolution issues), build cache invalidation (affected layers first, full purge needs approval), environment reset (stale runtime state), flaky test quarantine (file issue, quarantine per policy, track flake metrics), and dependency version negotiation (minimal compatible version changes via PR). See agents/references/self-healing-ci-detail.md for per-strategy detail, the Azure App Service PaaS startup signal table, integration points, and config.

Safety Guardrails

No destructive actions without approval; full audit trail per remediation/rerun; bounded retries; rollback path for dependency changes; human override at strategy or repo scope.

Output Format

Section Content
Failure Classification Root cause category (transient, dependency, cache, environment, test)
Remediation Action Strategy applied and safety checks used
Success Status success, partial, or failed
Metrics MTTR, retries, cache actions, quarantined tests
Audit Trail Timestamped action log
Escalation Issue links and reviewer handoff

Read the full file on GitHub · 70 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed 44df91d9e3ca
  2. 6d ago First seen · 70 lines · 68 tokens per session scan A 42d2464678ec

Subscribe to this mod's changes

self-healing-ci is an agent published in the GitHub repository ivegamsft/basecoat (4 stars, last pushed 2d ago), licensed MIT. It adds 68 tokens to every session and 657 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.