This guide explains how to use Aug's workflow commands in practice.
Front-load your thinking into planning. Let autonomous execution handle implementation.
Interactive time is expensive—it requires your attention. The goal is to capture your knowledge, requirements, and decisions during planning, then let Claude work autonomously through implementation. You review the output (PRs), not the process.
The complete flow from idea to merged code:
/plan-chat → /plan-breakdown → /plan-create → /work → review PR → merge
/plan-chat "Add JWT authentication with refresh tokens"This starts an interactive design session. Claude will:
- Ask clarifying questions — What's the token lifetime? Where are tokens stored? What triggers refresh?
- Explore your codebase — Find existing auth patterns, database models, API structure
- Propose approaches — Usually 2-3 options with tradeoffs
- Converge on a design — Architecture, data flow, error handling, testing strategy
Your job: Bring your domain knowledge. Answer questions. Make decisions. This is where you shape the implementation.
Output: Planning documents saved to /tmp/devplan/{epic-name}/:
architecture.md— High-level designdecisions.md— Key choices and rationaletesting.md— Test strategy
This is your synchronous time. Invest it here.
/plan-breakdownTakes the planning documents and breaks them into implementable tasks.
What makes a good task?
- Something a human developer could complete in a day or less
- Self-contained: can be implemented and tested independently
- Clear acceptance criteria
- All context needed for autonomous execution
Claude typically produces 3-8 tasks depending on epic complexity. Each task includes:
- Summary and scope
- Implementation steps
- Code examples where helpful
- Testing requirements
- Dependencies on other tasks
Output: Task specifications in /tmp/devplan/{epic-name}/tasks/
/plan-createCreates GitHub issues from the breakdown:
- Epic issue — Full architecture, links to all tasks
- Task issues — Complete specifications, labeled and linked
After this: GitHub becomes the source of truth. The /tmp/devplan/ artifacts can be deleted (or kept for reference).
Adaptation: This command is opinionated toward GitHub. You could modify it to create Jira tickets, Linear issues, or plain markdown files.
/work 123Autonomous execution of task issue #123:
- Branch creation —
epic/{epic-name}/task-{number} - Documentation update — Retcon-style (update docs before implementing)
- Implementation — In chunks, with tests for each chunk
- Quality gates —
just check-allafter each chunk - Self-healing — Auto-fix format/lint/type errors (max 3 attempts)
- PR creation — When all gates pass
No interaction needed. You review the PR when it's ready.
Properties:
- Idempotent — Safe to re-run if interrupted
- Incremental — Commits and pushes after each chunk (recoverable)
- Quality-gated — Must pass
just check-allbefore PR
/automate /plan-chat "Add caching layer"
/automate /plan-breakdown
/automate /refactor src/auth/Run any interactive command autonomously. When the command asks questions:
- A "user-standin" agent activates
- Reads CLAUDE.md hierarchy for project context
- Analyzes existing code patterns
- Checks configuration files
- Makes decisions based on evidence
Best for: Commands where project context provides clear answers.
Not ideal for: Commands requiring creative/strategic decisions or domain knowledge that isn't in the codebase.
/autocommit 123
/autocommit 123 124 125Full autonomous loop for one or more issues:
/work {issue}— Implement and create PR- Self-review — Check for obvious issues
- Merge — If review passes
Use case: Grinding through a backlog of well-specified tasks. Each task must be self-contained and well-defined.
Caution: Only use on tasks where autonomous merge is appropriate. Review-required tasks should use /work instead.
Workflows are YAML files that define command sequences:
name: epic-development
phases:
- name: design
command: /plan-chat
- name: breakdown
command: /plan-breakdown
- name: create
command: /plan-create
- name: execute
command: /work
repeat: for-each-task/workflow-run epic-development "Add user preferences"Executes each phase using /automate. The workflow tracks progress and can resume if interrupted.
/workflow-status epic-developmentShows current phase, completed phases, and next steps.
Claude's auto-compact loses context. Important details from earlier in a conversation may be summarized away or lost entirely.
/notetoselfSaves current session context to /tmp/notetoself-{hash}.md:
- What you're working on
- Key decisions made
- Current state
- Next steps
The hash is based on your working directory, so different projects get different files.
/futuremeReads the saved context and brings Claude up to speed. Often faster and more reliable than auto-compact.
When to use:
- Before switching to a different task
- Before a long break
- When context is getting long and you want a clean slate
- When auto-compact has clearly lost important context
Every project gets the same command interface:
just format # Format code
just lint # Lint code
just typecheck # Type checking
just test # Run tests
just coverage # Tests with coverage threshold
just check-all # All of the aboveConsistency across projects. Same commands whether Python, JavaScript, or Java.
Level 0: Baseline — Every project
/just-init pythonGenerates justfile with standard commands for your stack.
Level 1: Quality Gates — When shipping to users
/just-upgrade 1Adds: test-watch, integration-test, complexity
Level 2: Security — When handling sensitive data
/just-upgrade 2Adds: vulns, lic, sbom, doctor
Level 3: Advanced — When scale demands
/just-upgrade 3Adds: test-smart (git-aware testing), deploy, migrate
Level 4: Polyglot — Multiple languages
/just-upgrade 4Adds: cross-language orchestration
Always know where you are:
/just-assessOutput:
Level: 1 (Quality Gates)
Missing for Level 2: vulns, lic, sbom
Recommendation: Add Level 2 when you have production deployment
Don't upgrade until there's a real need. YAGNI applies.
A realistic example of using these workflows:
Morning: Planning session
/plan-chat "Add export to CSV feature"
# 20 minutes of interactive design discussion
/plan-breakdown
# Review task breakdown, approve
/plan-create
# Issues created: #45 (epic), #46-49 (tasks)Let it work:
/work 46
# Go get coffee, review PR when notification arrivesBatch processing:
/autocommit 47 48 49
# Three tasks, autonomous work + mergeContext switch:
/notetoself
# Saved, can resume laterNext day:
/futureme
# Context restored, continue where you left offPlan more than you think you need. The interactive planning phase is cheap compared to fixing autonomous execution that went wrong.
Keep tasks small. A task Claude can complete in 5-10 minutes is better than one that takes an hour. Smaller tasks mean faster feedback and easier recovery.
Trust but verify. Autonomous execution is good, but review PRs before merging anything significant.
Use /notetoself liberally. Context is precious. Save it often.
Assess before upgrading. The maturity model prevents over-engineering. Use /just-assess to know what you actually need.