Skip to content

Commit 7b2a8eb

Browse files
committed
docs: real token counts from scanned repos, update claims with actual data
1 parent be83e64 commit 7b2a8eb

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Stacklit
22

3-
**Your codebase, in 1,500 tokens.**
3+
**108,000 lines of code. 4,000 tokens of index.**
44

55
One command generates a committed JSON index that any AI agent can read. No server, no setup.
66

@@ -13,7 +13,7 @@ One command generates a committed JSON index that any AI agent can read. No serv
1313

1414
AI coding agents burn most of their context window just figuring out where things live. Reading one 2,000-line file to find a function signature costs ~6,000 tokens. Five agents on the same repo each rebuild the same mental model from scratch. Every session starts at zero.
1515

16-
`stacklit init` generates a `stacklit.json` that maps your entire codebase in ~1,500 tokens -- modules, dependencies, exports, types, what changed recently. Commit it to git. Now every agent that opens the repo already knows what goes where.
16+
`stacklit init` generates a `stacklit.json` that maps your entire codebase in a few thousand tokens -- modules, dependencies, exports, types, what changed recently. Commit it to git. Now every agent that opens the repo already knows what goes where.
1717

1818
```bash
1919
npx stacklit init
@@ -23,7 +23,7 @@ npx stacklit init
2323

2424
**Without stacklit:** Agent reads 8-12 files to build context. ~400,000 tokens. 45 seconds before writing a line.
2525

26-
**With stacklit:** Agent reads `stacklit.json`. ~1,500 tokens. Knows every module, dependency, and convention instantly.
26+
**With stacklit:** Agent reads `stacklit.json`. ~3,000-4,000 tokens. Knows every module, dependency, and convention instantly.
2727

2828
## What you get
2929

@@ -56,7 +56,7 @@ npx stacklit init
5656
}
5757
```
5858

59-
A 500-file repo produces ~1,500 tokens of index. That is what an agent wastes reading ONE large file today.
59+
FastAPI (108k lines) produces a 4,142-token index. Gin (24k lines) produces 3,361 tokens. That is less than what an agent wastes reading a single large file. See [examples/](examples/) for real outputs.
6060

6161
## Visual map
6262

examples/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Stacklit examples
22

3-
Real-world `stacklit.json` outputs from popular open source projects. Each folder contains the `stacklit.json` and `DEPENDENCIES.md` generated by running `stacklit init` on the repo.
3+
Real-world `stacklit.json` outputs from popular open source projects.
44

5-
| Project | Language | Files | Lines | Modules | JSON size |
6-
|---------|----------|-------|-------|---------|-----------|
7-
| [Express.js](express/) | JavaScript | 141 | 21,346 | 35 | 13 KB |
8-
| [FastAPI](fastapi/) | Python | 1,131 | 108,075 | 15 | 15 KB |
9-
| [Gin](gin/) | Go | 100 | 23,829 | 7 | 12 KB |
10-
| [Axum](axum/) | Rust | 300 | 43,997 | 87 | 49 KB |
5+
| Project | Language | Files | Lines of code | Index tokens |
6+
|---------|----------|-------|---------------|-------------|
7+
| [Express.js](express/) | JavaScript | 141 | 21,346 | 3,765 |
8+
| [FastAPI](fastapi/) | Python | 1,131 | 108,075 | 4,142 |
9+
| [Gin](gin/) | Go | 100 | 23,829 | 3,361 |
10+
| [Axum](axum/) | Rust | 300 | 43,997 | 14,371 |
1111

12-
Every one of these produces a JSON index that fits within a single LLM context window. An agent reading `stacklit.json` knows the entire project structure without opening a single source file.
12+
FastAPI has 108,000 lines of code. Its entire structure -- modules, dependencies, exports, types, activity -- fits in 4,142 tokens. That is less than what an agent spends reading a single large file.
1313

1414
## Reproduce
1515

0 commit comments

Comments
 (0)