AI Coding Agent
A tool where you describe what you want in plain English and an AI writes, runs, and debugs the code for you. Examples include Cursor, Claude Code, and GitHub Copilot.
Cursor
An AI-powered code editor based on VS Code. You type instructions in plain English and it writes code, runs CLI commands, and deploys resources directly in your project.
Claude Code
Anthropic’s command-line AI coding tool. You type instructions in your terminal and Claude writes and edits files directly. Supports a CLAUDE.md file for persistent project rules.
Orchestrator
The AI that plans, tracks progress, generates instructions, and maintains documentation. It is the brain of the workflow. In this system Claude plays the orchestrator role.
Executor
The AI that writes code, runs commands, and deploys resources. It is the hands of the workflow. It has no memory between sessions and relies entirely on instructions given to it each time. In this system Cursor plays the executor role.
Operator
The human in the middle who copies instructions from the orchestrator to the executor and pastes results back. Makes architectural decisions, reviews changes, and manages communication.
Orchestrator-Executor Pattern
A two-AI workflow where one AI plans and tracks (orchestrator) and another AI builds and deploys (executor). The human operator bridges them by copying instructions and results back and forth.
Round-Trip
One complete cycle of the workflow: orchestrator generates instructions, operator pastes them into executor, executor runs them, operator pastes results back, orchestrator updates the playbook. Every unit of work follows this loop.
Playbook
A living markdown document that serves as the single source of truth for a project. Contains environment details, task queue, deployed inventory, architecture notes, and lessons learned. Updated after every round-trip.
Playbook Template
A blank standardized structure that the orchestrator fills in when a new project starts. Ensures every project has the same sections and nothing gets missed. Like an SOP template you reuse across projects.
Environment Reference
Section of the playbook that lists every AWS resource ID, ARN, region, account ID, table name, and endpoint needed for the project. Critical because the executor has no memory and cannot look these up on its own.
Current Queue
Section of the playbook that lists tasks in priority order. When the operator says next step the orchestrator reads this section, finds the first incomplete item, and generates instructions for it.
Queue Item
A single task in the current queue with a status, description, dependencies, and estimated round-trips. Statuses are Not Started, In Progress, or Complete.
Deployed Component Inventory
Section of the playbook tracking every resource that has been built, organized by project phase. Each component shows its type, status, and any relevant notes like resource IDs or error history.
Deployed Items by Path
Section of the playbook grouping all deployed resources by the feature or data path they belong to. Gives a quick visual of what exists for each logical piece of the system.
Architecture Notes
Section of the playbook describing how all components wire together. Often includes ASCII diagrams showing data flow, key design decisions, and integration points.
Cursor Instruction Set
A fully self-contained markdown document generated by the orchestrator and given to the executor. Contains everything the executor needs: overview, environment IDs, step-by-step commands, verification steps, and relevant lessons learned.
Self-Contained Instructions
Every instruction set must include ALL resource IDs, ARNs, account numbers, and context because the executor has zero memory between sessions. If it is not in the instructions the executor does not know it.
Verification Step
A required step at the end of every instruction set where the executor confirms its own work. Examples include running a test invocation, checking a deployment status, or verifying a resource exists.
Lessons Learned
A running list of mistakes and gotchas discovered during projects. Each entry documents what went wrong and the rule to prevent it next time. The most important concept in this workflow because it creates compounding improvement.
Lessons Learned Master Document
A file that accumulates lessons from ALL past projects. Split into two parts: Part 1 for architecture and design lessons (orchestrator only) and Part 2 for deployment lessons (sent to executor). Grows with every project.
Part 1: Architecture and Design Lessons
Strategic and design-level findings that inform the orchestrator’s planning decisions. Examples include latency comparisons between Bedrock patterns or voice vs chat attribute differences. Never sent to the executor.
Part 2: Cursor Deployment Lessons
Tactical deployment gotchas that prevent the executor from repeating known mistakes. Examples include Git Bash path issues, Lambda environment variable replacement behavior, or CloudFront cache invalidation requirements. Sent to executor in first instruction set.
First Instruction Set Rule
The very first instruction set sent to the executor in any new session must include the FULL Part 2 deployment lessons from the master document. This ensures the executor starts every project fully informed of all known gotchas.