Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(agents): opencode AGENTS.md gets the context-link + canvas-control blocks
enesb55352a48255
diff --git a/src/core/context-link.ts b/src/core/context-link.tsindex 1405273e4..e09dd9fa9 100644--- a/src/core/context-link.ts+++ b/src/core/context-link.ts@@ -98,13 +98,14 @@ to read — do not retry.}}-// Codex/Gemini have no skill system — merge an instructions block into their global+// Codex/Gemini/opencode have no skill system — merge an instructions block into their global// instruction files instead (marker-delimited, idempotent, other content preserved).function installAgentInstructions(): void {const block = buildLinkedContextInstructions(cliShimPath())const targets = [path.join(os.homedir(), '.codex', 'AGENTS.md'),- path.join(os.homedir(), '.gemini', 'GEMINI.md')+ path.join(os.homedir(), '.gemini', 'GEMINI.md'),+ path.join(os.homedir(), '.config', 'opencode', 'AGENTS.md')]for (const p of targets) {try {diff --git a/src/main/canvas-control-core.ts b/src/main/canvas-control-core.tsindex b269df6e2..bc8e08b78 100644--- a/src/main/canvas-control-core.ts+++ b/src/main/canvas-control-core.ts@@ -124,7 +124,7 @@ export function buildCanvasControlInstructions(shimPath: string): string {'- `list` — current nodes (id, kind, title). Start here when you need a node id.','- `open-terminal [--count N] [--cwd P] [--cmd C] [--group <id>]` — open N plain terminals.','- `open-claude [--count N] [--cwd P] [--prompt T] [--group <id>]` — open N Claude sessions.',- '- `open-agent --agent claude|codex|gemini|<custom-id> [--count N] [--cwd P] [--prompt T] [--group <id>]` — open',+ '- `open-agent --agent claude|codex|gemini|opencode|<custom-id> [--count N] [--cwd P] [--prompt T] [--group <id>]` — open',' any agent CLI. `--group` parents the node(s) into a group frame; a worktree-bound group also',' hands its worktree path down as the cwd.','- `show-image <path>` / `show-video <path>` — open a media file as a node.',diff --git a/src/main/canvas-control.ts b/src/main/canvas-control.tsindex 82255683f..c63c62ec2 100644--- a/src/main/canvas-control.ts+++ b/src/main/canvas-control.ts@@ -63,7 +63,7 @@ Verbs:- \`list\` — list current nodes (id, kind, title). Start here when you need a node id.- \`open-terminal [--count N] [--cwd P] [--cmd C] [--group <id>]\` — open N plain terminals (default 1).- \`open-claude [--count N] [--cwd P] [--prompt T] [--group <id>]\` — open N Claude sessions (default 1).-- \`open-agent --agent claude|codex|gemini|<custom-id> [--count N] [--cwd P] [--prompt T] [--group <id>]\` — open N sessions of any agent CLI.+- \`open-agent --agent claude|codex|gemini|opencode|<custom-id> [--count N] [--cwd P] [--prompt T] [--group <id>]\` — open N sessions of any agent CLI.\`--group\` parents the node(s) into an existing group frame; a worktree-bound group alsohands its worktree path down as the cwd.- \`show-image <path>\` — open an image file as a node.@@ -141,15 +141,16 @@ export function installCanvasSkillInto(configDir: string): void {}}-// Codex/Gemini have no skill system — merge the canvas-control block into their global+// Codex/Gemini/opencode have no skill system — merge the canvas-control block into their global// instruction files (marker-delimited, idempotent, other content preserved). Same pattern// as context-link's get-linked-context block. The CLI env-gate keeps the block inert in-// the user's normal (non-nodeterm) codex/gemini sessions.+// the user's normal (non-nodeterm) codex/gemini/opencode sessions.function installAgentInstructions(): void {const block = buildCanvasControlInstructions(shimPath())const targets = [path.join(os.homedir(), '.codex', 'AGENTS.md'),- path.join(os.homedir(), '.gemini', 'GEMINI.md')+ path.join(os.homedir(), '.gemini', 'GEMINI.md'),+ path.join(os.homedir(), '.config', 'opencode', 'AGENTS.md')]for (const p of targets) {try {