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
`codeatrium` is a CLI-first memory layer for AI coding agents. The command is `loci`. It lets agents search past conversations, retrieve code locations (file + line + symbol), and link conversation history to code symbols.
4
+
5
+
Primary user is **the agent itself**, not a human. The tool is invoked via `loci search "..." --json` from within agent prompts.
6
+
7
+
## When to use
8
+
9
+
- When asked "where did we implement X?" or "where is X?"
10
+
- When checking if a similar bug was fixed before
11
+
- When verifying if a feature already exists
12
+
- When looking up the reasoning behind a past design decision
13
+
- Before editing code you lack context about — use `loci context --symbol` to review past discussions
14
+
- Before refactoring or changing the behavior of a function — use `loci context --symbol` to check past design decisions
15
+
- When recalling work done on a specific branch — use `loci context --branch` to find past conversations
16
+
17
+
## CLI Commands
18
+
19
+
```bash
20
+
loci init # Initialize .codeatrium/ in project root
21
+
loci index # Index new .jsonl files
22
+
loci distill [--limit N] # Distill queued exchanges via claude --print
23
+
loci search "query" --json --limit 5 # Semantic search (agent-facing)
24
+
loci search "query" --branch NAME --json # Branch-filtered semantic search
25
+
loci context --symbol "Foo.bar" --json # Reverse lookup: code -> past conversations (lightweight; use loci show <verbatim_ref> for full text)
26
+
loci context --branch NAME --json # Branch reverse lookup (undistilled exchanges included)
27
+
loci show "~/.claude/.../abc.jsonl:ply=42"# Fetch verbatim exchange
28
+
loci status # Show index state
29
+
loci server start / stop / status # Embedding server management
30
+
loci hook install # Register hooks to ~/.claude/settings.json
0 commit comments