agentleFS
9j9j/claude-code-mux/CLAUDE.md

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…

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
  1. Very specific:

    Always reference @/rapidspec/AGENTS.md when:

    line 5
  2. Very specific:

    Keep this file so rapid update can refresh instructions.

    line 17
  3. Very specific:

    All operations (add/delete/edit): Update localStorage only

    line 39
  4. Very specific:

    All CRUD operations update localStorage only, then call saveToLocalStorage()

    line 51
  5. Distinctive:

    Never add server fetches in CRUD operations

    line 54
  6. Very specific:

    All operations must update appState.config → saveToLocalStorage()

    line 55
  7. Very specific:

    Only save buttons call syncToServer()

    line 56

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 localStorage
  • syncToServer() - Sync localStorage to server (only called by save buttons)
  • All CRUD operations update localStorage only, then call saveToLocalStorage()

When modifying admin UI:

  1. Never add server fetches in CRUD operations
  2. All operations must update appState.config → saveToLocalStorage()
  3. Only save buttons call syncToServer()
  4. Always notify user: "(저장 버튼을 눌러 적용하세요)"

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.