Skip to content

feat: kitbash import — reverse-compile a repo's existing agent configs (0.16.0) - #100

Merged
singhharsh1708 merged 1 commit into
mainfrom
feat/import-reverse-compile
Aug 8, 2026
Merged

singhharsh1708 merged 1 commit into
mainfrom
feat/import-reverse-compile

Conversation

@singhharsh1708

Copy link
Copy Markdown
Owner

Why this, why now

A 113-agent research sweep of what multi-agent teams actually need found the strongest, most-cited pain is config drift and painful onboarding across agents — named verbatim by 5+ independently-built sync tools (amtiYo/agents, rule-porter, RuleSync, …) and a JetBrains survey (~5.3 hrs/month lost reconciling mismatched agent instructions). Kitbash made you author a fresh skill — the worst possible ask for a repo that already has the mess. This is the on-ramp: import what you already have.

kitbash import

Reverse-compile. Reads a repo's existing agent instruction files — CLAUDE.md, AGENTS.md, GEMINI.md, CONVENTIONS.md, .cursorrules, .cursor/rules/*.mdc, .github/copilot-instructions.md, .clinerules, .windsurf/.devin/rules/* — and:

  1. measures what each costs (reusing the token estimator),
  2. detects drift — where the copies have silently diverged (the hook: "⚠ these 3 files have drifted into 2 different versions"),
  3. synthesizes one KSF skill from the version the most agents agree on.

--write saves + pins it, so kitbash compile regenerates every target from that one source and ends the drift. --name sets the name. Non-destructive (leaves your originals in place); skips purely kitbash-generated files so it never re-imports its own output.

New importers.ts (format readers + drift grouping), cmdImport orchestrates, wired as a real command (not a stub).

Honesty fix

Corrected an overstated benchmark-page claim — "the number nobody measures." Other tools (ctxlint) do estimate context-file token cost. Kitbash's genuinely distinct claim is measuring it per target, from one source, and enforcing it as a declared budget at compile time — the page now says that. (Same class as the credibility batch; the research surfaced it, so it gets fixed.)

Tests

337 assertions (+14): empty repo, agree/drift detection, file grouping, --write + lockfile pin, the imported skill actually compiles (loop closed), duplicate-name refusal, and purely-kitbash-generated files correctly skipped.

…s (0.16.0)

Grounded in a landscape scan (113-agent research sweep): the strongest, most-
cited pain for teams running several coding agents is config drift and painful
onboarding across agents — named verbatim by 5+ independently-built sync tools.
Kitbash made you author a fresh skill; now it starts from what you already have.

- kitbash import: reads a repo's existing agent instruction files (CLAUDE.md,
  AGENTS.md, GEMINI.md, CONVENTIONS.md, .cursorrules, .cursor/rules/*.mdc,
  .github/copilot-instructions.md, .clinerules, .windsurf/.devin/rules/*),
  measures what each costs, DETECTS DRIFT — where the copies silently diverged —
  and synthesizes one KSF skill from the version most agents agree on. --write
  saves + pins it so 'kitbash compile' regenerates every target from one source
  and ends the drift. --name sets the skill name. Non-destructive; skips purely
  kitbash-generated files. New importers.ts module (format readers + drift
  grouping); cmdImport orchestrates + synthesizes; wired as a real command.
- honesty fix: corrected an overstated benchmark-page claim ('the number nobody
  measures' — other tools do estimate context-file cost). Kitbash's distinct
  claim is measuring it per-target, from one source, and enforcing it as a
  declared budget at compile time; the page now says that.

337 assertions (+14): empty repo, agree/drift detection, --write + pin, the
imported skill compiles, dup-name refusal, kitbash-generated files skipped.
@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kitbash Ready Ready Preview Aug 8, 2026 4:09am

@github-actions github-actions Bot added documentation Docs, spec, RFCs, README, site dependencies Dependency or action version bumps labels Aug 8, 2026
@singhharsh1708
singhharsh1708 merged commit 82b6e4e into main Aug 8, 2026
8 checks passed
@singhharsh1708
singhharsh1708 deleted the feat/import-reverse-compile branch August 8, 2026 04:10

This branch was successfully deployed

1 active deployment
Preview — cfda4753 Deployed Aug 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency or action version bumps documentation Docs, spec, RFCs, README, site

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant