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
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Stacklit
2
2
3
-
**Your codebase, in 1,500 tokens.**
3
+
**108,000 lines of code. 4,000 tokens of index.**
4
4
5
5
One command generates a committed JSON index that any AI agent can read. No server, no setup.
6
6
@@ -13,7 +13,7 @@ One command generates a committed JSON index that any AI agent can read. No serv
13
13
14
14
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.
15
15
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.
17
17
18
18
```bash
19
19
npx stacklit init
@@ -23,7 +23,7 @@ npx stacklit init
23
23
24
24
**Without stacklit:** Agent reads 8-12 files to build context. ~400,000 tokens. 45 seconds before writing a line.
25
25
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.
27
27
28
28
## What you get
29
29
@@ -56,7 +56,7 @@ npx stacklit init
56
56
}
57
57
```
58
58
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.
Copy file name to clipboardExpand all lines: examples/README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
# Stacklit examples
2
2
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.
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.
0 commit comments