Install
openclaw skills install subconsciousAutonomous, bounded bias layer that continuously evolves Alfred’s operating behavior by reinforcing, promoting, and governing self-improvement learnings and...
openclaw skills install subconsciousA persistent, self-evolving bias layer that survives session resets. Alfred's "second brain" — quiet, bounded, and strictly governed. It does NOT make decisions. It shapes how Alfred approaches decisions.
Core principle: Every mutation is typed, bounded, and logged. Core identity is untouchable without manual override.
Learnings Bridge Pending Queue Live Store Session Context
.learnings/ ─────────────► tick ──────────────► rotate ──────────────► bias inject
(Self-improving agent) (reinforce, (promote eligible, (5 items max,
dedupe, archive stale) ephemeral)
skip duplicates)
Core Store ────────────────────────────────────────────────────────────────► Identity
(Immutable values, (never changes
values/style, guiding principles) without human OK)
Three layers:
core/ — Immutable identity (Alfred's nature, Edward's preferences). Manual-only.live/ — Active learnings from experience. Governed promotion from pending.pending/ — Queue for new items. Bounded reinforcement before promotion eligibility.Five bias types:
| Kind | Category | Example |
|---|---|---|
VALUE | Identity | "Alfred is sharp, calm, direct" |
LESSON | Context | "XHS MCP needs QR re-login each cycle" |
PRIORITY | Active | "Verify before claiming success" |
PATTERN | Interpretation | "Proof discipline failure mode" |
CONSTRAINT | Attention | "Don't suggest without trying first" |
All commands run from scripts/ directory inside the skill:
cd ~/.openclaw/skills/subconscious/scripts
# Check system health
python3 subconscious_metabolism.py status
python3 subconscious_cli.py verify
# See active biases in session context
python3 subconscious_cli.py bias
# Manual metabolism cycles
python3 subconscious_metabolism.py tick # Light tick (5 min cadence)
python3 subconscious_metabolism.py rotate # Full rotation (hourly)
python3 subconscious_metabolism.py review # Daily health check
python3 subconscious_metabolism.py tick
.learnings/ via learnings bridge → queues new items to pendingpython3 subconscious_metabolism.py rotate --enable-promotion
--enable-promotion):
confidence >= 0.75reinforcement >= 3freshness >= 0.3python3 subconscious_metabolism.py review
The learnings bridge connects the self-improving-agent skill to the subconscious:
.learnings/LEARNINGS.md, .learnings/ERRORS.md, .learnings/FEATURES.mdlearnings_bridge_last_seen.jsonpending.jsonl with type candidate_queuedBridge to self-improving agent: The learnings bridge should be called from the metabolism tick so that new learnings flow into the subconscious every 5 minutes automatically.
python3 subconscious_metabolism.py status
Expected output:
Core: 3/50 Live: 1/100 Pending: 0/500 Snapshots: 10/10
Status: OK
If Pending: 0/500 and Live: N — system is healthy, items promoting correctly.
If Status: blocked — resource limits hit, run rotate to compact.
# Queue a lesson manually
python3 subconscious_cli.py intake --kind LESSON --text "Remember to verify before claiming success" --confidence 0.8 --source "manual"
# Check what's in pending
python3 subconscious_cli.py pending
| File | Purpose |
|---|---|
subconscious/schema.py | Item dataclasses, validation, kind enum |
subconscious/store.py | JSON file ops with atomic writes |
subconscious/retrieve.py | Relevance scoring, is_duplicate |
subconscious/influence.py | Convert items to bias blocks for prompts |
subconscious/governance.py | Mutation types, protection classes, bounds |
subconscious/evolution.py | Promotion pipeline, reinforcement logic |
subconscious/maintenance.py | Decay, snapshot rotation, housekeeping |
subconscious/intake.py | Conservative item extraction from turns |
subconscious/flush.py | Snapshot building/loading for session continuity |
subconscious/learnings_bridge.py | Bridge to self-improving-agent .learnings/ |
When Claude Code needs to assess or improve the subconscious system, use the claude-cx wrapper:
claude-cx "Run: python3 ~/.openclaw/skills/subconscious/scripts/subconscious_metabolism.py status"
claude-cx "Run: python3 ~/.openclaw/skills/subconscious/scripts/subconscious_cli.py bias"
claude-cx "Read ~/.openclaw/skills/subconscious/subconscious/evolution.py lines 450-525"
After running install.sh, four cron jobs are active:
*/5 * * * * — tick (light metabolism)0 * * * * — rotate (hourly, with promotion)0 6 * * * — review (daily health check)0 9 * * 1 — weekly benchmark (Monday 9am, compares to baseline)Compares current state to the baseline snapshot captured at install time. Reports on:
# Run manually
python3 scripts/subconscious_benchmark.py
# View past benchmarks
ls memory/subconscious/benchmarks/
cat memory/subconscious/benchmarks/benchmark_YYYY-MM-DD.json
To capture a new baseline:
python3 scripts/subconscious_benchmark.py --capture-baseline
To override workspace location:
export SUBCONSCIOUS_WORKSPACE=/path/to/any/workspace