Skip to content

Commit e0b205c

Browse files
committed
Removed CLAUDE.md from gitignore
1 parent 3e1e513 commit e0b205c

3 files changed

Lines changed: 135 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
test/unittest.dSYM/Contents/Info.plist
33
test/unittest.dSYM/Contents/Resources/DWARF/unittest
44
test/unittest.dSYM/Contents/Resources/Relocations/aarch64/unittest.yml
5-
CLAUDE.md
65
/build

CLAUDE.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# CLAUDE.md
2+
3+
Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed.
4+
5+
**Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.
6+
7+
## 1. Think Before Coding
8+
9+
**Don't assume. Don't hide confusion. Surface tradeoffs.**
10+
11+
Before implementing:
12+
- State your assumptions explicitly. If uncertain, ask.
13+
- If multiple interpretations exist, present them - don't pick silently.
14+
- If a simpler approach exists, say so. Push back when warranted.
15+
- If something is unclear, stop. Name what's confusing. Ask.
16+
17+
## 2. Simplicity First
18+
19+
**Minimum code that solves the problem. Nothing speculative.**
20+
21+
- No features beyond what was asked.
22+
- No abstractions for single-use code.
23+
- No "flexibility" or "configurability" that wasn't requested.
24+
- No error handling for impossible scenarios.
25+
- If you write 200 lines and it could be 50, rewrite it.
26+
27+
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
28+
29+
## 3. Surgical Changes
30+
31+
**Touch only what you must. Clean up only your own mess.**
32+
33+
When editing existing code:
34+
- Don't "improve" adjacent code, comments, or formatting.
35+
- Don't refactor things that aren't broken.
36+
- Match existing style, even if you'd do it differently.
37+
- If you notice unrelated dead code, mention it - don't delete it.
38+
39+
When your changes create orphans:
40+
- Remove imports/variables/functions that YOUR changes made unused.
41+
- Don't remove pre-existing dead code unless asked.
42+
43+
The test: Every changed line should trace directly to the user's request.
44+
45+
## 4. Goal-Driven Execution
46+
47+
**Define success criteria. Loop until verified.**
48+
49+
Transform tasks into verifiable goals:
50+
- "Add validation" → "Write tests for invalid inputs, then make them pass"
51+
- "Fix the bug" → "Write a test that reproduces it, then make it pass"
52+
- "Refactor X" → "Ensure tests pass before and after"
53+
54+
For multi-step tasks, state a brief plan:
55+
```
56+
1. [Step] → verify: [check]
57+
2. [Step] → verify: [check]
58+
3. [Step] → verify: [check]
59+
```
60+
61+
Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
62+
63+
---
64+
65+
**These guidelines are working if:** fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, and clarifying questions come before implementation rather than after mistakes.

sessions/session-2026-02-10.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Session Summary - 2026-02-10
2+
3+
## Project: sqlite-memory
4+
5+
SQLite extension for AI agent memory with semantic search, hybrid retrieval, and offline-first sync between agents.
6+
7+
---
8+
9+
## Work Completed
10+
11+
### 1. Documentation Updates
12+
13+
Updated `README.md` and `API.md` to reflect changes to the `memory_search` virtual table:
14+
15+
- **Renamed column**: `score``ranking` in all query examples and documentation
16+
- **Documented columns**: `path`, `snippet`, `ranking` properly described
17+
- **Preserved settings**: `min_score` setting name unchanged (configuration option, not column)
18+
19+
### 2. GitHub Project Description
20+
21+
Created project descriptions for GitHub:
22+
23+
**Short (About field):**
24+
> SQLite extension for AI agent memory with semantic search, hybrid retrieval, and offline-first sync between agents
25+
26+
**Full description:**
27+
> A SQLite extension that gives AI agents persistent, searchable memory. Features hybrid semantic search (vector similarity + FTS5), markdown-aware chunking, and local embedding via llama.cpp. Memory databases can be synced between agents using offline-first technology—each agent works independently and syncs when connected, making it ideal for distributed AI systems, edge deployments, and collaborative agent architectures.
28+
29+
---
30+
31+
## Key Files Modified
32+
33+
| File | Changes |
34+
|------|---------|
35+
| `README.md` | Updated `memory_search` examples to use `ranking` column |
36+
| `API.md` | Updated column documentation and examples for `memory_search` |
37+
38+
---
39+
40+
## memory_search Virtual Table Schema
41+
42+
```sql
43+
SELECT * FROM memory_search WHERE query = 'search text';
44+
```
45+
46+
| Column | Type | Description |
47+
|--------|------|-------------|
48+
| `query` | TEXT (HIDDEN) | Search query (required in WHERE clause) |
49+
| `hash` | INTEGER | Content hash identifier |
50+
| `path` | TEXT | Source file path or generated UUID |
51+
| `context` | TEXT | Context label (NULL if not set) |
52+
| `snippet` | TEXT | Text snippet from matching chunk |
53+
| `ranking` | REAL | Combined similarity score (0.0 - 1.0) |
54+
55+
---
56+
57+
## Previous Session Context
58+
59+
This session continued from earlier work that included:
60+
- Implementing memory deletion, timestamps, and statistics features
61+
- Building Makefile with conditional llama.cpp/remote engine support
62+
- Adding support for both local (llama.cpp) and remote (vector.space) embedding
63+
- Renaming `max_items` to `max_results` throughout codebase
64+
- Creating comprehensive README.md and API.md documentation
65+
66+
---
67+
68+
## Version
69+
70+
sqlite-memory v0.5.1

0 commit comments

Comments
 (0)