Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review (codex): allow `opencode` in the CoS Runner command allowlist

Adam Eivy01bdfe2435e1
diff --git a/server/cos-runner/allowedCommands.js b/server/cos-runner/allowedCommands.js
index c06540cbbb..3b4061b0b7 100644
--- a/server/cos-runner/allowedCommands.js
+++ b/server/cos-runner/allowedCommands.js
@@ -14,7 +14,8 @@ export const ALLOWED_COMMANDS = new Set([
'codex',
'copilot',
'agy',
- 'gemini'
+ 'gemini',
+ 'opencode'
]);
/**
diff --git a/server/cos-runner/allowedCommands.test.js b/server/cos-runner/allowedCommands.test.js
index e5d4652f01..7b3f110936 100644
--- a/server/cos-runner/allowedCommands.test.js
+++ b/server/cos-runner/allowedCommands.test.js
@@ -20,6 +20,11 @@ describe('isAllowedCommand', () => {
it('allows /home/user/.local/bin/aider', () => {
expect(isAllowedCommand('/home/user/.local/bin/aider')).toBe(true);
});
+
+ it('allows opencode (so headless OpenCode Ollama agents run under CoS Runner mode)', () => {
+ expect(isAllowedCommand('opencode')).toBe(true);
+ expect(isAllowedCommand('/opt/homebrew/bin/opencode')).toBe(true);
+ });
});
describe('Windows .exe stripping', () => {