Workflows¶
End-to-end workflows for agent-assisted development — from bootstrapping to team onboarding.
Learn it hands-on: Capstone — The Workflow Decision Table — guided lesson with quizzes.
Pages¶
- Agent Debugging — Diagnosing bad agent output
- Agent Commit Attribution: Signed Commits and Agent Identity — Configure agents to sign or annotate their commits with verifiable identity metadata so audit trails distinguish agent-generated changes from human-authored ones
- Agent-Driven Greenfield Product Development — Build a new product agent-first by defining roles, decomposing to context-safe tasks, and executing through autonomous agent loops
- Central Repo for Shared Agent Standards — Distribute shared agent skills, instruction files, and coding conventions from a central repository to downstream projects
- Enterprise Skill Marketplace: Distribution, Usage Reporting, and Quality Evals — Scale a shared skill library with MDM distribution, private plugin marketplaces, OTel usage telemetry, and a manual eval cadence for high-traffic skills
- Closed-Loop Agent Training from Tool Schemas — Generate synthetic training data from MCP tool definitions, fine-tune small models to match frontier performance, and re-train incrementally as schemas evolve
- Skill Library Refinement Loops — Four complementary feedback mechanisms that together keep a shared skill library accurate and useful
- Continuous Agent Improvement — Iterating on agent quality over time
- Continuous Documentation as an Agent-Driven Practice — AI agents detect documentation-code drift on schedule or push and open reviewable PRs to realign docs as a continuous pipeline
- Notebook-Documented Automation for Repeat Operational Work — The agent writes an executable notebook while it works, records the dead ends and the decision, and drops an index file the next run can find it by
- Accumulated Behavioral Rules from Review Feedback — Codify each accepted review comment as a persistent behavioral rule the agent loads and self-checks, so it stops repeating the same class of mistake
- The Error-Class Governance Loop for Instruction Libraries — Classify each recurrence as novelty or drift, move rules along a fixed pathway from prose to mechanized check to archive, and pair every metric with its inverse
- Escape Hatches — Unsticking stuck agents
- Daily-Use Skill Library: Encoding Your Process as Agent Skills — Build a small library of purpose-built skills that encode your engineering process from ideation through architecture
- SDLC-Phase Skill Taxonomy: Full-Lifecycle Skill Libraries — Organize a skill library around SDLC phases so phase-entry commands activate only the relevant skills at each stage
- Introspective Skill Generation — Mine agent patterns across sessions to generate new skills, agents, and hooks
- Eval-Driven Development: Write Evals Before Building Agent Features — Define evaluation tasks and success criteria before implementing agent features to make "done" objective and prevent requirement drift
- How Teams Build SE Agents: A Seven-Stage Build Loop — The seven-stage loop practitioners follow when building SE agents, and where engineering effort moves once implementation gets cheap
- Getting Started: Setting Up Your Instruction File — Create and iterate on your first CLAUDE.md, AGENTS.md, or copilot-instructions.md in under thirty minutes
- Google Search Console Monitoring Workflow — Automate GSC and Bing WMT verification, index coverage tracking, and weekly CWV + query reports via API
- LLM-as-Judge Evaluation with Human Spot-Checking — Combine automated LLM rubric scoring with targeted human review to evaluate multi-agent output at scale without sacrificing quality on edge cases
- Offline Evaluation as an Integration Test for LLM Features — Trigger a production-shaped offline eval suite on every prompt, model, input, or logic change, and gate the release on tiered criteria
- Oracle-Gated Delegation Beyond Your Domain Expertise — Delegate work you cannot personally review when a decisive, agent-independent, cheap check settles correctness — and what to do when one of those legs fails
- Porting a Coding-Agent Harness Beyond Engineering — Move the instruction and context layer of a CLI agent harness to an adjacent function, then rebuild the verification gate that build, test, and diff used to supply
- Continuous Autonomous Task Loop — Self-directed agent loop that selects, executes, commits, and iterates over a task backlog with fresh context per task and rate-limit handling
- Factory Over Assistant: Orchestrating Parallel Agent Fleets — Shift from watching one agent to orchestrating parallel agents with automated feedback loops — and the infrastructure required to make it viable
- The Software Factory Model: Industrializing Agent Loops — Harness many agent loops into a production line bounded by verification, and decide per loop where the lights stay on for human judgment
- Parallel Agent Sessions Shift the Bottleneck from Writing Code to Making Decisions — Running multiple simultaneous agent sessions transforms the engineer's role from contributor to tech lead
- Concurrent Agent Pull Requests and Merge-Conflict Cost — Co-active overlapping agent PRs are the norm; budget for the measured merge-conflict cost and climb a coordination ladder instead of blanket-serializing dispatch
- Stacked Agent Sessions on Unmerged Feature Branches — Found each agent session on the previous session's unmerged branch so a long modernization lands as an ordered stack of dependent, reviewable pull requests
- QA Session to Issues Pipeline — Multi-stage agent pipeline that transforms raw QA session documents into investigated, context-rich GitHub issues via codebase investigation
- Backlog Triage as a Named Agent Skill — A single skill encodes a state machine into issue labels and produces a durable agent brief as the executor hand-off contract
- Labels as Locks: Pipelined Backlog Processing with Issue Labels as Stage Gates — Coordinate concurrent agents on a backlog by gating stages with labels and locking work with a claim label plus timestamped comment as a lease — for idempotent, minutes-scale work
- Auto-Triage Workflow: Bug-Monitoring Agent that Connects Related Reports and Opens Fix PRs — Four-stage agent workflow (monitor, correlate, investigate, propose-fix) that watches alert streams and either tags the right owner or opens a fix PR — only safe under three named preconditions
- Delegating Dependabot Pull Request Triage to an Agent — A scheduled agent groups open dependency PRs by risk and reads CI, with the decision boundary enforced by the automation's tool grant rather than an approval prompt
- Throwaway-Prototype Skill: Build to Discard, Keep Only the Answer — A scoped skill that builds the smallest end-to-end thing to resolve one design question, forbids polish, and captures only the verdict before the code is deleted
- PostToolUse Hooks: Automatic Formatting and Linting After Every File Edit — Configure a PostToolUse hook so that formatting and linting run automatically after every file Claude writes or edits
- Repository Bootstrap Checklist — Adding agent support to an existing repo
- Dev Containers for AI Coding Agents: Claude Code vs Copilot CLI — Compare the two official devcontainer paths — Claude Code's reference container with an egress-allowlisting firewall versus Copilot CLI's install-only Feature plus Codespaces inclusion
- Experiential-Learning Setup Agents with Snapshot Rollback (SetupX) — Capture dual-modality fix records, trial them under Docker snapshot rollback, and verify with prosecutor-judge — when prebuilt environments are not an option
- Simulation and Replay Testing for Agent Workflows — Validate agent prompt changes by replaying a past task in isolation and diffing the result against what was actually merged
- Single-Branch Git for Agent Swarms — At 10+ parallel agents, feature branches cause merge conflicts and waste context on rebases; single-branch with advisory reservations and mechanical guards is the alternative
- Single-CLI Agent Platform: Create to Production in One CLI — Bundle scaffold, run, eval, deploy, and publish into one CLI when the team is on a single cloud and wants the agent itself to self-serve its own deploys
- Sparse-Checkout Worktrees for Monorepo Agent Isolation — Use worktree.sparsePaths to limit an agent's file-system view to one service subtree, reducing context noise and accidental blast radius in large monorepos
- Lazy Worktree Isolation: Enter the Worktree on First Write, Not on Dispatch — Background sessions start in the parent checkout and only relocate into an isolated git worktree on the first Edit or Write tool call
- Team Onboarding for Agent Workflows — Bringing a team up to speed on agent-assisted development
- The AI Development Maturity Model — Phases of AI coding tool adoption, from skeptic to agent-native workflows
- Plan Mode: Read-Only Exploration Before Implementation — Restrict agents to read-only operations to surface understanding and correct approach before any code is written
- The Research-Plan-Implement Pattern — Structure agent work in three explicit phases to avoid context-wasteful rework from premature coding
- Four-Phase Agent Delegation with Curated Artifacts — Four phases whose boundaries each replace the conversation with a curated artifact, widening agent authority only as the artifacts firm up
- Mise en Place for Agentic Coding — Three-phase preparation methodology (contextual grounding, collaborative specification, task decomposition) that front-loads alignment work before parallel agent fan-out
- The Plan-First Loop: Design Before Code — Summarize, correct, plan, and approve before the agent writes a single line of implementation code
- Late Requirement Arrival in Agent Sessions — A requirement arriving after the first edit is followed by about twice the deletion of prior agent code, and only the content half of the obvious fix has evidence behind it
- Cloud Planning with Inline-Comment Review and Execute-Anywhere Choice — Generate the plan in a cloud session, review it inline in the browser, then defer the cloud-versus-local execution choice to approval time
- The Velocity-Quality Asymmetry: Why AI Speed Gains Fade Without QA Investment — Empirical evidence shows AI coding tools produce transient velocity gains but persistent quality degradation — sustainable speed requires scaling QA as a first-class concern
- TDD Interaction Models: Throughput Versus Test Quality — Four ways to split the TDD cycle between human and agent, and why full autonomy trades verified specification coverage for raw development speed
- AI Slop as a Process Problem: Encoding Quality Standards as Pipeline Gates — Treat AI-generated slop the way CI/CD treats broken builds — a per-PR agent gate enforcing version-controlled standards, sized to agent throughput rather than reviewer attention
- Kaizen-Style Continuous Code Quality Loop (Pomona) — Pair a Scanning skill and a Repair skill to file small, single-purpose code-quality PRs a reviewer accepts quickly — for mechanical tasks under a per-day review cap
- Vibe Coding: Outcome-Oriented Agent-Assisted Development — Delegate implementation entirely to the agent and focus on evaluating outcomes for low-risk, throwaway work
- Agent Observability in Practice: OTel, Cost Tracking, and Trajectory Logging — Wire up OpenTelemetry on Claude Code and LangChain agents for cost dashboards, compliance audit trails, and trajectory debugging
- Prototype Before Optimizing: Establish Quality Baselines Before Token Constraints — Defer production efficiency constraints until after establishing quality baselines to avoid locking in suboptimal architectures
- Background-to-Foreground Handoff — Transfer work from a background agent to a human at the ~90% completion mark using distilled summaries and artifact-based handoff points
- In-Thread Side-Channel — Ask a mid-task clarifying question inside one session using a tagged sub-conversation that returns the agent to its prior goal
- Canary Rollout for Agent Policy Changes — Gate agent policy updates behind a traffic-split rollout so regressions surface on a small blast radius before full deployment
- Governing Production Agents: Cost, Control, Compliance — A tri-axis framework that designs cost budgets, runtime control, and compliance auditability as one enforced system applied to every model, tool, and agent call
- Agent-Driven Deployment: What to Delegate and What to Gate — Delegate the deploy pipeline up to the privileged action, then gate that action with a capability boundary the agent cannot reach rather than a human approval step
- Burn the Boats — Commitment-Forcing Deprecation — Remove a working feature entirely with a hard deadline to force full commitment to a new paradigm and stop anchoring to obsolete approaches
- The 7 Phases of AI-Assisted Feature Development — Feature-level workflow model with entry and exit criteria: Research, Prototype, PRD, Issues, Implement, QA, Ship
- Monolith-to-Sub-Agents Refactor — Five-step migration checklist for taking a brittle monolithic agent prototype to an orchestrated pipeline with schema-first outputs, dynamic RAG, tracing, and framework-native circuit breakers
- Chat-Platform Agent Delegation — Mention a cloud coding agent in a Slack or Microsoft Teams channel to delegate from where coordination already happens, with a concentrated lethal-trifecta posture that the IDE entry point hides
- Cursor Automations: Event-Triggered Agents and the /automate Skill — Cursor 3.8's expanded trigger surface (GitHub events, Slack emoji, default-on computer-use) and the /automate natural-language authoring skill ship event-driven dispatch only when the lethal trifecta is bounded per trigger
- Comment-Triggered Agent Dispatch on Issues and PRs — Fire an agent from a phrase in an issue or pull request thread, for bounded, reversible, cheap-to-verify work behind a narrow tool grant
- Delegating Delivery Stages to GitHub Agent Apps — Sort each delivery stage by where the agent's write lands, and hand over only the stages whose target system already enforces an approval boundary the agent inherits
- Public-Channel Agent Work as Lehrwerkstatt — Force agent conversations into public channels so the team learns from every transcript — a high-yield organizational practice with hard psychological-safety and data-scope preconditions
- Stakeholder Trust Through Evals and Observability — Three-artifact stakeholder review cycle — dashboards, custom trace views, ad-hoc query — that transfers eval and observability data to non-engineers when paired with narrated error analysis, plural headline metrics, and an in-workflow surface
- Parallel Polyglot Ports as a Spec-Ambiguity Oracle — Generate multiple AI-paired ports from one executable spec and treat divergence as a signal that the spec under-specifies behavior — not as a fault-tolerance vote
- Spec-Anchored Drift-Gated Architecture (Spec Growth Engine) — Make spec-code divergence a blocking merge gate and scope each agent's context to an ownership path in a machine-readable spec graph — only under stable contracts
- Staged Literal Porting with a Per-Stage Numeric Oracle — Split an LLM-assisted port into a numerics stage and a parallelism stage, forbid the assistant from improving the source, and gate each stage on output drawn from the prior version
- Building Custom Agents from Substrate to Production (Agents All the Way Down) — Framework-free methodology with two substrate preconditions and three iterative practices (prototype, harvest as CLI via the Turtle pattern, agent-tests-agent) for one-developer custom-agent builds
- Knowledge-Based Pull Requests for Cross-Trust-Boundary Contributions — Distil an external contribution into a confirmed knowledge package, then have a project-owned trusted agent regenerate the code in-house — for the high-context contributions where reconstructing intent from the diff is expensive
- Whole-Codebase Visibility as a Migration Prerequisite — Three-condition scoping check (codebase size, multi-repo or cross-VCS scope, discovery-bound shape) that decides whether a large-scale agent-driven migration needs whole-codebase visibility infrastructure or whether agentic search will do
- Legacy Code Archaeology: Reconstruct Intent Before Migrating — Use a coding agent to excavate an undocumented legacy system's intent — under adversarial forensic prompting and a runnable period-accurate baseline — before modernizing, for the comprehension-first case where no migration blueprint yet exists
- Behavioral Specification Elicitation Before Synthesis (SpecFirst) — Split from-scratch agent builds into a probing agent that emits a bounded behavioral spec and a synthesis agent that implements against it — only where an executable oracle exists
- Specification-First Convergence Without a Test Oracle — Freeze a specification audited against the source, generate against it, then audit the code back against the frozen document until two consecutive passes find nothing
- Bounding a Headless Codex Run Without a Turn Cap —
codex exechas no--max-turnsequivalent, so an unattended Codex run is bounded by its sandbox policy, the caller's wall clock, and a JSON Schema output contract - Per-Task Verification Budget: Size the Task to Fit the Check — Fix the human check on each agent task at 30 to 60 seconds and treat that number as an admission rule, so work too large to verify inside the budget leaves the daily batch for its own thread