update to agent,md
This commit is contained in:
parent
b4927fc1b0
commit
dd204b5a2b
1 changed files with 15 additions and 11 deletions
|
|
@ -1,24 +1,28 @@
|
||||||
# OpenCode Agents for Mastra RAG Template
|
|
||||||
|
|
||||||
This repository defines task-focused agents to streamline planning, implementation, review, documentation, and testing.
|
This repository defines task-focused agents to streamline planning, implementation, review, documentation, and testing.
|
||||||
|
|
||||||
Agents:
|
Agents:
|
||||||
|
|
||||||
- `plan-project`: Roadmaps, milestones, ADRs, risk register
|
- `general`: General-purpose agent for researching complex questions, searching for code, and executing multi-step tasks
|
||||||
- `plan-analyse`: Repo survey, external research, dependency and risk mapping
|
- `reviewer`: Code review, security, and quality assurance agent
|
||||||
- `mastra`: Implementation for ingestion, embeddings, LanceDB, retrieval, assembly, and agents
|
- `subagents/codebase-pattern-analyst`: TypeScript implementation agent for modular and functional development
|
||||||
- `review`: Code review with targeted feedback and suggested diffs
|
- `subagents/coder-agent`: Executes coding subtasks in sequence, ensuring completion as specified
|
||||||
- `documentation`: Doc updates for README, specs, examples
|
- `subagents/build-agent`: Type check and build validation agent
|
||||||
- `write-test`: Unit/integration tests, mocks, deterministic practices
|
- `subagents/tester`: Test authoring and TDD agent
|
||||||
|
- `subagents/documentation`: Documentation authoring agent
|
||||||
|
- `@task-manager`: Task planning and management agent
|
||||||
|
- `@tester`: Test execution and validation agent
|
||||||
|
- `@documentation`: Documentation generation and updates agent
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Start a session with an agent
|
# Launch a task with a specific agent
|
||||||
opencode --agent plan-project
|
task --description "Short task description" --prompt "Detailed task instructions" --subagent_type general
|
||||||
|
|
||||||
# One-off task
|
# Example for code review
|
||||||
opencode run --agent mastra "Implement LanceDB schema and retrieval module"
|
task --description "Review code" --prompt "Review the changes in pull request #123" --subagent_type reviewer
|
||||||
```
|
```
|
||||||
|
|
||||||
Safety:
|
Safety:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue