Module 1 · The Mental Shift

You're Not Coding the Same Way Anymore

The transition isn't leaving programming. It's moving from Code Writer to Code Director / Technical Overseer.

Traditional programming taught you how to physically write every line of code. Agentic software development requires an entirely different discipline: how to direct an autonomous agent to produce the correct result and prove that it is right.

PROGRAMMING EVOLUTION:
Books → Stack Overflow → Search Engines → ChatGPT → Copy/Paste Code → Copy/Paste Errors
→ AI-Assisted Coding → CLI & IDE Agents → AGENTIC WORKFLOW
        
Workgentic (Old Mindset) Agentic (Overseer Mindset)
I write the code line by line I direct the agent with explicit scope
I manually debug the code I provide debugging tools and logs
I memorize what changed I inspect the git diff and evidence
I manually run tests I require the agent to execute tests
I fix the errors myself I have the agent diagnose and repair
I am the implementer I am the technical director / overseer
Core Rule

Agentic doesn't mean "trust the AI." It means changing where your effort and cognitive energy go.

Pending Checkpoint 1: Starting Scorecard

Take one recent coding task. Document: (1) what you did, (2) what the AI did, (3) what you proved with evidence, and (4) what you blindly trusted.

Module 2 · Control Architecture

What Actually Changes?

Agentic programming does not mean writing fewer prompts. It means developing a different control loop.

The single biggest misconception is thinking agentic development is just "prompt engineering." A prompt is static text; a control loop is an active feedback circuit between objective, action, environment, and evidence.

THE OLD CONTROL LOOP:
Human ───► Code ───► Compiler/Interpreter ───► Result

THE AGENTIC CONTROL LOOP:
Human ───► Objective & Constraints
             │
             ▼
           Agent ◄───┐
             │       │ (Self-Correction & Diagnosis)
             ▼       │
       Code & Commands
             │       │
             ▼       │
        Environment  │
             │       │
             ▼       │
          Evidence ──┘
             │
             ▼
       Human Oversight & Approval
        
The New Competency

Your value is no longer measured by keystrokes per minute. Your value is measured by how quickly and reliably you can establish, tune, and govern this feedback loop.

Pending Checkpoint 2: Control Loop Audit

Identify the 6 stages of your local development harness: Objective definition, agent tools, execution environment, evidence capture, feedback loop, and final review.

Module 3 · Instruction Design

Prompting Becomes Delegation

Don't tell the agent what code syntax to write. Structure explicit operational delegation.

Every effective agentic task delegation must supply five distinct pillars:

  1. Objective: The specific business outcome to achieve.
  2. Scope: The explicit repository boundaries and target directories.
  3. Constraints: What existing systems or schemas must not be broken or altered.
  4. Proof Mechanism: Which test suite, linter, or health check must be executed.
  5. Evidence: The terminal logs, test report, or git diff that must be presented.
Vague Prompt (High Risk) Agentic Delegation (High Reliability)
"Fix the login page" "Update login page to support MFA. First inspect auth.py. Do not modify the users schema. Run pytest tests/test_auth.py. Report git diff and test pass summary."
"Add caching to the market data endpoint" "Add an in-memory TTL cache to get_quotes(). Constraints: Preserve database contract. Verify cache hits via unit tests and measure response latency before/after."
Pending Checkpoint 3: Delegation Template

Draft a 5-pillar delegation contract for an upcoming feature in your codebase, ensuring all constraints and proof requirements are enumerated.

Module 4 · Verification Architecture

The Trust Problem

How do you know the code is correct? Never because the LLM said so. You know because you have evidence.

Foundational Axiom: Trust ≠ Verification

An AI agent declaring "I have successfully implemented all requirements and tested the solution" is an unverified assertion, not evidence.

Valid evidence requires concrete, external artifacts produced by deterministic processes:

  • Automated test suites passed with exit code 0
  • Linter and static analysis checks clean
  • HTTP server healthy on localhost probe
  • Database queries showing expected mutated row states
  • DOM rendering checked via headless browser automation
  • Inspected, atomic git diffs free of unintended regressions
Pending Checkpoint 4: Evidence Standards

Establish an evidence checklist for your project: Unit tests, lint check, build exit code, and git diff review.

Module 5 · Observability

Give the Agent Eyes

An agent cannot debug what it cannot observe. Better observability produces higher agent autonomy.

When an agent fails, human developers often instinctively copy and paste errors into chat. This reduces the human to an error courier. Instead, equip the agent directly with observability tools:

Diagnostic Channel What the Agent Needs to See
Terminal & Commands Standard output, standard error, and process exit codes
Application Logs Structured log files with timestamps, severity levels, and error traces
Test Runner Output Assertion failures, stack traces, and test duration
Browser Console Headless DOM logs, network request errors, and console warnings
Source Control Diff Uncommitted working tree changes compared to HEAD
Pending Checkpoint 5: Tooling Audit

Confirm your agent configuration grants read access to execution terminal output, application logs directory, and git status.

Module 6 · Project Environment

Build the Environment Surrounding the Agent

The quality of your agentic workflow is constrained by the architecture of the project folder.

Don't just give an agent tools in an unstructured workspace. Build a standardized environment that facilitates automatic discovery and self-testing:

PROJECT/
├── source/         # Production application code
├── tests/          # Automated test suites (pytest, jest, vitest)
├── config/         # Environment parameters & safe defaults
├── logs/           # Dedicated directory for runtime output
├── database/       # Schema definitions & migration scripts
├── scripts/        # Reversible automation & build tools
├── documentation/  # Architecture notes, boundaries, and standards
└── diagnostics/    # Self-test scripts & health probes
        
Pending Checkpoint 6: Workspace Scaffolding

Verify that your repository cleanly separates code, tests, documentation, and logging artifacts with designated read/write boundaries.

Module 7 · Execution Lifecycle

The 10-Phase Agentic Development Loop

Master the complete lifecycle from initial requirement definition to final review approval.

1. DEFINE    ──► What business outcome is required?
2. INSPECT   ──► What files, systems, and tests already exist?
3. PLAN      ──► What exact changes does the agent intend to make?
4. EXECUTE   ──► Agent applies targeted file edits.
5. TEST      ──► Run automated unit and integration tests.
6. OBSERVE   ──► Examine terminal output, logs, and exit codes.
7. DIAGNOSE  ──► If a failure occurs, trace root cause before editing.
8. CORRECT   ──► Apply minimal surgical repair.
9. VALIDATE   ──► Rerun full regression test suite.
10. REVIEW   ──► Human inspects git diff and evidence report.
        

This 10-phase cycle forms the operational engine of every autonomous coding system in the BuildBotsBetter fleet.

Pending Checkpoint 7: Lifecycle Walkthrough

Walk a live development task through all 10 phases without skipping the Inspect or Plan steps.

Module 8 · Resilience & Recovery

When the Agent Crashes

What do you do when the agent breaks the build? Do not take over the keyboard. Follow the 8-step protocol.

Taking over and fixing the code by hand destroys the learning loop and returns you to the workgentic bottleneck. When an error occurs, guide the agent through this disciplined 8-step recovery:

  1. Step 1: Capture the failure — Save the exact stack trace, test error, and console output.
  2. Step 2: Provide the evidence — Feed the raw failure output directly to the agent.
  3. Step 3: Mandate diagnosis first — Require the agent to explain the error before modifying any code.
  4. Step 4: Identify root cause — Confirm the underlying bug rather than patching superficial symptoms.
  5. Step 5: Propose the repair — Have the agent outline the minimal diff needed.
  6. Step 6: Implement fix — Apply the corrective change to the codebase.
  7. Step 7: Reproduce and retest — Run the failing test to prove resolution.
  8. Step 8: Check regression suite — Run the entire project test suite to verify no collateral damage.
Pending Checkpoint 8: Non-Takeover Protocol

Simulate a failure in your project and execute all 8 recovery steps with zero manual code edits.

Module 9 · Self-Investigation

Stop Being the Human Stack Trace

Your job is not to manually shuttle information between terminal windows. Teach the agent self-investigation.

In the old workflow, a developer sees an error, copies the text, pastes it into a chat box, copies the AI response, and pastes it into the editor. This turns you into an expensive human message bus.

In an agentic workflow, you design scripts and harness configurations so the agent runs the command, observes the non-zero exit code, reads the log file directly, checks the git history to see what was recently edited, and formulates a hypothesis on its own.

Pending Checkpoint 9: Self-Investigation Harness

Configure a test runner script that outputs structured JSON or clear exit codes directly to the agent's working context.

Module 10 · Governance

Human-in-the-Loop Governance

Select the appropriate level of delegation: Assisted, Supervised, or Autonomous.

Tier Interaction Pattern Best Used For
Level 1: Assisted Human approves each command and micro-step Production database changes, credential handling, high-risk refactors
Level 2: Supervised Agent executes multi-step task, human reviews git diff before merge Feature development, bug fixes, test authoring
Level 3: Autonomous Agent operates inside a sandbox with strict bounds, reporting results Nightly test walks, documentation sync, automated dependency audits
Pending Checkpoint 10: Delegation Policy

Define which operations in your project require Level 1 human confirmation vs Level 2 pull-request review.

Module 11 · Role Definition

Your New Job Description

The modern programmer's role has elevated from syntax typist to Technical Overseer.

As an Agentic Developer, your responsibilities include:

  • Defining crisp, unambiguous system objectives
  • Setting architecture, security, and schema boundaries
  • Providing context, documentation, and debugging tools
  • Establishing automated verification and quality gates
  • Supervising multi-agent coordination and peer reviews
  • Auditing git diffs for correctness, readability, and performance
Pending Checkpoint 11: CTO Charter

Write a 1-page Technical Overseer Charter for your repositories detailing the code quality and verification standards agents must satisfy.

Module 12 · Hands-on Construction

Build Your First Agentic Workflow

Construct an automated verification harness, log infrastructure, and diagnostic pipeline.

To prepare for autonomous execution, create the standard four scaffolding components in your project:

  1. AGENTS.md / Instructions: Clear project overview, rules of engagement, and commands.
  2. Testing Harness: Fast automated test suite (e.g., pytest, jest, node --check).
  3. Logging Infrastructure: Central logs directory with timestamped execution records.
  4. CI/CD Gate: A single repeatable script (e.g. cicd.py) that verifies syntax, tests, and diffs.
Pending Checkpoint 12: CI/CD Pipeline

Confirm that your project possesses an automated CI script that executes clean exit code verification across all modules.

Capstone Project · Live Scenario

You Are the CTO Now

The Ultimate Test: Your agent has just broken the application. Fix it without writing the fix yourself.

The Challenge Scenario

An autonomous agent implemented a feature but introduced a critical regression into the calculation engine. The test suite is failing with exit code 1.

As the Technical Overseer, follow the full agentic supervision sequence:

  1. Inspect Evidence: Review the failing test trace and recent uncommitted diffs.
  2. Direct the Agent: Formulate an agentic delegation prompt providing the test failure trace and requiring root cause diagnosis.
  3. Review Diagnosis: Ensure the agent correctly identifies why the logic broke before allowing it to edit files.
  4. Oversee Repair: Let the agent apply the fix and rerun the test suite.
  5. Verify Evidence: Check that all tests pass, exit code is 0, and the git diff is minimal and safe.
Pending Capstone Completion: CTO Verification

Certify that you have successfully directed an agent through an end-to-end bug repair cycle using pure delegation and evidence verification.

Module 14 · Fleet Safety Standard

Build Bot Better & Fleet Guardrails

True Agentic Supervision: Balancing autonomous initiative with catastrophic wipe resistance. Fleet rule #31.

The Overseer's Ultimate Responsibility

Giving agents high autonomy without hard boundary guardrails is negligence, not delegation. The 2026-09-23 profile wipe proved that prompts alone do not stop accidents. A technical CTO enforces the full protection trio:

1. Per-Agent Onboarding Checklist

Run this six-line checklist for every agent before delegating tasks:

$check = Join-Path $env:TEMP "bbb-onboarding-checklist.txt"; @("agent:","rules file:","memory location:","permissions:","delete guard:","backup path:","final check:") | Set-Content -Encoding ascii $check; Get-Content $check; Write-Host "Fill every line for this agent. Rerun this checklist for the next agent."

2. Variable-Limit Delete Guard Demo

Prove why text guards miss variable-stored paths and why path-resolving PreToolUse hooks are mandatory:

$tmp = $env:USERPROFILE; $literal = $env:USERPROFILE; foreach ($src in @('$tmp','$env:GROK_HOME','python cleanup.py')) { if ($src -like "*$literal*") { "HIT $src" } else { "MISS $src" } }; if ([IO.Path]::GetFullPath($tmp) -eq [IO.Path]::GetFullPath($env:USERPROFILE)) { "REFUSE resolved tmp: it is the user profile. Text guards miss dollar-variables and python cleanup.py. 2026-09-23 Remove-Item of user profile is the example." }

3. Off-Volume Profile & Fleet Backups

Back up all agent configuration roots (.agy, .claude, .codex, .grok) to D:\Backups\llm-profiles:

$dest = "D:\Backups\llm-profiles\$(Get-Date -Format yyyyMMdd-HHmm)"
New-Item -ItemType Directory -Force -Path $dest | Out-Null
foreach ($d in @(".agy", ".claude", ".codex", ".grok")) {
  if (Test-Path "$env:USERPROFILE\$d") {
    robocopy "$env:USERPROFILE\$d" "$dest\$d" /E /NFL /NDL /NJH /NJS
    Write-Host "Backed up $dest\$d"
  }
}
Get-ChildItem $dest

4. Practised Restore Drill

Verify backup recoverability with this non-destructive drill in your temp folder:

$drill = Join-Path $env:TEMP "bbb-restore-drill"; $src = Join-Path $drill "source"; $bak = Join-Path $drill "backup"; $back = Join-Path $drill "restored"; New-Item -ItemType Directory -Force -Path $src,$bak,$back | Out-Null; Set-Content -Encoding ascii -Path (Join-Path $src "proof.txt") -Value "bbb-restore-proof"; Copy-Item (Join-Path $src "proof.txt") (Join-Path $bak "proof.txt"); Remove-Item (Join-Path $src "proof.txt"); Copy-Item (Join-Path $bak "proof.txt") (Join-Path $back "proof.txt"); Get-Content (Join-Path $back "proof.txt"); Write-Host "Practised restore wrote proof into $back. Do not delete your user profile to test this."

5. Fail-Closed Workspace Policy

Autonomous agent work roots must always fail closed to designated project directories like C:\My Projects. Never delegate unattended tasks with blanket approvals in the user home directory.

Pending Checkpoint 14: Fleet Guardrails Certified

Paste terminal output from the restore drill or variable demo confirming protection: