Agent Coding Workflows
Quick start
- •Detect invocation: user asks for a workflow or uses /flow, /workflow, /andrej, or /AndrejHide.
- •If /AndrejHide is used, pick the workflow automatically.
- •Classify the task: standard change, algo/perf, or urgent bugfix.
- •Run the matching workflow steps in order.
- •Pull in other skills as needed.
Workflow selection
- •Standard change: most feature or refactor tasks.
- •Algo/perf: algorithms, hotspots, or scaling work.
- •Urgent bugfix: regressions or production-impacting issues.
Auto mode
Use this when the user says /AndrejHide.
- •If the task mentions performance, scaling, optimization, latency, or complexity -> choose Algo/perf.
- •If the task mentions regression, outage, production bug, or urgent fix -> choose Urgent bugfix.
- •Otherwise -> choose Standard change.
- •If still ambiguous -> run
assumption-clarifierfirst, then decide.
Thresholds (tunable)
Default triggers for plan-lite and review. The user can override by stating new thresholds.
- •
Plan-lite required if any are true:
- •Estimated > 30 minutes, or
- •Touches > 3 files, or
- •Diff > 150 lines, or
- •Changes a production or critical path.
- •
Conceptual-reviewer required if any are true:
- •Any non-trivial task, or
- •Touches > 2 files, or
- •Ambiguous requirements, or
- •Risk of regression.
If the user provides overrides (e.g., "thresholds: files=5 lines=300"), use them for this task.
Preflight (from Andrej’s post)
Do this before any workflow if the task is non-trivial:
- •Convert the request into explicit success criteria or tests.
- •Surface assumptions and ambiguities early.
- •Keep a lightweight plan (3–5 steps) if risk is non-trivial.
- •Bias toward minimal diffs and simplicity.
- •Reserve a conceptual review pass for subtle errors.
Workflow A: Standard change
- •Use
assumption-clarifierto surface missing info. - •Use
plan-liteif the task is non-trivial. - •Use
minimal-diff-implementerfor the smallest safe change. - •Use
criteria-test-loopif tests exist or can be added. - •Use
conceptual-reviewerbefore handoff.
Workflow B: Algo or performance
- •Use
assumption-clarifierto lock requirements. - •Use
plan-litefor a short path to success. - •Use
criteria-test-loopto build naive-correct first. - •Optimize only after tests pass.
- •Use
conceptual-reviewerto validate correctness and tradeoffs.
Workflow C: Urgent bugfix
- •Use
assumption-clarifierfor a rapid repro and scope. - •Use
minimal-diff-implementerto keep the fix tight. - •Use
criteria-test-loopwith a focused test. - •Use
conceptual-reviewerfor regression risk.
Output format
- •Chosen workflow: name and reason.
- •Steps executed: short bullets.
- •Open questions: if any.
- •Next action: what happens next.
Guardrails
- •Do not invent a new workflow unless asked.
- •Do not skip
conceptual-revieweron medium+ changes. - •If information is missing, run
assumption-clarifierfirst. - •Prefer naive-correct first, then optimize.
- •Avoid extra abstraction and unrelated cleanup.