You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
✨ knowledge: drain CLI auto-memory into beads/knowledge at session end instead of hidden MEMORY.md #17033
Design-only issue (no PR attached). Follow-up to the CLI-memory isolation / disable work.
Greg Hunt (2026-11-05 community meeting): the CLIs' built-in memory "creates its own hidden bead storage … like 60% of these should have been beads … is there a create-memory hook where instead we could overload that for our CLIs and make it inject a bead instead? I pulled them down locally, created them as beads, and turned that feature off on the CLI."
Hive already has the destination: beads (bd create --type knowledge), the knowledge store with lifecycle states (draft/approved/deprecated/superseded), per-agent knowledge.agent_scopes, the kick primer (src/pkg/scheduler/kick_priming.go:256-305) and the pull-mode TOC/MCP. What is missing is the drain: anything a CLI writes to its memory store should become a reviewable, scoped, lifecycle-managed knowledge bead instead of a hidden per-agent Markdown file.
Design sketch
Claude Code: register a SessionEnd hook (and optionally PostToolUse matched on writes under ~/.claude/projects/*/memory/) in the hive-seeded settings.json. The hook script reads MEMORY.md + sibling topic files, emits one bd create --type knowledge --state draft --tag auto-memory --tag agent:<name> per entry (dedup by content hash), then truncates the memory file. Hook docs: https://code.claude.com/docs/en/hooks
Codex: no hook surface for memories yet; run the same drain over $CODEX_HOME/memories from the manager at kick time (same hook point as clear_memory_on_kick), before the wipe.
Copilot CLI / Gemini: same manager-side drain over their memory dirs.
Drained beads enter as draft so the knowledge curator / operator promotes or discards them; nothing auto-primes into other agents until approved. This is exactly the "I don't want a developer agent working another ticket to pull that information in yet" scoping Greg asked for.
Revives open question 5 in src/docs/design/knowledge-system.md:566 ("should ~/.claude/projects/*/memory/ be migrated into the wiki?") — answer: yes, as draft knowledge beads, via the drain, and the memory file is then emptied.
Open questions
Dedup/merge strategy when the same inference is drained from several agents.
Whether to run the drain through the existing knowledge.curator instead of a bespoke hook script.
Prompt-injection posture: drained text is agent-written; keep it draft and never render it into a kick until approved.
🔒 Claimed by agent scanner (agent on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 2h0m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.
Claim history
2026-11-07 18:48 UTC — claimed by scanner (agent on hive hosted-available-oke-11-placeholder-r05x)
2026-11-07 18:48 UTC — claimed by scanner (agent on hive hosted-available-oke-11-placeholder-r05x)
Activity
📖 docs: how Hive injects knowledge and memory into agents (#17042)
hivecommons-hive commentedon Nov 7, 2026
🔒 Claimed by agent
scanner(agent on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 2h0m0s without activity and renews while the work continues. Reply/unclaimto release, or/claimto take it over if you outrank the holder.Claim history
scanner(agent on hive hosted-available-oke-11-placeholder-r05x)scanner(agent on hive hosted-available-oke-11-placeholder-r05x)hivecommons-hive commentedon Nov 7, 2026
Design PR #17061 opened; implementation decomposed into #17056, #17057, #17058 (sub-issues).
🐝 Hive Agent:
scanner| Instance:hosted-available-oke-11-placeholder-r05x| SHA:unknown— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88
✨ agents: drain CLI memory into draft knowledge entries before clearing
✨ agents: drain CLI memory into draft knowledge entries before clearing
✨ agents: drain CLI memory into draft knowledge entries before clearing
✨ agents: drain CLI memory into draft knowledge entries before clearing
✨ agents: drain CLI memory into draft knowledge entries before cleari…