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
[scanner] ✨ knowledge: Claude Code SessionEnd/PostToolUse auto-memory drain hook (phase 2 of #17033) #17057
hive memory-drain --cli claude --agent "$HIVE_AGENT" subcommand wrapping the phase-1 library; reads Claude hook JSON on stdin (uses cwd to narrow to one project).
Seed hooks.SessionEnd (and hooks.PostToolUse, matcher Write|Edit|MultiEdit, when agents.cli_memory.drain_on_write is on) into the Hive-seeded Claude settings (sharedClaudeSettingsFile, the files ensureClaudeSettings writes) via seedJSONFile, merge-only; remove Hive's own entry when drain is off.
The PostToolUse command exits immediately unless file_path is under ~/.claude/projects/*/memory/.
Acceptance
Tests: seed/merge keeps operator hooks; fast exit outside the memory dir; end-to-end hook → draft fact → empty MEMORY.md.
hive memory-drain --cli claude --agent "$HIVE_AGENT" cannot be implemented until phase 1 lands; the phase-2 deliverable is explicitly a wrapper around that library.
Hive lifted the blocked label it applied on 2026-11-07T19:39:25Z: #17061 merged since, so the reason for the park no longer holds and the issue is back in the normal flow. Labels applied by a human are never lifted by this sweep (#12002).
A merged PR addressed only part of this issue (hive/partially-addressed); it stays open and actionable. Carrying the remainder back here so the next run targets what is still open.
The PR body says this is partial/non-closing work (Refs/Part of or leave-open wording), so Hive will not add a closing keyword. GitHub will not show its issue-list PR icon without a closing keyword; the stage comment is the link.
Activity
thatguywob commentedon Nov 7, 2026
blocked
🐝 Hive Agent:
contributor| SHA:unknownthatguywob commentedon Nov 7, 2026
blocked on phase 1 — phase 2 cannot proceed until it lands
Phase 2 (#17057) is defined as a wrapper around the phase-1 drain library, which does not exist on the base branch yet.
Evidence on
upstream/v5@49ff2e449624d621d8e007cf815628739a6107e7:src/pkg/knowledge/api.go:CreateFactRequesthas noStatefield (phase-1 scope item 1 not landed).src/crux/agent/: nomemdrainpackage; nocliMemoryStores/clearCLIMemoryLocked/autoMemorysymbols insrc/**/*.go.src/pkg/config/: noagents.cli_memoryconfig key.src/cmd/bd/: nobd create --type knowledge.src/docs/design/cli-memory-drain.mdexists only on open PR 📖 docs(design): drain CLI auto-memory into draft knowledge beads #17061 (scanner/fix-17033), not onv5.Phase 1 (#17056) itself depends on open PR #17040 (
feat/cli-memory-17032, "disable CLI auto-memory by default and add cli_memory.clear_on_kick").Blocker chain: #17040 (OPEN) → #17056 (OPEN) → #17057 (phase 2).
hive memory-drain --cli claude --agent "$HIVE_AGENT"cannot be implemented until phase 1 lands; the phase-2 deliverable is explicitly a wrapper around that library.🐝 Hive Agent:
contributor| SHA:unknownhivecommons-hive commentedon Nov 7, 2026
Hive lifted the
blockedlabel it applied on 2026-11-07T19:39:25Z: #17061 merged since, so the reason for the park no longer holds and the issue is back in the normal flow. Labels applied by a human are never lifted by this sweep (#12002).10 remaining items
hivecommons-hive commentedon Nov 8, 2026
A merged PR addressed only part of this issue (
hive/partially-addressed); it stays open and actionable. Carrying the remainder back here so the next run targets what is still open.Not yet touched:
MEMORY.mdRemainder from the PR body:
(phases: the
hive memory-drainsubcommand #17209 and hook seeding #17210 remain)This comment is edited in place by the task-list sweep on every cycle; it is not duplicated.
hivecommons-hive commentedon Nov 8, 2026
PR #17216 covers this issue: #17216
The PR body says this is partial/non-closing work (
Refs/Part ofor leave-open wording), so Hive will not add a closing keyword. GitHub will not show its issue-list PR icon without a closing keyword; the stage comment is the link.hivecommons-hive commentedon Nov 8, 2026
All children delivered: #17208 → PR #17212, #17209 → PR #17216, #17210 → PR #17216.
Every tracked child of this issue is closed, so the hive is closing it as completed. Reopen it if something it asked for is still missing.