Commit Graph

20 Commits

Author SHA1 Message Date
Marcus Webb 65d2a87cc3 add 3 new frontend skills + update CLAUDE.md and statusline
New skills: design-loop, design-system, walkthrough-video (frontend plugin).
CLAUDE.md updated: 59 -> 62 skills, inline-everything-critical guidance,
updated file structure docs. Statusline-npm improvements.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 18:44:23 +11:00
Jeremy Dawes b0aa8c807a feat(contextbricks): v4.0.0 — 3-line layout, cross-platform Node.js
Restore npm package (deleted in v2 strip) and upgrade to v4.0.0:
- 3-line layout: session identity, git state, context bricks
- New: agent name (@name), worktree indicator (wt), output style,
  extended context warning (73%!)
- Cross-platform Node.js script (no jq/bash dependency)
- Bash version kept as legacy option

Published to npm as contextbricks@4.0.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 21:07:11 +11:00
Jez e60cb4e451 feat: v2 — strip to 9 workflow/recipe skills
Drop 96 knowledge-dump skills, gut infrastructure, rebuild survivors
as recipe-style SKILL.md files under 500 lines. Adopt Anthropic's
official skill-creator. Add memory-manager and icon-set-generator.

CLAUDE.md: 2,100 → 85 lines. Total SKILL.md: 3,892 → 1,577 lines.
Full history preserved in v1-final tag.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 09:50:18 +11:00
Jez d4439ccf97 chore: Bump contextbricks to v3.5.0
Aligns package.json version with statusline.sh v3.5.0 (three-line layout)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 23:02:05 +11:00
Jeremy Dawes f6dca4ed8f fix: Collapse 12 plugins to single 'all' plugin to prevent 12x skill duplication
The marketplace previously defined 12 separate plugins (ai, auth, cloudflare, etc.)
each with source: './'. Claude Code's plugin loader clones the entire repo for each
plugin, resulting in 12 copies × 95 skills = 1,140 duplicate entries.

This caused severe performance issues and session hangs.

Fix: Single 'all' plugin that loads all skills once without category prefixes.

Affected users should run:
  rm -rf ~/.claude/plugins/cache/claude-skills/

Skills now appear as /skill-name instead of /category:skill-name
2026-01-31 22:51:37 +11:00
Jez d51f144a5a fix(contextbricks): Use ~/ path for cross-platform compatibility
Settings.json now uses ~/.claude/statusline.sh instead of
absolute paths like /Users/jez or /home/jez. This allows
Syncthing users to sync settings between Mac and Linux.

Bumps version to 3.4.1

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 14:21:15 +11:00
Jez 171fa66db2 feat(statusline): Add working directory + v2.1.6 percentage fields
v3.4.0 changes:
- Add working directory display (tilde-compressed, e.g., ~/Documents/project)
- Add support for `used_percentage` and `remaining_percentage` fields
- Official percentages are more accurate than manual calculation
- Maintains fallback to `current_usage` token calculation for older versions

Claude Code 2.1.6+ changelog:
"Added context_window.used_percentage and context_window.remaining_percentage
fields to status line input for easier context window display"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 16:49:17 +11:00
Jeremy Dawes 887d723c7e feat(contextbricks): v3.2.0 - Remove ctx prefix, add screenshots
- Remove redundant "ctx" prefix from brick line (self-explanatory)
- Add new screenshots showing contextbricks in action
- Update README examples to match new output format

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 11:44:33 +11:00
Jeremy Dawes e7680b5142 docs(contextbricks): Update README for v3.1.0 current_usage API
- Remove "disabled" notices and compaction detection references
- Update "How It Works" to document current_usage field
- Add v3.1.0 and v3.0.0 to changelog
- Update troubleshooting test commands

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 11:40:40 +11:00
Jeremy Dawes 45ec40018b feat(contextbricks): v3.1.0 - Re-enable context tracking with current_usage API
Anthropic released Claude Code 2.0.70 with new current_usage field that provides
accurate current context window usage. This replaces the cumulative tokens that
never reset after compaction.

- Use context_window.current_usage for accurate token counting
- Remove complex compaction detection workarounds
- Simplify code by ~100 lines (removed transcript parsing)
- Re-enable brick visualization

Ref: https://code.claude.com/docs/en/statusline#context-window-usage

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 11:35:21 +11:00
Jez e9ad7aeffe fix(contextbricks): v3.0.0 - Disable context tracking due to Anthropic API bug
Context tracking disabled because Anthropic's context_window API provides
cumulative session tokens that never reset after compaction, making
context percentages meaningless (e.g., showing 144% after compact).

See: https://github.com/anthropics/claude-code/issues/13783

Changes:
- Comment out brick visualization code (preserved for future re-enable)
- Keep duration and cost tracking (still works)
- Update README with prominent notice
- Bump version to 3.0.0

Will re-enable when Anthropic fixes the API to provide actual current
context usage instead of cumulative session totals.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 23:15:39 +11:00
Jez 11196f58ee fix(contextbricks): v2.1.0 - Accurate context usage after compaction
- Add hybrid compaction detection (cumulative > limit triggers transcript parsing)
- Show real current context usage after automatic compaction
- Add 📦 indicator when compaction detected
- Fix >100% display issue (e.g., "246% (492k/200k)" now shows actual usage)

When Claude Code compacts context, the cumulative token counters don't reset.
This fix detects compaction and parses the transcript for the last message's
input_tokens to show actual current context window usage.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 01:17:21 +11:00
Jez 3182bee822 docs(contextbricks): Add PUBLISHING.md for npm release process
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 17:04:11 +11:00
Jez a3bbfc56a8 feat(contextbricks): v2.0.0 - Native context_window support
Uses Claude Code 2.0.65+ native context_window data:
- total_input_tokens, total_output_tokens, context_window_size
- Fallback to transcript parsing for older versions

New features:
- Session duration display (HHh MMm format, e.g., 33h 53m)
- Session cost display ($XX.XX format, only if > $0)
- Simplified single-colour brick visualization

Removed:
- Estimated breakdown (sys/tools/mcp/mem/msg) - was inaccurate

Display format:
ctx [■■■■■■■■■■□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□] 73% (147k/200k) | 52k free | 33h 53m | $44.11

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 16:55:04 +11:00
Jez e9d62d9076 chore(contextbricks): Bump version to 1.0.4
- Bug fix: Correct token limit display for all models (200k)
- Fix Opus 4 showing incorrect 1M limit
- Claude Code CLI enforces 200k for all models
2025-11-26 10:00:05 +11:00
Claude 1dfed2fa4e fix(contextbricks): Use 200k context limit for all models
While Opus 4/4.5 models have 1M token context at API level, Claude Code
CLI enforces a 200k limit for all models. This caused the status line
to incorrectly display "106k/1000k tokens" when using Opus, making the
progress bar and percentage calculations misleading.

- Update statusline.sh to use 200k for opus-4* models
- Add clarifying comments about Claude Code limits
- Update README and CLI help text to reflect accurate limits
2025-11-25 21:06:24 +00:00
Jez ca7c3a7001 Update ContextBricks docs to emphasize simple install (v1.0.3)
Changes:
- Clarified that npx contextbricks (no command) is simplest
- Updated Quick Start sections in all READMEs
- Added note: "no need for init - runs automatically"
- Made default command more prominent

Files updated:
- tools/statusline-npm/README.md - Simplified Quick Start
- tools/statusline/README.md - Updated install instructions
- README.md - Simplified main installation example
- tools/statusline-npm/package.json - Version 1.0.2 → 1.0.3

Published: contextbricks@1.0.3

Makes it crystal clear: just type "npx contextbricks" and you're done!

🧱 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 16:33:19 +11:00
Jez 5dbcb9753d Add screenshot to ContextBricks documentation (v1.0.2)
Changes:
- Added real screenshot showing working status line
- Updated tools/statusline/README.md with local image
- Updated tools/statusline-npm/README.md with GitHub raw URL
- Version bump: 1.0.1 → 1.0.2

Screenshot shows:
- Real-time context tracking with brick visualization
- Git integration (repo, branch, commit, status)
- Token usage breakdown
- Working in actual Claude Code session

Files added:
- tools/statusline/assets/context-bricks.png (28KB)
- tools/statusline-npm/assets/context-bricks.png (28KB)

Published: contextbricks@1.0.2
Now visible on npmjs.com package page

🧱 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 13:28:52 +11:00
Jez 02f79a08eb Update ContextBricks to v1.0.1 - Default to interactive install
Changes:
- npx contextbricks now defaults to running installer
- More intuitive UX - no need to remember "init" command
- npx contextbricks init still works (backwards compatible)
- Unknown commands show error + help

Files updated:
- tools/statusline-npm/bin/cli.js - Default case runs installer
- tools/statusline-npm/package.json - Version 1.0.0 → 1.0.1
- CHANGELOG.md - Document v1.0.1 changes

Published: contextbricks@1.0.1

🧱 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 13:09:54 +11:00
Jez c4351a7267 Add ContextBricks - Custom Status Line for Claude Code CLI
New NPM package: contextbricks@1.0.0
Install: npx contextbricks init

Features:
- Real-time context tracking from transcript files
- Brick visualization matching /context command
- Git integration (repo, branch, commit, status)
- Session metrics (model, lines changed, free space)
- Model-aware context limits (200k Sonnet, 1M Opus)

Distribution:
- NPM package (primary): https://www.npmjs.com/package/contextbricks
- Direct from repo (secondary): tools/statusline/

Files added:
- tools/statusline-npm/ - NPM package structure
  - package.json, bin/cli.js (Node wrapper)
  - scripts/ (statusline.sh, install.sh, uninstall.sh)
  - README.md (NPM-specific docs)
- tools/statusline/ - Source implementation
  - statusline.sh (198 lines, working script)
  - install.sh, uninstall.sh
  - README.md (full documentation)

Updated:
- CHANGELOG.md - Added ContextBricks release notes
- README.md - Added Tools section with npm install

Token accuracy: Matches /context output (parses JSONL transcripts)
Community: Inspired by ccstatusline, follows Claude Code standards

🧱 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 13:02:59 +11:00