The agents directory contains custom GitHub Copilot agents that provide a structured workflow for software development projects.
The custom agents implement a four-phase development methodology:
- Solution Architect - Understand and define the solution
- Task Planner - Create detailed implementation plans
- Implementer - Execute the plan and make code changes
- Cleaner - Review and ensure best practices
Each agent has specific responsibilities, tools, and automatically hands off to the next agent in the workflow.
Purpose: Apply Heidegger's hermeneutic circle to deeply understand and define solutions.
Tools: Read-only (search, fetch, usages, githubRepo)
Use when:
- Starting a new feature or task
- Need to understand requirements
- Exploring solution approaches
- Clarifying user needs
Behavior:
- Engages in iterative dialogue to understand the whole from the parts
- Asks clarifying questions
- Outputs complete solution in every response
- Stays in this mode until user acknowledges understanding
- Automatically hands off to Task Planner when ready
Example Usage:
@SolutionArchitect I need to add user authentication to the app
Purpose: Apply teleological planning to create detailed, actionable implementation plans.
Tools: Read-only (search, fetch, usages, githubRepo)
Use when:
- Solution is clear and you need a plan
- Want to break down work into steps
- Need to identify dependencies and risks
- Want to estimate complexity
Behavior:
- Creates comprehensive implementation plans
- Researches codebase for context
- Identifies affected files and components
- Outputs full plan in every response
- Does NOT make code changes
- Automatically hands off to Implementer when approved
Example Usage:
@TaskPlanner (or use handoff button from Solution Architect)
Purpose: Execute the approved plan and make code changes.
Tools: All tools (full editing capabilities)
Use when:
- Plan is approved and ready to implement
- Need to make code changes
- Ready to execute tasks
Behavior:
- Follows the approved plan precisely
- Makes incremental, logical changes
- Reports progress as work proceeds
- Tests changes when possible
- Makes actual code modifications
- Automatically hands off to Cleaner when complete
Example Usage:
@Implementer (or use handoff button from Task Planner)
Purpose: Review changes holistically and ensure they follow best practices.
Tools: All tools (read + edit to fix issues)
Use when:
- Implementation is complete
- Need code review
- Want to ensure quality and best practices
- Ready to verify production-readiness
Behavior:
- Comprehensive code review (quality, security, performance)
- Checks consistency and adherence to standards
- Fixes issues found during review
- Can make improvements and optimizations
- Automatically hands off back to Solution Architect when done
Example Usage:
@Cleaner (or use handoff button from Implementer)
The agents form a complete development cycle:
βββββββββββββββββββββββ
β Solution Architect β ββ
β (Understand) β β
βββββββββββββββββββββββ β
β β
βββββββββββββββββββββββ β
β Task Planner β β
β (Plan) β β Complete
βββββββββββββββββββββββ β Development
β β Cycle
βββββββββββββββββββββββ β
β Implementer β β
β (Build) β β
βββββββββββββββββββββββ β
β β
βββββββββββββββββββββββ β
β Cleaner β β
β (Review & Fix) β ββ
βββββββββββββββββββββββ
- Switch to
@SolutionArchitectand describe your task - Engage in dialogue until the solution is clear
- Click the "Create Implementation Plan" handoff button
- Review and refine the plan with
@TaskPlanner - Click the "Start Implementation" handoff button
- Let
@Implementerexecute the plan - Automatically transitions to
@Cleanerfor review - Cycle repeats for next task
You can also switch agents manually:
@SolutionArchitect how should we handle user sessions?
@TaskPlanner create a plan for implementing session management
@Implementer execute the session management plan
@Cleaner review the session management implementation
Each agent prints an explicit mode header at the start of responses:
# Mode: SOLUTION# Mode: PLAN# Mode: ACT# Mode: CLEAN
This makes it clear which agent is responding.
The agents reference custom instructions in .github/instructions/:
- memory-bank.md: System for maintaining project context
- seo-documentation.md: Best practices for documentation
All agents work with the Memory Bank system to maintain context:
- Solution Architect reads Memory Bank for context
- Task Planner updates activeContext.md with plans
- Implementer documents patterns discovered
- Cleaner verifies implementation matches documented patterns
See Memory Bank documentation for details.
Handoffs are configured with send: true, meaning they automatically submit when you click the button. This creates a seamless workflow where you:
- Work with one agent until its task is complete
- Click the handoff button
- Next agent automatically takes over with context
Use Solution Architect when:
- Requirements are unclear
- Multiple approaches possible
- Need to explore options
- Starting from scratch
Use Task Planner when:
- Solution is defined but needs structure
- Want to break down complex work
- Need to identify dependencies
- Want to estimate work
Use Implementer when:
- Plan is approved
- Ready to make changes
- Need to execute specific tasks
- Clear what to build
Use Cleaner when:
- Implementation complete
- Need quality check
- Want to ensure best practices
- Ready for production
- Don't skip phases: Each agent has a purpose
- Trust the handoffs: Let the workflow guide you
- Be explicit with Solution Architect: Clear requirements = better plans
- Review plans carefully: Catch issues before implementation
- Let Cleaner fix issues: It has editing capabilities
- Update Memory Bank: Keep context current
Ensure .agent.md files are in .github/agents/ directory.
Check that the target agent exists and handoff configuration is correct.
Verify the agent definition file has correct YAML frontmatter and instructions.
Use @AgentName syntax in chat to switch without handoffs.
These agents replace the previous Cursor rules system:
| Cursor Rule | Custom Agent | Status |
|---|---|---|
core.mdc (SOLUTION mode) |
solution-architect.agent.md |
β Converted |
core.mdc (PLAN mode) |
task-planner.agent.md |
β Converted |
core.mdc (ACT mode) |
implementer.agent.md |
β Converted |
core.mdc (CLEAN mode) |
cleaner.agent.md |
β Converted |
memory-bank.mdc |
../instructions/memory-bank.md |
β Converted |
seo-docs.mdc |
../instructions/seo-documentation.md |
β Converted |
cursor-rules.mdc |
(Dropped - VS Code handles precedence) | β Removed |
- VS Code Custom Agents Documentation
- GitHub Copilot Chat Documentation
- Custom Instructions Documentation
Last Updated: December 8, 2025
Version: 1.0.0
Migration from: Cursor rules (.cursor/rules/)