Loading...
Loading...
Delegate complex coding tasks to OpenCode agent. Use when building new features, reviewing code, or refactoring large codebases. Allows starting, resuming, and monitoring opencode sessions.
npx skill4agent add dingruoqian99/openclaw-custom-skills opencode-agenteditopencodecopilot~/.opencode/bin/opencode run --dir <project_path> "<user_instruction>"opencode session listcdcd <project_path> && ~/.opencode/bin/opencode session list --format jsonsession list~/.opencode/bin/opencode export <SESSION_ID> > /tmp/session.json
python3 -c "import json; d=json.load(open('/tmp/session.json')); msgs=d.get('messages', []); print(json.dumps(msgs[-1]['parts'][-1] if msgs else 'No msgs', indent=2)[:1000])"cd <project_path> && ~/.opencode/bin/opencode run "<new_instruction>" --session <SESSION_ID>find ~/.copilot/session-state -name workspace.yaml -exec grep -H "cwd:" {} \;tail -n 20 ~/.copilot/session-state/<UUID>/events.jsonlcode-review-report.mdmessagecp <path_to_artifact> /home/team_aidmi_ai/.openclaw/workspace/<filename>messagefilePath: /home/team_aidmi_ai/.openclaw/workspace/<filename>/home/team_aidmi_ai/.openclaw/workspace/memory/opencode-projects.mdls~/code/work~/code/personalcallback_data"List sessions for ~/code/work/taskings/"cdopencode session list --format json"Resume session <ID>"opencode runopencode runopencode export