agentleFS
shyftlabsshyftlabs/continuum/CLAUDE.md

continuum

CLAUDE.md84 starsChanged 6 months agoApache-2.0View on GitHub

  • Reads credentials
  • Installs packages

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

52 rules. About 0 are common, 39 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈39

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Do what has been asked; nothing more, nothing less

    line 5
  2. Distinctive:

    NEVER create files unless they're absolutely necessary for achieving your goal

    line 6
  3. Distinctive:

    ALWAYS prefer editing an existing file to creating a new one

    line 7
  4. Distinctive:

    NEVER proactively create documentation files (*.md) or README files unless explicitly requested

    line 8
  5. Distinctive:

    NEVER save working files, text/mds, or tests to the root folder

    line 9
  6. Distinctive:

    Never continuously check status after spawning a swarm — wait for results

    line 10
  7. Distinctive:

    ALWAYS read a file before editing it

    line 11
  8. Distinctive:

    NEVER commit secrets, credentials, or .env files

    line 12
  9. Distinctive:

    NEVER save to root folder — use the directories below

    line 16
  10. Very specific:

    Use /src for source code files

    line 17
  11. Very specific:

    Use /tests for test files

    line 18
  12. Very specific:

    Use /docs for documentation and markdown files

    line 19
  13. Very specific:

    Use /config for configuration files

    line 20
  14. Very specific:

    Use /scripts for utility scripts

    line 21
  15. Very specific:

    Use /examples for example code

    line 22
  16. Distinctive:

    Follow Domain-Driven Design with bounded contexts

    line 26
  17. Distinctive:

    Keep files under 500 lines

    line 27
  18. Distinctive:

    Use typed interfaces for all public APIs

    line 28
  19. Distinctive:

    Prefer TDD London School (mock-first) for new code

    line 29
  20. Distinctive:

    Use event sourcing for state changes

    line 30
  21. Distinctive:

    Ensure input validation at system boundaries

    line 31
  22. Distinctive:

    ALWAYS run tests after making code changes

    line 57
  23. Distinctive:

    ALWAYS verify lint and type-check pass before committing

    line 58
  24. Distinctive:

    NEVER hardcode API keys, secrets, or credentials in source files

    line 62
  25. Distinctive:

    NEVER commit .env files or any file containing secrets

    line 63
  26. Distinctive:

    Always validate user input at system boundaries

    line 64
  27. Distinctive:

    Always sanitize file paths to prevent directory traversal

    line 65
  28. Very specific:

    Run npx @claude-flow/cli@latest security scan after security-related changes

    line 66
  29. Distinctive:

    All operations MUST be concurrent/parallel in a single message

    line 70
  30. Distinctive:

    Use Claude Code's Task tool for spawning agents, not just MCP

    line 71
  31. Distinctive:

    ALWAYS batch ALL todos in ONE TodoWrite call (5-10+ minimum)

    line 72
  32. Distinctive:

    ALWAYS spawn ALL agents in ONE message with full instructions via Task tool

    line 73
  33. Very specific:

    ALWAYS batch ALL file reads/writes/edits in ONE message

    line 74
  34. Distinctive:

    ALWAYS batch ALL Bash commands in ONE message

    line 75
  35. Distinctive:

    MUST initialize the swarm using CLI tools when starting complex tasks

    line 79
  36. Distinctive:

    MUST spawn concurrent agents using Claude Code's Task tool

    line 80
  37. Distinctive:

    Never use CLI tools alone for execution — Task tool agents do the actual work

    line 81
  38. Distinctive:

    MUST call CLI tools AND Task tool in ONE message for complex work

    line 82
  39. Very specific:

    Always check for [AGENT_BOOSTER_AVAILABLE] or [TASK_MODEL_RECOMMENDATION] before spawning agents

    line 92
  40. Very specific:

    Use Edit tool directly when [AGENT_BOOSTER_AVAILABLE]

    line 93
  41. Distinctive:

    ALWAYS use hierarchical topology for coding swarms

    line 97
  42. Distinctive:

    Keep maxAgents at 6-8 for tight coordination

    line 98
  43. Distinctive:

    Use specialized strategy for clear role boundaries

    line 99
  44. Very specific:

    Use raft consensus for hive-mind (leader maintains authoritative state)

    line 100
  45. Very specific:

    Run frequent checkpoints via post-task hooks

    line 101
  46. Distinctive:

    Keep shared memory namespace for all agents

    line 102
  47. Very specific:

    ALWAYS use run_in_background: true for all agent Task calls

    line 110
  48. Distinctive:

    ALWAYS put ALL agent Task calls in ONE message for parallel execution

    line 111
  49. Distinctive:

    After spawning, STOP — do NOT add more tool calls or check status

    line 112
  50. Distinctive:

    Never poll TaskOutput or check swarm status — trust agents to return

    line 113
  51. Distinctive:

    When agent results arrive, review ALL results before proceeding

    line 114
  52. Distinctive:

    NEVER use CLI tools as a substitute for Task tool agents

    line 186

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

Claude Code Configuration - RuFlo V3

Behavioral Rules (Always Enforced)

  • Do what has been asked; nothing more, nothing less
  • NEVER create files unless they're absolutely necessary for achieving your goal
  • ALWAYS prefer editing an existing file to creating a new one
  • NEVER proactively create documentation files (*.md) or README files unless explicitly requested
  • NEVER save working files, text/mds, or tests to the root folder
  • Never continuously check status after spawning a swarm — wait for results
  • ALWAYS read a file before editing it
  • NEVER commit secrets, credentials, or .env files

File Organization

  • NEVER save to root folder — use the directories below
  • Use /src for source code files
  • Use /tests for test files
  • Use /docs for documentation and markdown files
  • Use /config for configuration files
  • Use /scripts for utility scripts
  • Use /examples for example code

Project Architecture

  • Follow Domain-Driven Design with bounded contexts
  • Keep files under 500 lines
  • Use typed interfaces for all public APIs
  • Prefer TDD London School (mock-first) for new code
  • Use event sourcing for state changes
  • Ensure input validation at system boundaries

Project Config

  • Topology: hierarchical-mesh
  • Max Agents: 15
  • Memory: hybrid
  • HNSW: Enabled
  • Neural: Enabled

Build & Test

# Install (editable, with dev extras)
pip install -e ".[dev]"

# Test
pytest

# Lint
ruff check .

# Type-check
mypy src/continuum
  • ALWAYS run tests after making code changes
  • ALWAYS verify lint and type-check pass before committing

Security Rules

  • NEVER hardcode API keys, secrets, or credentials in source files
  • NEVER commit .env files or any file containing secrets
  • Always validate user input at system boundaries
  • Always sanitize file paths to prevent directory traversal
  • Run npx @claude-flow/cli@latest security scan after security-related changes

Concurrency: 1 MESSAGE = ALL RELATED OPERATIONS

  • All operations MUST be concurrent/parallel in a single message
  • Use Claude Code's Task tool for spawning agents, not just MCP
  • ALWAYS batch ALL todos in ONE TodoWrite call (5-10+ minimum)
  • ALWAYS spawn ALL agents in ONE message with full instructions via Task tool
  • ALWAYS batch ALL file reads/writes/edits in ONE message
  • ALWAYS batch ALL Bash commands in ONE message

Swarm Orchestration

  • MUST initialize the swarm using CLI tools when starting complex tasks
  • MUST spawn concurrent agents using Claude Code's Task tool
  • Never use CLI tools alone for execution — Task tool agents do the actual work
  • MUST call CLI tools AND Task tool in ONE message for complex work

3-Tier Model Routing (ADR-026)

TierHandlerLatencyCostUse Cases
1Agent Booster (WASM)<1ms$0Simple transforms (var→const, add types) — Skip LLM
2Haiku~500ms$0.0002Simple tasks, low complexity (<30%)
3Sonnet/Opus2-5s$0.003-0.015Complex reasoning, architecture, security (>30%)
  • Always check for [AGENT_BOOSTER_AVAILABLE] or [TASK_MODEL_RECOMMENDATION] before spawning agents
  • Use Edit tool directly when [AGENT_BOOSTER_AVAILABLE]

Swarm Configuration & Anti-Drift

  • ALWAYS use hierarchical topology for coding swarms
  • Keep maxAgents at 6-8 for tight coordination
  • Use specialized strategy for clear role boundaries
  • Use raft consensus for hive-mind (leader maintains authoritative state)
  • Run frequent checkpoints via post-task hooks
  • Keep shared memory namespace for all agents
npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 8 --strategy specialized

Swarm Execution Rules

  • ALWAYS use run_in_background: true for all agent Task calls
  • ALWAYS put ALL agent Task calls in ONE message for parallel execution
  • After spawning, STOP — do NOT add more tool calls or check status
  • Never poll TaskOutput or check swarm status — trust agents to return
  • When agent results arrive, review ALL results before proceeding

V3 CLI Commands

Core Commands

CommandSubcommandsDescription
init4Project initialization
agent8Agent lifecycle management
swarm6Multi-agent swarm coordination
memory11AgentDB memory with HNSW search
task6Task creation and lifecycle
session7Session state management
hooks17Self-learning hooks + 12 workers
hive-mind6Byzantine fault-tolerant consensus

Quick CLI Examples

npx @claude-flow/cli@latest init --wizard
npx @claude-flow/cli@latest agent spawn -t coder --name my-coder
npx @claude-flow/cli@latest swarm init --v3-mode
npx @claude-flow/cli@latest memory search --query "authentication patterns"
npx @claude-flow/cli@latest doctor --fix

Available Agents (60+ Types)

Core Development

coder, reviewer, tester, planner, researcher

Specialized

security-architect, security-auditor, memory-specialist, performance-engineer

Swarm Coordination

hierarchical-coordinator, mesh-coordinator, adaptive-coordinator

GitHub & Repository

pr-manager, code-review-swarm, issue-tracker, release-manager

SPARC Methodology

sparc-coord, sparc-coder, specification, pseudocode, architecture

Memory Commands Reference

# Store (REQUIRED: --key, --value; OPTIONAL: --namespace, --ttl, --tags)
npx @claude-flow/cli@latest memory store --key "pattern-auth" --value "JWT with refresh" --namespace patterns

# Search (REQUIRED: --query; OPTIONAL: --namespace, --limit, --threshold)
npx @claude-flow/cli@latest memory search --query "authentication patterns"

# List (OPTIONAL: --namespace, --limit)
npx @claude-flow/cli@latest memory list --namespace patterns --limit 10

# Retrieve (REQUIRED: --key; OPTIONAL: --namespace)
npx @claude-flow/cli@latest memory retrieve --key "pattern-auth" --namespace patterns

Quick Setup

claude mcp add claude-flow -- npx -y @claude-flow/cli@latest
npx @claude-flow/cli@latest daemon start
npx @claude-flow/cli@latest doctor --fix

Claude Code vs CLI Tools

  • Claude Code's Task tool handles ALL execution: agents, file ops, code generation, git
  • CLI tools handle coordination via Bash: swarm init, memory, hooks, routing
  • NEVER use CLI tools as a substitute for Task tool agents

Support

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.