Commit 20ae926
authored
feat: add graph-aware recall, auto-linking, and multi-tool hooks (#91)
- Auto-link memories by embedding similarity (>0.75 cosine) with
bidirectional backrefs at store time (auto_link.rs)
- Graph-aware recall: expand results 1-hop via related_ids with
0.5× score discount
- Add hooks support for Gemini CLI (SessionStart, BeforeTool,
AfterTool, PreCompress, BeforeAgent) in ~/.gemini/settings.json
- Add hooks support for Codex CLI (SessionStart, PreToolUse,
PostToolUse, UserPromptSubmit) in ~/.codex/hooks.json
- Add hooks + MCP support for Copilot CLI
(~/.copilot/mcp-config.json + .github/hooks/icm.json)
- Adapt hook handlers for cross-tool field names
(run_shell_command, prompt, input)
- Rename inject_claude_hook → inject_settings_hook (generic)
- expand_with_neighbors() in store for graph traversal1 parent 6b8f1a5 commit 20ae926
File tree
8 files changed
+1222
-35
lines changed- .github/hooks
- crates
- icm-cli/src
- icm-core/src
- icm-mcp/src
- icm-store/src
8 files changed
+1222
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments