The Agentic workflow system provides a structured approach to AI-assisted software development. It consists of specialized agents and commands that work together to help you research, plan, implement, and review code changes systematically.
Clone the repository and install dependencies:
git clone https://github.com/yourusername/agentic.git
cd agentic
bun install
bun link # Makes 'agentic' command available globallyNavigate to your project and pull the agents and commands:
cd ~/projects/my-app
agentic pullThis creates a .opencode directory in your project containing all the agents and commands.
Check the status of your agents and commands:
agentic statusThis shows which files are up-to-date, outdated, or missing.
The Agentic system follows a structured workflow for implementing features or fixing issues:
Create a ticket file in thoughts/tickets/ describing what needs to be done:
# thoughts/tickets/feature-123.md
## Feature: Add User Authentication
### Description
Implement OAuth-based user authentication with Google provider.
### Requirements
- Support Google OAuth 2.0
- Store user sessions
- Provide login/logout endpointsStart a new OpenCode session and use the research command:
/research thoughts/tickets/feature-123.md - analyze the authentication system and find all relevant code
This produces a research document in thoughts/research/ with findings about:
- Current implementation details
- Relevant files and components
- Architecture patterns to follow
- Integration points
Create an implementation plan using the plan command:
/plan thoughts/tickets/feature-123.md thoughts/research/2025-01-15_auth-research.md
This creates a detailed plan in thoughts/plans/ with:
- Phased implementation approach
- Specific file changes
- Success criteria
- Testing strategy
Execute the plan using the execute command:
/execute thoughts/plans/auth-implementation.md
The agent will:
- Implement each phase of the plan
- Run tests and verification
- Update progress checkmarks in the plan
Once implementation is complete, use the commit command:
/commit
The agent will:
- Review all changes
- Generate a meaningful commit message
- Create the git commit
Validate that the implementation matches the plan using the review command:
/review thoughts/plans/auth-implementation.md
This ensures:
- All planned changes were implemented
- No unintended drift occurred
- Success criteria are met
Each phase should typically start with a fresh OpenCode context window to maximize performance and quality. The agents use context compression to pass only essential information between phases.
The thoughts/ directory maintains project knowledge:
architecture/- System design and decisionstickets/- Work items and feature requestsresearch/- Analysis and findingsplans/- Implementation specificationsreviews/- Post-implementation validation
- Commands (research, plan, execute, etc.) are high-level workflows you invoke directly in OpenCode using slash notation (e.g.,
/research) - Agents are specialized sub-tasks that commands use internally for specific operations
When you run agentic pull, files from the command/ directory are copied to .opencode/command/ in your project. Each file becomes available as a slash command in OpenCode:
command/research.md→ Available as/researchcommand/plan.md→ Available as/plancommand/execute.md→ Available as/executecommand/commit.md→ Available as/commitcommand/review.md→ Available as/review
OpenCode automatically recognizes these files and makes them available as slash commands using the filename (without the .md extension).
-
Review Each Phase: Don't blindly accept agent output. Review research and plans before proceeding.
-
Start Fresh: Begin each major phase with a new context window for best results.
-
Be Specific: Provide clear, detailed tickets to get better research and plans.
-
Trust but Verify: The system helps maintain quality, but human review is essential.
-
Iterate: Use follow-up questions to refine research and plans before implementation.
- Learn about the Agentic CLI
- Understand workflow phases in detail
- Explore agents and commands
- Set up your thoughts directory