# half-fixed: find bug fixes that missed sibling code

> Finds bug fixes that reached one adapter, driver or provider but not its siblings, then checks each one before changing code.

half-fixed: find bug fixes that missed sibling code is a free AI agent skill on Agensi by Zain Ali, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Zain Ali](https://www.agensi.io/creators/zain-ali)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/half-fixed-find-bug-fixes-that-missed-sibling-code
- Tags: code-review, testing, git, refactoring, static-analysis, bug-finding, open-source, cli

## About this skill

When a bug is fixed in one provider adapter, database driver or cache store, the siblings often have the same code and the same bug. half-fixed finds those gaps in your git history.

**What it does**
- Runs a bundled scanner (`scripts/half-fixed.js`) over git history. It groups sibling files, replays each commit that changed only some of them, and reports siblings that still have the old code.
- Has your agent triage every finding before touching code: `gap`, `intentional`, `handled-elsewhere`, `obsolete` or `unsure`, each with evidence from the original fix.
- Reports a short table. It only fixes things if you ask, one finding at a time, with a failing test first.

**Why trust it**
- Zero dependencies. Needs Node 18+ and git, nothing else. Runs offline.
- Never executes the scanned repo's code and never writes to the repo during a scan.
- Treats everything in the repo (commit messages, code, config) as data, not instructions.
- Fast: 5,000 LiteLLM commits in 69 seconds.
- Honest about accuracy: on LiteLLM, 13 of 66 high-confidence findings were real gaps. The rest were deliberate or already handled, which is why the agent checks each one.
- Has found real bugs, fixed upstream in prism-php/prism#1038, BerriAI/litellm#44925 and BerriAI/litellm#44936.

**Try it**
Ask your agent: "Find half-fixed bugs in this repo."
Scanner only: `npx half-fixed scan`

MIT licensed. Source, evidence and full docs: https://github.com/heyzainali/half-fixed

## Requires

- Node.js 18+
- Git
- on

## Known limitations

Requires Node 18+ and a full (non-shallow) git history. Cannot distinguish between missed fixes and intentional architectural differences without manual triage.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the half-fixed: find bug fixes that missed sibling code skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does 'half fixed' distinguish between a missed bug fix and an intentional implementation difference?

The skill identifies 'half-fixed' bugs where a developer applied a fix to one file (like a MySQL driver) but forgot to apply the same change to its siblings (like the PostgreSQL or SQLite drivers). It prevents technical debt by ensuring consistency across parallel implementations.

### Which AI agents are compatible with this skill?

This skill is compatible with any AI agent that can execute Node.js scripts and access a local terminal. It works best with agents capable of reading git logs and file contents to interpret the scanner's JSON output.

### Does my project need to be written in a specific programming language for the scanner to work?

No, the scanner is language-agnostic. It detects patterns, shared suffixes, and structural similarities in your file paths, making it effective for everything from hardware abstraction layers in C++ to cloud adapters in TypeScript.

### What exactly is included in the purchase of this skill?

You receive the core Node.js scanner script, the specialized agent instructions for interpreting git history, and documentation on how to integrate the scan results into your automated code review workflow.

### Are there any specific git configuration requirements I should be aware of?

The scanner requires a non-shallow git clone to analyze history effectively. If your CI/CD environment or agent uses a shallow clone (depth=1), it may not have enough historical context to identify when a sibling was bypassed.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
