@devlitusp/opencode-agent 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,99 @@
1
+ # @devlitusp/opencode-agent
2
+
3
+ Multi-agent development team for [OpenCode CLI](https://opencode.ai). One command sets up a full team of AI agents in your project — orchestrator, investigator, planner, builder, QA, security, and docs writer.
4
+
5
+ ## Quick start
6
+
7
+ ```bash
8
+ pnpm dlx @devlitusp/opencode-agent init
9
+ ```
10
+
11
+ This single command:
12
+ 1. Adds `@devlitusp/opencode-agent` to your `devDependencies`
13
+ 2. Configures pnpm to allow the postinstall script
14
+ 3. Installs the package and runs the setup automatically
15
+
16
+ Then set your API key:
17
+
18
+ ```bash
19
+ export MINIMAX_API_KEY=your_key_here
20
+ ```
21
+
22
+ Open OpenCode in your project and use the **orchestrator** agent to start.
23
+
24
+ ## What gets created
25
+
26
+ ```
27
+ .opencode/agents/
28
+ orchestrator.md ← primary agent, coordinates the team
29
+ investigator.md ← analyzes codebase and requirements
30
+ planner.md ← creates implementation plans
31
+ builder.md ← writes the code
32
+ qa.md ← quality assurance and tests
33
+ security.md ← vulnerability scanning (OWASP Top 10)
34
+ docs-writer.md ← JSDoc, README, documentation
35
+
36
+ opencode.json ← MiniMax provider config + default_agent
37
+ ```
38
+
39
+ ## Agents
40
+
41
+ | Agent | Mode | Role |
42
+ |-------|------|------|
43
+ | `orchestrator` | primary | Coordinates the full dev workflow |
44
+ | `investigator` | subagent | Analyzes codebase, researches requirements |
45
+ | `planner` | subagent | Creates detailed implementation plans |
46
+ | `builder` | subagent | Implements code following the plan |
47
+ | `qa` | subagent | Reviews quality, writes tests |
48
+ | `security` | subagent | Scans for vulnerabilities (pre and post build) |
49
+ | `docs-writer` | subagent | Writes JSDoc, README sections, examples |
50
+
51
+ ## Development workflow
52
+
53
+ The orchestrator follows this sequence automatically:
54
+
55
+ ```
56
+ investigate → plan → security (pre) → build → QA → security (post) → docs
57
+ ```
58
+
59
+ ## Manual install (npm / yarn / bun)
60
+
61
+ ```bash
62
+ # npm
63
+ npm install --save-dev @devlitusp/opencode-agent
64
+
65
+ # yarn
66
+ yarn add --dev @devlitusp/opencode-agent
67
+
68
+ # bun
69
+ bun add --dev @devlitusp/opencode-agent
70
+ ```
71
+
72
+ Then run:
73
+
74
+ ```bash
75
+ opencode-agent inject
76
+ ```
77
+
78
+ ## CLI
79
+
80
+ ```bash
81
+ opencode-agent init # full project setup
82
+ opencode-agent inject # inject agents into opencode.json
83
+ opencode-agent inject -f # overwrite existing agent files
84
+ opencode-agent list # list available agents
85
+ ```
86
+
87
+ ## Provider
88
+
89
+ Uses [MiniMax](https://platform.minimax.io) with model `MiniMax-M2.7` via OpenAI-compatible API.
90
+
91
+ Set your API key before opening OpenCode:
92
+
93
+ ```bash
94
+ export MINIMAX_API_KEY=your_key_here
95
+ ```
96
+
97
+ ## License
98
+
99
+ MIT