promptbook
Track your Claude Code sessions automatically. Promptbook records prompts, token usage, build time, lines changed, and primary language, the
Open source Repository Open in the app JSON README (API)
About
Track your Claude Code sessions automatically. Promptbook records prompts, token usage, build time, lines changed, and primary language, then turns each session into a shareable build card and post on promptbook.gg without uploading source code or prompt content.
Details
- Kind
- Plugins
- Topic
- No topic detected
- Publisher
- promptbookgg
- Origin
- marketplace
- Category
- ferramentas
- Last push
- 2026-06-16T08:01:48Z
- Repository state
- ativo
- Language
- JavaScript
- License
- MIT
- Added
- 2026-08-30 01:48:58
- Updated
- 2026-08-30 01:48:58
- Origin id
promptbookgg/claude-code-plugin/promptbook
README
# Promptbook — Claude Code Plugin
> ⚠️ **DEPRECATED (June 2026).** This plugin is no longer maintained and won't receive new features. Use the bash install instead — same tracking, always current: `bash <(curl -sL https://promptbook.gg/setup.sh)` — see [DEPRECATED.md](DEPRECATED.md) for the 30-second migration.
Build better. See your progress. Post the proof.
Track prompts, tokens, and build time automatically. Every Claude Code session becomes shareable progress on [promptbook.gg](https://promptbook.gg) — verified stats, no self-reporting.
## Install
```
/plugin marketplace add promptbookgg/claude-code-plugin
/plugin install promptbook
```
Then run `/promptbook:setup` to connect your account.
## What it tracks
- Prompt count
- Token usage (input, output, cache)
- Build time
- Lines changed
- Primary language
No source code or prompt content is ever sent. See the Privacy section below for exactly what is sent.
## How it works
The plugin registers four Claude Code hooks:
| Event | What it does |
|---|---|
| **SessionStart** | Creates a session file, loads recent context |
| **UserPromptSubmit** | Counts prompts |
| **PostToolUse** | Counts lines changed, tracks file types |
| **SessionEnd** | Finalizes stats, submits to promptbook.gg |
After each session, you'll see a link to your progress. Customize the title, summary, and screenshot on the web — then share it.
## Privacy
**What is sent to promptbook.gg:** session ID, project name, model, timestamps, prompt count, token counts, build time, lines changed, language, file extension counts (e.g. `{ts: 5, css: 2}`), and tool usage counts (e.g. `{Edit: 12, Read: 8}`).
**What is never sent:** source code, prompt content, file contents, file paths, or your working directory.
The plugin also generates a short title and summary by calling Claude Haiku through your own Claude credentials — this goes to Anthropic (same as any Claude Code usage), never to Promptbook.
You can audit everything: the hooks are right here in this repo.
## Alternative install
If you prefer a one-command setup without the plugin system:
```bash
bash <(curl -sL promptbook.gg/setup.sh)
```
## Links
- [promptbook.gg](https://promptbook.gg)
- [Discover](https://promptbook.gg) — see what others are building
- [Setup](https://promptbook.gg/setup) — browser-based setup flow