Evolving AI Coding Agent Workflows from Research-Plan-Implement to CRISPY

humanlayer · Tech · 2026 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: AI coding-agent workflow methodology

HumanLayer needed to improve its Research-Plan-Implement workflow because long monolithic prompts, unreadable plan files, magic words, and poor human-agent alignment produced inconsistent production coding-agent results.

Constraints:

Architecture

HumanLayer replaced RPI with CRISPY-style staged planning: questions, research, design, structure outline, plan, work tree, implement, and pull request. Instead of one 85+ instruction mega-prompt, the workflow uses smaller prompts under about 40 instructions, explicit control flow outside prompts, design discussions, structure outlines, vertical plans, and human alignment checkpoints before implementation.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  question-stage["Question stage"] --> research-stage["Research stage"]
  research-stage --> design-discussion["Design discussion"]
  design-discussion --> structure-outline["Structure outline"]
  structure-outline --> plan-stage["Plan stage"]
  plan-stage --> work-tree-stage["Work tree stage"]
  work-tree-stage --> implementation-stage["Implementation stage"]
  implementation-stage --> question-stage
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Question stage Surfaces missing information and open questions before research or planning. Research stage
Research stage Studies codebase and task context before design. Design discussion
Design discussion Short alignment artifact for humans and agents before detailed planning. Structure outline
Structure outline Compact interface-like outline of types, signatures, and intended changes. Plan stage
Plan stage Tactical implementation document built after alignment artifacts. Work tree stage
Work tree stage Execution workspace for implementation. Implementation stage
Implementation stage Writes code and proceeds to PR, code review, verification, and rework. Question stage

Data flow

A task starts with questions, then research, design discussion, structure outline, plan, work tree, implementation, and PR. Each stage narrows the next artifact, the human reviews shorter design/outline docs for alignment, control flow routes work between focused prompts, and deep review is saved for the generated code rather than enormous plans.

“before it was research, plan, implement, now it's questions, research, design, structure, plan, work tree, implement, PR.”transcript, stated
“we split up the planning into a design discussion, an outline, and a plan.”transcript, stated

Why this architecture

HumanLayer moved control flow out of prompts because models were overloaded by monolithic instructions. Shorter artifacts create alignment earlier, vertical planning provides testable checkpoints, and engineers keep ownership by reading code rather than trusting large generated plans.

“don't use prompts for control flow if you can use control flow for control flow.”transcript, stated
“Please, read the code.”transcript, implied

Models used: Claude Code · Claude Opus 4.5 · RPI prompts · CRISPY workflow · Focused prompt stages · Human code review

Scale

Alternatives considered (roads not taken)

Keep Research-Plan-Implement as a monolithic workflow.

Rejected because: The old prompt had too many instructions, depended on magic words, and produced plans people did not reliably read.

“A lot of people didn't though. Uh, we'll get into why that's a problem.”transcript, stated

Review long plan files deeply.

Rejected because: Long plans can be as much work as code and still diverge when implementation begins.

“you would go and you would review the plan and then you would go right to code and it would be different.”transcript, stated

Use prompts for control flow.

Rejected because: Classification and external control flow are more reliable than asking one prompt to branch across many actions.

“classify the input and then feed it to a series of smaller, more focused prompts”transcript, stated

Patterns

prompt-chaining (CRISPY workflow)

HumanLayer decomposes a large planning prompt into focused stages with fewer instructions and clearer handoffs.

“we split it across several prompts.”transcript, stated

human-in-the-loop-gate (alignment checkpoints)

Engineers review design discussions and structure outlines before code, then reserve deep review for actual code.

“human agent alignment is important, and knowing what the agent's going to do and correcting that is is good”transcript, stated

eval-driven-development (prompt/process validation)

HumanLayer tried prompting and evals against horizontal planning behavior, then adjusted workflow structure when prompts were insufficient.

“trying to prompt this out and eval the hell out of this, we cannot get models to stop writing horizontal plans.”transcript, stated

context-compaction (shorter artifacts)

Structure outlines compress plan review into shorter interface-like documents before full implementation.

“Plan eight pages, structure outline two-ish pages, much shorter.”transcript, stated

Tradeoffs

Read code instead of long plans.

Chose Deep review on generated code over Deep review of thousand-line plans.

Rationale: Plans can diverge from implementation, so the same review effort is better spent on code.

“They'd have to go read the code again and see what the surprises were and what changed.”transcript, stated

Split planning into design, outline, and plan.

Chose Short staged alignment artifacts over One giant planning artifact.

Rationale: Shorter docs let teammates re-steer before code exists and make later review lighter.

“these shorter docs are really, really good.”transcript, stated

Use vertical plans.

Chose End-to-end slices with checkpoints over Horizontal layer-by-layer plans.

Rationale: Vertical slices create checkpoints where the human or model can verify behavior before continuing.

“you have these like checkpoints where you can see if it's working and if it's not, you can pause and fix it”transcript, stated

Gotchas (what bit them)

Magic words hide workflow requirements.

Root cause: Users had to know to ask for open questions and outline before planning to get good behavior.

Resolution: Make questions and outlines explicit workflow stages.

“Okay, some of you found out about the magic words. A lot of people didn't though.”transcript, stated

Overloaded prompts reduce adherence.

Root cause: An 85-instruction planning prompt plus project files, system prompt, tools, and MCP exceeds reliable instruction following.

Resolution: Split into smaller prompts under about 40 instructions.

“Anything more than that and it's kind of half attending to all of them and you're rolling the dice.”transcript, stated

Horizontal plans delay feedback until too much code exists.

Root cause: The model plans database, services, API, and frontend in separate layers, leaving no working checkpoint.

Resolution: Use vertical plans with testable slices and pauses for fixes.

“before you know it, you're on the other side of 1,200 lines of code and it's not working.”transcript, stated

Evaluation

HumanLayer evaluates the workflow through prompt adherence, plan/code review burden, horizontal-plan failure behavior, human-agent alignment quality, code review/rework time, and production responsibility for generated code.

Metrics: Instruction count per prompt · Prompt adherence · Plan length · Structure outline length · Code review/rework time · Human alignment before code · Vertical checkpoint success

“if it's sensitive or if it's hard or if it's complex, I want to be able to catch it before it goes and writes all the code.”transcript, stated
“your code review and rework is also much shorter because you already know what's coming.”transcript, stated

Outcomes

The talk cites 10,000 prompt users, thousands of engineers, 150-200 reliable instructions, an 85-instruction old prompt, less-than-40-instruction new prompts, and thousand-line plans matching roughly thousand-line code changes.

“And before it was 85 instructions, now they're all less than 40”transcript, stated
“By decomposing monolithic 85+ instruction prompts into smaller focused stages (under 40 instructions each), implementing explicit human-agent alignment checkpoints through design discussions and structure outlines”summary, stated