# Agent Instructions Agentic Workflow — persistent AI development workflows with quality gates when you need them. This project uses **bd** (beads) for issue tracking. Run `bd onboard` to get started. For project context and architecture, see [docs/ai-context/](./docs/ai-context/). ## Project Overview A multi-agent orchestration framework for AI-augmented software development. Supports Claude Code, GitHub Copilot, Gemini CLI, and OpenCode from a single source of agent definitions. **Key components:** - `agents/` — Agent prompt sources (15 agents, compiled to 4 platforms via `scripts/build-agents.py`) - `mcp/agentic-workflow-server/` — MCP server (state, config, orchestration tools) - `config/workflow-config.yaml` — Default configuration (4-level cascade: global → project → task → CLI) - `.tasks/` — Per-task state persistence (survives session crashes and context compaction) ## Workflow Modes | Mode | Agents | When to use | Default models | |------|--------|-------------|----------------| | **standard** | developer → implementer → quality-guard → writer | Routine features, fixes, refactors | Sonnet | | **reviewed** | architect → developer → reviewer → implementer → quality-guard → writer | Non-trivial changes needing review | Opus (planning) + Sonnet (execution) | | **thorough** | architect → developer → reviewer → skeptic → implementer → quality-guard → feedback → writer | Security, migrations, breaking changes | Opus (planning) + Sonnet (execution) | Legacy aliases: `turbo`/`minimal` → standard, `fast` → reviewed, `full` → thorough. ## Development Setup ```bash # Install MCP server dependencies cd mcp/agentic-workflow-server && pip install -e . # Build agents for Claude Code python3 scripts/build-agents.py claude --output ~/.claude # Run tests cd mcp/agentic-workflow-server && python3 -m pytest tests/ -v ``` ## Quick Reference ```bash bd ready # Find available work bd show # View issue details bd update --status in_progress # Claim work bd close # Complete work bd sync # Sync with git ``` ## Landing the Plane (Session Completion) **When ending a work session**, you MUST complete ALL steps below. Work is NOT complete until `git push` succeeds. **MANDATORY WORKFLOW:** 1. **File issues for remaining work** - Create issues for anything that needs follow-up 2. **Run quality gates** (if code changed) - Tests, linters, builds 3. **Update issue status** - Close finished work, update in-progress items 4. **PUSH TO REMOTE** - This is MANDATORY: ```bash git pull --rebase bd sync git push git status # MUST show "up to date with origin" ``` 5. **Clean up** - Clear stashes, prune remote branches 6. **Verify** - All changes committed AND pushed 7. **Hand off** - Provide context for next session **CRITICAL RULES:** - Work is NOT complete until `git push` succeeds - NEVER stop before pushing - that leaves work stranded locally - NEVER say "ready to push when you are" - YOU must push - If push fails, resolve and retry until it succeeds