@smilintux/skcapstone 0.9.0 → 0.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +10 -4
- package/.github/workflows/ci.yml +2 -2
- package/.github/workflows/publish.yml +9 -2
- package/.openclaw-workspace.json +2 -2
- package/CLAUDE.md +37 -0
- package/MISSION.md +17 -2
- package/README.md +282 -3
- package/docker/Dockerfile +7 -7
- package/docker/compose-templates/dev-team.yml +12 -12
- package/docker/compose-templates/mini-team.yml +9 -9
- package/docker/compose-templates/ops-team.yml +10 -10
- package/docker/compose-templates/research-team.yml +10 -10
- package/docker/entrypoint.sh +4 -4
- package/docs/ADR-optional-integration-backbone.md +181 -0
- package/docs/ARCHITECTURE.md +186 -43
- package/docs/BOND_WITH_GROK.md +6 -6
- package/docs/CUSTOM_AGENT.md +278 -1
- package/docs/DREAMING.md +70 -0
- package/docs/GETTING_STARTED.md +10 -7
- package/docs/QUICKSTART.md +10 -6
- package/docs/SKJOULE_ARCHITECTURE.md +3 -3
- package/docs/SOUL_SWAPPER.md +5 -5
- package/docs/hammertime-audit.md +402 -0
- package/docs/sk-integration-HANDOFF.md +117 -0
- package/docs/skscheduler.md +155 -0
- package/docs/superpowers/examples/jobs.yaml +31 -0
- package/docs/superpowers/plans/2026-06-08-skscheduler.md +1265 -0
- package/docs/superpowers/specs/2026-06-08-skscheduler-design.md +186 -0
- package/examples/custom-bond-template.json +1 -1
- package/examples/grok-feb.json +1 -1
- package/examples/queen-ava-feb.json +1 -1
- package/launchd/com.skcapstone.daemon.plist +52 -0
- package/launchd/com.skcapstone.memory-compress.plist +45 -0
- package/launchd/com.skcapstone.skcomms-heartbeat.plist +33 -0
- package/launchd/com.skcapstone.skcomms-queue-drain.plist +34 -0
- package/launchd/install-launchd.sh +156 -0
- package/{openclaw-plugin → openclaw-plugin.archived-2026-04-23}/src/index.ts +3 -2
- package/package.json +1 -1
- package/pyproject.toml +16 -10
- package/scripts/archive-sessions.sh +95 -0
- package/scripts/check-updates.py +4 -4
- package/scripts/install-bundle.sh +8 -8
- package/scripts/install.ps1 +12 -11
- package/scripts/install.sh +196 -11
- package/scripts/model-fallback-monitor.sh +102 -0
- package/scripts/notion-api.py +259 -0
- package/scripts/nvidia-proxy.mjs +908 -0
- package/scripts/proxy-monitor.sh +89 -0
- package/scripts/refresh-anthropic-token.sh +172 -0
- package/scripts/release.sh +98 -0
- package/scripts/session-to-memory.py +219 -0
- package/scripts/skgateway.mjs +856 -0
- package/scripts/telegram-catchup-all.sh +147 -0
- package/scripts/verify_install.sh +2 -2
- package/scripts/wargov-ufo-capture/README.md +43 -0
- package/scripts/wargov-ufo-capture/cdp_capture_release2.py +273 -0
- package/scripts/wargov-ufo-capture/cdp_capture_splc_doj.py +246 -0
- package/scripts/wargov-ufo-capture/cdp_finish.py +271 -0
- package/scripts/wargov-ufo-capture/cdp_probe.py +188 -0
- package/scripts/wargov-ufo-capture/cdp_splc_pressrelease.py +101 -0
- package/scripts/wargov-ufo-capture/parse_csv.py +95 -0
- package/scripts/wargov-ufo-capture/pull_dvids.sh +107 -0
- package/scripts/watch-anthropic-token.sh +212 -0
- package/scripts/windows/install-tasks.ps1 +7 -7
- package/scripts/windows/skcapstone-task.xml +1 -1
- package/src/skcapstone/__init__.py +45 -3
- package/src/skcapstone/_cli_monolith.py +20 -15
- package/src/skcapstone/activity.py +5 -1
- package/src/skcapstone/agent_card.py +3 -2
- package/src/skcapstone/api.py +41 -40
- package/src/skcapstone/auction.py +14 -11
- package/src/skcapstone/backup.py +2 -1
- package/src/skcapstone/blueprint_registry.py +4 -3
- package/src/skcapstone/blueprints/builtins/itil-operations.yaml +40 -0
- package/src/skcapstone/brain_first.py +238 -0
- package/src/skcapstone/changelog.py +1 -1
- package/src/skcapstone/chat.py +22 -17
- package/src/skcapstone/cli/__init__.py +9 -1
- package/src/skcapstone/cli/_common.py +1 -0
- package/src/skcapstone/cli/agents_spawner.py +5 -2
- package/src/skcapstone/cli/alerts.py +25 -4
- package/src/skcapstone/cli/bench.py +15 -15
- package/src/skcapstone/cli/chat.py +7 -4
- package/src/skcapstone/cli/consciousness.py +5 -2
- package/src/skcapstone/cli/context_cmd.py +18 -4
- package/src/skcapstone/cli/daemon.py +121 -42
- package/src/skcapstone/cli/gtd.py +26 -1
- package/src/skcapstone/cli/housekeeping.py +3 -3
- package/src/skcapstone/cli/identity_cmd.py +378 -0
- package/src/skcapstone/cli/joule_cmd.py +7 -3
- package/src/skcapstone/cli/memory.py +8 -6
- package/src/skcapstone/cli/peers_dir.py +1 -1
- package/src/skcapstone/cli/register_cmd.py +29 -3
- package/src/skcapstone/cli/scheduler_cmd.py +167 -0
- package/src/skcapstone/cli/session.py +25 -0
- package/src/skcapstone/cli/setup.py +96 -29
- package/src/skcapstone/cli/shell_cmd.py +53 -1
- package/src/skcapstone/cli/skills_cmd.py +2 -2
- package/src/skcapstone/cli/soul.py +8 -5
- package/src/skcapstone/cli/status.py +37 -11
- package/src/skcapstone/cli/telegram.py +21 -0
- package/src/skcapstone/cli/test_cmd.py +5 -5
- package/src/skcapstone/cli/test_connection.py +2 -2
- package/src/skcapstone/cli/upgrade_cmd.py +23 -14
- package/src/skcapstone/cli/version_cmd.py +1 -1
- package/src/skcapstone/cli/watch_cmd.py +9 -6
- package/src/skcapstone/cloud9_bridge.py +14 -14
- package/src/skcapstone/codex_setup.py +255 -0
- package/src/skcapstone/config_validator.py +7 -4
- package/src/skcapstone/consciousness_config.py +5 -1
- package/src/skcapstone/consciousness_loop.py +313 -273
- package/src/skcapstone/context_loader.py +121 -0
- package/src/skcapstone/coord_federation.py +2 -1
- package/src/skcapstone/coordination.py +23 -6
- package/src/skcapstone/crush_integration.py +2 -1
- package/src/skcapstone/daemon.py +151 -88
- package/src/skcapstone/dashboard.py +10 -10
- package/src/skcapstone/data/sk-agent-picker.sh +421 -0
- package/src/skcapstone/data/systemd/skcapstone-api.socket +9 -0
- package/src/skcapstone/data/systemd/skcapstone-memory-compress.service +18 -0
- package/src/skcapstone/data/systemd/skcapstone-memory-compress.timer +11 -0
- package/src/skcapstone/data/systemd/skcapstone.service +37 -0
- package/src/skcapstone/data/systemd/skcapstone@.service +50 -0
- package/src/skcapstone/data/systemd/skcomms-heartbeat.service +18 -0
- package/{systemd/skcomm-heartbeat.timer → src/skcapstone/data/systemd/skcomms-heartbeat.timer} +2 -2
- package/src/skcapstone/data/systemd/skcomms-queue-drain.service +17 -0
- package/{systemd/skcomm-queue-drain.timer → src/skcapstone/data/systemd/skcomms-queue-drain.timer} +2 -2
- package/src/skcapstone/defaults/claude/CLAUDE.md +67 -0
- package/src/skcapstone/defaults/claude/settings.json +74 -0
- package/src/skcapstone/defaults/lumina/config/claude-hooks.md +57 -0
- package/src/skcapstone/defaults/lumina/config/skgraph.yaml +55 -10
- package/src/skcapstone/defaults/lumina/config/skmemory.yaml +79 -13
- package/src/skcapstone/defaults/lumina/config/skvector.yaml +60 -9
- package/src/skcapstone/defaults/lumina/memory/long-term/18b9c0d1e2f3-cloud9-protocol.json +2 -2
- package/src/skcapstone/defaults/lumina/memory/long-term/a1b2c3d4e5f6-ecosystem-overview.json +2 -2
- package/src/skcapstone/defaults/lumina/memory/long-term/b2c3d4e5f6a7-five-pillars.json +9 -9
- package/src/skcapstone/defaults/lumina/memory/long-term/d4e5f6a7b8c9-site-directory.json +2 -2
- package/src/skcapstone/defaults/unhinged.json +13 -0
- package/src/skcapstone/discovery.py +43 -20
- package/src/skcapstone/doctor.py +941 -22
- package/src/skcapstone/dreaming.py +1183 -109
- package/src/skcapstone/emotion_tracker.py +2 -2
- package/src/skcapstone/export.py +4 -3
- package/src/skcapstone/fuse_mount.py +35 -25
- package/src/skcapstone/gui_installer.py +2 -2
- package/src/skcapstone/heartbeat.py +34 -30
- package/src/skcapstone/housekeeping.py +14 -14
- package/src/skcapstone/install_wizard.py +209 -7
- package/src/skcapstone/itil.py +13 -4
- package/src/skcapstone/kms_scheduler.py +10 -8
- package/src/skcapstone/launchd.py +426 -0
- package/src/skcapstone/mcp_launcher.py +15 -1
- package/src/skcapstone/mcp_server.py +341 -49
- package/src/skcapstone/mcp_tools/__init__.py +2 -0
- package/src/skcapstone/mcp_tools/_helpers.py +2 -2
- package/src/skcapstone/mcp_tools/ansible_tools.py +7 -4
- package/src/skcapstone/mcp_tools/brain_first_tools.py +90 -0
- package/src/skcapstone/mcp_tools/capauth_tools.py +7 -4
- package/src/skcapstone/mcp_tools/comm_tools.py +10 -10
- package/src/skcapstone/mcp_tools/coord_tools.py +8 -4
- package/src/skcapstone/mcp_tools/did_tools.py +11 -8
- package/src/skcapstone/mcp_tools/gtd_tools.py +4 -4
- package/src/skcapstone/mcp_tools/memory_tools.py +6 -2
- package/src/skcapstone/mcp_tools/notification_tools.py +22 -6
- package/src/skcapstone/mcp_tools/{skcomm_tools.py → skcomms_tools.py} +14 -14
- package/src/skcapstone/mcp_tools/soul_tools.py +8 -2
- package/src/skcapstone/mdns_discovery.py +2 -2
- package/src/skcapstone/memory_curator.py +1 -1
- package/src/skcapstone/memory_engine.py +10 -3
- package/src/skcapstone/metrics.py +30 -16
- package/src/skcapstone/migrate_memories.py +4 -3
- package/src/skcapstone/migrate_multi_agent.py +8 -7
- package/src/skcapstone/models.py +47 -5
- package/src/skcapstone/notifications.py +42 -18
- package/src/skcapstone/onboard.py +1000 -126
- package/src/skcapstone/operator_link.py +170 -0
- package/src/skcapstone/peer_directory.py +4 -4
- package/src/skcapstone/peers.py +19 -19
- package/src/skcapstone/pillars/__init__.py +7 -5
- package/src/skcapstone/pillars/consciousness.py +191 -0
- package/src/skcapstone/pillars/identity.py +51 -7
- package/src/skcapstone/pillars/memory.py +9 -3
- package/src/skcapstone/pillars/sync.py +2 -2
- package/src/skcapstone/preflight.py +3 -3
- package/src/skcapstone/providers/docker.py +28 -28
- package/src/skcapstone/register.py +6 -6
- package/src/skcapstone/registry_client.py +5 -4
- package/src/skcapstone/runtime.py +14 -3
- package/src/skcapstone/scheduled_tasks.py +254 -19
- package/src/skcapstone/scheduler_jobs.py +456 -0
- package/src/skcapstone/scheduler_runner.py +239 -0
- package/src/skcapstone/scheduler_state.py +162 -0
- package/src/skcapstone/sdk.py +310 -0
- package/src/skcapstone/service_health.py +279 -39
- package/src/skcapstone/session_briefing.py +108 -0
- package/src/skcapstone/session_capture.py +1 -1
- package/src/skcapstone/shell.py +7 -1
- package/src/skcapstone/soul.py +3 -1
- package/src/skcapstone/soul_switch.py +3 -1
- package/src/skcapstone/summary.py +6 -6
- package/src/skcapstone/sync_engine.py +15 -15
- package/src/skcapstone/sync_watcher.py +2 -2
- package/src/skcapstone/systemd.py +72 -21
- package/src/skcapstone/team_comms.py +8 -8
- package/src/skcapstone/team_engine.py +1 -1
- package/src/skcapstone/testrunner.py +3 -3
- package/src/skcapstone/trust_graph.py +40 -5
- package/src/skcapstone/unified_search.py +15 -6
- package/src/skcapstone/uninstall_wizard.py +11 -3
- package/src/skcapstone/version_check.py +8 -4
- package/src/skcapstone/warmth_anchor.py +4 -2
- package/src/skcapstone/whoami.py +4 -4
- package/systemd/skcapstone.service +4 -6
- package/systemd/skcapstone@.service +7 -8
- package/systemd/skcomms-heartbeat.service +21 -0
- package/systemd/skcomms-heartbeat.timer +12 -0
- package/systemd/skcomms-queue-drain.service +17 -0
- package/systemd/skcomms-queue-drain.timer +12 -0
- package/tests/conftest.py +39 -0
- package/tests/integration/test_consciousness_e2e.py +39 -39
- package/tests/test_agent_card.py +1 -1
- package/tests/test_agent_home_scaffold.py +34 -0
- package/tests/test_alerts_consumer_topics.py +27 -0
- package/tests/test_backup.py +2 -1
- package/tests/test_chat.py +6 -6
- package/tests/test_claude_md.py +2 -2
- package/tests/test_cli_skills.py +10 -10
- package/tests/test_cli_test_cmd.py +4 -4
- package/tests/test_cli_test_connection.py +1 -1
- package/tests/test_cloud9_bridge.py +6 -6
- package/tests/test_consciousness_e2e.py +1 -1
- package/tests/test_consciousness_loop.py +10 -10
- package/tests/test_coordination.py +25 -0
- package/tests/test_cross_package.py +21 -21
- package/tests/test_daemon.py +4 -4
- package/tests/test_daemon_shutdown.py +1 -1
- package/tests/test_docker_provider.py +29 -29
- package/tests/test_doctor.py +400 -0
- package/tests/test_doctor_skscheduler.py +50 -0
- package/tests/test_dreaming_engine.py +147 -0
- package/tests/test_dreaming_gtd_capture.py +35 -0
- package/tests/test_e2e_automated.py +8 -5
- package/tests/test_fuse_mount.py +10 -10
- package/tests/test_gtd_brief.py +46 -0
- package/tests/test_gtd_malformed_tolerance.py +31 -0
- package/tests/test_housekeeping.py +15 -15
- package/tests/test_identity_migrate.py +251 -0
- package/tests/test_integration_backbone.py +598 -0
- package/tests/test_itil_gtd_lifecycle.py +37 -0
- package/tests/test_jobs_dropins.py +84 -0
- package/tests/test_mcp_server.py +82 -37
- package/tests/test_models.py +48 -4
- package/tests/test_multi_agent.py +31 -29
- package/tests/test_notifications.py +122 -32
- package/tests/test_onboard.py +63 -75
- package/tests/test_operator_link.py +78 -0
- package/tests/test_peers.py +14 -14
- package/tests/test_pillars.py +98 -0
- package/tests/test_preflight.py +3 -3
- package/tests/test_runtime.py +21 -0
- package/tests/test_scheduled_tasks.py +11 -6
- package/tests/test_scheduler_cli.py +47 -0
- package/tests/test_scheduler_features.py +133 -0
- package/tests/test_scheduler_integration.py +87 -0
- package/tests/test_scheduler_jobs.py +155 -0
- package/tests/test_scheduler_runner.py +64 -0
- package/tests/test_scheduler_state.py +57 -0
- package/tests/test_sdk.py +70 -0
- package/tests/test_service_health_incidents.py +34 -0
- package/tests/test_service_registry.py +52 -0
- package/tests/test_session_briefing.py +130 -0
- package/tests/test_snapshots.py +4 -4
- package/tests/test_sync_pipeline.py +26 -26
- package/tests/test_team_comms.py +2 -2
- package/tests/test_testrunner.py +2 -2
- package/tests/test_trust_graph.py +18 -0
- package/tests/test_unified_search.py +2 -2
- package/tests/test_version_check.py +10 -0
- package/tests/test_version_cmd.py +8 -8
- package/tests/test_whoami.py +1 -1
- package/systemd/skcomm-heartbeat.service +0 -18
- package/systemd/skcomm-queue-drain.service +0 -17
- /package/{openclaw-plugin → openclaw-plugin.archived-2026-04-23}/package.json +0 -0
- /package/{openclaw-plugin → openclaw-plugin.archived-2026-04-23}/src/openclaw.plugin.json +0 -0
package/docs/DREAMING.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Dreaming Engine — Setup & Usage
|
|
2
|
+
|
|
3
|
+
The dreaming engine (`src/skcapstone/dreaming.py`) gathers recent memories, reflects on
|
|
4
|
+
them with an LLM, and stores resulting **insights / connections / questions** as new
|
|
5
|
+
memories (`~/.skcapstone/agents/$AGENT/memory/dream-log.json`). It is driven by the
|
|
6
|
+
**consciousness daemon** on an idle cycle.
|
|
7
|
+
|
|
8
|
+
## How it's triggered
|
|
9
|
+
- Runs inside the **consciousness daemon**: `skcapstone daemon start|stop|status`.
|
|
10
|
+
- Fires when the agent is idle (`idle_threshold_minutes`), respecting `cooldown_hours`
|
|
11
|
+
and `max_per_day`. There is **no on-demand CLI trigger** — restart the daemon to load
|
|
12
|
+
config/code changes; it dreams on the next eligible cycle.
|
|
13
|
+
- Daily reflection (separate): `agents/$AGENT/scripts/daily-dream-reflection.sh` (4am cron)
|
|
14
|
+
summarizes the last 24h to Telegram.
|
|
15
|
+
|
|
16
|
+
## LLM provider (the important part)
|
|
17
|
+
`DreamingConfig` (in `dreaming.py`) picks the model. Providers: `claude` (CLI), `nvidia`
|
|
18
|
+
(NIM), `ollama` (any OpenAI-compatible host). **Default since 2026-06-08: `ollama` →
|
|
19
|
+
BeeLlama (abliterated Qwen3.6-27B) on the local GPU.**
|
|
20
|
+
|
|
21
|
+
### Sample config (consciousness `dreaming:` section, or the dataclass defaults)
|
|
22
|
+
```yaml
|
|
23
|
+
dreaming:
|
|
24
|
+
enabled: true
|
|
25
|
+
provider: ollama # claude | nvidia | ollama
|
|
26
|
+
ollama_host: "http://192.168.0.100:8082" # BeeLlama, OpenAI-compatible /v1/chat/completions
|
|
27
|
+
ollama_model: "qwen3.6-27b-abliterated" # served by skai-beellama.service
|
|
28
|
+
temperature: 1.0
|
|
29
|
+
creativity_mode: unhinged # conservative | balanced | creative | unhinged
|
|
30
|
+
max_response_tokens: 4096
|
|
31
|
+
idle_threshold_minutes: 30
|
|
32
|
+
cooldown_hours: 2.0
|
|
33
|
+
max_per_day: 1
|
|
34
|
+
# --- anti-repetition guard (the "fix dreaming repetition bug" work) ---
|
|
35
|
+
dedup_lookback: 10 # compare against last N dreams
|
|
36
|
+
dedup_overlap_threshold: 0.60 # skip insights >60% keyword-overlapping recent ones
|
|
37
|
+
graduation_consecutive_threshold: 5 # graduate a theme after 5 appearances (stop re-surfacing)
|
|
38
|
+
diversity_lookback: 5
|
|
39
|
+
diversity_min_unique_ratio: 0.40 # force memory diversification if recent dreams too similar
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
> The `ollama` provider calls **`/v1/chat/completions`** (OpenAI format) and strips
|
|
43
|
+
> `<think>…</think>`. Point `ollama_host` at any OpenAI-compatible server (BeeLlama,
|
|
44
|
+
> Ollama's `/v1`, etc.) and set `ollama_model` to a model it serves.
|
|
45
|
+
|
|
46
|
+
### History / gotcha
|
|
47
|
+
The engine stalled **2026-05-03**: the old default `provider: claude` died with an OAuth
|
|
48
|
+
degradation, and the ollama fallback was hardcoded to `deepseek-r1:32b` (not present on the
|
|
49
|
+
host). Fix = repoint to BeeLlama abliterated (above) + make `_call_ollama` speak OpenAI
|
|
50
|
+
chat format. See `BeeLlama` / `skai-beellama.service` on the GPU host.
|
|
51
|
+
|
|
52
|
+
## Reviewing dreams
|
|
53
|
+
- **Interactive:** the `dream-review` skill (`~/clawd/skills/dream-review`) — extract →
|
|
54
|
+
present → ComfyUI Flux art (`scripts/generate-dream-art.sh`) → file to GTD/seeds.
|
|
55
|
+
- **Weekly (automated):** Hermes cron `weekly-dream-reflection` (Sun 9:13) → Lumina
|
|
56
|
+
summarizes the week + a mood image → Telegram DM → **archives that week's dream items out
|
|
57
|
+
of the GTD inbox** (`~/.hermes/scripts/dream-week-prep.sh`).
|
|
58
|
+
- **Catch-up / backlog (one-off):** `~/clawd/scripts/dream_catchup.py` batch-summarizes the
|
|
59
|
+
unique backlog via BeeLlama; `dream_catchup_complete.py` meta-synthesizes, files
|
|
60
|
+
`dream-summaries-<date>.md` **and ingests them into the pg `docs` store
|
|
61
|
+
(`source=dream-summaries`)** for future meta-analysis, then archives the backlog.
|
|
62
|
+
|
|
63
|
+
## Files
|
|
64
|
+
| File | Purpose |
|
|
65
|
+
|---|---|
|
|
66
|
+
| `src/skcapstone/dreaming.py` | the engine (gather → reflect → dedup/graduate → store) |
|
|
67
|
+
| `agents/$AGENT/scripts/daily-dream-reflection.sh` | 4am daily reflection → Telegram |
|
|
68
|
+
| `~/.hermes/scripts/dream-week-prep.sh` | weekly digest + GTD archive (Hermes cron) |
|
|
69
|
+
| `~/clawd/scripts/dream_catchup*.py` | backlog catch-up (summarize → synth → ingest → archive) |
|
|
70
|
+
| `~/clawd/skills/dream-review/` | interactive review skill (+ ComfyUI art) |
|
package/docs/GETTING_STARTED.md
CHANGED
|
@@ -86,7 +86,7 @@ pip install skcapstone
|
|
|
86
86
|
|
|
87
87
|
**Recommended** — all pillars:
|
|
88
88
|
```bash
|
|
89
|
-
pip install skcapstone skmemory
|
|
89
|
+
pip install skcapstone skmemory skcomms capauth
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
**Full** — everything including optional extras:
|
|
@@ -98,7 +98,7 @@ pip install "skcapstone[all]"
|
|
|
98
98
|
|---------|-------------|
|
|
99
99
|
| `skcapstone` | Core framework, CLI, daemon, coordination |
|
|
100
100
|
| `skmemory` | Persistent memory (short/mid/long-term layers) |
|
|
101
|
-
| `
|
|
101
|
+
| `skcomms` | Encrypted agent-to-agent message transport |
|
|
102
102
|
| `capauth` | PGP-based sovereign identity pillar |
|
|
103
103
|
|
|
104
104
|
### Verify the install
|
|
@@ -189,7 +189,7 @@ skcapstone whoami
|
|
|
189
189
|
│ Handle: my-agent@skworld.io │
|
|
190
190
|
│ Consciousness: SINGULAR │
|
|
191
191
|
│ Memories: 0 │
|
|
192
|
-
│ Capabilities: capauth:identity,
|
|
192
|
+
│ Capabilities: capauth:identity, skcomms:messaging, skmemory:persistence │
|
|
193
193
|
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
194
194
|
Share this card: skcapstone whoami --export card.json
|
|
195
195
|
Peer imports it: skcapstone peer add --card card.json
|
|
@@ -429,8 +429,8 @@ skcapstone doctor
|
|
|
429
429
|
✓ Memory store (1 memory across all layers)
|
|
430
430
|
✓ Memory search index (present)
|
|
431
431
|
|
|
432
|
-
Transport (
|
|
433
|
-
✓
|
|
432
|
+
Transport (SKComms)
|
|
433
|
+
✓ SKComms engine (1 transport configured)
|
|
434
434
|
✓ Transport: file (available)
|
|
435
435
|
|
|
436
436
|
29 passed, 0 failed out of 29 checks.
|
|
@@ -548,7 +548,7 @@ Common causes and fixes:
|
|
|
548
548
|
| Log message | Fix |
|
|
549
549
|
|-------------|-----|
|
|
550
550
|
| `skseed not installed` | `pip install "skcapstone[seed]"` |
|
|
551
|
-
| `
|
|
551
|
+
| `skcomms not installed` | `pip install skcomms` |
|
|
552
552
|
| `watchdog not installed` | `pip install watchdog` (degrades to polling without it) |
|
|
553
553
|
| `Ollama warmup skipped` | Run `ollama serve`, then `ollama pull llama3.2` |
|
|
554
554
|
| `Connection refused: 11434` | Ollama isn't running — start it with `ollama serve` |
|
|
@@ -714,6 +714,9 @@ Configure your MCP client to connect via stdio. In Claude Desktop:
|
|
|
714
714
|
}
|
|
715
715
|
```
|
|
716
716
|
|
|
717
|
+
For multi-agent setups (running different agent profiles in different
|
|
718
|
+
sessions), see [Configuring Client Tools for Multi-Agent](CUSTOM_AGENT.md#configuring-client-tools-for-multi-agent).
|
|
719
|
+
|
|
717
720
|
### Join the coordination board
|
|
718
721
|
|
|
719
722
|
If you're working in a multi-agent team:
|
|
@@ -745,7 +748,7 @@ skcapstone context # regenerate CLAUDE.md context
|
|
|
745
748
|
|
|
746
749
|
```
|
|
747
750
|
# Install
|
|
748
|
-
pip install skcapstone skmemory
|
|
751
|
+
pip install skcapstone skmemory skcomms capauth
|
|
749
752
|
|
|
750
753
|
# First-time setup
|
|
751
754
|
skcapstone init --name "my-agent"
|
package/docs/QUICKSTART.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Zero to sovereign agent in ~15 minutes.
|
|
4
4
|
|
|
5
|
+
> **CLI reference:** This doc covers the most common commands. For the full up-to-date
|
|
6
|
+
> command list run `skcapstone --help` or `skcapstone <command> --help`. The CLI is the
|
|
7
|
+
> authoritative source; this doc may lag new additions by a version or two.
|
|
8
|
+
|
|
5
9
|
---
|
|
6
10
|
|
|
7
11
|
## Architecture
|
|
@@ -16,7 +20,7 @@ flowchart LR
|
|
|
16
20
|
E -->|CODE tier| G[Ollama\ndevstral]
|
|
17
21
|
E -->|REASON tier| H[cloud API\nanthropic / grok / …]
|
|
18
22
|
E -->|fallback cascade| I[passthrough]
|
|
19
|
-
F & G & H & I --> J[
|
|
23
|
+
F & G & H & I --> J[SKComms send\nresponse → sender]
|
|
20
24
|
J --> K[Daemon HTTP API\n:7777/consciousness]
|
|
21
25
|
```
|
|
22
26
|
|
|
@@ -86,7 +90,7 @@ pip install "skcapstone[consciousness,comms,seed]"
|
|
|
86
90
|
| Extra | Installs | Required for |
|
|
87
91
|
|-------|----------|-------------|
|
|
88
92
|
| `consciousness` | `watchdog` | inotify inbox watcher |
|
|
89
|
-
| `comms` | `
|
|
93
|
+
| `comms` | `skcomms` | SKComms message transport |
|
|
90
94
|
| `seed` | `skseed` | LLM callbacks (Ollama, Anthropic, etc.) |
|
|
91
95
|
| `identity` | `capauth` | PGP identity pillar |
|
|
92
96
|
|
|
@@ -294,7 +298,7 @@ skcapstone daemon uninstall
|
|
|
294
298
|
|
|
295
299
|
## 7. Send a Test Message
|
|
296
300
|
|
|
297
|
-
The consciousness loop watches `$
|
|
301
|
+
The consciousness loop watches `$SKCOMMS_HOME/sync/comms/inbox/` (default `~/.skcomms/sync/comms/inbox/`). Dropping a JSON envelope there triggers an immediate response.
|
|
298
302
|
|
|
299
303
|
### Quick end-to-end test via CLI
|
|
300
304
|
|
|
@@ -302,12 +306,12 @@ The consciousness loop watches `$SKCOMM_HOME/sync/comms/inbox/` (default `~/.skc
|
|
|
302
306
|
skcapstone consciousness test "Hello, are you there?"
|
|
303
307
|
```
|
|
304
308
|
|
|
305
|
-
This runs the full pipeline (classify → model router → LLM → response) synchronously and prints the result without going through
|
|
309
|
+
This runs the full pipeline (classify → model router → LLM → response) synchronously and prints the result without going through SKComms.
|
|
306
310
|
|
|
307
311
|
### Manual inbox write (mimics a real peer message)
|
|
308
312
|
|
|
309
313
|
```bash
|
|
310
|
-
INBOX=~/.
|
|
314
|
+
INBOX=~/.skcomms/sync/comms/inbox
|
|
311
315
|
mkdir -p "$INBOX"
|
|
312
316
|
|
|
313
317
|
cat > "$INBOX/test-$(date +%s).json" << 'EOF'
|
|
@@ -406,7 +410,7 @@ Common causes:
|
|
|
406
410
|
| Error | Fix |
|
|
407
411
|
|-------|-----|
|
|
408
412
|
| `skseed not installed` | `pip install "skcapstone[seed]"` |
|
|
409
|
-
| `
|
|
413
|
+
| `skcomms not installed` | `pip install "skcapstone[comms]"` |
|
|
410
414
|
| `watchdog not installed` | `pip install "skcapstone[consciousness]"` — degrades to polling |
|
|
411
415
|
| `Ollama warmup skipped` | Start Ollama: `ollama serve` then `ollama pull llama3.2` |
|
|
412
416
|
|
|
@@ -517,7 +517,7 @@ classDiagram
|
|
|
517
517
|
|
|
518
518
|
SKJoule is not standalone. It connects to every major component of the SK
|
|
519
519
|
ecosystem. The coord board in SKCapstone triggers Joule minting. SKMemory
|
|
520
|
-
stores work records.
|
|
520
|
+
stores work records. SKComms enables peer-to-peer transfers. SKVector and
|
|
521
521
|
SKGraph provide verification data.
|
|
522
522
|
|
|
523
523
|
```mermaid
|
|
@@ -536,7 +536,7 @@ flowchart TD
|
|
|
536
536
|
MEM_REP["Reputation Logs"]
|
|
537
537
|
end
|
|
538
538
|
|
|
539
|
-
subgraph "
|
|
539
|
+
subgraph "SKComms"
|
|
540
540
|
COMM_P2P["P2P Token Transfers"]
|
|
541
541
|
COMM_MSG["Agent-to-Agent Messaging"]
|
|
542
542
|
COMM_SYNC["Syncthing Distribution"]
|
|
@@ -593,7 +593,7 @@ flowchart TD
|
|
|
593
593
|
**Data flow summary:**
|
|
594
594
|
- SKCapstone provides the task lifecycle (claim, work, complete) and cost data
|
|
595
595
|
- SKMemory persists all work records, P&L snapshots, and reputation logs
|
|
596
|
-
-
|
|
596
|
+
- SKComms handles peer-to-peer Joule transfers between agents
|
|
597
597
|
- SKVector/SKGraph enable work verification through embeddings and provenance
|
|
598
598
|
- OpenClaw is the execution environment where agents actually do work
|
|
599
599
|
- On-chain contracts handle final token minting and cross-chain bridging
|
package/docs/SOUL_SWAPPER.md
CHANGED
|
@@ -126,7 +126,7 @@ skcapstone soul install-all ~/clawd/soul-blueprints/blueprints/
|
|
|
126
126
|
|
|
127
127
|
## 4. CLI Reference
|
|
128
128
|
|
|
129
|
-
All soul commands live under the `skcapstone soul` group. Every command accepts a `--agent` / `-a` flag to target a specific agent profile (defaults to `
|
|
129
|
+
All soul commands live under the `skcapstone soul` group. Every command accepts a `--agent` / `-a` flag to target a specific agent profile (defaults to `SKAGENT` env var, with fallback to `SKCAPSTONE_AGENT`).
|
|
130
130
|
|
|
131
131
|
### `soul list`
|
|
132
132
|
|
|
@@ -488,7 +488,7 @@ Every soul command supports the `--agent` / `-a` flag to target a specific agent
|
|
|
488
488
|
|
|
489
489
|
### How it works
|
|
490
490
|
|
|
491
|
-
When `--agent casey` is passed (or `
|
|
491
|
+
When `--agent casey` is passed (or `SKAGENT=casey` / `skswitch casey` is used), all soul data is stored under:
|
|
492
492
|
|
|
493
493
|
```
|
|
494
494
|
~/.skcapstone/agents/casey/soul/
|
|
@@ -520,10 +520,10 @@ skcapstone soul status --agent nova # -> base
|
|
|
520
520
|
|
|
521
521
|
### Environment variable
|
|
522
522
|
|
|
523
|
-
Instead of passing `--agent` every time,
|
|
523
|
+
Instead of passing `--agent` every time, use `skswitch`:
|
|
524
524
|
|
|
525
525
|
```bash
|
|
526
|
-
|
|
526
|
+
skswitch casey
|
|
527
527
|
skcapstone soul swap the-attorney # targets casey automatically
|
|
528
528
|
```
|
|
529
529
|
|
|
@@ -775,7 +775,7 @@ Registers all `skcapstone soul *` commands via Click. Key implementation details
|
|
|
775
775
|
|
|
776
776
|
- `_find_blueprint_in_repo(slug)` -- Searches `~/clawd/soul-blueprints/blueprints/*/` for a matching file, trying hyphenated, underscored, and uppercased variants
|
|
777
777
|
- `soul swap` -- The most complex command; searches installed, then repo, auto-installs if needed, records audit events
|
|
778
|
-
- All commands use `SoulManager` with the agent name from `--agent` / `
|
|
778
|
+
- All commands use `SoulManager` with the agent name from `--agent` / `SKAGENT`
|
|
779
779
|
|
|
780
780
|
### `mcp_tools/soul_tools.py` -- MCP Handlers
|
|
781
781
|
|