AGENT SKILL
coding
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
02 资源文件 2
03 SKILL.md 正文
Skill: Coding
Status: IMPLEMENTED — runs via the existing OpenCode worker + AgentRuntime abstraction. No external prerequisite beyond OPENROUTER_API_KEY (already required for the whole system).
Purpose
Write, modify, test, and debug code as part of a mission task — repository changes, new files, bug fixes, small utilities.
Inputs
instructions: natural-language description of the coding taskrepo_url(optional): repository to clone into the task workspace first
Outputs
exit_code,stdout,stderr,files_changed,duration_seconds(seeservices/runtime/agent_runtime.py:RuntimeResult)
Allowed tools
filesystem, github (per services/mcp/gateway.py's ALLOWLIST["opencode"] — unchanged by this pass)
Workflow
- Hermes creates a task with
type: "opencode", policy-checked (categoryGITHUB_WRITEby default) - OpenCode worker clones (if
repo_urlgiven) into an isolated per-task workspace OpenCodeRuntime.execute()runsopencode run "<instructions>", captures real stdout/stderr/exit code- Workspace cleaned up after (success or failure)
Success criteria
exit_code == 0- For mission tasks:
files_changedis non-empty when the task implies a change
Verification (not just claimed)
Test/build execution verified via EvidenceEngine.verify() with a real {"method": "pytest", "exit_code": 0, ...} detail, not just "OpenCode said it worked".
Failure handling
Routed through services/mission/failure_recovery.py's classifier — code_failure/test_failure patterns trigger a strategy-changed retry, not a blind repeat.