|
1 | 1 | # Development Logs |
2 | | -- Prepend new entries with `## Issue Analysis: YYYY-MM-DD`. |
| 2 | +- Prepend new entries with `## Dev Log: YYYY-MM-DD`. |
| 3 | +- Reference issue numbers in the format `#<issue-number>` for easy linking. |
3 | 4 | - We write or explain to the damn point. Be clear, be super concise - no fluff, no hand-holding, no repeating. |
4 | 5 | - Minimal markdown markers, no unnecessary formatting, minimal unicode emojis. |
5 | 6 |
|
| 7 | +## Dev Log: 2025-07-09 |
| 8 | + |
| 9 | +### [enhancement-completed] Auth system overhaul and environment handling |
| 10 | + |
| 11 | +**Problem**: Messy auth flags, poor environment handling, inconsistent Docker mounts. |
| 12 | + |
| 13 | +**Solution**: |
| 14 | +- Unified auth with `--auth-with` pattern (claude|api-key|bedrock|vertex) |
| 15 | +- Proper environment var handling with `-e` flag |
| 16 | +- Controlled auth directory mounting with explicit permissions |
| 17 | +- Smart model name handling for each auth mode |
| 18 | + |
| 19 | +**Technical**: |
| 20 | +- Freed -v for Docker volume mounts (was conflicting with --vertex) |
| 21 | +- Added model name translation for API key mode |
| 22 | +- Implemented proper ARN generation for Bedrock |
| 23 | +- Added environment detection for tools and auth status |
| 24 | + |
| 25 | +**Result**: Clean auth system, proper env handling, secure mounts. |
| 26 | + |
| 27 | +--- |
| 28 | + |
| 29 | +## Dev Log: 2025-07-08 |
| 30 | + |
| 31 | +### [enhancement-completed] Custom config directory and environment variable support |
| 32 | + |
| 33 | +**Problem**: Users needed separate auth sessions for different projects and better environment variable handling. |
| 34 | + |
| 35 | +**Root Cause**: Fixed path mounting made multi-project auth management difficult, no env var support in Docker mode. |
| 36 | + |
| 37 | +**Solution**: Added `--config` flag for custom Claude config home and `-e` flag for environment variables. |
| 38 | + |
| 39 | +**Implementation**: |
| 40 | +- `--config ~/work-claude` creates and mounts custom config directory |
| 41 | +- `-e NODE_ENV=dev` or `-e DEBUG` passes environment variables |
| 42 | +- Fixed npm-global path handling for claude user |
| 43 | +- Standardized mount paths to `/home/claude` instead of `/root` |
| 44 | +- Environment variable naming: `CLAUDE_YOLO_*` → `CCYOLO_*` |
| 45 | +- Auth isolation: unset conflicting auth variables per mode |
| 46 | + |
| 47 | +**Benefits**: |
| 48 | +- ✅ **Project isolation**: Separate auth sessions per project |
| 49 | +- ✅ **Environment control**: Full env var support in Docker mode |
| 50 | +- ✅ **Path consistency**: All mounts to `/home/claude` |
| 51 | +- ✅ **Auth reliability**: No cross-contamination between auth modes |
| 52 | + |
| 53 | +**Related**: Issues #46, #45 (configuration management) |
| 54 | + |
| 55 | +**Status**: ✅ **COMPLETED** |
| 56 | + |
| 57 | +--- |
| 58 | + |
| 59 | +## Issue Analysis: 2025-07-04 |
| 60 | + |
| 61 | +### [enhancement-analysis] Docker Compose configuration support |
| 62 | + |
| 63 | +**Problem**: Command line arguments become unmanageable for complex setups with multiple volumes and environment variables. |
| 64 | + |
| 65 | +**Current Pain Point**: |
| 66 | +```bash |
| 67 | +claude-yolo -v ~/.ssh:/root/.ssh:ro -v ~/Desktop/claude:/home/claude/.claude/ -v ~/.config/git:/home/claude/.config/git -v ../yolo-tools/scripts/barkme.sh:/home/claude/.local/bin/barkme.sh --continue |
| 68 | +``` |
| 69 | + |
| 70 | +**Root Cause Analysis**: |
| 71 | +1. **CLI limitations**: Long command lines are hard to edit, share, version control |
| 72 | +2. **Multi-container needs**: Users want playwright services, MCP servers, other tools |
| 73 | +3. **Team collaboration**: Complex setups need to be shared across team members |
| 74 | +4. **Missing configuration hierarchy**: No project vs user vs local settings distinction |
| 75 | + |
| 76 | +**Proposed Solution**: Docker Compose integration following Claude Code's settings pattern |
| 77 | + |
| 78 | +**Configuration Hierarchy** (mirrors Claude Code's approach): |
| 79 | +``` |
| 80 | +.claude/ |
| 81 | +├── claude-yolo.local.yml # Project-local (gitignored) |
| 82 | +├── claude-yolo.yml # Project-shared (version controlled) |
| 83 | +└── ~/.claude/claude-yolo.yml # User global |
| 84 | +``` |
| 85 | + |
| 86 | +**Multi-container Support**: |
| 87 | +```yaml |
| 88 | +# .claude/claude-yolo.yml |
| 89 | +version: '3.8' |
| 90 | +services: |
| 91 | + claude: |
| 92 | + image: ghcr.io/lroolle/claude-code-yolo:latest |
| 93 | + volumes: |
| 94 | + - ~/.ssh:/root/.ssh:ro |
| 95 | + - ${PWD}:${PWD} |
| 96 | + depends_on: |
| 97 | + - playwright |
| 98 | + - mcp-server |
| 99 | + |
| 100 | + playwright: |
| 101 | + image: mcr.microsoft.com/playwright:v1.40.0-focal |
| 102 | + ports: ["3000:3000"] |
| 103 | + |
| 104 | + mcp-server: |
| 105 | + image: custom/mcp-server:latest |
| 106 | + ports: ["8080:8080"] |
| 107 | +``` |
| 108 | +
|
| 109 | +**Implementation Requirements**: |
| 110 | +1. **Auto-detection**: Check for compose files in precedence order |
| 111 | +2. **Backward compatibility**: Keep CLI args for simple cases |
| 112 | +3. **Multi-container orchestration**: Full Docker Compose integration |
| 113 | +4. **Settings coexistence**: Respect existing `.claude/settings.json` handling |
| 114 | + |
| 115 | +**Benefits**: |
| 116 | +- ✅ **Manageable configs**: No more insane command lines |
| 117 | +- ✅ **Team collaboration**: Share service definitions via git |
| 118 | +- ✅ **Multi-container**: Enable complex development environments |
| 119 | +- ✅ **Familiar patterns**: Follow Claude Code's settings hierarchy |
| 120 | +- ✅ **Version control**: Compose files are easily tracked |
| 121 | + |
| 122 | +**Related Issues**: |
| 123 | +- Issue #24: Environment variable support (partially addresses) |
| 124 | +- Issue #33: DevContainer support question (compose provides better solution) |
| 125 | + |
| 126 | +**Status**: Analysis complete, ready for implementation |
| 127 | + |
6 | 128 | ## Issue Analysis: 2025-06-23 |
7 | 129 |
|
8 | 130 | ### [bug-fixed] Root user (UID 0) handling in docker-entrypoint.sh |
|
0 commit comments