원클릭으로
opencode
OpenCode agent runtime — manage sessions, dispatch tasks, repair DB issues, and reset diffs
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
OpenCode agent runtime — manage sessions, dispatch tasks, repair DB issues, and reset diffs
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Look up people, projects, products, and decisions locally first: contact info (email, Slack ID, GitHub handle), titles and teams, project/product status, who works on what, and past decisions. Check before searching Slack, email, calendar, or GitHub — this is the first stop for any contact detail, project context, or decision-history question.
Load when reviewing a diff, naming a code smell or anti-pattern, deciding refactoring direction, or grading review-comment severity. Required reading when a named pattern is cited — load explicitly rather than paraphrasing from memory.
Load before creating, restacking, or landing a branch in a git-spice–managed stack — branch naming, stack navigation, and conflict/restack recovery. Use instead of raw git commands whenever the repo has a git-spice stack.
Load when investigating production errors, latency, or trace data that requires querying Elasticsearch/APM directly — index patterns, field names, auth setup, and time-range syntax. Use before hand-rolling a query DSL call or guessing field names.
Manage dotfiles via chezmoi — apply safely, destroy files, manage LaunchAgents and externals, config and template gotchas
Communication style, audience awareness, and AI-authorship markers for human-facing prose — load when composing chat messages, review comments, merge request descriptions, emails, doc bodies, or ticket descriptions
| name | opencode |
| description | OpenCode agent runtime — manage sessions, dispatch tasks, repair DB issues, and reset diffs |
| license | MIT |
| compatibility | opencode |
Unified skill for all OpenCode agent runtime operations. Use the reference files below for each area.
aoe (Agent of Empires) is the only interface for creating and interacting with OpenCode sessions — there is no daemon and no HTTP API. Every session is a real opencode TUI running inside a tmux pane that aoe manages. Run aoe --help and aoe <subcommand> --help for the full flag reference — don't restate syntax here; flags change between releases.
aoe add <path> --tool opencode --title <title> creates the session record, then aoe session start <id> actually starts the tmux pane running opencode. These are two separate calls — aoe add ... --launch tries to interactively attach right after creating, which fails in a non-TTY context (scripts, LaunchAgents).--worktree <branch> --new-branch to aoe add to create the session directly in a fresh worktree on a new branch (--base-branch <branch> to base it on something other than the repo default).<path> is only ever canonicalized, never resolved to the main repo. aoe add <path> symlink-resolves whatever you pass and silently treats that exact path as (or creates) the project root — it never walks a worktree back to its repo's main checkout, so pointing it at a worktree spins up a bogus project with no warning. Always pass the project's exact registered path (check aoe project list) plus --worktree <branch> (--new-branch/--base-branch as needed) to attach a fresh worktree to the right project. --project <name>/--repo <path> don't help here — they only add extra repos to a multi-repo workspace alongside --worktree and error loudly on an unregistered name; they're not a way to specify the primary target by name.aoe send <id> "<message>" types the message into the session's tmux pane and submits it. It's fire-and-forget — there's no blocking "wait for the reply" verb; the session keeps running after send returns, and you check back later via aoe session capture <id> or by attaching.send issued immediately after aoe session start can be silently dropped (no error, send still reports success) — sleep ~5s after session start before the first send./ as the start of its slash-command autocomplete dropdown, and aoe send's trailing Enter gets consumed by the dropdown instead of submitting. A trailing space closes the dropdown as it's typed so the following Enter submits normally (e.g. aoe send <id> "/audit ").aoe session attach <id> attaches interactively to the session's tmux pane — use this for anything beyond a single fire-and-forget message (a back-and-forth, for example).aoe session capture <id> dumps the current tmux pane content — useful for checking on a dispatched session's progress or confirming a message landed.aoe list for what's already running before starting overlapping work in the same directory.Workflow: implement. Linear issue KEY-1234, not the individual steps; the receiving session has its own AGENTS.md/skills/plan agent to drive.For anything that doesn't need a live session — looking up a past conversation, exporting it, or resuming it — use the plain opencode CLI or direct SQLite reads, never a daemon:
opencode session list — list sessionsopencode export <sessionID> — export a session's full message/part history as JSONopencode -c / opencode -s <sessionID> — resume the last (or a specific) session's conversation in a fresh interactive TUI~/.local/share/opencode/opencode.db (SQLite, WAL mode — safe to read while a session is live)See sessions.md for the full query cookbook.