feat: context repositories — git-backed memory system#6
Merged
ByteMirror merged 4 commits intomainfrom Feb 24, 2026
Merged
Conversation
- Call instanceChanged() after creating chat agent so tabbedWindow enters chat mode and clears stale content - Add defer recover() in startCmd to prevent process crashes - Add debug logging throughout createChatAgent and instanceChanged to diagnose remaining panic - Fix sidebar chat tab to not show code topics - Add log import to app_state.go
… tab - Set started=true for chat agents in FromInstanceData so they survive SaveInstances() calls after reload - Add chat agent early-return in Resume() delegating to startChatAgent() - Skip code topics in multi-repo sidebar when Chat tab is active - Inject companion personality into CLAUDE.md for all agent types - Fix linter-introduced undefined InjectMemoryContext/GetOrCreateRepoManager - Guard UpdateDiffStats against nil gitWorktree for chat agents - Clean up debug logging from crash investigation
…te, revamp memory browser UI - Add Sync() calls after global.md → system/global.md rename to keep search index consistent - memory_write with scope="global" now writes to system/global.md instead of being ignored - Memory browser now uses Manager methods (Read/WriteFile/Delete) instead of raw os calls - Browser shows frontmatter descriptions, system file pin indicators, and pin/unpin keybindings - Rebuild hivemind-mcp binary with all 11 memory tools + 3 memory skills - Update server instructions and CLAUDE.md injection to reference system/global.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements "Context Repositories" for the Hivemind memory system: a git-backed filesystem with YAML frontmatter,
system/always-in-context files, and subagent-based maintenance skills.description,read-only) on memory files, parsed/stripped transparentlygit loghistory per filesystem/directory for always-in-context files;global.mdauto-migrated on first runmemory_read,memory_tree,memory_history,memory_append,memory_move,memory_delete,memory_pin,memory_unpin,memory_init,memory_reflect,memory_defragList()and watcher now traverse subdirectories, skip.git/and.index/git_enabledandsystem_budget_charstoMemoryConfigNew files
memory/frontmatter.gomemory/git.gomemory/tree.gomcp/memory_skills.goBackward compatibility
memory_writewithoutpath= append to daily file (existing behavior)memory_search/memory_listkeep same names and paramsgitRepo == nilmeans all git ops are no-opsTest plan
go build ./...— compiles cleango vet ./...— no issuesgo test ./...— all 16 packages pass (0 failures)memory_pin,memory_tree,memory_historyfrom agent