|
Some checks are pending
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / preflight (push) Waiting to run
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / vps-smoke (push) Waiting to run
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:frustration-matrix,kei-frustration-loop,kei-skill-importer,kei-projects-index,kei-projects-watcher,kei-gdrive-import,kei-leak-matrix,kei-skills,kei-gateway,kei-cron-scheduler,kei-export-trajectories,kei-backend-daytona,kei-d… (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:kei-compute-baremetal,kei-compute-vultr,kei-compute-linode,kei-compute-digitalocean,kei-svc-systemd,kei-llm-bridge-mlx name:hosted-sleep-compute]) (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:kei-diff,kei-scheduler,kei-watch,kei-prune,kei-discover,kei-brain-view,kei-hibernate,kei-ledger-sign,kei-fork name:wave13-15]) (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:kei-git-gitea,kei-git-forgejo,kei-git-gitlab,kei-git-bitbucket,kei-memory-sled,kei-memory-redis,kei-memory-postgres,kei-memory-sqlite,kei-auth-google,kei-auth-apple,kei-auth-magiclink,kei-auth-webauthn,kei-notify-slack,kei-n… (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:kei-ledger,kei-migrate,kei-changelog,kei-memory,kei-store,kei-conflict-scan,kei-refactor-engine,kei-graph-check,kei-shared,kei-dna-index,kei-pet name:core]) (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:kei-machine-probe,kei-llm-ollama,kei-llm-llamacpp,kei-llm-mlx,kei-llm-router,kei-model name:llm-stack]) (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:kei-router,kei-sage,kei-task,kei-chat-store,kei-crossdomain,kei-search-core,kei-content-store,kei-social-store,kei-curator,kei-auth,kei-artifact name:mcp-lbm]) (push) Blocked by required conditions
CI (Forgejo Actions — self-hosted runner on Mac, host mode) / rust-primitives (map[crates:keisei,kei-forge,kei-runtime,kei-runtime-core,kei-atom-discovery,kei-agent-runtime,kei-capability,kei-provision,kei-entity-store,kei-pipe,kei-cache,kei-spawn,kei-replay name:atom-substrate]) (push) Blocked by required conditions
Closes the "Claude Code as single primary" gap. Now `kei` (no args) execs
whichever CLI is configured as primary, and ANY MCP-capable orchestrator
can spawn KeiSeiKit agents on any backend via the built-in spawn_agent tool.
## A — orchestrator picker
bin/kei now reads ~/.claude/config/primary.toml and execs that CLI instead
of hardcoding claude. New arms:
kei pick interactive menu → set primary → launch it
kei --on=<backend> one-shot launch of <backend> (no primary write)
kei primary [<b>] get/set primary
Splash shows `primary CLI: <backend>` so the orchestrator is visible.
Failure mode: if primary's CLI isn't on PATH, prints install hint + offers
`kei pick` recovery.
scripts/kei-pick.sh — Constructor Pattern picker (<140 LOC). Lists all 6
backends with install status (✓/✗), highlights current primary, writes
choice to primary.toml, execs the picked CLI. Honors stdin TTY gate
(RULE TTY-INTERACTIVITY-GATE — -t 0, not -t 1) for non-interactive safety.
## B — spawn_agent MCP tool
_primitives/_rust/kei-mcp/src/handlers/tools.rs gains a built-in
`spawn_agent` tool, exposed alongside discovered atoms:
- inputSchema: { name: str, task: str, on?: backend-enum }
- Calls kei-agent-cli.sh internally with same DNA resolution
- 60s timeout, kill-on-drop
- Honors KEI_AGENT_CLI env for testing
Smoke 2026-05-26 (MCP stdio JSON-RPC round-trip):
spawn_agent(name=smoke-test, on=claude) → "SMOKE-OK" ✅
spawn_agent(name=smoke-test, on=grok) → "SMOKE-OK" ✅
Why it matters: Claude Code has a native Agent tool. Grok / Agy / Copilot /
Kimi don't have an equivalent native sub-agent surface — but they all speak
MCP. spawn_agent gives them KeiSeiKit's sub-agent capability when they're
the orchestrator. The chosen orchestrator no longer caps the sub-agent fleet.
## Other
_primitives/_rust/kei-mcp/Cargo.toml: tokio gains "io-std" feature (was
missing — main.rs uses tokio::io::stdin/stdout). This fixes a latent build
error unrelated to this PR (kei-mcp wasn't building cleanly before).
Tests: tools_list assertions updated for the +1 built-in tool (3 total
instead of 2 with atoms; 1 instead of 0 on empty root). All MCP tests pass.
Assembler 3/3 golden tests still pass (provider field is optional).
|
||
|---|---|---|
| .. | ||
| .cargo | ||
| firewall-diff | ||
| frustration-matrix | ||
| kei-agent-runtime | ||
| kei-artifact | ||
| kei-atom-discovery | ||
| kei-auth | ||
| kei-auth-apple | ||
| kei-auth-google | ||
| kei-auth-magiclink | ||
| kei-auth-webauthn | ||
| kei-backend-daytona | ||
| kei-brain-view | ||
| kei-buddy | ||
| kei-cache | ||
| kei-capability | ||
| kei-changelog | ||
| kei-chat-store | ||
| kei-compute-baremetal | ||
| kei-compute-digitalocean | ||
| kei-compute-linode | ||
| kei-compute-vultr | ||
| kei-conflict-scan | ||
| kei-contacts-apple | ||
| kei-contacts-google | ||
| kei-content-store | ||
| kei-cortex | ||
| kei-cron-scheduler | ||
| kei-crossdomain | ||
| kei-curator | ||
| kei-db-contract | ||
| kei-decision | ||
| kei-decompose | ||
| kei-diff | ||
| kei-discover | ||
| kei-dna-index | ||
| kei-entity-store | ||
| kei-export-trajectories | ||
| kei-forge | ||
| kei-fork | ||
| kei-frustration-loop | ||
| kei-gateway | ||
| kei-gdrive-import | ||
| kei-git-bitbucket | ||
| kei-git-forgejo | ||
| kei-git-gitea | ||
| kei-git-gitlab | ||
| kei-graph-check | ||
| kei-graph-export | ||
| kei-graph-stream | ||
| kei-hibernate | ||
| kei-import-project | ||
| kei-leak-matrix | ||
| kei-ledger | ||
| kei-ledger-sign | ||
| kei-llm-bridge-mlx | ||
| kei-llm-llamacpp | ||
| kei-llm-mlx | ||
| kei-llm-ollama | ||
| kei-llm-router | ||
| kei-machine-probe | ||
| kei-mcp | ||
| kei-memory | ||
| kei-memory-postgres | ||
| kei-memory-redis | ||
| kei-memory-sled | ||
| kei-memory-sqlite | ||
| kei-migrate | ||
| kei-model | ||
| kei-model-router | ||
| kei-net-ipsec | ||
| kei-net-openvpn | ||
| kei-net-wireguard | ||
| kei-notify-discord | ||
| kei-notify-slack | ||
| kei-notify-sms | ||
| kei-notify-telegram | ||
| kei-pet | ||
| kei-ping | ||
| kei-pipe | ||
| kei-projects-index | ||
| kei-projects-watcher | ||
| kei-provision | ||
| kei-prune | ||
| kei-refactor-engine | ||
| kei-registry | ||
| kei-replay | ||
| kei-router | ||
| kei-runtime | ||
| kei-runtime-core | ||
| kei-sage | ||
| kei-scheduler | ||
| kei-search-core | ||
| kei-shared | ||
| kei-skill-importer | ||
| kei-skills | ||
| kei-social-store | ||
| kei-spawn | ||
| kei-store | ||
| kei-stt | ||
| kei-svc-systemd | ||
| kei-task | ||
| kei-telegram-webhook | ||
| kei-tlog | ||
| kei-token-tracker | ||
| kei-tts | ||
| kei-tty | ||
| kei-watch | ||
| keisei | ||
| mock-render | ||
| ssh-check | ||
| tokens-sync | ||
| visual-diff | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||