Skip to content

Conversation

semikolon
Copy link
Contributor

@semikolon semikolon commented Aug 22, 2025

Add Development Workflow Scripts Documentation

🎯 Purpose

Documents the convenience script that streamlines CCR development when using yalc-linked LLMS packages.

📝 What's Added

  • Automated Workflow Section: Documents 🔧 Building CCR with updated LLMS package...
    📦 Building CCR...

@musistudio/claude-code-router@1.0.41 build
node scripts/build.js

Building Claude Code Router...
Building CLI application...
Copying tiktoken WASM file...
Building UI...

temp-project@0.0.0 build
tsc -b && vite build

vite v7.0.6 building for production...
transforming...
✓ 1795 modules transformed.
rendering chunks...
[plugin vite:singlefile]

[plugin vite:singlefile] Inlining: index-C6lR1TV1.js
[plugin vite:singlefile] Inlining: style-H1ATVSdm.css
computing gzip size...
dist/index.html 601.43 kB │ gzip: 181.66 kB
✓ built in 2.12s
Copying UI build artifacts...
Build completed successfully!

📋 Current yalc status:
Yalc dependencies found: [ '@musistudio/llms' ] script usage

  • Manual vs Automated: Clear distinction between manual yalc commands and convenience script
  • Complete Development Flow: Shows how CCR development integrates with LLMS changes

🔧 Script Documented

**🔧 Building CCR with updated LLMS package...
📦 Building CCR...

@musistudio/claude-code-router@1.0.41 build
node scripts/build.js

Building Claude Code Router...
Building CLI application...
Copying tiktoken WASM file...
Building UI...

temp-project@0.0.0 build
tsc -b && vite build

vite v7.0.6 building for production...
transforming...
✓ 1795 modules transformed.
rendering chunks...
[plugin vite:singlefile]

[plugin vite:singlefile] Inlining: index-C6lR1TV1.js
[plugin vite:singlefile] Inlining: style-H1ATVSdm.css
computing gzip size...
dist/index.html 601.43 kB │ gzip: 181.66 kB
✓ built in 2.13s
Copying UI build artifacts...
Build completed successfully!

📋 Current yalc status:
Yalc dependencies found: [ '@musistudio/llms' ]**:

  • Builds CCR with updated LLMS package
  • Shows yalc status and linked package information
  • Provides ready-to-test confirmation

💡 Why This Matters

  • Developer Onboarding: New contributors can quickly understand the development workflow
  • Productivity: Single command replaces multiple manual steps
  • Troubleshooting: Script shows yalc status for debugging linked package issues
  • Consistency: Standardizes the CCR build process with LLMS integration

🎮 User Impact

Before: Manual yalc commands + npm build + manual status checking
After: Single 🔧 Building CCR with updated LLMS package...
📦 Building CCR...

@musistudio/claude-code-router@1.0.41 build
node scripts/build.js

Building Claude Code Router...
Building CLI application...
Copying tiktoken WASM file...
Building UI...

temp-project@0.0.0 build
tsc -b && vite build

vite v7.0.6 building for production...
transforming...
✓ 1795 modules transformed.
rendering chunks...
[plugin vite:singlefile]

[plugin vite:singlefile] Inlining: index-C6lR1TV1.js
[plugin vite:singlefile] Inlining: style-H1ATVSdm.css
computing gzip size...
dist/index.html 601.43 kB │ gzip: 181.66 kB
✓ built in 1.92s
Copying UI build artifacts...
Build completed successfully!

📋 Current yalc status:
Yalc dependencies found: [ '@musistudio/llms' ] handles everything with status feedback

📋 Documentation Enhancement

@musistudio/claude-code-router@1.0.41 published in store.
Package @musistudio/llms@1.0.26 added ==> /Users/fredrikbranstrom/ccr-dev/node_modules/@musistudio/llms
claude code router service has been stopped.
Starting claude code router service...
✅ Service started successfully in the background.
🔧 Building CCR with updated LLMS package...
📦 Building CCR...

@musistudio/claude-code-router@1.0.41 build
node scripts/build.js

Building Claude Code Router...
Building CLI application...
Copying tiktoken WASM file...
Building UI...

temp-project@0.0.0 build
tsc -b && vite build

vite v7.0.6 building for production...
transforming...
✓ 1795 modules transformed.
rendering chunks...
[plugin vite:singlefile]

[plugin vite:singlefile] Inlining: index-C6lR1TV1.js
[plugin vite:singlefile] Inlining: style-H1ATVSdm.css
computing gzip size...
dist/index.html 601.43 kB │ gzip: 181.66 kB
✓ built in 2.40s
Copying UI build artifacts...
Build completed successfully!

📋 Current yalc status:
Yalc dependencies found: [ '@musistudio/llms' ]

🔗 Companion PR

This complements LLMS PR #30 which documents the LLMS side script. Together they provide complete cross-repository development workflow documentation.

✅ Verification

  • ✅ script exists and is executable
  • ✅ Script functionality tested with yalc-linked packages
  • ✅ Documentation formatting matches existing CLAUDE.md style
  • ✅ Instructions are clear and immediately actionable

🔄 Development Workflow Chain

  1. LLMS: Make changes → (builds, publishes, pushes to yalc)
  2. CCR: 🔧 Building CCR with updated LLMS package...
    📦 Building CCR...

@musistudio/claude-code-router@1.0.41 build
node scripts/build.js

Building Claude Code Router...
Building CLI application...
Copying tiktoken WASM file...
Building UI...

temp-project@0.0.0 build
tsc -b && vite build

vite v7.0.6 building for production...
transforming...
✓ 1795 modules transformed.
rendering chunks...
[plugin vite:singlefile]

[plugin vite:singlefile] Inlining: index-C6lR1TV1.js
[plugin vite:singlefile] Inlining: style-H1ATVSdm.css
computing gzip size...
dist/index.html 601.43 kB │ gzip: 181.66 kB
✓ built in 2.38s
Copying UI build artifacts...
Build completed successfully!

📋 Current yalc status:
Yalc dependencies found: [ '@musistudio/llms' ] (builds CCR with updated LLMS, shows status)
3. Testing: Ready
claude code router service has been successfully stopped. (test the integration)

Now fully documented across both repositories! 🚀


Related PRs (complete series)

semikolon and others added 8 commits August 19, 2025 13:34
Prevent local Claude Code settings from being committed to repository.
These files contain personal development tool preferences that should
remain local to each developer.
- Update package.json to use llms v1.0.26 with GPT-5 support
- Add comprehensive debug logging in index.ts for troubleshooting
- Implement GPT-5 parameter mapping in router.ts (max_tokens → max_completion_tokens)
- Working GPT-5 through CCR with tool format conversion

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

Co-Authored-By: Claude <noreply@anthropic.com>
Add comprehensive inline token system for controlling GPT-5 reasoning effort
and verbosity without requiring separate CLI flags or configuration.

Features:
- Prefix tokens: Quick:, Deep:, Explain:, Brief: (beginning of prompt)
- Colon tokens: :quick, :deep, :explain, :brief (anywhere in prompt)
- Automatic token detection, parameter mapping, and prompt stripping
- Integration with CCR router middleware for seamless processing
- Avoids conflicts with Claude Code's # memory system

Token mappings:
- Quick/:quick → low effort, low verbosity (500 token budget)
- Deep/:deep → high effort, medium verbosity (2000 token budget)
- Explain/:explain → medium effort, high verbosity (1000 token budget)
- Brief/:brief → medium effort, low verbosity (1000 token budget)

Implementation in src/utils/router.ts:153-210 processes tokens before
API calls, automatically strips them from prompts, and sets appropriate
reasoning_effort, verbosity, and thinking parameters for downstream
transformers.

Documentation includes comprehensive reference table and usage examples
in CLAUDE.md inline token section.

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

Co-Authored-By: Claude <noreply@anthropic.com>
Replace outdated GPT-4 references with current 2025 model comparisons:
- GPT-5 vs o3/o4-mini performance differences
- Token usage: GPT-5 2000+ vs o3/o4-mini 500 reasoning tokens
- Architecture evolution: unified vs specialized reasoning models
- Performance improvements: 50-80% fewer tokens, 6x fewer hallucinations
- Tool capabilities: GPT-5 agentic integration vs o3 limitations

Reflects actual 2025 release timeline with GPT-5 (Aug 2025),
o3/o4-mini as current generation models rather than legacy comparisons.

🤖 Generated with [Claude Code](https://claude.ai/code)
semikolon added a commit to semikolon/claude-code-router that referenced this pull request Aug 23, 2025
Updated to use feature/dev-workflow-docs branches which contain:
- LLMS: PRs musistudio#28, musistudio#29, musistudio#30 (Core API + Documentation + Workflow)
- CCR: PRs musistudio#677, musistudio#678, musistudio#679 (Reasoning Control + Docs + Workflow)

This ensures users get the complete feature set, not just partial work.
semikolon added a commit to semikolon/claude-code-router that referenced this pull request Aug 23, 2025
…usistudio#679)

✅ COMBINED CCR FUNCTIONALITY:
- PR musistudio#677: Inline Reasoning Control Tokens (:quick, :deep, :explain, :brief)
- PR musistudio#678: Enhanced Documentation & API Guide
- PR musistudio#679: Development Workflow Scripts

🎯 COMPLETE CCR FEATURES:
- Reasoning token processing and parameter mapping
- Background model routing enhancements
- Complete documentation for GPT-5 integration
- Development workflow automation
- Enhanced logging and debugging capabilities

This branch contains ALL CCR enhancements for GPT-5 integration!
semikolon added a commit to semikolon/claude-code-router that referenced this pull request Aug 23, 2025
✅ UNIFIED BRANCHES CREATED:
- LLMS: gpt5-complete-integration (commit d43f50f)
  Contains: PR musistudio#28 + PR musistudio#29 + PR musistudio#30 (all functionality merged)
- CCR: gpt5-complete-integration
  Contains: PR musistudio#677 + PR musistudio#678 + PR musistudio#679 (all functionality merged)

🔧 COMPLETE FUNCTIONALITY GUARANTEED:
✅ GPT-5 normalization fixes (prevents 400 errors)
✅ Usage format conversion (fixes subagent metrics)
✅ Reasoning control tokens (:quick, :deep, etc)
✅ Complete documentation and workflow scripts
✅ All parameter transformations and API compatibility
✅ Enhanced logging and debugging capabilities

🎯 ONE-COMMAND SETUP:
Users now get EVERYTHING with a single script - no missing features!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant