1.1 KiB
1.1 KiB
OpenCode Agents for Mastra RAG Template
This repository defines task-focused agents to streamline planning, implementation, review, documentation, and testing.
Agents:
plan-project: Roadmaps, milestones, ADRs, risk registerplan-analyse: Repo survey, external research, dependency and risk mappingmastra: Implementation for ingestion, embeddings, LanceDB, retrieval, assembly, and agentsreview: Code review with targeted feedback and suggested diffsdocumentation: Doc updates for README, specs, exampleswrite-test: Unit/integration tests, mocks, deterministic practices
Usage:
# Start a session with an agent
opencode --agent plan-project
# One-off task
opencode run --agent mastra "Implement LanceDB schema and retrieval module"
Safety:
- Repo-level
permissions.jsonsets baseline rules; per-agentpermissionsapply tighter, task-specific restrictions.
Approval-first workflow:
- Each agent begins by proposing a short plan and asks for approval before proceeding.
- Per-agent
permissionsenforce tighter rules than repo defaults.