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
docs: update README for tool-agnostic framing and accurate project structure
Remove Anthropic-specific branding, add supported tools table,
fix Gemini model version (2.5 → 3 Flash), update project structure
to match actual directories, add missing env vars, remove dead doc link.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
> Self-hosted AI session analysis with a local-first CLI and Next.js server.
3
+
> Self-hosted AI coding session analysis. Reads your local session logs, runs them through a multi-phase Gemini pipeline, and generates reports on thinking patterns, communication quality, token efficiency, and more.
**How it works:** BetterPrompt is a local Next.js server paired with a CLI tool. The CLI scans your AI coding sessions, sends them to the server for multi-phase Gemini analysis, and generates detailed reports. For teams, individual reports aggregate into enterprise dashboards with growth tracking and anti-pattern detection.
10
10
11
-
NoMoreAISlop analyzes your Claude Code and Cursor sessions, runs the Gemini-powered report pipeline on your own server, and stores auth, reports, and knowledge data locally.
11
+
Everything runs on your machine. Session data never leaves your network.
12
12
13
-
The open-source product surface is now:
13
+
**Supported AI coding tools:**
14
14
15
-
-`Next.js server` for auth, report pages, knowledge APIs, and local analysis execution
16
-
-`CLI` for local session discovery, device login, and analysis uploads to your self-hosted server
17
-
-`SQLite + local files` for persistence
15
+
| Tool | Session Source | Format |
16
+
|------|---------------|--------|
17
+
| Claude Code |`~/.claude/projects/`| JSONL |
18
+
| Cursor |`~/.cursor/chats/`| SQLite |
18
19
19
-
The repository now ships only the self-hosted server + CLI runtime.
20
+
## Screenshots
20
21
21
-
## Quick Start
22
+
| Team Dashboard | Growth Areas | Project Breakdown |
- A [Google Gemini API key](https://aistudio.google.com/apikey) (free tier works - the pipeline uses Gemini 3 Flash)
30
+
- Existing AI coding sessions from a supported tool (see table above)
31
+
32
+
> **No sessions yet?** Use an AI coding assistant for a few sessions first. BetterPrompt needs session logs to analyze - without them, the CLI will have nothing to scan.
In another terminal, authenticate the CLI and run an analysis:
57
+
### 2. Run the CLI
58
+
59
+
In a separate terminal:
45
60
46
61
```bash
47
-
npx no-ai-slop
62
+
npx betterprompt
48
63
```
49
64
50
-
The CLI will open the device auth flow at your self-hosted server, then upload pre-parsed session data to `POST /api/analysis/run`.
65
+
The CLI discovers sessions from your AI coding tools, lets you pick a project, and uploads parsed session data to your local server for analysis.
51
66
52
-
##What Is Local
67
+
### 3. View your report
53
68
54
-
- Web auth uses local email/password accounts stored in SQLite.
55
-
- CLI auth uses device flow plus long-lived local CLI tokens.
56
-
- Analysis runs inside the Next.js server with your Gemini API key.
57
-
- Reports are stored in SQLite.
58
-
- Knowledge items are stored under `~/.nomoreaislop/knowledge`.
69
+
When analysis completes, the CLI opens your browser to `http://localhost:3000/dashboard/r/{resultId}` with your full report: personality type, strengths, growth areas, and domain-level insights.
59
70
60
-
## Current Scope
71
+
## Packages
61
72
62
-
- Supported product path: `self-hosted server + CLI`
63
-
- Public report pages: `GET /r/:resultId`
64
-
- Knowledge dashboard: local file-backed APIs
73
+
This is a monorepo with three packages:
65
74
66
-
## Commands
75
+
### Web Server (root)
76
+
77
+
Next.js 15 app with the dashboard UI, API routes, and the Gemini analysis pipeline.
67
78
68
79
```bash
69
-
npm run dev
80
+
npm run dev # Dev server on port 3000
81
+
npm run build # Production build
82
+
npm run typecheck # Type-check without emitting
83
+
```
84
+
85
+
### CLI (`packages/cli`)
86
+
87
+
Scans session logs from supported AI coding tools, lets you pick a project, and uploads parsed data to your local server for analysis.
88
+
89
+
```bash
90
+
npx betterprompt
91
+
```
92
+
93
+
Published to npm as `betterprompt`. In development, run from the monorepo:
94
+
95
+
```bash
96
+
cd packages/cli
70
97
npm run build
71
-
npm run start
72
-
npm run typecheck
73
-
npm test
98
+
node dist/index.js
74
99
```
75
100
76
-
## Project Structure
101
+
### Plugin (`packages/plugin`)
102
+
103
+
Claude Code plugin that provides an MCP server and a post-session hook. After each coding session, it automatically triggers analysis in the background and exposes insights via three MCP tools:
3. The post-session hook auto-triggers analysis after enough sessions accumulate. See [Plugin docs](./docs/human/PLUGIN.md) for configuration options.
138
+
139
+
## Testing
140
+
141
+
Tests use [Vitest](https://vitest.dev/) for unit/integration and [Playwright](https://playwright.dev/) for E2E.
142
+
143
+
```bash
144
+
npm test# Unit tests
145
+
npm run test:watch # Watch mode
146
+
npm run test:coverage # Coverage report (threshold: 50%)
147
+
npm run test:integration # Full pipeline integration test
85
148
```
86
149
87
-
## Open Source Publication
150
+
E2E tests (requires dev server or auto-starts one):
88
151
89
-
Before making the repository public, complete the history purge and key rotation steps in [docs/human/OPEN_SOURCE_PUBLICATION.md](./docs/human/OPEN_SOURCE_PUBLICATION.md).
152
+
```bash
153
+
npx playwright test --config tests/e2e/playwright.config.ts
0 commit comments