/Users/alexa/blackroad/
├── br-status.sh (3.8 KB) - Platform status monitoring
├── br-domain.sh (2.8 KB) - Domain and DNS management
├── br-worker.sh (3.2 KB) - Cloudflare Worker management
├── br-cert.sh (3.0 KB) - SSL certificate monitoring
├── br-health.sh (4.5 KB) - Deep health check system
├── br-agent.sh (4.4 KB) - AI agent manager and router
├── br-memory.sh (4.4 KB) - PS-SHA∞ memory journal system
├── br-queue.sh (3.8 KB) - Task queue management
├── br-pr.sh (3.9 KB) - GitHub PR manager
├── br-release.sh (4.3 KB) - Release manager
├── setup-br-tools.sh (1.3 KB) - Setup script for symlinks
└── BR_CLI_TOOLS_CREATED.md - Detailed documentation
chmod +x /Users/alexa/blackroad/br-*.sh/Users/alexa/blackroad/br-status.sh
/Users/alexa/blackroad/br-domain.sh
# ... etcbash /Users/alexa/blackroad/setup-br-tools.shThen use:
br-status
br-domain
br-worker
br-cert
br-health
br-agent
br-memory
br-queue
br-pr
br-release| # | Tool | Purpose | Key Features |
|---|---|---|---|
| 1 | br-status | Platform status | Gateway, Workers, Pi nodes, Git |
| 2 | br-domain | DNS management | DNS lookup, WHOIS, domain alive check |
| 3 | br-worker | Worker mgmt | Deploy, logs, status, wrangler integration |
| 4 | br-cert | SSL monitoring | Expiry dates, alerts, cert details |
| 5 | br-health | Health check | Local services, external deps, CPU/disk |
| 6 | br-agent | Agent manager | Chat, routing, broadcasting, 5 agents |
| 7 | br-memory | Memory journal | Write, read, search, JSONL persistence |
| 8 | br-queue | Task queue | SQLite-based, status tracking, priority |
| 9 | br-pr | PR manager | List, create, merge, gh CLI integration |
| 10 | br-release | Release mgmt | Tag, bump, changelog, semantic versioning |
br-status # Full status
br-status workers # Just Cloudflare workers
br-status git # Git info onlybr-domain list # List all domains
br-domain check blackroad.io # DNS check
br-domain live # Check which domains are livebr-worker status # Check all worker endpoints
br-worker deploy myworker # Deploy a worker
br-worker logs myworker # Tail live logsbr-cert all # Check all domains' certs
br-cert expiry blackroad.io # Check expiry date
br-cert info blackroad.io # Full cert detailsbr-health # Full health check
br-health gateway # Just gateway
br-health quick # Quick endpoint pingbr-agent list # List all agents
br-agent chat lucidia "Hello" # Chat with agent
br-agent route deploy_task # Intelligent routing
br-agent broadcast "message" # Broadcast to allbr-memory write key value # Store in memory
br-memory read key # Retrieve value
br-memory search pattern # Search journal
br-memory stats # Show memory statsbr-queue list # List all tasks
br-queue post "My task" # Create new task
br-queue claim taskid # Claim a task
br-queue done taskid # Mark as completebr-pr list # List open PRs
br-pr create "Title" # Create new PR
br-pr merge 42 # Merge PR #42
br-pr status # Check CI statusbr-release list # List releases
br-release bump patch # Bump patch version
br-release tag v1.2.3 # Tag commit
br-release changelog # Generate changelog- Language: Zsh
- Shebang:
#!/bin/zsh - Compatibility: macOS, Linux
| Tool | Required | Used By |
|---|---|---|
| curl | Yes | Most tools (health checks) |
| git | Yes | status, pr, release |
| dig | Optional | domain |
| openssl | Optional | cert |
| sqlite3 | Optional | queue |
| gh | Optional | pr, release |
| wrangler | Optional | worker |
| ollama | Optional | agent (fallback) |
All tools use ANSI color codes:
- 🟢 Green: Success/Online
- 🔴 Red: Failure/Offline/Error
- 🟡 Yellow: Warning/Pending
- 🔵 Cyan: Info
- 🟣 Purple: Special/Header
Total Tools Created: 10
Total Size: ~37.5 KB
Total Lines of Code: ~800 lines
Average Size Per Tool: ~3.75 KB
Language: Zsh
Executable: Yes (after chmod +x)
✅ Comprehensive Monitoring - Gateway, workers, domains, certificates
✅ Task Management - SQLite-based queue system
✅ Memory System - Persistent JSONL journal
✅ Agent Integration - 5 AI agents with intelligent routing
✅ GitHub Integration - PR and release management
✅ Health Checks - Multi-layer system monitoring
✅ Color Output - Beautiful CLI experience
✅ Error Handling - Graceful fallbacks
✅ Offline Mode - Local fallbacks when needed
✅ Performance - Fast with reasonable timeouts
-
Make Executable:
chmod +x /Users/alexa/blackroad/br-*.sh -
Add to PATH (Optional):
bash /Users/alexa/blackroad/setup-br-tools.sh
-
Add to .zshrc (Optional):
export PATH="/Users/alexa/blackroad:$PATH" # or create aliases alias br-status='/Users/alexa/blackroad/br-status.sh' alias br-status='/Users/alexa/blackroad/br-domain.sh' # ... etc
-
Configure API Keys (Optional):
- Set
CLOUDFLARE_ACCOUNT_IDfor worker tools - Authenticate
ghCLI for PR/release tools
- Set
-
Set Up Monitoring (Optional):
# Add to crontab for regular health checks 0 * * * * /Users/alexa/blackroad/br-health.sh > /tmp/br-health.log
Each tool has built-in help:
./br-status.sh help
./br-domain.sh --help
./br-worker.sh -h
# ... etcAll tools follow the same pattern:
command [subcommand] [options]-h,--help, orhelpfor documentation
- br-status.sh - Platform monitoring
- br-domain.sh - DNS & domain management
- br-worker.sh - Cloudflare worker control
- br-cert.sh - SSL certificate tracking
- br-health.sh - System health monitoring
- br-agent.sh - AI agent interface
- br-memory.sh - Persistent memory system
- br-queue.sh - Task queue management
- br-pr.sh - GitHub PR operations
- br-release.sh - Release management
Status: ✅ All 10 tools created and ready to use!
Created: 2024 Location: /Users/alexa/blackroad/