A universal self-improving agent that learns from ALL skill experiences. Uses multi-memory architecture (semantic + episodic + working) to continuously evolve the codebase. Auto-triggers on skill completion/error with hooks-based self-correction.
A bounded, redacted learning lifecycle for agent workflows. It separates observation from durable behavior change:
failure/correction -> candidate -> validated -> applied -> superseded/rollback
candidate, validated, applied, rejected, superseded, and rolled_backevals/Install skills and explicitly enable the Claude failure hook:
pnpm dlx @codeharbor/agent-playbook init --hooks
Capture a manual lesson:
apb self-improve capture \
--kind correction \
--summary "Verify the current source before relying on cached state" \
--evidence "focused-test"
Review the queue, run the behavior eval, then record application only after the owner changes:
apb behavior inbox
apb behavior owners cand-123 --repo .
apb behavior eval cand-123 --artifact behavior-eval.json
apb behavior review cand-123 \
--decision validate \
--reason "confirmed by a representative test" \
--eval-result /path/printed/by/the/eval/command.json
apb behavior proposal cand-123 \
--owner "skill:self-improving-agent" \
--output behavior-proposal.md
apb self-improve review cand-123 \
--decision apply \
--reason "installed in the durable owner" \
--owner "skill:self-improving-agent" \
--change-ref "commit:abc123"
Export to a knowledge notebook:
apb self-improve export --output /path/to/vault/Agent/Learning.md
State defaults to ~/.agent-playbook/self-improvement/. Set
AGENT_PLAYBOOK_DATA_DIR to use another local root.
Automatic capture is limited to failed tool events. It stores a redacted summary and generic evidence label, not a transcript or raw tool payload. A candidate cannot become an applied rule without a passing executable eval and an explicit owner/change reference. Raw eval stdout and stderr are not persisted.
Run apb conformance after installation to distinguish locally proven files and
hook structure from host discovery or runtime invocation that has not been observed.
See learning-lifecycle.md for data and host adapter contracts.
Search 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