AI Agent Engineer
Best practices for engineering AI agents in the OpenX Basefly multi-model harness.
Core Principles
1. Model Selection
Match model capabilities to task requirements:
| Task Type |
Recommended Model |
Rationale |
| Orchestration |
opencode/kimi-k2.5-free |
Complex reasoning, coordination |
| Architecture/Debug |
opencode/glm-4.7-free |
Deep analysis, precision |
| Quick searches |
opencode/gpt-5-nano |
Speed, cost efficiency |
| Visual/UI |
opencode/minimax-m2.1-free |
Multimodal understanding |
2. Agent Configuration
When modifying .opencode/oh-my-opencode.json:
- Temperature: Lower (0.2-0.4) for precision tasks, higher (0.6-0.8) for creative tasks
- Categories: Use domain-specific categories for optimal model routing
- Skills: Enable only needed skills to minimize context bloat
3. Skill Development
Follow the skill-creator patterns:
- Keep SKILL.md under 500 lines
- Use progressive disclosure (references/, assets/)
- Clear frontmatter with name and description
- Imperative/infinitive form in instructions
Workflow
Making Improvements
- Read documentation - Check AGENTS.md, skills.md, and relevant SKILL.md files
- Check open PRs/issues - Avoid duplicate work
- Make small changes - Single, focused improvements
- Verify no regression - Run build, lint, test
- Create/update PR - Use appropriate labels
Branch Convention
- Branch name:
ai-agent-engineer
- Label:
ai-agent-engineer
- Keep up-to-date with default branch
- Use
/start-work to execute implementation plans
Planning Skills
When implementing improvements, use the planning skills for structured execution:
writing-plans - Create detailed implementation plans with task breakdowns
executing-plans - Execute plans with review checkpoints
These skills help maintain focus and verify completeness.
Available Agents
| Agent |
Model |
Use Case |
| Sisyphus |
opencode/kimi-k2.5-free |
Main orchestrator |
| Oracle |
opencode/glm-4.7-free |
Architecture, debugging |
| Librarian |
opencode/glm-4.7-free |
Documentation, research |
| Explore |
opencode/gpt-5-nano |
Fast exploration |
| Multimodal Looker |
opencode/minimax-m2.1-free |
Visual/UI tasks |
| Metis |
opencode/glm-4.7-free |
Pre-planning consultant |
| Momus |
opencode/glm-4.7-free |
Expert reviewer, plan evaluation |
Verification Checklist
Before submitting changes:
Common Patterns
Adding a New Skill
# Use the init script
scripts/init_skill.py <skill-name> --path .opencode/skills/
Updating Agent Configuration
- Edit
.opencode/oh-my-opencode.json
- Update
.opencode/skills.md if adding new skills
- Update
AGENTS.md if changing agent roles
- Test with actual agent interactions
Temperature Guidelines
| Temperature |
Use Case |
| 0.1-0.3 |
Factual, deterministic responses |
| 0.4-0.6 |
Balanced reasoning |
| 0.7-0.9 |
Creative, exploratory |
Troubleshooting
Common Issues
Model Not Responding Correctly
- Check temperature settings - Lower temperature (0.2-0.4) for precision tasks
- Verify model availability - Ensure the model ID is correct in
oh-my-opencode.json
- Test with simpler prompts - Isolate the issue with basic queries
Skill Not Loading
- Verify skill path - Check
skills.sources in oh-my-opencode.json
- Check skill enable list - Ensure skill is in
skills.enable array
- Validate SKILL.md format - Ensure proper YAML frontmatter
Context Window Issues
- Disable unused skills - Remove from
skills.enable array
- Disable unused MCP servers - Set
enabled: false in MCP configuration
- Use specialized agents - Delegate to
explore or librarian for focused tasks
Category Routing Issues
- Check category definitions - Verify category exists in
oh-my-opencode.json
- Verify model assignment - Each category should have a model and temperature
- Test category directly - Use
task(category="...", ...) to verify
Debugging Steps
- Check configuration file - Validate JSON syntax in
oh-my-opencode.json
- Review agent logs - Look for error messages in agent output
- Test in isolation - Create minimal test case to isolate issue
- Compare with working config - Diff against known working configuration
References
- model-capabilities.md - Detailed model capability matrices, agent-to-model mapping, and performance tips
- mcp-servers.md - MCP server configuration, available servers, and best practices
Source: cpa03/basefly — distributed by TomeVault.
1---2name: cpa03-basefly-ai-agent-engineer3description: AI Agent Engineer4---56# AI Agent Engineer78Best practices for engineering AI agents in the OpenX Basefly multi-model harness.910## Core Principles1112### 1. Model Selection1314Match model capabilities to task requirements:1516| Task Type | Recommended Model | Rationale |17| ------------------ | -------------------------- | ------------------------------- |18| Orchestration | opencode/kimi-k2.5-free | Complex reasoning, coordination |19| Architecture/Debug | opencode/glm-4.7-free | Deep analysis, precision |20| Quick searches | opencode/gpt-5-nano | Speed, cost efficiency |21| Visual/UI | opencode/minimax-m2.1-free | Multimodal understanding |2223### 2. Agent Configuration2425When modifying `.opencode/oh-my-opencode.json`:2627- **Temperature**: Lower (0.2-0.4) for precision tasks, higher (0.6-0.8) for creative tasks28- **Categories**: Use domain-specific categories for optimal model routing29- **Skills**: Enable only needed skills to minimize context bloat3031### 3. Skill Development3233Follow the skill-creator patterns:3435- Keep SKILL.md under 500 lines36- Use progressive disclosure (references/, assets/)37- Clear frontmatter with name and description38- Imperative/infinitive form in instructions3940## Workflow4142### Making Improvements43441. **Read documentation** - Check AGENTS.md, skills.md, and relevant SKILL.md files452. **Check open PRs/issues** - Avoid duplicate work463. **Make small changes** - Single, focused improvements474. **Verify no regression** - Run build, lint, test485. **Create/update PR** - Use appropriate labels4950### Branch Convention5152- Branch name: `ai-agent-engineer`53- Label: `ai-agent-engineer`54- Keep up-to-date with default branch55- Use `/start-work` to execute implementation plans5657### Planning Skills5859When implementing improvements, use the planning skills for structured execution:6061- **`writing-plans`** - Create detailed implementation plans with task breakdowns62- **`executing-plans`** - Execute plans with review checkpoints6364These skills help maintain focus and verify completeness.6566## Available Agents6768| Agent | Model | Use Case |69| ----------------- | -------------------------- | -------------------------------- |70| Sisyphus | opencode/kimi-k2.5-free | Main orchestrator |71| Oracle | opencode/glm-4.7-free | Architecture, debugging |72| Librarian | opencode/glm-4.7-free | Documentation, research |73| Explore | opencode/gpt-5-nano | Fast exploration |74| Multimodal Looker | opencode/minimax-m2.1-free | Visual/UI tasks |75| Metis | opencode/glm-4.7-free | Pre-planning consultant |76| Momus | opencode/glm-4.7-free | Expert reviewer, plan evaluation |7778## Verification Checklist7980Before submitting changes:8182- [ ] Build passes: `pnpm build`83- [ ] Lint passes: `pnpm lint`84- [ ] Tests pass: `pnpm test`85- [ ] No TypeScript errors: `pnpm typecheck`86- [ ] Branch is up-to-date with main87- [ ] PR has correct label8889## Common Patterns9091### Adding a New Skill9293```bash94# Use the init script95scripts/init_skill.py <skill-name> --path .opencode/skills/96```9798### Updating Agent Configuration991001. Edit `.opencode/oh-my-opencode.json`1012. Update `.opencode/skills.md` if adding new skills1023. Update `AGENTS.md` if changing agent roles1034. Test with actual agent interactions104105### Temperature Guidelines106107| Temperature | Use Case |108| ----------- | -------------------------------- |109| 0.1-0.3 | Factual, deterministic responses |110| 0.4-0.6 | Balanced reasoning |111| 0.7-0.9 | Creative, exploratory |112113## Troubleshooting114115### Common Issues116117#### Model Not Responding Correctly1181191. **Check temperature settings** - Lower temperature (0.2-0.4) for precision tasks1202. **Verify model availability** - Ensure the model ID is correct in `oh-my-opencode.json`1213. **Test with simpler prompts** - Isolate the issue with basic queries122123#### Skill Not Loading1241251. **Verify skill path** - Check `skills.sources` in `oh-my-opencode.json`1262. **Check skill enable list** - Ensure skill is in `skills.enable` array1273. **Validate SKILL.md format** - Ensure proper YAML frontmatter128129#### Context Window Issues1301311. **Disable unused skills** - Remove from `skills.enable` array1322. **Disable unused MCP servers** - Set `enabled: false` in MCP configuration1333. **Use specialized agents** - Delegate to `explore` or `librarian` for focused tasks134135#### Category Routing Issues1361371. **Check category definitions** - Verify category exists in `oh-my-opencode.json`1382. **Verify model assignment** - Each category should have a model and temperature1393. **Test category directly** - Use `task(category="...", ...)` to verify140141### Debugging Steps1421431. **Check configuration file** - Validate JSON syntax in `oh-my-opencode.json`1442. **Review agent logs** - Look for error messages in agent output1453. **Test in isolation** - Create minimal test case to isolate issue1464. **Compare with working config** - Diff against known working configuration147148## References149150- **[model-capabilities.md](./references/model-capabilities.md)** - Detailed model capability matrices, agent-to-model mapping, and performance tips151- **[mcp-servers.md](./references/mcp-servers.md)** - MCP server configuration, available servers, and best practices152153---154> Source: [cpa03/basefly](https://github.com/cpa03/basefly) — distributed by [TomeVault](https://tomevault.io).155<!-- tomevault:4.0:skill_md:2026-05-23 -->