Built: 2026-02-13
Status: Ready for testing and npm publish
Location: /Users/alexa/context-bridge/cli/
A fully functional command-line tool for managing AI context files.
Commands implemented:
- ✅
context login- GitHub authentication (token or gh CLI) - ✅
context init- Create context with template selection - ✅
context update- Edit context in your preferred editor - ✅
context view- Display current context (pretty or raw) - ✅
context history- Show version history with timestamps - ✅
context url- Get shareable URL (with clipboard copy) - ✅
context status- Health check and stats
Pre-built context templates for different personas:
- ✅ Developer - Stack, sprint tasks, architecture decisions
- ✅ Designer - Brand guidelines, design system, tools
- ✅ Product Manager - Goals, roadmap, stakeholders
- ✅ Writer - Voice, audience, current pieces
- ✅ Student - Courses, assignments, learning style
- ✅ Entrepreneur - Company, customers, fundraising
Dependencies:
@octokit/rest- GitHub API (gist operations)chalk- Terminal colorscommander- CLI frameworkinquirer- Interactive promptsora- Spinners/loading indicators
Storage:
- Config:
~/.context-bridge/config.json - Contexts: Private GitHub Gists (user owns data)
File Structure:
cli/
├── bin/
│ └── context.js # CLI entry point
├── lib/
│ ├── config.js # Config management
│ ├── gist.js # GitHub API
│ └── commands/
│ ├── login.js
│ ├── init.js
│ ├── update.js
│ ├── view.js
│ ├── history.js
│ └── url.js
├── templates/ # 6 persona templates
├── package.json
└── README.md
- Test
context loginwith GitHub token - Test
context loginwith gh CLI - Test
context initwith each template - Test
context update(opens editor, saves changes) - Test
context view(formatted output) - Test
context history(shows versions) - Test
context url --copy(clipboard) - Test
context status(shows stats)
- Full flow: login → init → update → view → url
- Test with real GitHub account
- Test gist creation/update on GitHub
- Test raw URL in Claude/ChatGPT
cd /Users/alexa/context-bridge/cli
npm link # Install globally for testing
context --version
context login # Test the flow# Add these to package.json if not present
npm whoami # Verify logged into npm
npm init --scope=@context-bridge # If needed# First time
npm publish --access public
# Updates
npm version patch # 0.1.0 → 0.1.1
npm publish# Users install with:
npm install -g @context-bridge/cli
# Or use via npx:
npx @context-bridge/cli login- ✅ Works with GitHub Gists only
- ✅ Requires GitHub authentication
- ✅ Editor must be terminal-based (vim, nano, etc) or support terminal mode (code --wait)
- Web-based editor (for non-terminal editors)
- Multiple context profiles (work, personal, etc)
- Context sync across devices
- AI-powered suggestions
- Team shared contexts
The CLI works alongside the existing Context Bridge website:
Website (context-bridge.pages.dev):
- Marketing/landing page
- OAuth flow for web users
- Quick start guide
CLI (npm package):
- Power users
- Developers who live in terminal
- CI/CD integration
- Scripting/automation
Both create GitHub Gists - they're fully compatible!
# Monday morning
context init --template developer
context update # Add sprint tasks
# Throughout week
context update # Log progress
# In any AI conversation
"Read [raw URL] first, then help me with auth system"# Start of semester
context init --template student
context update # Add courses
# Before homework
context view # Remind yourself what you're working on
# Ask AI tutor
"Read [raw URL] first, explain recursion"- Test locally with your own GitHub account
- Create example context to show in marketing
- Publish to npm as
@context-bridge/cli - Update website to mention CLI option
- Write launch tweet about CLI
- Add to Context Bridge landing page
- npm installs: 50+
- Daily active users: 10+
- Templates used: Track which is most popular
- GitHub stars: 20+
Next in Plan: Browser Extension (Phase 3)