cerebro-code 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +71 -0
- package/dist/cli.js +769 -0
- package/dist/web/assets/index-DgAd48_S.css +1 -0
- package/dist/web/assets/index-u0QaGLGb.js +40 -0
- package/dist/web/index.html +13 -0
- package/package.json +44 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Yogesh Maheshwari
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# ๐ง Cerebro
|
|
2
|
+
|
|
3
|
+
**See, find, and remember everything your Claude Code agent did.**
|
|
4
|
+
|
|
5
|
+
Cerebro is a local-first dashboard for your Claude Code session history. It reads
|
|
6
|
+
the sessions already on your machine, maps them, surfaces the ones you lost or left
|
|
7
|
+
unfinished, and (on demand) mines them for reusable skills โ all without your code
|
|
8
|
+
ever leaving your laptop unless you explicitly ask it to.
|
|
9
|
+
|
|
10
|
+
> Status: **v0.1** โ the browse-and-search core is real and tested. Clustering and
|
|
11
|
+
> skill-mining are on the roadmap below.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx cerebro-code
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
That's it. It indexes `~/.claude/projects`, starts a local server, and opens your browser.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Why
|
|
22
|
+
|
|
23
|
+
If you use Claude Code seriously, sessions pile up fast โ scattered across repos,
|
|
24
|
+
some left open for days, most impossible to find again later. Cerebro turns that
|
|
25
|
+
flat pile of `.jsonl` files into something you can actually navigate.
|
|
26
|
+
|
|
27
|
+
## Features (v0.1)
|
|
28
|
+
|
|
29
|
+
- **Dashboard** โ sessions, repos, cost, and unclosed work at a glance
|
|
30
|
+
- **Session browser** โ search and filter by repo, type, and recency
|
|
31
|
+
- **Reader** โ a clean, readable view of any past session with its tool-call timeline
|
|
32
|
+
- **Resume** โ jump back into any session via `claude --resume`
|
|
33
|
+
- **Unclosed detection** โ surfaces sessions you started and never finished
|
|
34
|
+
- **Cost view** โ cache-aware per-session and per-repo token cost
|
|
35
|
+
- **Per-session summaries** *(on demand)* โ uses your own installed `claude`
|
|
36
|
+
|
|
37
|
+
## Privacy
|
|
38
|
+
|
|
39
|
+
Cerebro is **local-first by default**. Your session files โ which routinely contain
|
|
40
|
+
secrets, tokens, and `.env` contents โ are read and indexed **only on your machine**.
|
|
41
|
+
Nothing is sent anywhere until *you* trigger an analysis, and when you do:
|
|
42
|
+
|
|
43
|
+
- a **deterministic redaction pass** masks API keys, tokens, and credentials first,
|
|
44
|
+
- you see an **egress preview** of exactly what will be sent, and
|
|
45
|
+
- `--no-llm` mode disables all outbound calls entirely.
|
|
46
|
+
|
|
47
|
+
Raw session content is never persisted by Cerebro.
|
|
48
|
+
|
|
49
|
+
## Development
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
git clone https://github.com/Yoge5h9/cerebro-code.git
|
|
53
|
+
cd cerebro-code
|
|
54
|
+
npm install
|
|
55
|
+
npm run build # build web + server
|
|
56
|
+
npm start # run the CLI locally
|
|
57
|
+
npm test # unit tests (vitest)
|
|
58
|
+
npm run test:e2e # browser tests (playwright)
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Roadmap
|
|
62
|
+
|
|
63
|
+
- **v0.1** โ ingest ยท dashboard ยท reader ยท search ยท cost ยท unclosed ยท summaries โ
|
|
64
|
+
- **v0.2** โ Claude-powered clustering + the visual "map of your work"
|
|
65
|
+
- **v0.3** โ skill & memory mining โ review-gated `SKILL.md` proposals
|
|
66
|
+
- **v1.0** โ single-binary install, team session export
|
|
67
|
+
- **later** โ provider-agnostic adapters (Cursor, Codex, Cline)
|
|
68
|
+
|
|
69
|
+
## License
|
|
70
|
+
|
|
71
|
+
MIT ยฉ Yogesh Maheshwari
|