Autonomous CC (Claude Code) iteration loop. Manages background coding agent tasks with pull-based issue tracking.
Drive OpenLinkOS project forward by managing CC (Claude Code) background tasks.
process action:list for active CC sessionspnpm test, git push, check CI, close issuegh issue list --state open → has open issue → start CCIssues come from discussions, user feedback, or bug reports. Patrol executes, it does not decide.
exec pty:true background:true workdir:/data/code/github.com/openlinkos/agent command:"IS_SANDBOX=1 claude --dangerously-skip-permissions -p 'PROMPT' --output-format text"
When done: gh issue close N && openclaw system event --text "Done: SUMMARY" --mode now1. Role and context: implementing X package for OpenLinkOS, Issue #N
2. Current state: N tests passing, packages A/B/C already completed
3. Specific files: list every file and its responsibility
4. Quality requirements: tests, typecheck, build, no any types
5. Closing: git commit + gh issue close N + openclaw system event
Tips from real usage:
After each development CC completes, spawn a separate CC session for review:
1. Scope: review packages/files changed in the last N commits
2. Checklist: type safety, error handling, async patterns, resource leaks, edge cases
3. CI alignment: verify CI workflow step ordering matches local assumptions
4. Action: fix problems directly and commit
5. Closing: openclaw system event --text "Review done: SUMMARY" --mode now
Why self-check matters:
After git push, always verify CI:
gh run list --limit 3 # check latest runs
gh run view <run-id> # inspect a specific run
gh run view <run-id> --log # full logs on failure
git status to confirm no code changes before retryingIf CC partially completed (crashed, hung, or killed mid-work):
git log --oneline -5 — see what CC already committedgit status — check for uncommitted workThe openclaw system event at the end of CC prompts may silently fail if:
When CC completes but no wake event arrives, the cron patrol loop detects completion
via process action:list (exit code 0). Don't rely solely on wake events.
OpenClaw 2026.2.22+ hides tool error details by default. When investigating CC failures:
/verbose on in the session to see full error payloads/data/code/github.com/openlinkos/agentmemory/openlinkos-devlog.mdhttps://github.com/openlinkos/agentSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer