Skip to content

Agentic Engineering — Technical Field Manual

A consolidated quick reference for all course concepts, commands, and patterns.


1. Agent CLI Quick Reference

Claude Code

bash
claude --init                          # Project setup
claude --teammate-mode tmux            # Multi-agent teams (split panes)
claude -p "prompt" --print             # Headless execution
claude --allowedTools "Read Write"     # Constrain tool surface
claude --hooks .claude/hooks/          # Custom hooks directory

Pi Coding Agent

bash
pi -e extensions/damage-control.ts     # Security auditing
pi -e extensions/tilldone.ts           # Task discipline
pi -e extensions/coms.ts               # P2P agent communication
pi --mode rpc                          # Programmatic control (26+ commands)
pi -e extensions/agent-team.ts         # Dispatcher orchestration
pi -e extensions/agent-chain.ts        # Pipeline orchestration

OpenCode

bash
opencode run "task"                                 # Headless execution
opencode --model opencode-go/deepseek-v4-flash run   # Specific model
opencode --config ~/.grok/config.toml run             # Custom config

OpenClaw

bash
claw start --daemon                      # Always-on employee
claw do "task description"               # One-shot execution
claw schedule --cron "0 6 * * 1" --task  # Recurring task

Install Course

bash
# Windows
powershell -File install.ps1

# Linux/Mac
bash install.sh
bash install.sh security    # Single kit

2. The 6-Level Security Ladder

L0: ACIP (prompt injection defense)   — Costs nothing, blocks simple attacks
L1: safe-mode skill                   — Theatre (model can override)
L2: --append-system-prompt            — Theatre+ (model can still override)
L3: Bash blacklist hook               — Reactive (use as FLOOR)
L4: Bash whitelist hook               — Architectural (only N safelisted cmds)
L5: No bash, custom tools only        — Production-grade (bash doesn't exist)

Probability Math

python
P_failure = 1 - (1 - p)^N
# p=0.01 (1%), N=100: 63.4% chance of disaster
# p=0.001 (0.1%), N=100: 9.5%
# p=0.0001 (0.01%), N=1000: 9.5%

Damage Control — 3 Access Levels

yaml
zeroAccessPaths: [".env", "~/.ssh/", "*.pem"]     # Can't read/write
readOnlyPaths: ["package-lock.json", "node_modules/"]  # Can read only
noDeletePaths: [".git/", "Dockerfile"]             # Can modify, can't delete

3. Orchestration Patterns

PatternStructureBest ForTool
P-ThreadN agents parallel, pick bestCreative work, benchmarkingmprocs
F-ThreadN agents → Judge → WinnerCode gen, UI genagent-team
B-ThreadOrchestrator → Leads → WorkersProduction systemslead-agents
C-ThreadAgent → Checkpoint → HumanHigh-stakes worktilldone
L-ThreadLong-running hours+Background tasksOpenClaw daemon
Agent ChainStep1 → Step2 → Step3Plan→Build→Reviewagent-chain

YAML Pipeline Template

yaml
steps:
  - agent: planner
    prompt: "Create plan for: $INPUT"
  - agent: builder
    prompt: "Implement: $INPUT"
  - agent: reviewer
    prompt: "Review: $INPUT"

4. Key Formulas

Compute Advantage

CA = (Compute Scaling × Autonomy) ÷ (Time + Effort + Monetary Cost)

pass@k

pass@k = 1 - (1 - p)^k
# p=0.6 (60% single), k=3: 93.6%
# p=0.6, k=5: 98.9%

3x Cost Rule

Production cost = Prototype cost × 3.0
With retries = Prototype cost × 1.5

Cascade Routing Savings

Savings = 1 - (cascade_cost / single_model_cost)
# Typical: 66-80% savings

5. Model Pricing (per million tokens)

ModelInputOutputBest For
Gemini 2.5 Flash$0.15$0.60High-volume, simple
DeepSeek V3$0.27$1.10Structured tasks
Claude Sonnet 4$3.00$15.00General agentic
Claude Opus 4$15.00$75.00Complex planning
GPT-5$10.00$40.00Frontier reasoning

Cascade Routing Strategy

Simple retrieval → Gemini Flash ($0.15/$0.60)
Analysis → Claude Sonnet ($3/$15)
Critical decision → Claude Opus ($15/$75)
Formatting → Gemini Flash ($0.15/$0.60)

6. Verifier Confidence Ladder

LevelMeaningBar Color
PERFECTEvery claim verified, zero gapsGreen
VERIFIEDAll passed, minor non-blocking gapsGreen
PARTIALNo failures, significant unverifiable gapsOrange
FEEDBACKAt least one claim failed, correction sentOrange
FAILEDCannot verify, escalating to humanRed

7. Lab Index

LabModuleTopicFiles
L1M1First Agent (single-tool)starter.py, solution.py
L2aM2Multi-Tool Agentstarter.py, solution.py
L2bM2Context-Aware Agentstarter.py, solution.py
L3aM3Whitelist Hook (L4)starter.py, solution.py
L3bM3Verifier Agentstarter.py, solution.py
L4aM4Agent Chain (YAML)starter.yaml, solution.yaml
L4bM4Multi-Team Configstarter.yaml, solution.yaml
L5aM5Observability (SQLite)starter.py, solution.py
L5bM5CI/CD Pipelinestarter.py, solution.py
L6aM6Eval Harness (pass@k)starter.py, solution.py
L6bM6Cost Optimizationstarter.py, solution.py
L7aM7Autoresearch Loopstarter.py, solution.py
L7bM7Meta-Agentstarter.py, solution.py

Run offline: python -c "from mock_llm import MockAnthropic; print('Mock LLM ready')"


8. Capstone Options

ProjectDifficultyDescriptionReference
Brand MonitorIntermediateMulti-LLM brand scanningcapstone-reference/brand-monitor/
Code Review PipelineInt-AdvPlan→Build→Review→Verify chain
Strategic Decision BoardAdvanced8-agent CEO boardceo-agents/

9. Skill Kits (7 kits, 18 SKILL.md files)

KitPriceSkillsInstall
Security Foundation$49L3, L4, L5, damage-control, sandboxbash install.sh security
Multi-Agent Orchestration$49teams, chains, mental-model, domain-lockbash install.sh orchestration
Verifier Pro$39builder, confidence, decompositionbash install.sh verifier
Task Discipline$29tilldone core, progress, nudge, purposebash install.sh task
Autoresearch$39experiment loop, integrity, medianbash install.sh research
Observability$29tracer, cost, replay, loop-detectbash install.sh observability
CEO Board$4911 agents + verifier + trackerbash install.sh board
Enterprise$199All 7 kitsbash install.sh

10. The Universal Truth

Deterministic orchestrates non-deterministic. Code is the harness. AI is the engine. Together they're unstoppable.

CreatorTheir Version
Kelsey Hightower"Zero Token Architecture — don't waste tokens on deterministic work"
Mario Zechner"Write architecture by hand. Let agents do the boring stuff"
Daniel Miessler"Code Before Prompts. If bash can do it, don't use AI"
IndyDevDan"ADW — deterministic code orchestrates non-deterministic agents"
Anders Hejlsberg"Don't ask AI for the answer. Ask it to write a program"
Armin Ronacher"Pi's harness layer is worth maintaining carefully because it solves hard problems"

11. Quick Reference Card

AGENT LOOP:       Think → Act → Observe → Repeat
HARNESS:          Instructions + Tools + Environment + State + Verification
CONTROL:          Context + Model + Prompt + Tools
SECURITY:         L0(ACIP) → L1(skill) → L2(prompt) → L3(blacklist) → L4(whitelist) → L5(no-bash)
ORCHESTRATION:    Dispatcher | Pipeline | P2P | P-Thread | F-Thread | B-Thread
ECONOMICS:        CA = (CS × A) ÷ (T + E + MC)    3x rule    Cascade 66-80%
EVALS:            pass@k = 1 - (1-p)^k    Cost/task    Tool call accuracy
TRUST:            "Yes, because I've engineered it" — not blind faith

FDSA Agency — Agentic Engineering Course. Part of the fdsa.ai orchestration platform.