<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Halfcycle on Medium]]></title>
        <description><![CDATA[Stories by Halfcycle on Medium]]></description>
        <link>https://medium.com/@halfcycle?source=rss-343c0761f586------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*y3niZicJ3sgHgHal614E1A.png</url>
            <title>Stories by Halfcycle on Medium</title>
            <link>https://medium.com/@halfcycle?source=rss-343c0761f586------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 09:46:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@halfcycle/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Agent skills for AI coding agents: how they work, how to write one, and where they stop]]></title>
            <link>https://halfcycle.medium.com/agent-skills-for-ai-coding-agents-how-they-work-how-to-write-one-and-where-they-stop-88f6820da93f?source=rss-343c0761f586------2</link>
            <guid isPermaLink="false">https://medium.com/p/88f6820da93f</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Halfcycle]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 00:00:47 GMT</pubDate>
            <atom:updated>2026-11-12T15:34:57.639Z</atom:updated>
            <content:encoded><![CDATA[<p>Every coding agent starts a session knowing nothing about how your team works. You can tell it everything up front, in a long instructions file that it reads before every task, or you can teach it in small pieces it picks up only when the work calls for them. Agent skills are the second way.</p><p>A skill is a folder with one file in it that matters, SKILL.md: a name, a one-line description, and the instructions for one job. The agent sees the name and description of every installed skill from the start of the session. It reads the rest only when a task matches. That one design choice, a short line always visible and the detail held back until needed, is why skills spread to most coding agents within a few months.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Y4zP5ulevFgdRCcMYsbuA.png" /></figure><h3>Why skills matter now that agents write the code</h3><p>Before agents, a team’s know-how lived in people. How we write migrations, which checks run before a release, why the payments module never calls the clock directly. A new engineer picked it up over months, from reviews and from being told.</p><p>An agent does not pick anything up between sessions. Whatever it needs, it has to be given, every time. The first answer most teams reach for is one big instructions file, CLAUDE.md or AGENTS.md, and it works until it does not. Every line in it is read before every task, relevant or not, and every line competes for the agent&#39;s attention with the task itself. The file grows, the agent follows less of it, and somebody starts deleting rules to make room.</p><p>Skills move the occasional knowledge out of that file. The migration procedure loads when somebody asks for a migration and stays out of the way otherwise. The always-true rules stay in the instructions file; the sometimes-needed procedures become skills. That split is most of the value.</p><h3>Three things people mean by “agent skills”</h3><p>The phrase is used for three different things, and arguments about whether skills work are often two people meaning different ones.</p><p><strong>The format.</strong> A folder with a SKILL.md file, YAML frontmatter at the top and Markdown instructions below, optionally with scripts, reference documents and templates beside it. Anthropic published it as an open specification at <a href="https://agentskills.io/specification">agentskills.io</a>, and Claude Code, OpenAI Codex and a long list of other tools now read the same files.</p><p><strong>The collections.</strong> Packs of ready-made skills shared on GitHub and in marketplaces: a frontend skill, a code review skill, a test-writing skill. Installing one is quick, and quality varies a great deal, because a skill written for someone else’s codebase carries someone else’s assumptions.</p><p><strong>The idea.</strong> Reusable know-how an agent can pick up on demand, in whatever file format. This is the sense people mean when they say an agent “has a skill” for something.</p><p>This article is mostly about the first, because it is what you write and maintain, with notes on the second where it matters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XzJllIDUg5IH-3vTCBXMcA.png" /></figure><h3>What a skill is made of</h3><p>A skill is a directory named after the skill. Inside it:</p><ul><li>, the only required file. It starts with frontmatter between two --- lines and continues with plain Markdown.</li><li><strong>scripts/</strong>, optional: code the agent can run, for the steps that need to be exact every time.</li><li><strong>references/</strong>, optional: longer documents the agent reads only if the instructions send it there.</li><li><strong>assets/</strong>, optional: templates, example files, schemas.</li></ul><p>The frontmatter needs two fields. The open specification requires both; Claude Code will load a skill without them but recommends the description.</p><ul><li><strong>name</strong>: lowercase letters, numbers and hyphens, up to 64 characters, matching the folder name.</li><li><strong>description</strong>: what the skill does and when to use it, up to 1,024 characters in the specification.</li></ul><p>Tools add their own optional fields on top. Claude Code, for example, can stop the agent from loading a skill by itself ( disable-model-invocation), limit a skill to certain files ( paths), or pre-approve the tools it needs ( allowed-tools). Codex keeps its extras in a separate agents/openai.yaml beside the skill. Fields a tool does not recognise are ignored, so a skill written to the shared fields works in both.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZZcf178anVj7nr9uNjVtMQ.png" /></figure><h3>How an agent decides to use one</h3><p>Skills load in three stages, which the specification calls progressive disclosure.</p><ol><li><strong>At the start of a session</strong>, the agent is given the name and description of every installed skill. That is all. The specification puts this at about 100 tokens a skill.</li><li><strong>When a task matches a description</strong>, the agent reads the whole SKILL.md. The specification recommends keeping it under 5,000 tokens and 500 lines.</li><li><strong>When the instructions point somewhere</strong>, the agent opens that reference file or runs that script, and nothing else in the folder.</li></ol><p>You can also call a skill by hand: in Claude Code it appears as a / command, and in Codex you mention it with $ or pick it from /skills. But the more common path is the automatic one, and the automatic one depends entirely on stage one. The agent does not read your skill to decide whether to read your skill. It reads one line.</p><p>There is also a budget on that first stage. Codex gives the opening list of skills 2% of the context window by default (8,000 characters when it cannot tell the window size), and when many skills are installed it shortens descriptions first and drops some altogether, with a warning. Claude Code cuts each skill’s listing at 1,536 characters. So a description competes twice: once for the agent’s attention, and once for space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bdZkjH6KpJsMAhPDhGBEkQ.png" /></figure><h3>The description does the work</h3><p>Because the decision is made on one line, the description is the most important sentence in the skill, and the one most often written last and in a hurry.</p><p>A weak description names a topic: “Helps with database stuff.” The agent cannot tell whether “add a column to orders” is database stuff, or whether “why is this query slow” is. A strong description names the job, the words a person would use when they need it, and where it stops:</p><blockquote><em>Write and check a database migration for this project’s Postgres schema. Use when adding, renaming or removing a table, column, index or constraint, or when someone says “migration” or “schema change”. Not for writing queries or fixing slow ones.</em></blockquote><p>Three habits make descriptions trigger well:</p><ul><li><strong>Put the job and the trigger words first.</strong> Codex’s own guidance says so, because when descriptions get shortened, the end goes first.</li><li><strong>Say when not to use it.</strong> Two skills with overlapping descriptions will both look right, and the agent will pick one.</li><li><strong>Test it with real requests.</strong> Type five ways someone might ask for the job and check the skill loads for each; type two near-misses and check it does not.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bWOcMv0iP4HU30GEFmNjvQ.png" /></figure><h3>A worked example</h3><p>Here is a complete skill for a team on Postgres that writes migrations by hand. It is short on purpose: one job, steps in order, the checks spelled out, and the one exact step handed to a script.</p><pre>---<br>name: database-migration<br>description: Write and check a database migration for this project&#39;s Postgres schema. Use when adding, renaming or removing a table, column, index or constraint, or when someone says &quot;migration&quot; or &quot;schema change&quot;. Not for writing queries or fixing slow ones.<br>---<br><br># Database migration<br><br>Migrations live in `db/migrations/`, one file per change, named<br>`YYYYMMDDHHMM_short_description.sql`. Each file has an `-- up` section and a<br>`-- down` section. Production runs them in name order.<br><br>## Steps<br><br>1. Read the latest three migrations to match the house style.<br>2. Write the new file. The `down` section must undo the `up` section exactly.<br>3. If the change removes or renames a column, stop and ask: is anything still<br>   reading the old name? Search the code for it and show what you found.<br>4. If the change adds a column to a table with more than a million rows, add it<br>   as nullable first and backfill in a separate migration. Say why in a comment.<br>5. Run `scripts/check-migration.sh &lt;file&gt;`. It applies the migration to a scratch<br>   database, rolls it back, and applies it again. Do not continue if it fails.<br>6. Update `db/schema.sql` with the result and show the diff.<br><br>## Never<br><br>- Edit a migration that has already been merged. Write a new one.<br>- Put data changes and schema changes in the same file.<br><br>For the list of large tables, see `references/large-tables.md`.</pre><p>Notice what it does not contain. There is no explanation of what a migration is, which the agent already knows, and nothing about queries, which belongs to another skill or none. The judgement calls are written as questions the agent must stop and ask, because those are the steps an agent will otherwise answer on its own. The one step that has to be exact, applying and rolling back, is a script, so it does not depend on the agent following prose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YGsKVBGrcDCjUBP9j2_ozQ.png" /></figure><h3>Where skills fit with everything else</h3><p>Skills are one of several ways to shape what an agent does, and most trouble with them comes from using a skill for a job another piece does better.</p><ul><li><strong>The instructions file</strong> (CLAUDE.md, AGENTS.md) is read at the start of every session. It is the place for rules that are true all the time: the stack, the test command, what never to touch.</li><li><strong>Skills</strong> are read when a task matches. They are the place for procedures that apply some of the time.</li><li><strong>Hooks</strong> run code before or after the agent acts, whatever the agent intended. They are the place for anything that must happen, because a hook does not depend on the agent reading or agreeing.</li><li><strong>Subagents</strong> run a task in a separate context and hand back a result. They are the place for work that should not see, or be swayed by, everything the main session has seen, such as a review.</li><li><strong>Tools and MCP servers</strong> give the agent new things it can do: query a database, open a ticket.</li></ul><p>The line that matters most is between the second and third. A skill can say “run the tests”. Only a hook, or a check outside the agent, can make sure they ran.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BTW6lOiVlTVndPM7KSFOFg.png" /></figure><h3>The loop a skill lives in</h3><p>A skill is not finished when it is written. The ones that stay useful go round a short loop.</p><ol><li><strong>Notice the repeat.</strong> The third time you explain the same procedure to an agent, it is a skill.</li><li><strong>Write the smallest version</strong> that does the job: description first, then the steps.</li><li><strong>Test the trigger</strong> with real requests and near-misses.</li><li><strong>Use it on real work</strong> and watch where the agent goes wrong.</li><li><strong>Fix the cause in the skill</strong>, not in the conversation. A correction typed into one session teaches one session.</li><li><strong>Prune.</strong> Delete steps the agent gets right without being told.</li></ol><p>The fifth step is the one teams skip. A correction made in chat feels like progress and disappears when the session ends. The same correction written into the skill holds for everyone, next time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rQswUG_ZKVptwLjw4NHDGw.png" /></figure><h3>Six ways skills fail</h3><p><strong>It never loads.</strong> The description names a topic rather than a job, or uses words nobody types. The skill sits in the folder, correct and unused, and the agent improvises.</p><p><strong>It loads for the wrong job.</strong> The description is so broad that it matches requests it was never meant for, and the agent follows a migration procedure while fixing a query.</p><p><strong>Two skills fight.</strong> Two collections each ship a “code-review” skill, or two of your own overlap. Codex does not merge skills with the same name, so both appear. Claude Code lets one location override another. Either way, which one runs depends on details nobody is watching.</p><p><strong>It is too big.</strong> A 900-line skill is loaded whole the moment it triggers and stays in the session, crowding out the task. In Claude Code, a loaded skill’s content stays in context for the rest of the session, and only its first 5,000 tokens survive when the session is compacted.</p><p><strong>It goes stale.</strong> The skill says migrations live in db/migrations/; the team moved them six months ago. The agent follows the skill, because the skill is what it was given.</p><p><strong>It is advice, not a check.</strong> The skill says “run the tests before you finish”. The agent, deep in a long task, does not. Nothing notices. A skill is text the agent reads, and an agent under pressure skips text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b2bezlweFLbs0rCiwDxceA.png" /></figure><h3>How many skills, and how big</h3><p>A skill should do one job, and you should have as many as you have recurring jobs, not as many as you can find.</p><ul><li><strong>One job per skill.</strong> “Database migration” is a job. “Backend” is not. If the description needs the word “and” to cover two unrelated things, it is two skills.</li><li><strong>Write one when a procedure repeats</strong>, not in advance. A skill for a task you do once a quarter will be stale the next time you need it.</li><li><strong>Prefer short.</strong> Most good skills are under a hundred lines. Move long references into references/ so they load only when needed.</li><li><strong>Watch the total.</strong> Every installed skill costs a line at the start of every session. Thirty skills you never use make it harder for the agent to find the three you do.</li></ul><p>There is a harder sizing problem that skills do not solve, which comes up in the last two sections: a skill does the same thing every time it runs, whatever the size of the change in front of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z1ycUYMOGhWB8nZGPdDGgA.png" /></figure><h3>When a skill goes stale</h3><p>The codebase moves every week. A skill moves when someone remembers it. The gap between the two opens quietly, and an agent cannot see it: it follows the skill confidently, because following instructions is what it was asked to do.</p><p>Three habits keep the gap small:</p><ul><li><strong>Point at the code, do not copy it.</strong> “Match the style of the latest three migrations” stays true when the style changes. A pasted example does not.</li><li><strong>Change the skill in the same pull request</strong> as the change that makes it wrong. If the migrations folder moves, the skill’s path changes in the same commit.</li><li><strong>Read your skills when something goes wrong.</strong> When an agent does something odd and confident, check whether a skill told it to.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1cTHRrb54hUoq46G-9yxw.png" /></figure><h3>How to judge a skill</h3><p>Does the description name a job, not a topic?</p><p>It says what the skill does in the first few words</p><p>Does it include the words people actually type?</p><p>“migration”, “schema change”, not only “DDL”</p><p>Does it say when not to use it?</p><p>One line that rules out the nearest neighbour</p><p>Did you test it on real requests?</p><p>Five that should load it, two that should not</p><p>Does it do one job?</p><p>No “and” joining two unrelated tasks</p><p>Is it short?</p><p>Under a few hundred lines, references split out</p><p>Are the judgement calls written as stop-and-ask?</p><p>The agent is told where to stop, not just what to do</p><p>Is anything that must happen enforced outside the skill?</p><p>Tests, checks and approvals run by a hook or a reviewer</p><p>Does it point at the code rather than copy it?</p><p>Paths and examples that update when the code does</p><h3>What a skill cannot do on its own</h3><p>Skills are good at one thing: putting the right procedure in front of the agent at the right moment. Some of what teams hope skills will do sits outside that.</p><p><strong>A skill cannot decide what should be built.</strong> It can tell the agent how your team writes a migration. It cannot tell anyone whether this feature needs a migration, which tables it should touch, or what happens to existing rows. Those are decisions, and a skill holds procedures.</p><p><strong>A skill cannot make sure it was followed.</strong> It is text. Whether the agent read it all, skipped a step under pressure, or stopped where it was told to stop, the skill cannot see. That needs a check that runs whether or not the agent agrees, and someone, or something, that did not write the work to look at it.</p><p><strong>A skill gives the same ceremony to every change.</strong> A code review skill runs the same review on a one-word copy fix and on a change to how payments are stored. A folder of instructions cannot tell those apart, so it either does too much for the small change or too little for the risky one. This is the limit people hit after a few months, and it is structural: the skill is written once and then read the same way each time.</p><p><strong>A skill does not learn from anyone else.</strong> When one team finds that their migration skill missed a case, the fix lives in their repository. A team down the road with the same gap will find it the same way.</p><h3>How Halfcycle does it</h3><p>Halfcycle runs inside Claude Code or OpenAI Codex and installs as a small set of commands and skills in each, so you start it the way you start anything else in those tools. What it adds is the part skills cannot do alone.</p><p>The method is not stored in those files. It is served to the session one step at a time, and the step you get depends on the change in front of you. Each request is sorted first: a small change takes a short path, an ordinary feature gets <a href="https://halfcycle.ai/writing/spec-driven-development">a spec</a> and a review, and a change touching money, permissions or stored data gets the full treatment. You are told which path and why. That is the property a folder of skills cannot have, because the folder reads the same for every change.</p><p>Before any code, the open decisions are asked one at a time, each with a recommendation, and recorded where every agent in the project reads them. The plan is reviewed by an agent that did not write it. During the build, each piece is reviewed by an agent that did not build it, every edit is checked as it is made, and the agent asks you in plain words before a command that would delete work, wipe data, read credentials, publish or deploy. Those checks run whether or not the agent remembers them, which is the difference between advice and a check.</p><p>And it keeps getting better without you maintaining it. When a project implementation goes wrong, both the cause and the fix are kept, and both reach every other project automatically. So most of those problems never arrive on your project, and the ones that do arrive with the answer attached. What travels back is the shape of a problem, never your code or your documents, and we do not train on anyone’s work.</p><p>If you have built your own set of skills for planning and review, you will recognise the parts. The difference is that nobody on your team has to keep them current, and they size themselves to the work.</p><h3>The honest limits</h3><p>Halfcycle does not replace the skills that hold your team’s own knowledge. How you deploy, how your design system names things, which tables are large: those belong in your own skills and instructions, and they keep working alongside it.</p><p>It also needs a connection, because the method is served rather than stored in your repository. And skills themselves are young. The specification is about a year old, tools still differ on the optional fields, and a skill that behaves well in one agent can behave differently in another. Test yours in the tools your team actually uses.</p><h3>Sources</h3><p>Checked 12 November 2026.</p><ul><li><a href="https://agentskills.io/specification">Agent Skills specification</a>: format, field limits, progressive disclosure and size guidance.</li><li><a href="https://code.claude.com/docs/en/skills">Claude Code: skills</a>: skill locations, optional fields, the 1,536-character listing limit, how loaded skills stay in context and survive compaction.</li><li><a href="https://learn.chatgpt.com/docs/build-skills">OpenAI Codex: build skills</a>: skill locations, explicit and implicit activation, the opening-list budget, description guidance.</li></ul><p><strong>Getting started</strong></p><pre>npx halfcycle</pre><p>Run that in the folder you want to work in, then open it in Claude Code or OpenAI Codex and say what you are building. Needs Node 20 or newer. There is nothing to learn first, and it tells you what is next when it is next.</p><p><a href="https://halfcycle.ai/">halfcycle.ai</a></p><p><em>Originally published at </em><a href="https://halfcycle.ai/writing/agent-skills"><em>https://halfcycle.ai</em></a><em> on November 12, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88f6820da93f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Harness engineering for coding agents: what a working harness needs]]></title>
            <link>https://halfcycle.medium.com/harness-engineering-for-coding-agents-what-a-working-harness-needs-5ee08dbc2b25?source=rss-343c0761f586------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ee08dbc2b25</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Halfcycle]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 00:00:54 GMT</pubDate>
            <atom:updated>2026-11-03T16:33:15.452Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xFYm_O4rZoQV_yf8.png" /></figure><p>A coding agent is a model plus a harness. The model writes the code. The harness is everything around it: what the agent is told, what it is allowed to touch, what checks its work, what it remembers, and who decides it is finished.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-sanl8AxtqS3_ZY4JocAA.png" /></figure><p>Harness engineering is the practice of building that second part on purpose. The term caught on because teams kept noticing the same thing. Swap in a better model and the results improve a little. Change the harness and the results change a lot. On one public benchmark, the same model scored noticeably higher inside one harness than inside another, with nothing else different.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xc41E8yRfEJrKZTVbeDbNw.png" /></figure><p>So the question for a team is no longer which model to use. It is what surrounds the model, and who maintains it. This piece goes through what a working harness is made of, part by part, what each part needs from the others, and how to tell a working harness from a pile of plugins.</p><h3>The loop every harness runs</h3><p>Every coding agent, whatever it is called, runs the same loop. The harness assembles what the model sees. The model decides on one action: read a file, edit one, run a command, hand work to another agent. The harness carries the action out, or refuses it. The result goes back into what the model sees, and the loop goes round again until something decides the work is done.</p><p>That last part is where most of the engineering lives. A model will happily declare victory. The harness is what decides whether it gets to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f4FUkLznquXt0OTDWmL6Ww.png" /></figure><p>Look at the loop and the seven parts fall out of it. Something has to choose what goes into the model’s view each turn. Something has to say what the work is before the loop starts. Something has to sit between the model’s decision and the action, and something after it. Something has to read the finished work with fresh eyes. When more than one loop is running, something has to keep them apart. And something has to carry what was learned in one run of the loop into the next.</p><h3>The seven parts</h3><h3>1. Instructions sized to the step</h3><p>The agent needs to know what you are building and what step it is on. It does not need your whole wiki pasted into every session. Too little context and it guesses. Too much and the important line is buried under the unimportant ones, and models pay less attention to the middle of a long context than to its ends.</p><p>The usual failure is a single instruction file that grows a line every time something goes wrong, until it is thousands of words of rules the agent mostly skims. The fix is not a better file. It is serving the right slice at the right moment: the plan when planning, the feature’s spec and the rules it must keep when building, the checklist when reviewing. This part is what most people now call context engineering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CN5nGsuzRoub4Xo3O7Awhg.png" /></figure><h3>2. A written plan before any code</h3><p>What the product is for, how it is put together, what each feature must do, written down with acceptance criteria someone can check. This is spec-driven development. Without it the agent fills every gap with a plausible guess, and plausible guesses are expensive to find later, because the code around them looks finished.</p><p>A plan an agent can build from has layers. The product plan says what is in and what is out. The architecture says what the parts are, how they talk, and which rules hold everywhere. The phase plan says which features ship together and in what order. Only then does a feature get its spec. Skip the upper layers and every feature spec is sensible on its own and inconsistent with the next one, which is a very common way for an AI-built product to fall apart around its fourth feature. We went deeper on this in <a href="https://halfcycle.ai/writing/spec-driven-development">spec-driven development with AI coding agents</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t7HdJcwfpPN0b7m48UrM-g.png" /></figure><h3>3. Limits that act before the mistake</h3><p>Some actions should simply not happen: editing outside the agreed area, deleting work that was never saved, rewriting shared history, reading credentials, publishing. A rule in a prompt is a request. The model weighs it against everything else in its context and, most of the time, complies. A hook that refuses the action is a limit. It runs outside the model, so it does not depend on the model remembering.</p><p>The trade-off is false alarms. A limit that interrupts constantly gets switched off, and then it protects nothing. So a limit has to be tried against real traffic before it is trusted. When we replayed 68,843 real agent actions through Halfcycle’s limits, they stopped to ask the person 12 times. This is the part people mean by guardrails.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JV6GDPNVAE6bUjtse_1WGw.png" /></figure><h3>4. Checks that run on what was written</h3><p>Tests the agent did not get to mark as passing itself. Lints that were proven to work by breaking them on purpose once. Something that runs after each edit, not once at the end.</p><p>Two habits separate checks that work from checks that only look as if they do. First, a test has to fail before the code exists and pass after it. A test that has never failed has never been shown to test anything, and agents are very good at writing tests that pass against whatever they just built. Second, every check should be seen failing on purpose before it is trusted. A lint that quietly stopped matching anything months ago reads exactly like a lint that finds nothing wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F0RUpWWr2x_OCL0EAYJHOg.png" /></figure><h3>5. A reviewer who did not write the code</h3><p>The agent that wrote a change is the worst-placed reader of it, for the same reason a person is. It already believes the code does what it meant. A second agent with fresh context and no stake in the work finds things the first one walks past.</p><p>Two details decide whether review earns its cost. The reviewer needs something to review against, which is the spec; without one it reviews style. And each finding needs an outcome. A finding that is listed and never answered is noise. Each one should end up fixed, declined with a reason, or deferred on purpose, and the work should not count as done while one is open. When two rounds of review fail on the same task, the right move is usually not a third attempt but a fresh look at why: the spec was wrong, the order was wrong, or the task was too big.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*54AMxhS1OcYnD1yOgp2Wng.png" /></figure><h3>6. More than one agent, coordinated</h3><p>Larger work splits into tasks with dependencies between them. Some can run side by side, each in its own copy of the code so they do not collide. Something has to decide what runs next and put the pieces back together.</p><p>The rule that matters most is a boring one: two tasks that change the same file must not run at the same time, and the plan should say so before anyone starts. The second is that each worker reports in a fixed shape, what it changed, what it checked and what it did not, so the coordinator merges facts rather than summaries. Done badly, multi-agent orchestration produces the same mess faster, and in several places at once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JE14_NP_Yra7RZvHTM50cQ.png" /></figure><h3>7. Memory that outlasts the session</h3><p>What went wrong last time, and what fixed it. Without this, every session starts as a new hire on their first morning.</p><p>Memory has three reaches, and most setups stop at the first. Within a session, the context window is the memory, and it is gone when the session ends. Within a project, notes and a record of decisions carry over, so the agent does not re-argue what was settled last week. Across projects is the reach almost nobody has, and it is the one that compounds. We come back to it below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iSRFjZMtlxHKMcDckOto8A.png" /></figure><h3>Why one piece on its own does not hold</h3><p>Most writing on harness engineering covers one of these parts well. That is useful, and it is also where teams get stuck, because each part depends on the others.</p><p>A reviewer with no spec has nothing to review against, so it reviews style. Checks with no plan test whatever the agent decided the feature was. Limits with no plan block the obvious accidents and none of the expensive ones. Orchestration with no independent review multiplies whatever the first agent got wrong across every worker. Memory with nothing feeding it stays empty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FC8Yp2wO8ZYqbgOahic58w.png" /></figure><p>The pieces are a system. Put three of them in place and you get some of the benefit and most of the maintenance.</p><p>That maintenance is the part nobody budgets for. A harness is software. Its hooks need updating when the agent’s tools change. Its instructions drift as the project grows. Its checks need testing themselves, or one day they quietly stop checking. Teams that build their own usually find the harness has become a second product with no owner.</p><h3>One size fits nobody</h3><p>A harness that gives every change the same treatment fails in both directions. A full plan, spec and review cycle for a one-line copy fix is ceremony, and people stop following a process the week it wastes their time. A one-line note for a payments change is negligence.</p><p>So a working harness sizes the process to the change, from what the change touches rather than from how it was described. In Halfcycle that comes out as three paths. A small change runs in one session and is reviewed by an agent that did not make it. A change across parts that fits one short spec runs as a mini phase. Anything larger is a full phase, with its plan, its specs and a check of the whole at the end. The session says which path it chose and why, and a small change that turns out to cross parts is moved up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vGwHjklCwzAcSBVyAfQmww.png" /></figure><p>A folder of documents cannot do this, because it cannot tell a two-screen internal tool from a payments integration. It hands both the same ceremony.</p><h3>The part a homemade harness cannot do</h3><p>There is one more property, and a team cannot build it alone however good they are.</p><p>A harness built in-house learns from one team’s mistakes. When a project implementation goes wrong, the useful things to keep are the cause and the fix. Keep only the cause and you have a warning. Keep both and you have an answer.</p><p>If the harness is served instead of copied, both reach every other project automatically. From your side that gives two outcomes. Most problems of that kind never arrive on your project at all. The few that do arrive with the answer already attached, because someone else hit them first. And the list keeps growing, so a harness you copied last month is already behind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mS6xCEqmjsyjtMvq1UUHfw.png" /></figure><p>What travels back from a project is the shape of a problem, never the code or the documents. We do not train on anyone’s work.</p><h3>How to judge a harness</h3><p>Whether you build one or adopt one, these questions separate a working harness from a collection of parts. Ask them of anything you are considering, ours included.</p><ul><li><strong>Instructions.</strong> Does the agent get the slice it needs for this step, or the same long file every time?</li><li><strong>Plan.</strong> Is there a product plan and an architecture above the feature specs, and is the code checked against them?</li><li><strong>Limits.</strong> Are risky actions stopped by something outside the model, and how often does it interrupt for nothing?</li><li><strong>Checks.</strong> Has each test been seen failing before it passed? Has each lint been seen catching something?</li><li><strong>Review.</strong> Is the reviewer a different agent from the builder, and does each finding end with an outcome?</li><li><strong>Coordination.</strong> Can two tasks that change the same file run at once? What does a worker report when it finishes?</li><li><strong>Memory.</strong> Does a lesson from last week reach today’s session? Does a lesson from another project reach yours?</li><li><strong>Sizing.</strong> Does a one-line fix get the same process as a payments change?</li><li><strong>Upkeep.</strong> Who updates the harness when the agent’s tools change, and how do you know its checks still work?</li></ul><h3>What Halfcycle is</h3><p>Halfcycle is a harness that ships with all seven parts already working together. You run one command in your project, open it in Claude Code or OpenAI Codex, and say what you are building.</p><p>From there:</p><ul><li>Planning comes first. You are interviewed one decision at a time, then the product plan, the architecture and each feature’s spec are written, with acceptance criteria. A separate agent reviews the specs before any code exists.</li><li>The agent gets only what the current step needs, and is told what comes next, so nobody has to remember the order.</li><li>Risky actions are asked about in plain words before they happen, by hooks rather than polite instructions. Checks run after edits, and those checks were themselves tested by breaking them on purpose.</li><li>Tests have to fail before the code is written and pass after, and Halfcycle runs them itself.</li><li>Work is split into tasks with their dependencies. Up to eight builder and reviewer agents run at once, each in its own copy of the code, and two tasks that would change the same file are not run together.</li><li>Each task is reviewed twice by an agent that did not build it, first against what was asked and then for quality, and each finding is recorded with its outcome. At the end of a phase, an agent that built none of it checks each acceptance criterion in the plan, and another walks the delivered product before the phase can close.</li><li>The process is sized to the change: a small change, a mini phase or a full phase, and you are told which and why.</li><li>What went wrong and what fixed it is remembered across sessions and, through the method Halfcycle serves, across projects.</li><li>A console on the web and your phone shows the progress, the phases, the system design and every agent at work.</li></ul><p>The result is less rework and less time spent steering. You describe what you want, answer the questions that are genuinely yours to answer, and the rest of the team around your coding agent is already there.</p><h3>Where it is not the right choice</h3><p>Some honest limits, since you will find them anyway.</p><p>Halfcycle needs a connection, because the method is served and not stored in your repository. If you need to work fully offline, it is not for you today. It works with two coding agents, Claude Code and OpenAI Codex; OpenCode support is coming. You cannot yet plug your own hooks or presets into it. And if your work is one small script, a good set of instructions in a single file is probably all the harness you need.</p><p>For anything bigger, the question is not whether you need a harness. You do. It is whether you want to build and maintain one, or start with one that is already working and keeps getting better.</p><p><strong>Getting started</strong></p><pre>npx halfcycle</pre><p>Run that in the folder you want to work in, then open it in Claude Code or OpenAI Codex and say what you are building. Needs Node 20 or newer. There is nothing to learn first, and it tells you what is next when it is next.</p><p><a href="https://halfcycle.ai/">halfcycle.ai</a></p><p><em>This guide was first published on </em><a href="https://halfcycle.ai/writing/harness-engineering"><em>halfcycle.ai</em></a><em>, where it is kept up to date.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ee08dbc2b25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spec-driven development with AI coding agents: what a spec has to do]]></title>
            <link>https://halfcycle.medium.com/spec-driven-development-with-ai-coding-agents-what-a-spec-has-to-do-4e9080f35100?source=rss-343c0761f586------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e9080f35100</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Halfcycle]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 00:00:07 GMT</pubDate>
            <atom:updated>2026-11-03T17:54:29.793Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F34vee9IBCxxhZBB.png" /></figure><p>Ask a coding agent for a feature in one sentence and you get a feature. It will be plausible, it will run, and it will contain a dozen decisions nobody made. Which users can see it. What happens when the list is empty. Whether the old endpoint still works. The agent did not skip those questions. It answered them, quietly, with guesses.</p><p>Spec-driven development is the practice of making those decisions before the code exists and writing them down where the agent, and whoever reviews its work, can see them. The spec becomes the thing the code is checked against, not a summary written after.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SCjSn8DLJmeMQg9oNHWSUQ.png" /></figure><h3>Why agents made this matter again</h3><p>Writing down what to build before building it is older than most of the tools we build with. Teams moved away from heavy specification for good reasons. Documents went stale, and a person who met a vague requirement would usually walk over and ask.</p><p>A coding agent rarely asks. Given a gap, it picks the most plausible answer and keeps going. It can build the wrong thing completely, with tests, in minutes, and the result looks finished. That last part is what makes it expensive, because nobody goes looking for a problem in work that looks done.</p><p>The cost of a wrong decision has always grown with how late it is found. Settled in the spec, it costs a sentence. Caught when someone reads the spec, a paragraph. Found in code review, a task built again. Found after release, it can mean moving real users’ data. Agents have not changed that curve. They have made it much easier to get a long way along it before anyone looks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zdUM8TAnDNTiDWo3pWe3OA.png" /></figure><h3>Three things people mean by it</h3><p>The phrase covers three different practices, and a lot of argument about it comes from people meaning different ones.</p><p><strong>Spec first.</strong> A spec is written before the work, guides it, and is left behind once the feature ships. This is where most teams start, and it already removes most of the guessing.</p><p><strong>Spec kept.</strong> The spec stays with the feature and changes when the feature changes, so the next piece of work starts from an accurate description instead of from reading the code. It costs more effort, and it pays back more the longer the product lives.</p><p><strong>Spec as source.</strong> People edit the spec and the code is regenerated from it. It is an appealing idea and still rare in practice, because a spec precise enough to generate from is close to being code itself.</p><p>This piece is mostly about the first two. That is where the gains are today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dC11KbBFI-olD_A2c_NwEQ.png" /></figure><h3>What goes in a spec that earns its keep</h3><p>A useful spec is short and specific. It answers four questions, and each one has its own way of going wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*act2R_HYIAIqkdobV0rMXA.png" /></figure><h3>What is this for, and for whom?</h3><p>One or two sentences. If nobody can write them, the feature is not ready to build, and finding that out now is cheap. This is also the question most likely to show that two people wanted two different things, which is far better discovered here than in a demo.</p><h3>What must be true when it is done?</h3><p>These are the acceptance criteria, and they are the heart of it. Each one should be checkable by someone who did not write it: “an empty list shows the invite button”, not “handles empty states well”. If a criterion cannot fail, it is not doing any work.</p><p>A useful test: could someone who has never seen the code decide, in a minute, whether the criterion holds? If they would need to ask what it means, it needs another pass.</p><p>Criteria are also the cheapest place to write down the unhappy paths. The expired link, the second click on a submit button, the user without permission, the list with nothing in it. Agents are good at the path where everything works. The rest is where the guesses live.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4WeQjIcrcz7MajANpOKRKg.png" /></figure><h3>What does it touch, and what does it leave alone?</h3><p>The parts of the system this change owns, the parts it depends on, and the things that are explicitly out of scope. Agents are generous. Without a boundary they tidy, refactor and improve their way into code nobody asked them to touch.</p><p>The out-of-scope line is the most neglected one in most specs and the most useful one for an agent. “Bulk invites are out of scope” can save an afternoon of well-meant work that then has to be reviewed, tested and possibly removed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZpP6ltsk0LQlXVczpWhYrA.png" /></figure><h3>What rules hold across the whole product?</h3><p>Some things are true everywhere: every money amount is stored in minor units, every page needs a signed-in user, nothing is deleted without a record. These belong in one place, referred to by every spec, so they are not restated slightly differently twenty times.</p><p>Restated rules drift. One spec says pence, another says decimals, a third rounds to two places, and an agent reading any one of them builds something locally correct that disagrees with the feature next door.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_yvV6oeEXgMzsbck_KQOzw.png" /></figure><h3>What one looks like</h3><p>Here is a small feature written out. It fits on one screen, and it is enough for an agent to build from and for someone else to check.</p><pre>Feature: invite a teammate</pre><pre>For: workspace owners who want a colleague in the same workspace.</pre><pre>Done when:<br>1. An owner can enter an email address and send an invite.<br>2. The invitee gets one email with a link that works once, for seven days.<br>3. An expired or used link says &quot;ask for a new invite&quot;, not an error page.<br>4. A member who is not an owner does not see the invite button.<br>5. Inviting someone who is already a member says so and sends nothing.<br>6. An empty team list shows the invite button and one line explaining it.</pre><pre>Owns: the team page, the invites table, the email sender.<br>Depends on: sign-in, the existing email templates.<br>Out of scope: bulk invites, roles other than member, changing the owner.</pre><pre>Product rules that apply: every page needs a signed-in user;<br>nothing is deleted without a record.</pre><p>Notice what it leaves out. There are no file names, no function names and no instructions about how to write the code. Those are the agent’s job, and they are what the reviewer checks against the criteria. A spec that dictates the implementation goes stale the first time someone finds a better one.</p><h3>A spec sits inside a plan</h3><p>A feature spec answers “what does this feature do”. It cannot answer “should this feature exist” or “how does it fit with the other eleven”. Those questions live a level up.</p><p>So spec-driven development, done properly, has layers. A product plan says what the product is for and what is in and out. An architecture says what the parts are and how they talk. A phase plan says which features ship together and in what order. Then each feature gets its spec. Skip the upper layers and every feature spec is locally sensible and globally inconsistent, which is a very common way for an AI-built product to fall apart around its fourth feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lQ4C0EUlk88kf0bGYicG4Q.png" /></figure><h3>The loop around a spec</h3><p>A spec is a decision written down. It only changes the outcome if things happen to it before and after the build.</p><p>The decisions come first, one at a time, from the person who owns them. Then the spec is written, with its criteria and its boundary. Before any code, someone who did not write it reads it critically and asks “what happens when”. Tests are written from the criteria and run once against no code at all, so they are seen to fail; a test that has never failed has never been shown to test anything. Then the build. Then a review of the work against the spec, by someone who did not build it. Then a check of the whole phase against the plan, including anything that was quietly dropped along the way.</p><p>Whatever went wrong on the way round goes back into how the next spec is written. That last step is the one teams skip, and it is the reason their specs stop improving after the first month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3j5ryMpihD7l9idnRYbSBA.png" /></figure><h3>Four ways specs fail</h3><p>Most teams that try this and give up hit one of these.</p><p><strong>Nobody reads it critically before the build.</strong> The person who wrote the spec, or the agent that drafted it, is the worst reviewer of it. Gaps are invisible to their author. A second reader with fresh eyes, asking “what happens when”, finds the holes while they still cost a sentence to fix.</p><p><strong>Nothing checks the code against it afterwards.</strong> A spec with no check at the end is a wish. The acceptance criteria have to be run, ideally as tests written before the code, and the finished phase has to be compared with what the plan said it would deliver. Including the parts that were quietly dropped.</p><p><strong>The same weight for every change.</strong> A full spec for a copy fix is ceremony, and people stop following a process the week it wastes their time. A one-line spec for a payments change is negligence. The amount of planning has to fit the risk of the change, or the whole practice gets abandoned.</p><p><strong>It lives apart from the work.</strong> A spec in a wiki that the agent never sees is decoration. It has to be in front of the agent at the step where it matters, and in front of the reviewer when the work comes back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XN3Pw5TNGI6dk-mkRRQi6A.png" /></figure><h3>Sizing the spec to the change</h3><p>The third failure deserves more than a paragraph, because it is the one that kills the practice quietly.</p><p>The deciding question is not how big a change is. It is what the change touches. A copy fix touches nothing shared, so its spec is one sentence and the check is looking at it. An ordinary feature touches a few parts, so it gets a spec with criteria and a boundary, a review before the build and a review after. A change that touches money, permissions or stored data gets the layers above it, a review of the spec, tests first, the build, a review, and a check of the whole phase.</p><p>Size alone misleads in both directions. A one-line change to how refunds are rounded deserves more spec than a whole new settings page. And a “small” change that turns out to cross three parts of the system should move up a level the moment that becomes clear, not after it has been merged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rnShTFzidyY8w7pZw-10VQ.png" /></figure><h3>When the code and the spec disagree</h3><p>Sooner or later the build finds something the spec got wrong, or said nothing about. There are two honest responses. Change the spec and say why, or change the code to match the spec.</p><p>The third response is to leave both and move on, so the spec quietly stops describing the product. That is how specification documents earned their bad name, and it is avoidable. Updating the spec is part of finishing the task, not a chore for later, and the review of the work is the natural place to insist on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6fipldoZCDDnfFYWuBBnA.png" /></figure><h3>How to judge a spec</h3><p>A quick way to read any spec, yours or an agent’s, before it goes to the build.</p><ul><li><strong>Purpose.</strong> Good sign: Two sentences and a named user. Warning sign: “Improve the experience”.</li><li><strong>Criteria.</strong> Good sign: Each one could fail, and someone else can check it. Warning sign: “Works well”, “handles errors”.</li><li><strong>Unhappy paths.</strong> Good sign: Expired, duplicate and no-permission cases are written. Warning sign: Only the path where everything works.</li><li><strong>Boundary.</strong> Good sign: Owns, depends on and out of scope are all listed. Warning sign: Nothing is out of scope.</li><li><strong>Product rules.</strong> Good sign: Referred to by name. Warning sign: Restated, slightly differently.</li><li><strong>Implementation.</strong> Good sign: Left to the builder. Warning sign: File and function names dictated.</li><li><strong>Review.</strong> Good sign: Read by someone who did not write it. Warning sign: Approved by its author.</li><li><strong>After the build.</strong> Good sign: Criteria run as tests, the phase checked against the plan. Warning sign: “Looks done”.</li><li><strong>Weight.</strong> Good sign: Fits what the change touches. Warning sign: The same template for everything.</li></ul><h3>What a spec cannot do alone</h3><p>Notice that three of those four failures are not about the spec at all. They are about review, testing, sizing and context: the other practices around a coding agent. That is the pattern with every one of these practices. A spec is necessary, and on its own it is not enough. Pair it with an independent reviewer, tests that run against its criteria, and a check at the end, and it starts to pay for itself.</p><p>We wrote about that wider set of practices in <a href="https://halfcycle.ai/writing/harness-engineering">harness engineering for coding agents</a>. Spec-driven development is the part that decides what “correct” means. The rest is what holds the code to it.</p><h3>How Halfcycle does it</h3><p>Halfcycle runs spec-driven development inside Claude Code or OpenAI Codex, with the layers and the checks already joined up.</p><p>It starts above the feature. You are interviewed one decision at a time, and from your answers it writes the product plan, the architecture and the phases. Each feature then gets a spec with acceptance criteria and its boundaries, and the rules that hold across the product are written once and referred to.</p><p>Before any code, an agent that did not write the spec reviews it. During the build, tests are written from the criteria and must fail before the code exists and pass after. Each task is reviewed by an agent that did not build it. At the end of the phase the whole goal is checked against the plan, and the delivered product is walked through, so a criterion that was missed shows up as missed rather than as done.</p><p>The amount of all this depends on the change. Halfcycle decides how much process a change needs from what it touches, so a small fix takes a short path and a risky change gets the full treatment. You answer the questions that are genuinely yours, and you are told what comes next, so there is no order of steps to remember.</p><p>And it gets better at specs over time. When a project implementation goes wrong because a spec missed something, both the cause and the fix are kept and reach every other project automatically. So most of those gaps never open on your project, and the ones that do come with the answer attached. What travels is the shape of the gap, never your code or your documents, and we do not train on anyone’s work.</p><h3>The honest limits</h3><p>Halfcycle’s specs describe the change being built. It does not yet keep one always-current document of how the whole system behaves today; that picture lives in the plan, the architecture and the record of what each phase delivered. It also needs a connection, because the method is served rather than stored in your repository.</p><p>And if your change is genuinely small, the right spec may be one sentence. Halfcycle will tell you so. The point of spec-driven development was never paperwork. It is deciding on purpose, before the agent decides for you.</p><p><strong>Getting started</strong></p><pre>npx halfcycle</pre><p>Run that in the folder you want to work in, then open it in Claude Code or OpenAI Codex and say what you are building. Needs Node 20 or newer. There is nothing to learn first, and it tells you what is next when it is next.</p><p><a href="https://halfcycle.ai/">halfcycle.ai</a></p><p><em>Originally published at </em><a href="https://halfcycle.ai/writing/spec-driven-development"><em>https://halfcycle.ai</em></a><em> on November 3, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e9080f35100" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your coding framework only learns from you]]></title>
            <link>https://halfcycle.medium.com/your-coding-framework-only-learns-from-you-970823a3a15e?source=rss-343c0761f586------2</link>
            <guid isPermaLink="false">https://medium.com/p/970823a3a15e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Halfcycle]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 15:15:20 GMT</pubDate>
            <atom:updated>2026-11-02T15:15:20.855Z</atom:updated>
            <content:encoded><![CDATA[<p>We make Halfcycle. GSD Core is open source and we rate it highly; the full comparison, with every source, is linked at the end.</p><p>Put GSD Core and Halfcycle side by side and the build loop looks familiar. Both plan a project in phases. Both run agents in parallel, each with fresh context, on separate copies of the code. Both block risky actions before they happen. Both check the finished work against what the phase set out to do. GSD Core does it as an open framework on many coding agents, and it does it well.</p><p>The difference is memory.</p><p>GSD Core can keep learnings from your phases. The feature is off by default, and when you turn it on, what it learns stays on your machine. Your next project starts from what you learned. Nobody else’s.</p><p>Software breaks in a finite number of ways, but no one person sees most of them. The lesson that would have saved your payments integration was learned last month in a project you will never hear about.</p><p>Halfcycle is served rather than installed, so it can carry that lesson. When any project it runs on goes wrong in a new way, the cause and the fix reach yours automatically: most of those problems never arrive, and the ones that do arrive with the answer attached. What travels is the shape of the problem, never anyone’s code, and we do not train on your work.</p><p>Two smaller differences follow. Halfcycle decides how much process each change needs, rather than leaving you to choose a quick command. And it shows the build in a console rather than a status line.</p><p>If you want open, offline and on any agent, GSD Core is the right tool. Full comparison: https://halfcycle.ai/compare/halfcycle-vs-gsd</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=970823a3a15e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An AI team still needs someone to run it]]></title>
            <link>https://halfcycle.medium.com/an-ai-team-still-needs-someone-to-run-it-60748b8048f8?source=rss-343c0761f586------2</link>
            <guid isPermaLink="false">https://medium.com/p/60748b8048f8</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Halfcycle]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 15:14:20 GMT</pubDate>
            <atom:updated>2026-11-02T15:14:20.549Z</atom:updated>
            <content:encoded><![CDATA[<p>We make Halfcycle. BMAD is open source and we respect it; the full comparison, with every source, is linked at the end.</p><p>The BMAD Method had the right idea early: a coding agent working alone is missing the people around a good engineer. So it gives you those people as personas. An analyst writes the brief. A product manager writes the PRD. An architect writes the architecture. Stories follow, then a developer builds them, and several reviewers look at the result from different angles.</p><p>What it cannot give you is the person who runs the team. In BMAD that is you. You decide how much planning a change gets, you call each persona’s commands, and you follow progress in files and a status command. Building runs one session at a time unless you add a separate coordination layer.</p><p>Halfcycle does the same planning and reviews, and its team runs itself. It runs inside Claude Code or OpenAI Codex. Before a change starts, it looks at the parts of your system the change touches and picks the path: a small change, a mini phase or a full phase, telling you why. When the work needs it, it asks the open questions one at a time and writes the product spec, the architecture and a design for each part into your repository. Builders work in parallel, each task is reviewed twice by an agent that did not build it, and at the end of each phase another agent clicks through the live app.</p><p>You approve each change part by part in a console that shows the whole build. And the method learns from every project it runs on: when one goes wrong in a new way, the cause and the fix reach yours automatically.</p><p>If you like directing each role, or want open source, BMAD is a fine choice. Full comparison: https://halfcycle.ai/compare/halfcycle-vs-bmad</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60748b8048f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spec-driven development needs someone to write the first spec]]></title>
            <link>https://halfcycle.medium.com/spec-driven-development-needs-someone-to-write-the-first-spec-a9d3cf6a96f7?source=rss-343c0761f586------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9d3cf6a96f7</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Halfcycle]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 15:13:28 GMT</pubDate>
            <atom:updated>2026-11-02T15:13:28.273Z</atom:updated>
            <content:encoded><![CDATA[<p>We make Halfcycle. Spec Kit is open source and we think well of it; the full comparison, with every source, is linked at the end.</p><p>Spec Kit made spec-driven development concrete. Its commands walk a coding agent from a spec to a plan to a task list for each feature, check the documents against each other, and then build. It works with almost any coding agent, and it is a clean piece of work.</p><p>Look at where it starts, though. You set a project constitution of principles, then describe a feature. At the plan step, you supply the stack and the architecture. The most expensive decisions in the project, the ones that are hardest to undo, arrive as inputs.</p><p>That is fine if you already know them. Many people using coding agents do not, and the agent will happily fill the gap with defaults nobody chose.</p><p>Halfcycle starts a level higher. It runs inside Claude Code or OpenAI Codex as a software team made of AI agents, and before any feature it works out the product and the architecture with you, asking the questions an architect would, one at a time, with a recommended answer for each. The product spec, the architecture, the phases and a design for each component go into your repository. Then it sizes every change from the parts of the system it touches, so a typo fix and a payments integration do not get the same ceremony.</p><p>From there, builder agents work in parallel, each task is reviewed by an AI agent that did not build it, and at the end of each phase another clicks through the live app. The method learns from every project it runs on.</p><p>If you know your architecture and want a tidy, open path through each feature, Spec Kit is lighter. If you want the whole build, the full comparison is here: https://halfcycle.ai/compare/halfcycle-vs-spec-kit</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9d3cf6a96f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A skill file is the same on every project. Your projects are not]]></title>
            <link>https://halfcycle.medium.com/a-skill-file-is-the-same-on-every-project-your-projects-are-not-06e40a7b2957?source=rss-343c0761f586------2</link>
            <guid isPermaLink="false">https://medium.com/p/06e40a7b2957</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Halfcycle]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 15:12:09 GMT</pubDate>
            <atom:updated>2026-11-02T15:12:09.210Z</atom:updated>
            <content:encoded><![CDATA[<p>We make Halfcycle. Superpowers is open source and we admire it; the full comparison, with every source, is linked at the end.</p><p>Superpowers did something important for coding agents: it gave them a method. Brainstorm, write a design, build test-first, have a fresh reviewer check each task, prove it works before calling it done. Install it and your agent behaves more like a careful engineer. Halfcycle works on the same instincts and does all of those things too.</p><p>But a skill file has two limits that no amount of good writing fixes.</p><p>The first is that it stays the same. It knows what its author knew on the day it was written. When a project somewhere discovers a new way for software to break, the skill on your machine does not hear about it until someone writes a new version and you install it.</p><p>The second is that it gives the same instructions to every job. The agent can judge whether something is small, but the method it applies is the one in the file, for a two-screen internal tool and for a payments integration alike.</p><p>Halfcycle is served rather than installed, and that changes both. When any project goes wrong in a new way, the cause and the fix reach yours automatically, so most of those problems never arrive and the rest arrive with the answer attached. What travels is the shape of the problem, never your code, and we do not train on your work. And it sizes the process from the parts of your system a change touches, telling you why it chose a small change, a mini phase or a full phase.</p><p>It also shows the build: a console with the plan, the phases, every agent and what it is doing, and your approvals recorded.</p><p>If you want something open you can read and edit, or you work offline, Superpowers is the right tool. If you want a method that improves on its own, the full comparison is here: https://halfcycle.ai/compare/halfcycle-vs-superpowers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06e40a7b2957" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How much planning your app gets should not depend on what you pay]]></title>
            <link>https://halfcycle.medium.com/how-much-planning-your-app-gets-should-not-depend-on-what-you-pay-3ee16eac3b6c?source=rss-343c0761f586------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ee16eac3b6c</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[no-code]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Halfcycle]]></dc:creator>
            <pubDate>Sat, 31 Oct 2026 18:33:05 GMT</pubDate>
            <atom:updated>2026-10-31T18:33:05.771Z</atom:updated>
            <content:encoded><![CDATA[<p>We make Halfcycle, one of the two products below. The full comparison, with every source, is linked at the end.</p><p>Emergent’s newest builder does something good. Before it builds, it interviews you and writes a numbered, phased plan for you to approve. Its testing agent clicks through the app the way a person would. Both are the right ideas.</p><p>Both are on its top plan. Which means the amount of planning your app gets is decided by what you pay, not by what you are building.</p><p>How much process a change needs is a property of the change. A typo fix needs none. A new screen needs a little. A payments flow, or anything that decides who can see whose data, needs the questions asked before the code exists. Getting that wrong in either direction costs you: too much ceremony on small changes, too little on the ones that matter.</p><p>We built Halfcycle to make that call per change. It runs inside Claude Code as a software team made of AI agents. Before anything starts it looks at the parts of your system a change touches and picks the path: a small change, a short written plan, or the whole team. It tells you which and why. Whenever the work needs it, it asks its questions one at a time, writes the plan, the architecture and a design for each part into your repository, has a separate AI agent review each piece, and at the end of each phase has another click through the live app.</p><p>It can be quick when you want quick: ask for a prototype and it builds one the same day. The code is yours, built with what suits the project, live wherever you choose.</p><p>Full comparison, with Emergent’s sources: https://halfcycle.ai/compare/halfcycle-vs-emergent</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ee16eac3b6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The tool should fit the project, not the other way round]]></title>
            <link>https://halfcycle.medium.com/the-tool-should-fit-the-project-not-the-other-way-round-b6627de370a3?source=rss-343c0761f586------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6627de370a3</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Halfcycle]]></dc:creator>
            <pubDate>Sat, 31 Oct 2026 16:22:36 GMT</pubDate>
            <atom:updated>2026-10-31T16:22:36.686Z</atom:updated>
            <content:encoded><![CDATA[<p>We make Halfcycle, one of the two products below. The full comparison, with every source, is linked at the end.</p><p>Every AI app builder makes a choice for you before you type a word: what your app will be built with. v0, Vercel’s agent, is honest about it. Its docs name the set: Next.js, React, TypeScript, Tailwind CSS and shadcn/ui.</p><p>For a web interface, that is a very good set. v0 makes polished screens, lets you adjust them visually, syncs with GitHub and gives each branch a preview link. If what you are building is mostly what people see, it is a strong choice.</p><p>Most software that lasts is more than what people see. There is a part that takes payments, a part that sends emails on a schedule, a part that keeps records nobody may change. The right tools for those parts depend on the project, and choosing them is an architect’s job, done before anyone writes code.</p><p>We built Halfcycle to do that job. It runs inside Claude Code as a software team made of AI agents. It asks the questions an architect would ask, recommends tools that suit the project (our own run used Go and SQLite), and writes the architecture and a design for each part into your repository. Builder agents write the code, a separate AI agent reviews each piece before it is added, and at the end of each phase another clicks through the finished app.</p><p>It can be quick when you need quick: ask for a prototype and it builds one, with a database and hosting that take minutes to set up. It has no visual editor. It is for the whole project.</p><p>Full comparison, including where v0 is the better pick: https://halfcycle.ai/compare/halfcycle-vs-v0</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6627de370a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Checking for security at the end is not the same as building it in]]></title>
            <link>https://halfcycle.medium.com/checking-for-security-at-the-end-is-not-the-same-as-building-it-in-9b9a4656ad74?source=rss-343c0761f586------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b9a4656ad74</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[no-code]]></category>
            <dc:creator><![CDATA[Halfcycle]]></dc:creator>
            <pubDate>Sat, 31 Oct 2026 16:20:44 GMT</pubDate>
            <atom:updated>2026-10-31T16:20:44.935Z</atom:updated>
            <content:encoded><![CDATA[<p>We make Halfcycle, one of the two products below. The full comparison, with every source, is linked at the end.</p><p>Bolt does something many AI app builders do not: it checks your app for security problems when you publish, and offers an audit of the whole project on paid plans. That is worth credit.</p><p>A check at the end, though, finds problems after they are built. The cheaper moment is before. Who can sign in? Who can see whose data? What happens when a login is missing or a key is wrong? If those answers are not written down before the code, every part of the app answers them on its own, and a scan later tells you where they disagree.</p><p>We built Halfcycle to plan that in. It runs inside Claude Code as a software team made of AI agents. Before anything is built it asks the questions a product owner and an architect would ask, and the answers about who can see what are written down once, as part of the plan. Each piece is then reviewed against them by an AI agent that did not build it, before it is added. Keys are kept out of the code, a missing login or key stops the app rather than letting it run half-configured, and the final walk through the app happens properly signed in.</p><p>That is not a promise that nothing slips through. It is the difference between a rule written once and a scan hoping to find where the rule was forgotten.</p><p>Halfcycle can be quick too: ask for a quick prototype and it builds one the same day. And Bolt’s own docs say a project with a database or backend should stay on Bolt hosting, while Halfcycle leaves the code with you to put live where you choose.</p><p>Full comparison, including where Bolt is the better pick: https://halfcycle.ai/compare/halfcycle-vs-bolt</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b9a4656ad74" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>