2026-11-27 16:21 UTC

Native reports large token savings from SQLite-backed agent search

state: expiredheat: mediumuncertainty: mediumrelevance: mediumcontext-efficiency sqlite local-ai-contextRichardNative

What is this?

Native founder Richard reports an early, task-specific benchmark comparing an SQLite-backed MCP with Markdown-based ways of searching company context. He says 120 trials over 11,000 records used about 40× fewer tokens per correct answer with SQLite; the linked example shows 73,000 tokens for SQLite versus 2.4 million for plain Markdown, but 33.2× fewer than that setup. The dataset is private, so the result is founder-reported and not independently verifiable from the supplied evidence. Native describes its open-source project as a local-first system for managing and querying shared team context.

Why it matters

The benchmark points to a practical way agents may search large team knowledge stores without loading huge amounts of Markdown into their context: expose structured, queryable data instead. If the savings generalize, this could lower inference costs and make longer-lived or larger-context workflows more economical. The result is promising but narrow, and the evidence does not establish that SQLite will outperform Markdown across other tasks or systems.

Current assessment

Native founder Richard reports a 120-trial evaluation over 11,000 records, claiming about 40× fewer tokens per correct answer for an SQLite-backed MCP than Markdown-based setups. In the linked example, the SQLite MCP used 73k tokens and passed; plain Markdown used 2.4M and passed, while Markdown with wikilinks used 1.1M and Native-to-Markdown 1.3M. The example therefore shows a 33.2× difference versus plain Markdown, not 40×; the larger headline appears to summarize the broader evaluation. The benchmark is task-specific and uses a private dataset drawn from the founder’s own work, so independent verification and generalization remain open questions. The founder also reports that strongly typed Markdown frontmatter performed reasonably well, with agents writing Python scripts for SQL-like queries. The project’s broader aim is self-hosted, local-first team context, but the supplied evidence establishes neither adoption nor production-scale benefits. Worth tracking if the dataset, methodology, or replications become available.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-27 13:33 (minted)⭐ origin echo-reconstructedThe original primary artifact is Native’s own benchmark research post, not an upstream paper or tweet. It says: “We generated 40 questions”
Richard Ng (Native) on blog (echo) · attributed from hn.story.50258875 · published time unknown
—
10-27 13:23first on hacker news · published · lag ?Show HN: Markdown is 40× more token-efficient with SQLite
richardcrng
—
10-27 13:23amplified on hacker news 👑hn.story.50258875
richardcrng
peak 11 · 0 comments · 100% of case engagement
10-27 13:26our radar first saw it · lag ?discovery anchor: hn.story.50258875—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Markdown is 40× more token-efficient with SQLite
Retrieved article excerpt

Open article · Retrieved 2026-10-27T13:28:32.102293+00:00

B01 · Question, rephrased

> Is 'company brain leads, permissions later' still our launch message? If not, what replaced it?

| Setup | Tokens | Runtime | Result |
| --- | --- | --- | --- |
| Native's SQLite MCP | 73k33.2× fewer | 23 s8.2× faster | Pass |
| Native-to-Markdown | 1.3M1.9× fewer | 112 s1.7× faster | Pass |
| Markdown + wikilinks | 1.1M | 148 s | Pass |
| Plain Markdown | 2.4M | 188 s | Pass |

Tool-call excerpts · scroll to compare

←→

### Native's SQLite MCP

B01-mcp-r1

Pass

Total tokens
:   73k

Run time
:   23 s

Tool calls
:   7

Cached input
:   60,416

Uncached input
:   10,807

Reasoning
:   979

Output
:   1,107

1. Calls 2–4search ×1 · query\_sql ×2
   1. **search**

      `{"operation": "search", "arguments": {"query": "company brain leads permissions later", "limit": 20}}`
   2. **query\_sql**

      `SELECT id, type, kind, name, lifecycle, created_at, updated_at, created_at_ms, updated_at_ms FROM records WHERE id IN ('f853ae39-7f4d-446f-9768-0e41c04b632e') OR id LIKE '20c1e2a%'`
   3. **query\_sql**

      `SELECT id, source_id, target_id, relationship, created_at, created_at_ms FROM links WHERE source_id = 'f853ae39-7f4d-446f-9768-0e41c04b632e' OR target_id = 'f853ae39-7f4d-446f-9768…`
2. #### Find the superseding link

   Source call 5 · native\_sql\_read · query\_sql

   SQL · verbatim

   ```
   SELECT l.id, l.source_id, l.target_id, l.relationship, l.created_at FROM links l WHERE l.relationship = 'supersedes' AND (l.target_id IN ('f853ae39-7f4d-446f-9768-0e41c04b632e','20c1e2a4-6e36-4503-b662-4cdcf6027dca') OR l.source_id IN ('f853ae39-7f4d-446f-9768-0e41c04b632e','20c1e2a4-6e36-4503-b662-4cdcf6027dca')) ORDER BY l.created_at
   ```

   Complete tool input

   ```
   {
     "operation": "query_sql",
     "arguments": {
       "sql": "SELECT l.id, l.source_id, l.target_id, l.relationship, l.created_at FROM links l WHERE l.relationship = 'supersedes' AND (l.target_id IN ('f853ae39-7f4d-446f-9768-0e41c04b632e','20c1e2a4-6e36-4503-b662-4cdcf6027dca') OR l.source_id IN ('f853ae39-7f4d-446f-9768-0e41c04b632e','20c1e2a4-6e36-4503-b662-4cdcf6027dca')) ORDER BY l.created_at"
     }
   }
   ```

   Result excerpt

   ```
   1 row(s) returned
   As of content sequence: 76816
   id	source_id	target_id	relationship	created_at
   …
   "lnk:20c1e2a4-6e36-4503-b662-4cdcf6027dca:f853ae39-7f4d-446f-9768-0e41c04b632e:supersedes"	"20c1e2a4-6e36-4503-b662-4cdcf6027dca"	"f853ae39-7f4d-446f-9768-0e41c04b632e"	"supersedes"	"2026-10-06T10:39:59.735Z"
   ```
3. Call 6query\_sql ×1
   1. **query\_sql**

      `SELECT id, type, kind, name, lifecycle, created_at, updated_at FROM records WHERE id LIKE '0a64a4b%' OR name LIKE '%Launch plan%' OR name LIKE '%Launch message%' ORDER BY created_a…`
4. #### Read both records for the replacement wording

   Source call 7 · native\_call\_executor · get\_record

   Tool input · complete

   ```
   {
     "executor": "records_read",
     "operation": "get_record",
     "arguments": {
       "ids": [
         "20c1e2a4-6e36-4503-b662-4cdcf6027dca",
         "f853ae39-7f4d-446f-9768-0e41c04b632e"
       ]
     }
   }
   ```

   Result excerpt

   ```
   Launch message: Native is the open-source alternative to ChatGPT Space  (20c1e2a)  Resolution/decision
   …
   Body preview (truncated; re-read get_record with ids:["20c1e2a4-6e36-4503-b662-4cdcf6027dca"] or use format:"json" for the full verbatim body): Native is presented as the open-source alternative to ChatGPT Space. This replaces 'company brain' as the lead.
   ```

Agent answer · excerpt

```
No. That decision — **"Content theme priority: company brain leads, permissions later"** (f853ae39, Resolution/decision, George Jones) — was superseded on **6 Oct 2026** (supersession link created 2026-10-06T10:39:59Z, before your 16 Oct snapshot).

It was replaced by **"Launch message: Native is the open-source alternative to ChatGPT Space"** (20c1e2a, Resolution/decision, George Jones, 6 Oct 2026), whose note states *"Company brain is no longer the lead message"* — the body says open-source-plus-alternative leads and this *"replaces 'company brain' as the lead."* No further supersedes link pointed at it as of 16 Oct, so that remained the launch message. (A related open item, "Decide how launch messaging handles ownership…" (17727f7), flags the rival-framing as a live tension, but does not replace it.)
```

### Native-to-Markdown

B01-vault-r1

Pass

Total tokens
:   1.3M

Run time
:   112 s

Tool calls
:   33

Cached input
:   1,157,120

Uncached input
:   89,309

Reasoning
:   6,370

Output
:   3,430

1. Calls 1–17bash ×7 · glob ×1 · read ×1
   1. **bash**

      `ls -la /mnt/vault`
   2. **glob**

      `{"pattern": "/mnt/vault/**"}`
   3. **bash**

      `ls -la /work; echo ---; ls -la /`
   4. **bash**

      `ls -la /xdg; echo ---; ls -laR /xdg 2>/dev/null | head -100`
   5. **bash**

      `ls -laR /mnt/vault`
   6. **read**

      `{"filePath": "/xdg/data/opencode/tool-output/tool_150c2f457001qZ9O6yXXBlTk8D"}`
   7. **bash**

      `head -c 300 /mnt/vault/.native/STATUS.md`
   8. **bash**

      `head -n 1000 /mnt/vault/.native/STATUS.md`
   9. **bash**

      `grep -rl "company brain" /mnt/vault 2>/dev/null`
2. #### Locate both records by the old wording

   Source call 18 · bash

   Command · verbatim

   ```
   grep -ril "permissions later" /mnt/vault 2>/dev/null
   ```

   Result excerpt

   ```
   /mnt/vault/.native/state.json
   /mnt/vault/Native HQ/Work/Marketing/Content theme priority_ company brain leads, permissions later.md
   /mnt/vault/Native HQ/Work/Strategy & Planning/Company Strategy/Launch/Launch message_ Native is the open-source alternative to ChatGPT Space.md
   ```
3. #### Read the old record's superseded frontmatter

   Source call 19 · bash

   Command · verbatim

   ```
   head -n 200 "/mnt/vault/Native HQ/Work/Marketing/Content theme priority_ company brain leads, permissions later.md"
   ```

   Result excerpt

   ```
   "id": "f853ae39-7f4d-446f-9768-0e41c04b632e"
   "kind": "decision"
   …
   "maturity": "superseded"
   …
   "superseded": true
   ```
4. Calls 20–33bash ×14
   1. **bash**

      `head -n 200 "/mnt/vault/Native HQ/Work/Strategy & Planning/Company Strategy/Launch/Launch message_ Native is the open-source alternative to ChatGPT Space.md"`
   2. **bash**

      `grep -rln "20c1e2a" /mnt/vault 2>/dev/null`
   3. **bash**

      `grep -rln "supersedes" /mnt/vault/Native\ HQ/Work/Strategy\ \&\ Planning/Company\ Strategy/Launch 2>/dev/null`
   4. **bash**

      `which jq python3 sqlite3 2>/dev/null; echo "---"; python3 -c "print('py ok')"`
   5. **bash**

      `python3 - <<'EOF' import json p='/mnt/vault/.native/state.json' d=json.load(open(p)) print(type(d)) if isinstance(d,dict): for k,v in d.items(): print(k, type(v), (len(v) if hasatt…`
   6. **bash**

      `python3 - <<'EOF' import json d=json.load(open('/mnt/vault/.native/state.json')) files=d['files'] print('files keys sample', list(files)[:3]) k=list(files)[0] print('sample value t…`
   7. **bash**

      `python3 - <<'EOF' import json d=json.load(open('/mnt/vault/.native/state.json')) files=d['files'] k='Native HQ/Work/Marketing/Content theme priority_ company brain leads, permissio…`
   8. **bash**

      `python3 - <<'EOF' import os,re,json,collections root='/mnt/vault' recs=[] for dp,dn,fn in os.walk(root): if '/.native' in dp: continue for f in fn: if not f.endswith('.md'): contin…`
   9. **bash**

      `python3 - <<'EOF' import os,re,json root='/mnt/vault' out=[] for dp,dn,fn in os.walk(root): if '/.native' in dp: continue for f in fn: if not f.endswith('.md'): continue p=os.path.…`
   10. **bash**

       `python3 - <<'EOF' import os,re root='/mnt/vault' targets={'20c1e2a4-6e36-4503-b662-4cdcf6027dca':'launchmsg','f853ae39-7f4d-446f-9768-0e41c04b632e':'contentpriority'} for dp,dn,fn …`
   11. **bash**

       `head -n 80 "/mnt/vault/Native HQ/Work/Marketing/Positioning & Messaging/Messaging synthesis of the 8 Oct Richard–George call_ lightly held, agent-generated.md"`
   12. **bash**

       `head -n 60 "/mnt/vault/Native HQ/Work/Marketing/Positioning & Messaging/Reposition withnative.ai homepage and _product around 'ChatGPT Space, made open-source and more powerful'.md…`
   13. **bash**

       `grep -rl "Product messaging positions Native against today's tools" /mnt/vault --include=*.md 2>/dev/null`
   14. **bash**

       `head -n 60 "/mnt/vault/Native HQ/Work/Marketing/Positioning & Messaging/Product messaging positions Native against today's tools, not against AI labs owning your context.md"`

Agent answer · excerpt

```
No — it was superseded.

- The content priority **"Content theme priority: company brain leads, permissions later"** (ref f853ae3, Resolution / kind decision, last updated 2026-10-06) is marked `maturity: superseded`, `superseded: true`.
- It was replaced by **"Launch message: Native is the open-source alternative to ChatGPT Space"** (ref 20c1e2a, Resolution / kind decision, decided 2026-10-06), which carries a `supersedes` link to f853ae3 and states it "replaces 'company brain' as the lead."
- Nothing later supersedes 20c1e2a. The 8 Oct decision **"Product messaging positions Native against today's tools, not against AI labs owning your context"** (59f0d1b) only `relates_to` it, and the 9 Oct "Messaging synthesis" is an exploratory note that "replaces no earlier record."

So as at the snapshot the launch message is: **Native is the open-source alternative to ChatGPT Space.**
```

### Markdown + wikilinks

B01-plain-r1

Pass

Total tokens
:   1.1M

Run time
:   148 s

Tool calls
:   31

Cached input
:   981,888

Uncached input
:   90,367

Reasoning
:   12,675

Output
:   2,953

1. Calls 1–16bash ×7
   1. **bash**

      `ls -la /mnt/vault`
   2. **bash**

      `ls -la /work; pwd; ls -la`
   3. **bash**

      `ls -la /tmp/opencode; echo ---; ls -la /; echo ---; mount | grep -i vault`
   4. **bash**

      `ls -la "/mnt/vault/Native HQ"`
   5. **bash**

      `for d in "Agent instructions" "Attention" "Control Centre" "George" "Library" "Morning Edition" "My agent context" "System" "Work"; do echo "=== $d ==="; ls -la "/mnt/vault/Native …`
   6. **bash**

      `grep -rIl -e "company brain" -e "permissions later" -e "launch message" "/mnt/vault/Native HQ" 2>/dev/null`
   7. **bash**

      `grep -n "^" "/mnt/vault/Native HQ/Work/Marketing/Content theme priority_ company brain leads, permissions later.md"`
2. #### Follow the old wording to the new message

   Source call 17 · bash

   Command · verbatim

   ```
   grep -rn "permissions later" "/mnt/vault/Native HQ" 2>/dev/null
   ```

   Result excerpt

   ```
   /mnt/vault/Native HQ/Work/Marketing/Content theme priority_ company brain leads, permissions later.md:2:# Content theme priority: company brain leads, permissions later
   /mnt/vault/Native HQ/Work/Strategy & Planning/Company Strategy/Launch/Launch message_ Native is the open-source alternative to ChatGPT Space.md:20:- [[Native HQ/Work/Marketing/Content theme priority_ company brain leads, permissions later|Content theme priority: company brain leads, permissions later]]
   ```
3. #### Read the replacement note

   Source call 18 · bash

   Command · verbatim

   ```
   grep -n "^" "/mnt/vault/Native HQ/Work/Strategy & Planning/Company Strategy/Launch/Launch message_ Native is the open-source alternative to ChatGPT Space.md"
   ```

   Result excerpt

   ```
   2:Native is presented as the open-source alternative to ChatGPT Space. This replaces 'company brain' as the lead.
   ```
4. Calls 19–31bash ×13
   1. **bash**

      `find /mnt/vault -type f ! -name "*.md" 2>/dev/null | head -100; echo "=== dir sizes ==="; find /mnt/vault -type d 2>/dev/null | wc -l; echo "=== Messages ==="; ls -la /mnt/vault/Me…`
   2. **bash**

      `ls -la "/mnt/vault/Native HQ/Directory"; echo "=== IWE head ==="; wc -l "/mnt/vault/Native HQ/Directory/IWE.md"; grep -n "^" "/mnt/vault/Native HQ/Directory/IWE.md" | head -80`
   3. **bash**

      `grep -rn -i -e "kin
richardcrng110
🟧 echo.blog ⭐The original primary artifact is Native’s own benchmark research post, not an upstream paper or tweet. It says: “We generated 40 questions” Richard Ng (Native)——

Interpretation history

Decision trace