Add Roo Code context sync: .clinerules symlink and sync script
- Add .clinerules symlink → CLAUDE.md so Roo Code reads same project context - Add sync-context.sh: copies global context to ~/.claude/ for Claude Code and prints content for manual paste into Roo Code Custom Instructions - Update CLAUDE.md: note .clinerules symlink, add sync-context.sh to file list - Update CONTEXT.md: add AI context file mapping table, update file structure - Update README.md: rewrite AI Context Files section to cover both tools, document symlink strategy and sync workflow
This commit is contained in:
+15
-1
@@ -161,6 +161,16 @@ Three profiles configured:
|
||||
| "opus" | claude-opus-4-6 | Anthropic Opus | ON | 1M context enabled |
|
||||
| "cheap" | claude-haiku-4-5 | DeepSeek V3.2 | OFF | Fast/cheap tasks |
|
||||
|
||||
### AI Context File Mapping
|
||||
Both Claude Code and Roo Code use context files, but with different conventions:
|
||||
|
||||
| Level | Claude Code | Roo Code | Source of truth |
|
||||
|-------|-------------|----------|-----------------|
|
||||
| Project | `CLAUDE.md` | `.clinerules` (symlink → CLAUDE.md) | `CLAUDE.md` |
|
||||
| Global | `~/.claude/CLAUDE.md` | Custom Instructions in Roo UI | `global-claude-md/CLAUDE.md` |
|
||||
|
||||
Run `./sync-context.sh` from the repo root to sync global context to both tools.
|
||||
|
||||
## Proxy Internals
|
||||
|
||||
### File Structure
|
||||
@@ -171,10 +181,14 @@ Three profiles configured:
|
||||
├── config.example.json # Template config
|
||||
├── ein-ai-proxy.service # Systemd unit file
|
||||
├── deploy.sh # Deployment script
|
||||
├── sync-context.sh # Syncs global context to Claude Code & Roo Code
|
||||
├── package.json # Package metadata
|
||||
├── .gitignore # Excludes config.json
|
||||
├── CONTEXT.md # This file
|
||||
├── CLAUDE.md # Project-level context
|
||||
├── CLAUDE.md # Project-level context (Claude Code)
|
||||
├── .clinerules # Symlink → CLAUDE.md (Roo Code)
|
||||
├── global-claude-md/ # Global context source of truth
|
||||
│ └── CLAUDE.md # Synced to ~/.claude/ and Roo Custom Instructions
|
||||
└── README.md # Public documentation
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user