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
Done. Every AI agent that opens this repo can now read `stacklit.json` instead of scanning files.
56
+
57
+
## Why
21
58
22
59
AI coding agents burn most of their context window figuring out where things live. Reading one large file to find a function signature costs thousands of tokens. Five agents on the same repo each rebuild the same mental model from scratch.
23
60
24
-
**Without stacklit:** Agent reads 8-12 files to build context. ~400,000 tokens. 45 seconds before writing a line.
61
+
**Without stacklit:** Agent reads 8-12 files. ~400,000 tokens. 45 seconds before writing a line.
25
62
26
-
**With stacklit:** Agent reads `stacklit.json`. ~4,000 tokens. Knows every module, dependency, and convention instantly.
5.**Git** -- 90-day commit history for file activity heatmap
80
-
6.**Render** -- Write JSON, Mermaid, and HTML
96
+
Modules, dependencies, exports with signatures, type definitions, git activity heatmap, framework detection, and hints for where to add features and how to run tests.
81
97
82
-
Under 100ms for most repos. Under 7 seconds for 20,000+ file repos.
98
+
## Set up your AI tools
83
99
84
-
##Language support
100
+
### Claude Code
85
101
86
-
| Language | Parser | Extracts |
87
-
|----------|--------|----------|
88
-
| Go | stdlib AST | imports, exports with signatures, struct fields, interface methods |
@@ -120,41 +120,30 @@ Add to Claude Desktop, Claude Code, or Cursor:
120
120
}
121
121
```
122
122
123
-
For Claude Code without MCP, add to `CLAUDE.md`:
123
+
This starts the MCP server with 7 tools: `get_overview`, `get_module`, `find_module`, `list_modules`, `get_dependencies`, `get_hot_files`, `get_hints`.
124
124
125
-
```
126
-
Read stacklit.json before exploring files. Use modules to locate code, hints for conventions.
127
-
```
125
+
### Any other agent
128
126
129
-
## Install
127
+
`stacklit.json` is a plain JSON file. Any tool that reads files can use it.
128
+
129
+
## Keep it updated
130
130
131
131
```bash
132
-
npx stacklit init # npm (recommended)
133
-
go install github.com/glincker/stacklit/cmd/stacklit@latest # go
132
+
stacklit init --hook
134
133
```
135
134
136
-
Binary releases for macOS, Linux, and Windows at [GitHub Releases](https://github.com/glincker/stacklit/releases).
137
-
138
-
## CLI
139
-
140
-
```
141
-
stacklit init # scan, generate, open HTML
142
-
stacklit init --hook # also install git post-commit hook
0 commit comments