Skip to content

About

Your coding agents are the engineers. Halfcycle is the rest of the team: it scopes, designs, plans and reviews production software, and runs the build inside your own Claude Code or OpenAI Codex. Install with npx halfcycle.

Resources

Stars

34 stars

Watchers

3 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Halfcycle

Your coding agents are the engineers. Halfcycle is the rest of the team.

npx halfcycle

That is the whole install. One command, in the repo you want to work in.

Where it connects. That command talks to Halfcycle at https://control.halfcycle.ai, to sign you in through your browser and to create the engagement your work is recorded against. It is the same address for everybody and it ships in the CLI, so there is nothing to configure, nothing to look up, and no value anyone has to give you first; the addresses for your board and for the checks come back from there too. If it cannot be reached, the install stops and writes nothing rather than setting your repository up without cover.


What it is

Good software gets built by several people doing different jobs. Somebody decides what is being built. Somebody decides how it fits together. Somebody cuts it into pieces small enough to finish. Somebody else checks the work, because whoever did it is the worst judge of it. And somebody writes the code.

AI gave everybody that last one. Halfcycle is the other four, running inside your own Claude Code or Codex.

A product owner Drafts what you are building, then argues with it. One question at a time, ordered so nothing gets asked before the thing it depends on, each with a recommended answer and the reasoning. Facts it can resolve, it resolves and shows you. Decisions only you can make, it actually asks, and it records the options you rejected so nobody reopens them in month three.
An architect Works out how the pieces fit, draws the diagram, and pulls out the rules your system must never break so later work cites them instead of quietly reinventing them. The diagram and the prose have to agree.
A planner Cuts the work into pieces that can actually ship, rather than a plan for the whole product that stops being true in week two. Anything it assumed rather than checked gets labelled as assumed, so it cannot travel downstream wearing the same voice as verified fact.
A reviewer Reads it all back before any detailed design starts, decides whether it is ready, and stops you when it is not. Runs in a session that has never seen the work, and after every round of fixes the method sends it to another new one rather than back to the reviewer that asked for them.
A delivery team Runs the build across parallel agents in separate worktrees, with a coordinator holding the graph, gates at every boundary, and checks firing on the real changes.

You do not need to know any of the process. You say what you want to build and it takes it from there, telling you what happens next at each step.

The problem it solves

AI coding agents are extremely good at giving you what you asked for. They are not good at noticing you asked for the wrong thing.

So the failure is not bad code. It is three weeks of confident, well-tested, well-structured work built on a decision nobody examined: a data model that cannot hold the second customer, an auth design that quietly assumed one tenant, a "quick" integration that becomes the architecture.

A method document cannot fix that, because a document cannot interrupt you. This can.


Why this is not another framework

Credit where it is due, and it is due. GStack, Matt Pocock's skills, GitHub Spec Kit, BMAD, OpenSpec and claude-flow are genuinely good, and between them they taught this whole category that the bottleneck is discipline rather than model intelligence. We took two things from them deliberately and say so: the one-question-at-a-time interrogation shape, and an install that is one command and then stays out of your way.

The objection this usually meets is that it must be too much for a small project. It would be, if there were one setting. A folder you download has exactly one, so whoever wrote it had to choose who to disappoint, and it is usually the small project that gets buried and quietly drops the process in week three. Halfcycle sizes each piece of work with a diagnostic before it starts instead, and records which design documents it includes and which it skips, which is the section further down.

Writing the process down was never the hard part. What a folder you download structurally cannot have is these three things.

1. Something other than you checks the work. A document cannot audit itself, and the session that wrote the draft is the worst available reviewer of it. So Halfcycle's consistency check runs in a session that has never seen your draft, and the method makes that non-negotiable rather than advisory: after every round of fixes it runs again in another new session, never the one that asked for those fixes, because the reviewer that asked for a fix is the one who cannot see what the fix stranded. The guard checks are the harder edge — they run off your machine, on ours, on every real change, and one that fires either warns you or stops the work outright, depending on how serious the rule it broke is.

2. The same gates on every contributor. The requirement lives in the repository, so everybody inherits identical checks with nothing to set up, and a new hire is compliant in one command. No framework is single-player by accident; they are single-player by construction, and several people changing the same codebase faster than they can synchronise is the one problem a single-session rulebook cannot see.

3. A record of how builds break that keeps growing. This is the part that compounds, and it is why a fork is a snapshot that starts depreciating the day you take it. See below.


It fits the work, not the other way round

A process that treats every piece of work the same is a process tuned for nobody. A one-line copy change and a payments integration do not need the same ceremony. A team of one and a team of nine do not need the same gates. Handed one checklist for all of it, most people quietly stop using the checklist, and they are right to.

Halfcycle decides the shape per piece of work rather than asking you to.

  • The size of the work sets the depth. A sizing diagnostic runs on every phase, and when the answers point the wrong way it splits the work rather than pushing something oversized through the same pipeline.
  • Each design artefact has to earn its place. A component design, a sequence diagram, a user flow: included where they carry weight, explicitly skipped where they do not, and the decision recorded either way so nobody wonders later whether it was skipped or forgotten.
  • The gates scale with the team. What one developer needs from a review and what four people changing the same code need are different things, and the process reflects that instead of averaging them into something that suits neither.
  • A new project and a live codebase get different routes. Starting from nothing and arriving at something with ten years of history are not the same problem and are not treated as one.

The result is a process that is heavy exactly where the risk is and light everywhere else, which is the only version anybody keeps using past the first month.


The part that compounds

Halfcycle carries a library of the ways real builds actually break. It started at six patterns, written up after one project's post-mortem. It has doubled since — twelve now — and the six that were added came from four later builds. Not one entry was invented: every pattern in it names the bugs it was distilled from.

The loop is a written procedure rather than a good intention, which is the difference between a library that grows and a folder that ages.

  1. A piece of work finishes. List every problem that reached a person. Not the ones a check caught, because those are already handled. Only what got through.
  2. Ask one question of each. Which check would have caught this, and at which step? Not who wrote it and not why they missed it. Those questions produce apologies. This one produces a check.
  3. Install the check where it belongs. Into the planning step, into what the reviewer looks for, and into automation wherever it can run on its own. From then on it runs on every build, including yours.

The aim is not zero problems. A person walking the finished product is supposed to find things. The aim is zero problems reaching that person which an earlier step could have caught.

A framework you download knows exactly what its author knew on the day they wrote it, and it will never know more. Your build does not start where the last one started. It starts where the last one finished. The work you never have to redo is the only kind of speed we are willing to claim.


What it catches

Most process claims cannot be checked, because nobody writes down the bugs that never happened. Here is one that can.

A real feature on a live product: let somebody restore an older version of a document they had edited. Small by any measure, two screens of work and a button. It was reviewed five times before anybody was allowed to start building. Blockers found each round: 6, then 2, then 1, then none, then none. Nine in all.

Here are eight of the findings, and the first four would have reached real users:

  • Restore could overwrite a file that is meant to be locked. The rule was enforced in the normal save path and nobody copied it into the new restore path. Every test of the new code passes; somebody has to notice a rule that is not there.
  • The undo feature could destroy the backup it exists to protect. Save a backup, update the search index, commit, all as one step. If the index step failed, the backup was discarded and the new content had already been written.
  • The button would never have appeared for anybody. Keyed on a piece of data the system only attaches to the exact records the feature refuses to act on. The code is correct in isolation. It ships to nobody.
  • Restoring a document would have silently deleted its labels. A shared helper wipes all labels and puts back whatever it is handed, and the design handed it an incomplete list. Nothing fails. The loss turns up weeks later, somewhere else.
  • The plan described a bug that did not exist, from a search of the codebase that was accurate and drew the wrong conclusion.
  • The design could not be built where it was going. The place the plan chose to hang the new screen is a sibling of the thing it needed to replace, and cannot replace it. Correct design, wrong address.
  • The final checklist pointed at addresses nobody had ever written down, and survived four rounds of review doing it. It needed no knowledge of the code to catch, and it consumed an expensive reader anyway.
  • The summary everybody reads first still described a plan three rounds of review had thrown out.

Not one of them is a coding mistake. Every one sits in a join: between two pieces of code, between two people's work, or between the plan and what was already there. An agent writing the file in front of it cannot see any of them, and neither can a reviewer reading the change on its own.

Honest about what that took: five rounds on a feature that small is heavy. The first round alone returned six blockers, and rounds two to four found five more defects — nearly all of those five introduced by the previous round's own fixes. The method was amended because of it, in four places: what a scoping document has to mark as unverified before it travels, what a design has to check rather than assume, a cheap mechanical pass that runs before any reviewer is spent on the things a reviewer is wasted on, and when the summary everybody reads first is allowed to be written. We do not defend the five.


You are never lost

There is no process to memorise, no checklist to keep open in another tab, and nothing to learn before you can start.

  • It works out where you are by reading your project, rather than asking you or trusting a box somebody ticked last month. Come back after two weeks away and it already knows.
  • It tells you the next step in plain language, when it is relevant: what you are one step from finishing, what you just finished, what you are about to do that you are not ready for. The rest of the time it stays quiet.
  • You can just ask. Say what you want in your own words. You do not need to know that the thing you are asking for is called a phase.

If you have never run a project this way before, you are not expected to. It is meant to feel like somebody senior sitting next to you who has shipped this kind of thing many times.


How it works

Five layers, one direction, a loop at the bottom.

L0 Set up The context your agents read on every session. Refuses to record a decision with no reason attached.
L1 Decide The product spec, drafted then interrogated, with nothing left hand-waved.
L2 Write it down Architecture, a diagram, and the rules the system must never break, named so later work cites them. Diagram and prose must agree.
L3 Slice it Phases that actually close. Oversized work gets split. Assumptions get labelled as assumptions.
gate The readiness audit. Eight checks over everything decided so far. Your session runs each one against your own repository and Halfcycle judges the answers — the documents this review reads never leave your machine. Too many red is a hard stop.
L4 Design it Feature specs. Every claim about existing code anchored to a real file and line or not asserted. A fresh reviewer that has never seen the spec, never the same one twice.
L5 Build it Ordered work, then coordinator and worker agents in parallel. Checks on the real changes, an anti-tautology pass over the tests, reachability, and a cold walk of the deployed product by somebody who did not build it.

Underneath all five: one authoritative copy of every document, rules referenced by name rather than restated, a deliberate limit on what loads into every session, and gates in both directions at every boundary.

The method arrives one step at a time. Nothing dumps fifty pages into your context. The step you are on is fetched when you need it, sized for the moment you are in.


Your code stays yours

This matters enough to be specific about.

Halfcycle never holds or proxies your Claude or OpenAI credential. Inference runs on your own Claude Code or Codex, on your own subscription or seats. We are not a hosted runtime reselling you inference.

Your own Halfcycle credential lives outside this repository, in a file named env under your home directory — never in anything you'd commit. Installing writes it. Opening or closing a phase rewrites it, to record which phase is open, and the credential in it is also renewed there automatically to keep your connection current. Uninstalling with --remove-credential deletes it. Nothing else changes it.

What the checks receive is the shape of a change and short excerpts of the code being edited — never a whole file and never a diff. File paths, structural shapes, environment variable names and how they are used, the tables a write touches, route signatures, outbound host names. There is no file body and no diff in the request.

Short excerpts of the code being edited are sent to Halfcycle to run its checks, under the terms you accepted at sign-in. Our privacy policy, not this paragraph, states how we handle what you send.

What the readiness audit submits, and what it never carries. halfcycle_submit_findings is how your session sends the audit's answers: a probe's status, a count, a repo-relative path, a short name. Never a file body, a diff or a source excerpt — the wire carries no field for prose, so a path or a name is the most it can carry. What Halfcycle keeps is what your session submitted, the judgement it reached, and which account and machine sign-in the submission came from; the documents themselves never reach it.

Nothing method-shaped is left behind. The runbooks, templates and question sets reach the session that asks for them, scoped to the step you are on, and are never at rest in your repository.

What you keep

Everything the method produces is yours, under your own docs/, in your git history, in plain markdown: the product spec, the architecture, the phase plans, the feature specs and the ordered work. It reads as documentation your team wrote, because it is.

Nothing you already had is changed. Existing settings are preserved, and a name collision is reported rather than resolved on your behalf.

Requirements

  • Claude Code 2.1.118+, or Codex 0.166.0+
  • Node 18+
  • A git repository
  • On Windows, Git for Windows
  • On Windows, in PowerShell, use npx.cmd instead of npx (PowerShell's default settings block the npx script; npx.cmd always works, with nothing to change).

Getting started

mkdir my-project && cd my-project
git init
npx halfcycle

In Windows PowerShell, separate the first two commands with ; instead of &&, and run npx.cmd instead of npx:

mkdir my-project; cd my-project
git init
npx.cmd halfcycle

Then open the folder in Claude Code and run /halfcycle-setup, and answer the questions it asks about your project.

Accept the workspace trust prompt when Claude Code shows it. The install writes a credential helper and a set of hooks that are shell commands, so Claude Code asks before it runs them. It is expected.

A second prompt follows — it is not the trust prompt again. After you accept the trust prompt, Claude Code asks whether to use a new MCP server. If halfcycle is the only one listed, the cursor starts on Continue without using this MCP server; choose to use the server instead, or Halfcycle will not connect. If several new servers are listed together, halfcycle is already checked — leave it that way.

Using Codex? Open the folder in Codex and trust it when asked. Then approve Halfcycle in /hooks: Codex holds each Halfcycle entry back until you do, so until then it works without Halfcycle checking its edits. Then type $halfcycle-setup and answer what it asks about your project. One difference today: Codex cannot stop to ask you before a risky step, so Halfcycle holds that step instead and says why.

You will get a board link on install. That is where the work becomes visible to anyone who is not you.

Running the long stages headless

Some stages take long enough that you want to leave them running. You can run them from a terminal with claude -p instead of typing into Claude Code. Trust the folder first.

Trust the folder once, interactively. Open the folder in Claude Code, accept the workspace trust prompt, and choose to use the halfcycle server at the second prompt. Trust is saved per folder. Trust saved for the top folder of a repository covers its sub-folders. Trust saved for a parent folder does not cover a folder inside it, so trust the folder you will run from.

A headless run in a folder that has not been trusted cannot use Halfcycle. It still runs, but Halfcycle is not connected. Trust the folder once as above, and then headless runs can use it.

Approvals stay interactive, by design. A headless run does not approve anything. When a step needs your approval, the run refuses that step and says why. Give the approval in the interactive session.

Driving a build with claude -p. Each call is one turn. Run the calls from the trusted folder, and keep each turn's output in its own log file:

claude -p "<first instruction>" --permission-mode acceptEdits \
  --allowedTools "mcp__halfcycle__*" "Read" "Write" "Edit" "Bash" "Glob" "Grep" "Task" \
  < /dev/null > turn1.log 2>&1

claude -p --continue "<next instruction>" --permission-mode acceptEdits \
  --allowedTools "mcp__halfcycle__*" "Read" "Write" "Edit" "Bash" "Glob" "Grep" "Task" \
  < /dev/null > turn2.log 2>&1

--continue picks up the same conversation for the next turn. --allowedTools lists the tools the run may use without asking. It does not give Halfcycle's approvals; those are still given in the interactive session.


halfcycle.ai · MIT licensed

Halfcycle is built with the Halfcycle method. Every check in it fired on us first.


Releases

Every entry on the Releases page matches a version published to npm — releases are created automatically when a publish completes, never by hand and never for a dry run. The npm registry is the record of what has actually been published; this page is a convenience alongside it, not a guaranteed complete index of it.


Support

Found a bug, or something not working the way the docs describe? Email hello@halfcycle.ai — that is where help and support for this project lives.


Source availability

The published package is MIT licensed. Its implementation is not developed in the open, and this repository is not a source mirror — it holds releases, install and usage documentation, and issue tracking for the published npm package. No pull requests against the implementation are accepted. If that changes, this page changes with it.


Install docs: docs/install.md · Usage docs: docs/usage.md · License: MIT (LICENSE) · Terms of Service: docs/legal/terms-of-service.md · Privacy Policy: docs/legal/privacy-policy.md

About

Your coding agents are the engineers. Halfcycle is the rest of the team: it scopes, designs, plans and reviews production software, and runs the build inside your own Claude Code or OpenAI Codex. Install with npx halfcycle.

Resources

Stars

34 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors