claude-code-mux
CLAUDE.md516 starsChanged 13 months agoMITArchived repositoryView on GitHub
AI assistant instructions for this project using RapidSpec workflow. Always reference @/rapidspec/AGENTS.md when: - Planning features or changes - Creating proposals or specs - Making architectural decisions - Need clarification on workflow See @/rapidspec/AGENTS.md for: - RapidSpec workflow and commands - Spec-driven development process - AI agents and their usage - Project conventions Keep this file so rapid update can refresh instructions. The admin UI (src/server/admin.html) uses two complementary state management patterns: Critical Architecture Decision: The server loads TOML config…
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rapidspec/AGENTS.mdAGENTS.md
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Always reference @/rapidspec/AGENTS.md when:
- Very specific: line 17
Keep this file so rapid update can refresh instructions.
- Very specific: line 39
All operations (add/delete/edit): Update localStorage only
- Very specific: line 51
All CRUD operations update localStorage only, then call saveToLocalStorage()
- Distinctive: line 54
Never add server fetches in CRUD operations
- Very specific: line 55
All operations must update appState.config → saveToLocalStorage()
- Very specific: line 56
Only save buttons call syncToServer()
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
RapidSpec Instructions
AI assistant instructions for this project using RapidSpec workflow.
Always reference @/rapidspec/AGENTS.md when:
- Planning features or changes
- Creating proposals or specs
- Making architectural decisions
- Need clarification on workflow
See @/rapidspec/AGENTS.md for:
- RapidSpec workflow and commands
- Spec-driven development process
- AI agents and their usage
- Project conventions
Keep this file so rapid update can refresh instructions.
Architecture Guidelines
Admin UI State Management
The admin UI (src/server/admin.html) uses two complementary state management patterns:
1. URL-based State Management
See @docs/url-state-management.md for detailed documentation.
- Navigation state (tabs, views) is stored in URL parameters
- Enables shareable URLs, browser history, and bookmarking
- Example:
?tab=providers&view=add
2. LocalStorage-based State Management
See @docs/localstorage-state-management.md for detailed documentation.
Critical Architecture Decision: The server loads TOML config on startup and does not reload until restart. Therefore:
- ✅ Correct: Use localStorage as client-side cache
- Page load: Fetch from server → save to localStorage
- All operations (add/delete/edit): Update localStorage only
- "저장" button: Sync localStorage → server
- "저장 & 재시작" button: Sync → restart server
- ❌ Wrong: Fetch from server after each operation
- Server returns stale data until restart
- Causes inconsistent UI state
Key Functions:
loadConfig()- Fetch from server (only on page load)saveToLocalStorage(config)- Save to localStoragesyncToServer()- Sync localStorage to server (only called by save buttons)- All CRUD operations update localStorage only, then call
saveToLocalStorage()
When modifying admin UI:
- Never add server fetches in CRUD operations
- All operations must update
appState.config→saveToLocalStorage() - Only save buttons call
syncToServer() - Always notify user: "(저장 버튼을 눌러 적용하세요)"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

