Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,21 @@ deps), and upgrades to exact counts automatically when `tiktoken` is installed.
pip install ctxlens-cli # core
pip install "ctxlens-cli[tiktoken]" # optional exact token counts

ctxlens analyze session.jsonl
ctxlens report session.jsonl --html -o report.html
# From a clone, use the shipped fixture (no real session required):
ctxlens analyze tests/fixtures/claude_code_session.jsonl
```

Expected shape (numbers vary with tokenizer; structure is stable):

```text
Source tests/fixtures/claude_code_session.jsonl
Format claude-code-jsonl
Tokens … Turns … High-water …
Waste … tokens (…%)
```

```bash
ctxlens report tests/fixtures/claude_code_session.jsonl --html -o report.html
ctxlens diff before.jsonl after.jsonl
```

Expand Down
Loading