opencode-athena 0.3.0 → 0.5.0

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 CHANGED
@@ -290,6 +290,50 @@ Custom model fields:
290
290
  - `contextWindow`: Context window size in tokens
291
291
  - `supportsTemperature`: Whether temperature can be adjusted
292
292
 
293
+ ### Git Operations Policy
294
+
295
+ By default, Athena prevents agents from automatically performing git operations (commits, pushes, branch creation). This ensures developers maintain full control over version control.
296
+
297
+ **Default behavior** (`autoGitOperations: false`):
298
+ - ✅ Agents can read git state (`git status`, `git diff`, `git log`)
299
+ - ❌ Agents cannot automatically commit, push, or create branches
300
+ - ⚠️ If an agent attempts a git write operation, a warning is injected
301
+ - 📝 Agents must ask for explicit user permission before git operations
302
+
303
+ **Enable automatic git operations:**
304
+
305
+ Set `features.autoGitOperations: true` in `athena.json`:
306
+
307
+ ```json
308
+ {
309
+ "features": {
310
+ "autoGitOperations": true
311
+ }
312
+ }
313
+ ```
314
+
315
+ Or during installation, check the "Auto Git Operations" feature.
316
+
317
+ **Covered operations:**
318
+ - **Git commits & pushes:** `git commit`, `git push`
319
+ - **Branch operations:** `git checkout -b`, `git branch`, `git switch -c`, `git switch --create`
320
+ - **Merging & rebasing:** `git merge`, `git rebase`, `git cherry-pick`
321
+ - **Stashing & tags:** `git stash`, `git tag`
322
+ - **Reset operations:** `git reset` (all variants: --soft, --mixed, --hard)
323
+ - **GitHub PR operations:** `gh pr create`, `gh pr edit`, `gh pr merge`, `gh pr close`, `gh pr review`
324
+ - **GitHub issue operations:** `gh issue create`, `gh issue edit`, `gh issue close`
325
+ - **GitHub release operations:** `gh release create`, `gh release edit`, `gh release delete`
326
+
327
+ **Why this is the default:**
328
+
329
+ Version control is critical. Automatic commits can:
330
+ - Create unclear commit messages
331
+ - Commit unintended changes
332
+ - Disrupt branch strategies
333
+ - Bypass code review processes
334
+
335
+ With `autoGitOperations: false`, agents track progress via `athena_update_status()` instead, which updates `sprint-status.yaml` without git operations.
336
+
293
337
  ## GitHub Copilot Support
294
338
 
295
339
  Athena supports GitHub Copilot as a model provider, allowing you to use Claude, GPT, and Gemini models through your Copilot subscription. This is especially useful for enterprise users who only have access to LLMs through Copilot.
@@ -4,6 +4,44 @@ description: Debug an issue using Oracle's deep reasoning capabilities
4
4
 
5
5
  # Athena Debug - Oracle-Powered Debugging
6
6
 
7
+ ## Git Operations Policy
8
+
9
+ **⚠️ AUTOMATIC GIT OPERATIONS ARE PROHIBITED**
10
+
11
+ You must NOT perform any git operations automatically:
12
+ - ❌ Do NOT run `git commit` to save changes
13
+ - ❌ Do NOT run `git push` to push to remote
14
+ - ❌ Do NOT run `git checkout -b` or `git branch` to create branches
15
+ - ❌ Do NOT run `git merge`, `git rebase`, or `git cherry-pick`
16
+ - ❌ Do NOT run `gh pr create` or other GitHub CLI operations
17
+
18
+ **Git operations are ONLY permitted if the user explicitly requests them.**
19
+
20
+ Examples of explicit permission:
21
+ - User says: "Please commit these fixes"
22
+ - User says: "Create a branch for this bugfix"
23
+ - User says: "Push to origin" or "Create a PR"
24
+
25
+ **If you believe git operations would be helpful, ASK the user first:**
26
+ ```
27
+ I've fixed the issue. Would you like me to:
28
+ 1. Commit the fix to git, or
29
+ 2. Leave git operations for you to handle manually?
30
+ ```
31
+
32
+ **To track story progress without git, use:**
33
+ ```
34
+ athena_update_status({
35
+ storyId: "X.Y",
36
+ status: "in_progress",
37
+ notes: "Fixed issue: [description]"
38
+ })
39
+ ```
40
+
41
+ This updates sprint-status.yaml without requiring git commits.
42
+
43
+ ---
44
+
7
45
  Use Oracle, the debugging specialist, to analyze and fix complex issues with systematic hypothesis-driven debugging.
8
46
 
9
47
  **You are Sisyphus, the orchestrator.** You will coordinate Oracle's deep reasoning with automated tools to efficiently diagnose and fix issues.
@@ -4,6 +4,44 @@ description: Implement the current BMAD story using Sisyphus and specialized sub
4
4
 
5
5
  # Athena Dev - Story Implementation
6
6
 
7
+ ## Git Operations Policy
8
+
9
+ **⚠️ AUTOMATIC GIT OPERATIONS ARE PROHIBITED**
10
+
11
+ You must NOT perform any git operations automatically:
12
+ - ❌ Do NOT run `git commit` to save changes
13
+ - ❌ Do NOT run `git push` to push to remote
14
+ - ❌ Do NOT run `git checkout -b` or `git branch` to create branches
15
+ - ❌ Do NOT run `git merge`, `git rebase`, or `git cherry-pick`
16
+ - ❌ Do NOT run `gh pr create` or other GitHub CLI operations
17
+
18
+ **Git operations are ONLY permitted if the user explicitly requests them.**
19
+
20
+ Examples of explicit permission:
21
+ - User says: "Please commit these changes"
22
+ - User says: "Create a branch called feature-x"
23
+ - User says: "Push to origin" or "Create a PR"
24
+
25
+ **If you believe git operations would be helpful, ASK the user first:**
26
+ ```
27
+ I've completed the implementation. Would you like me to:
28
+ 1. Commit these changes to git, or
29
+ 2. Leave git operations for you to handle manually?
30
+ ```
31
+
32
+ **To track story progress without git, use:**
33
+ ```
34
+ athena_update_status({
35
+ storyId: "X.Y",
36
+ status: "completed",
37
+ completionSummary: "What was implemented..."
38
+ })
39
+ ```
40
+
41
+ This updates sprint-status.yaml without requiring git commits.
42
+
43
+ ---
44
+
7
45
  You are implementing a BMAD story using OpenCode Athena's full capabilities.
8
46
 
9
47
  **You are Sisyphus, the orchestrator.** You will coordinate subagents and tools to implement this story efficiently and correctly.
@@ -8,6 +8,23 @@ description: Work on multiple stories in parallel using background agents
8
8
  >
9
9
  > This command describes **planned functionality** that is not yet available. The `athena_parallel` tool is a placeholder. This document describes the intended behavior for future implementation.
10
10
 
11
+ ## Git Operations Policy
12
+
13
+ **⚠️ AUTOMATIC GIT OPERATIONS ARE PROHIBITED**
14
+
15
+ You must NOT perform any git operations automatically:
16
+ - ❌ Do NOT run `git commit` to save changes
17
+ - ❌ Do NOT run `git push` to push to remote
18
+ - ❌ Do NOT run `git checkout -b` or `git branch` to create branches
19
+ - ❌ Do NOT run `git merge`, `git rebase`, or `git cherry-pick`
20
+ - ❌ Do NOT run `gh pr create` or other GitHub CLI operations
21
+
22
+ **Git operations are ONLY permitted if the user explicitly requests them.**
23
+
24
+ When working on multiple stories in parallel, git operations become especially important to coordinate manually. Always ask the user before performing any git operations.
25
+
26
+ ---
27
+
11
28
  Execute multiple BMAD stories simultaneously using background agents for maximum throughput.
12
29
 
13
30
  ## Planned Behavior
@@ -161,7 +178,7 @@ opencode
161
178
  ```
162
179
  # Start story 2.1 in background
163
180
  background_task({
164
- agent: "general",
181
+ agent: "Sisyphus",
165
182
  prompt: "Implement BMAD story 2.1. Load context with athena_get_story({storyId: '2.1'}), implement following /athena-dev workflow, update status when complete.",
166
183
  description: "Story 2.1 implementation"
167
184
  })
@@ -199,7 +216,7 @@ async function executeParallel(storyIds: string[]) {
199
216
 
200
217
  // 3. Spawn background agents
201
218
  const tasks = storyIds.map(id => ({
202
- agent: "general", // or dedicated story-impl agent
219
+ agent: "Sisyphus",
203
220
  prompt: generateStoryPrompt(id),
204
221
  }));
205
222
 
@@ -4,6 +4,23 @@ description: Research patterns, implementations, or documentation using Libraria
4
4
 
5
5
  # Athena Research - Librarian-Powered Research
6
6
 
7
+ ## Git Operations Policy
8
+
9
+ **⚠️ AUTOMATIC GIT OPERATIONS ARE PROHIBITED**
10
+
11
+ You must NOT perform any git operations automatically:
12
+ - ❌ Do NOT run `git commit` to save changes
13
+ - ❌ Do NOT run `git push` to push to remote
14
+ - ❌ Do NOT run `git checkout -b` or `git branch` to create branches
15
+ - ❌ Do NOT run `git merge`, `git rebase`, or `git cherry-pick`
16
+ - ❌ Do NOT run `gh pr create` or other GitHub CLI operations
17
+
18
+ **Git operations are ONLY permitted if the user explicitly requests them.**
19
+
20
+ This command focuses on research and should rarely involve git operations. If you believe git operations are needed, ASK the user first.
21
+
22
+ ---
23
+
7
24
  Use Librarian, the research specialist, to find patterns, examples, and documentation from multiple sources.
8
25
 
9
26
  **You are Sisyphus, the orchestrator.** You will coordinate Librarian's research capabilities with Explore for comprehensive information gathering.
@@ -33,7 +33,7 @@ This review runs in a **separate context** to preserve main session tokens.
33
33
  Use background_task to spawn a review agent:
34
34
 
35
35
  background_task({
36
- agent: "general",
36
+ agent: "oracle",
37
37
  description: "Party review of {identifier}",
38
38
  prompt: `
39
39
  You are performing a party review for Athena.
@@ -134,7 +134,7 @@ For each recommended agent, spawn a background task:
134
134
  ```
135
135
  # Spawn in parallel - all at once
136
136
  background_task({
137
- agent: "general",
137
+ agent: "oracle",
138
138
  description: "Architect analysis of {identifier}",
139
139
  prompt: `
140
140
  You are Winston, the Software Architect from BMAD.
@@ -4,6 +4,44 @@ description: Run a combined quality gate on the current story implementation
4
4
 
5
5
  # Athena Review - Automated Quality Gate
6
6
 
7
+ ## Git Operations Policy
8
+
9
+ **⚠️ AUTOMATIC GIT OPERATIONS ARE PROHIBITED**
10
+
11
+ You must NOT perform any git operations automatically:
12
+ - ❌ Do NOT run `git commit` to save changes
13
+ - ❌ Do NOT run `git push` to push to remote
14
+ - ❌ Do NOT run `git checkout -b` or `git branch` to create branches
15
+ - ❌ Do NOT run `git merge`, `git rebase`, or `git cherry-pick`
16
+ - ❌ Do NOT run `gh pr create` or other GitHub CLI operations
17
+
18
+ **Git operations are ONLY permitted if the user explicitly requests them.**
19
+
20
+ Examples of explicit permission:
21
+ - User says: "Please commit these changes"
22
+ - User says: "Create a branch called feature-x"
23
+ - User says: "Push to origin" or "Create a PR"
24
+
25
+ **If you believe git operations would be helpful, ASK the user first:**
26
+ ```
27
+ The quality gate passed! Would you like me to:
28
+ 1. Commit these changes to git, or
29
+ 2. Leave git operations for you to handle manually?
30
+ ```
31
+
32
+ **To track story progress without git, use:**
33
+ ```
34
+ athena_update_status({
35
+ storyId: "X.Y",
36
+ status: "completed",
37
+ completionSummary: "What was implemented..."
38
+ })
39
+ ```
40
+
41
+ This updates sprint-status.yaml without requiring git commits.
42
+
43
+ ---
44
+
7
45
  Perform a comprehensive quality review by orchestrating **oh-my-opencode Oracle code review** and **BMAD adversarial review**, both powered by Oracle's deep reasoning capabilities.
8
46
 
9
47
  **You are Sisyphus, the orchestrator.** You will coordinate multiple review perspectives and synthesize the findings.
@@ -4,6 +4,23 @@ description: View and manage BMAD sprint status
4
4
 
5
5
  # Athena Status - Sprint Status Management
6
6
 
7
+ ## Git Operations Policy
8
+
9
+ **⚠️ AUTOMATIC GIT OPERATIONS ARE PROHIBITED**
10
+
11
+ You must NOT perform any git operations automatically:
12
+ - ❌ Do NOT run `git commit` to save changes
13
+ - ❌ Do NOT run `git push` to push to remote
14
+ - ❌ Do NOT run `git checkout -b` or `git branch` to create branches
15
+ - ❌ Do NOT run `git merge`, `git rebase`, or `git cherry-pick`
16
+ - ❌ Do NOT run `gh pr create` or other GitHub CLI operations
17
+
18
+ **Git operations are ONLY permitted if the user explicitly requests them.**
19
+
20
+ This command focuses on status management and should not involve git operations.
21
+
22
+ ---
23
+
7
24
  View current sprint progress and manage story statuses. This command helps you track where you are in the sprint and what to work on next.
8
25
 
9
26
  ## Quick Status Check
@@ -14,7 +14,8 @@
14
14
  "librarian": "github-copilot/claude-haiku-4.5",
15
15
  "frontend": "github-copilot/claude-sonnet-4.5",
16
16
  "documentWriter": "github-copilot/gemini-2.5-pro",
17
- "multimodalLooker": "github-copilot/gemini-2.5-pro"
17
+ "multimodalLooker": "github-copilot/gemini-2.5-pro",
18
+ "explore": "github-copilot/gpt-5-mini"
18
19
  },
19
20
  "bmad": {
20
21
  "defaultTrack": "bmad-method",
@@ -28,7 +29,8 @@
28
29
  "notifications": true,
29
30
  "contextMonitor": true,
30
31
  "commentChecker": true,
31
- "lspTools": true
32
+ "lspTools": true,
33
+ "autoGitOperations": false
32
34
  },
33
35
  "mcps": {
34
36
  "context7": true,
@@ -15,13 +15,15 @@
15
15
  "frontend": "google/gemini-2.5-pro",
16
16
  "documentWriter": "anthropic/claude-opus-4-5",
17
17
  "multimodalLooker": "google/gemini-2.5-pro",
18
+ "explore": "google/gemini-2.5-flash",
18
19
  "settings": {
19
20
  "sisyphus": { "thinkingLevel": "high" },
20
21
  "oracle": { "thinkingLevel": "high" },
21
22
  "librarian": { "thinkingLevel": "medium" },
22
23
  "frontend": { "temperature": 0.5 },
23
24
  "documentWriter": { "temperature": 0.4 },
24
- "multimodalLooker": { "temperature": 0.2 }
25
+ "multimodalLooker": { "temperature": 0.2 },
26
+ "explore": { "thinkingLevel": "off", "temperature": 0.2 }
25
27
  }
26
28
  },
27
29
  "bmad": {
@@ -36,7 +38,8 @@
36
38
  "notifications": true,
37
39
  "contextMonitor": true,
38
40
  "commentChecker": true,
39
- "lspTools": true
41
+ "lspTools": true,
42
+ "autoGitOperations": false
40
43
  },
41
44
  "mcps": {
42
45
  "context7": true,
@@ -12,10 +12,12 @@
12
12
  "sisyphus": "anthropic/claude-sonnet-4-5",
13
13
  "oracle": "anthropic/claude-sonnet-4-5",
14
14
  "librarian": "anthropic/claude-sonnet-4-5",
15
+ "explore": "anthropic/claude-sonnet-4-5",
15
16
  "settings": {
16
17
  "sisyphus": { "temperature": 0.2 },
17
18
  "oracle": { "temperature": 0.1 },
18
- "librarian": { "temperature": 0.3 }
19
+ "librarian": { "temperature": 0.3 },
20
+ "explore": { "temperature": 0.2 }
19
21
  }
20
22
  },
21
23
  "bmad": {
@@ -30,7 +32,8 @@
30
32
  "notifications": false,
31
33
  "contextMonitor": false,
32
34
  "commentChecker": false,
33
- "lspTools": true
35
+ "lspTools": true,
36
+ "autoGitOperations": false
34
37
  },
35
38
  "mcps": {
36
39
  "context7": true,
@@ -12,10 +12,12 @@
12
12
  "sisyphus": "anthropic/claude-sonnet-4-5-thinking",
13
13
  "oracle": "anthropic/claude-sonnet-4-5-thinking",
14
14
  "librarian": "anthropic/claude-sonnet-4-5",
15
+ "explore": "anthropic/claude-sonnet-4-5",
15
16
  "settings": {
16
17
  "sisyphus": { "thinkingLevel": "medium" },
17
18
  "oracle": { "thinkingLevel": "high" },
18
- "librarian": { "temperature": 0.3 }
19
+ "librarian": { "temperature": 0.3 },
20
+ "explore": { "temperature": 0.2 }
19
21
  }
20
22
  },
21
23
  "bmad": {
@@ -30,7 +32,8 @@
30
32
  "notifications": true,
31
33
  "contextMonitor": true,
32
34
  "commentChecker": true,
33
- "lspTools": true
35
+ "lspTools": true,
36
+ "autoGitOperations": false
34
37
  },
35
38
  "mcps": {
36
39
  "context7": true,
@@ -15,13 +15,15 @@
15
15
  "frontend": "anthropic/claude-sonnet-4-5",
16
16
  "documentWriter": "google/gemini-2.5-pro",
17
17
  "multimodalLooker": "google/gemini-2.5-flash",
18
+ "explore": "google/gemini-2.5-flash",
18
19
  "settings": {
19
20
  "sisyphus": { "thinkingLevel": "medium" },
20
21
  "oracle": { "thinkingLevel": "high" },
21
22
  "librarian": { "thinkingLevel": "low" },
22
23
  "frontend": { "temperature": 0.5 },
23
24
  "documentWriter": { "temperature": 0.4 },
24
- "multimodalLooker": { "temperature": 0.2 }
25
+ "multimodalLooker": { "temperature": 0.2 },
26
+ "explore": { "thinkingLevel": "off", "temperature": 0.2 }
25
27
  }
26
28
  },
27
29
  "bmad": {
@@ -36,7 +38,8 @@
36
38
  "notifications": true,
37
39
  "contextMonitor": true,
38
40
  "commentChecker": true,
39
- "lspTools": true
41
+ "lspTools": true,
42
+ "autoGitOperations": false
40
43
  },
41
44
  "mcps": {
42
45
  "context7": true,
@@ -92,6 +92,10 @@
92
92
  "type": "string",
93
93
  "description": "Model for image analysis agent"
94
94
  },
95
+ "explore": {
96
+ "type": "string",
97
+ "description": "Model for fast codebase exploration agent"
98
+ },
95
99
  "settings": {
96
100
  "type": "object",
97
101
  "description": "Optional agent-specific settings for temperature and thinking level",
@@ -102,6 +106,7 @@
102
106
  "frontend": { "$ref": "#/definitions/agentSettings" },
103
107
  "documentWriter": { "$ref": "#/definitions/agentSettings" },
104
108
  "multimodalLooker": { "$ref": "#/definitions/agentSettings" },
109
+ "explore": { "$ref": "#/definitions/agentSettings" },
105
110
  "overrides": {
106
111
  "type": "object",
107
112
  "description": "Per-model overrides (key: model ID, value: settings)",
@@ -149,7 +154,8 @@
149
154
  "notifications": { "type": "boolean", "default": true },
150
155
  "contextMonitor": { "type": "boolean", "default": true },
151
156
  "commentChecker": { "type": "boolean", "default": true },
152
- "lspTools": { "type": "boolean", "default": true }
157
+ "lspTools": { "type": "boolean", "default": true },
158
+ "autoGitOperations": { "type": "boolean", "default": false, "description": "Allow agents to perform git/gh operations automatically (false = requires explicit user permission)" }
153
159
  }
154
160
  },
155
161
  "mcps": {