OSS · cc-autoship · Case study

Building a harness that turns AI's development work into a traceable asset

Development ended in October 2026. v2.0.0 is the final release, and the GitHub repository is archived.

cc-autoship was an open-source Claude Code harness that recorded every AI action as GitHub Issues, PRs, and reviews. I developed it from July to October 2026. This is a record of the thinking, the mechanism, how it was run, and why it ended.

You can hand implementation to AI now. But the more sessions run in parallel, the higher the cost of following what they actually did — until you can no longer stand behind the result. I built cc-autoship as a set of Claude Code harnesses (open source) that records every AI action as a GitHub Issue, PR, diff, and review. The aim was to delegate the work and still be able to trace it — and take it back over if anything went wrong. It was less a standalone plugin than a way to wire AI's work onto the same GitHub flow real teams already use, with no metered billing on top.

GitHubMIT License · maee-co/cc-autoship (archived)

The problem — parallel AI work is hard to follow, and the context is worth keeping

Delegating development to AI is no longer the hard part. You can line up several sessions and run them at once. But staying in pure vibe-coding mode tends to stall at the POC stage.

What I found hardest was that the results are not intuitive to follow afterwards. The raw logs stay on my machine (.sessions), so it is not that you cannot trace them. But reading the situation out of them takes time, and the more sessions run in parallel, the more there is to read. If you cannot retrace what happened when something breaks, you cannot really take responsibility for it.

A dark sea seen from directly above. A dozen small orange ships drift in scattered directions, their wakes crossing one another and fading out towards the edges. There is no harbour and no shoreline.

When the history is kept in a form that is easy to handle, you can ask the AI about it later, look back, and fix things.

There was one more reason. Now that a single person can build several things at once, I wanted to accumulate the context of that process — for the day I feel like writing about it. That thought is where this mechanism started.

Design principles — three pillars

The starting point was simple: rather than invent something new, reuse the machinery real teams already develop with — Issues, PRs, reviews. Traceable, compounding, sustainable. These are not three separate features but three faces of one idea: leave a reusable record without waste.

Traceable

The more you run in parallel, the harder it gets to see what was actually done. So every change was left on GitHub as an Issue, a PR, a diff, and review comments. Once the record builds up, an AI can read it through GitHub’s MCP server, so you can follow the flow directly — or ask the AI later why it made a particular call.

Compounding

Left at the commit level, changes scatter into fragments that are hard to manage as meaningful units. So implementation was grouped into right-sized PRs, and only gate-cleared work went into main. Consistently sized PRs stack up and remain as an asset you can review and look back on as they are.

Sustainable

Recording AI reviews as PRs and reviews the way a real team does usually means wiring up GitHub Actions, which is metered. I designed cc-autoship as its own harness instead of leaning on that. Review → comment → fix ran inside a flat-rate subscription and GitHub’s free tier — the aim was a real development pace at a fixed cost.

How it worked — deterministic gates and hooks

From a single “I want to build this,” it ran Issue → implementation → PR → review → quality gates → merge as one continuous flow.

The cc-autoship loop: Ask (one line about what you want) leads to an Issue, a build inside an isolated worktree, a PR, an AI review, a gate on five axes (size, scope, review, CI, public paths), and finally a squash merge into main that closes the Issue.

Deterministic gates

Whether a PR could merge was decided by tested pure TypeScript functions. Size, scope, review findings, and CI (plus e2e for UI) were checked mechanically, and green meant it merged itself. When a required tool was missing, the gates stopped loudly instead of skipping silently. The call was never left to the mood of an LLM.

Hooks that protect main

Direct pushes to main were blocked. The only way in was a PR that cleared the gates, and paths marked as public content were never merged autonomously. On repositories with branch protection, cc-autoship deferred to GitHub’s own enforcement; everywhere else the hooks kept guarding.

The shape of good development, built in

Issue-driven work, iteration, review, and tests ran to form without having to think about it. The goal was to move forward without relying on willpower or on how much you happen to know.

Running it — inside a flat-rate subscription

Before splitting it out as OSS, I ran this loop on my own monorepo, with no metered API billing, inside a flat-rate subscription (Claude Max 5x) and GitHub’s free tier.

Because it ran on GitHub’s free tier, there were stretches where merges piled up, hit the limit, and had to be covered by hand. So it was not full automation — it was automatic work with a human as the final gate.

There were 18 releases, from v0.1.12 (2026-07-15) to v2.0.0. Every gate is a tested TypeScript pure function, shipped as dependency-free JavaScript; v2.0.0 ships with 1,200+ unit tests.

Why I open-sourced it

This is the mechanism I built so that I could run exactly the same flow as a real development team, as one person plus an AI team — and it is also a record of that.

I released it as MIT-licensed open source, hoping it would reach people who, like me, could now delegate a great deal to AI but had run into the ceiling of their own cognitive load — or who felt uneasy about not being able to trace what was built and how. It ran on GitHub alone and required no external service.

Why it ended

The ideas it proved out now live on in my own development harness, and Claude Code itself has caught up on several fronts. Keeping a public plugin in step with a fast-moving Claude Code no longer paid for itself.

The repository is archived and kept as a record. It will not receive fixes or follow future Claude Code changes.

What replaced each part

Some of cc-autoship's features later landed in Claude Code itself. Here are the main ones (the full table is in the README).

cc-autoshipClaude Code
cc-bestpractice skill/doctor prompt-auditCoverage: Full
researcher agentBuilt-in Explore agentCoverage: Full
Fail-closed gate hooks when Node.js is missingHook "onFailure": "block"Coverage: Full (v2.0.0 uses it)
/cc-autoship:review findings and --fix/code-review with --fix, --commentCoverage: Partly (the pass/fail verdict the auto-merge gate reads exists only in cc-autoship)
/cc-autoship:context-budget measurement/contextCoverage: Partly (no ratchet that fails when the budget grows)
Blocking force pushesAuto mode’s default soft-deny rulesCoverage: Partly (only in auto mode, and classifier-based)

Some parts have no built-in successor yet: blocking direct pushes to main, the red-CI guard on gh pr merge, the deterministic auto-merge gates, and the warning on pushes to an already-merged branch, among others.

What I learned

Hooks prevent accidents; they are not a security boundary

Hooks read shell commands by pattern, so a command built to slip past them can get through. Where something truly had to be stopped, I relied on GitHub’s branch protection and kept the hooks as a fallback for environments without it.

Before translating machine-read output, decouple the markers from language

The moment a review comment was written in English, a hook that looked for a Japanese heading stopped matching, and the chain from review to auto-merge broke silently. I moved everything a machine reads onto language-invariant HTML comment markers first, and only then made the body translatable.

Not full automation, but automation with a human final gate

When PRs piled up, GitHub’s free-tier Actions minutes ran out and CI stalled, so on those days I merged by hand. The gates still decided which PRs were ready; a person only pressed the last button.