Skip to content
All projects
Developer ToolsJul 2026Live

repogap: The Agent That Says Skip

The Agent That Says Skip

Point it at your repo and a repo you admire. It reads both, scores every difference against a goal you supply, and lists the few things worth copying, skipping the rest with a reason. Then it implements the ones you approve, one commit each. The analysis phase cannot write to your repo.

repo-gap-analysis-charan.vercel.app
repogap, the live site
Year
Jul 2026
Scope
solo build
Type
Developer Tools
Status
Live

10 of 16 skipped

In the verified run, 10 of 16 findings were marked Skip. Every finding is scored against the goal you supply, so a recruiter demo and a production service get different reports.

01

Overview

Admiring a codebase is easy. Working out which three things to copy from it takes a day of reading. Ask a model and you get a long, agreeable inventory of everything the reference has and you don't, unranked, with no idea what your project is for. Give an agent write access and you get one enormous commit that touches forty files and nobody can review. repogap addresses both: a report that skips more than it recommends, and an apply flow that does one item per commit.

02

The hard parts

  1. 01

    Stopping the model from producing an agreeable, unranked inventory instead of a recommendation.

  2. 02

    Guaranteeing the analysis phase cannot modify the repo it is reading, enforced in code and not by instruction.

  3. 03

    Respecting the reference repo's licence before porting any of its code.

  4. 04

    Keeping the model from inventing verifiable facts like dates and licences.

03

The approach

Every finding is scored against a --goal, and anything that doesn't clear the bar gets a Skip with a one-line reason. Findings cite the reference file, and often the lines, so you can read them yourself. Read-only mode is enforced by a canUseTool interceptor: every Write/Edit whose path isn't GAP_ANALYSIS.md is denied before it executes, Bash is narrowed to a read-only allowlist, and chained commands are checked per segment, so "ls && rm -rf src" is refused on the second segment. Licences are read first and set a policy (MIT/Apache/BSD permits porting with attribution, GPL/AGPL or no licence switches to patterns-only) that goes into the system prompt. The report's licence and date lines are rewritten in code after generation, because the first run stamped a date from the model's training data.

04

Outcome

repogap analyze produces a goal-scored, source-cited gap report. repogap apply plans, waits for your go, implements a single item, runs your existing tests, and commits as gap(G-03): …, with git push, git reset --hard and npm publish blocked in every phase. A full six-category analysis of a small repo takes about 50 turns, 4.5 minutes and $0.57, and every run prints its own turn count, duration and cost. Six tests cover the permission guards, including the chained-command bypass and the write-outside-repo escape.

05

What I'd do differently

The most important file in the project is the one that stops the agent. My DRDO internship taught me to make a guardrail a hard, testable boundary, and that is what makes an agent with write access safe to use.

06

Stack

agent
@anthropic-ai/claude-agent-sdkcanUseTool permission interceptor
language
TypeScript (strict, NodeNext)
cli
commanderpicocolors
tests
node:test (no API key, no mocks)

Like what you see?

Let's build the next one.

Hiring, or have a problem that needs this kind of engineering? I read every message myself.