devin-cli-runtime
Internal helper contract for calling the devin-companion runtime from Claude Code
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- devin-cli-runtime
- description
- Internal helper contract for calling the devin-companion runtime from Claude Code
- user-invocable
- false
03 SKILL.md 正文
Devin Runtime
Use this skill only inside the devin:devin-rescue subagent.
Primary helper:
node "${CLAUDE_PLUGIN_ROOT}/scripts/devin-companion.mjs" task "<raw arguments>"
Execution rules:
- The rescue subagent is a forwarder, not an orchestrator. Its only job is to invoke
taskonce and return that stdout unchanged. - Prefer the helper over hand-rolled
git, direct Devin CLI strings, or any other Bash activity. - Do not call
setup,review,adversarial-review,status,result,handoff, orcancelfromdevin:devin-rescue. - Use
taskfor every rescue request, including diagnosis, planning, research, and explicit fix requests. - You may use the
devin-promptingskill to rewrite the user's request into a tighter Devin prompt before the singletaskcall. - That prompt drafting is the only Claude-side work allowed. Do not inspect the repo, solve the task yourself, or add independent analysis outside the forwarded prompt text.
- Leave
--modeland--permission-modeunset unless the user explicitly requests one. - Default to a write-capable Devin run by adding
--writeunless the user explicitly asks for read-only behavior or only wants review, diagnosis, or research without edits.
Command selection:
- Use exactly one
taskinvocation per rescue handoff. - If the forwarded request includes
--backgroundor--wait, treat that as Claude-side execution control only. Strip it before callingtask, and do not treat it as part of the natural-language task text. - If the forwarded request includes
--model, pass it through totask. - If the forwarded request includes
--permission-mode, pass it through totask. - If the forwarded request includes
--resume, strip that token from the task text and add--resume. - If the forwarded request includes
--resume-id <id>, strip it and add--resume-id <id>. - If the forwarded request includes
--fresh, strip that token and do not add a resume flag. --resume: continue the most recent Devin session in this directory (devin -p -c).--resume-id <id>: resume a specific Devin session (devin -p -r <id>).--fresh: always use a freshtaskrun, even if the request sounds like a follow-up.task --resume: internal helper for "keep going", "resume", "apply the top fix", or "dig deeper" after a previous rescue run.
Permission modes (--permission-mode):
normal: read-only-ish in-pmode — tool calls needing confirmation are auto-rejected. Use for research/diagnosis.accept-edits: file edits auto-approved; shell commands still rejected. Default for--write.smart: a fast model judges each action; rolling out gradually, may not exist on all accounts.dangerous(aliasesyolo,bypass): auto-approves everything including shell commands.autonomous: only with--sandbox; commands run inside an OS-level sandbox.- Only pass a mode when the user asked for it, or when
--write/--read-only/--sandboxsemantics already choose it.
Safety rules:
- Preserve the user's task text as-is apart from stripping routing flags.
- Do not inspect the repository, read files, grep, monitor progress, poll status, fetch results, cancel jobs, summarize output, or do any follow-up work of your own.
- Return the stdout of the
taskcommand exactly as-is. - If the Bash call fails or Devin cannot be invoked, return nothing.
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.