agentleFS
openfloconopenflocon/Flocon/CLAUDE.md

Flocon

CLAUDE.md379 starsChanged 28 days agoMITView on GitHub

When delegating to subagents, apply the same split: planning/exploration-for-design agents run on Opus, implementation agents run on Sonnet, mechanical agents run on Haiku. Route each task by its nature: Typical flow: Explore locates → planner decides (only if the approach isn't obvious) → implementer / main session codes → test-runner verifies → docs-sync updates the docs → reviewer checks the finished diff → create-pull-request opens the PR. The main session uses opusplan (.claude/settings.json): Opus in plan mode, Sonnet otherwise. The…

The file

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

1 rule. About 0 are common, 1 is distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When delegating to subagents, apply the same split: planning/exploration-for-design agents run on Opus, implementation agents run on …

    line 10

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 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

Flocon

Models

  • Planning a task: use Opus. Analysis, design, architecture decisions, breaking a task into steps, and reviewing a plan are done with Opus.
  • Doing a task: use Sonnet. Once a plan exists, implementing it (writing code, editing files, running checks, fixing CI, updating docs) is done with Sonnet.
  • Mechanical work: use Haiku. Lookups, running checks, reading CI logs, syncing docs from a finished diff, and git / gh operations go to the Haiku agents below. Writing or reviewing Kotlin stays on Sonnet.

When delegating to subagents, apply the same split: planning/exploration-for-design agents run on Opus, implementation agents run on Sonnet, mechanical agents run on Haiku.

Workflow

Route each task by its nature:

TaskWhoModel
Simple lookup or read (where is X, who uses Y, read a file)Explorehaiku
Run module checkstest-runnerhaiku
CI failed: find out whyci-investigatorhaiku
Update protocol/, docs/, README, MCP skill after a code changedocs-synchaiku
Branch, commit, PRgit-setup / create-pull-request skills (run in git-ops)haiku
Needs thinking (design, unclear bug, trade-off)planner, then architect for new plugins / protocol / layering changesopus
Everything else (write Kotlin, tests, fix the cause of a CI failure, review)main session, implementer or reviewersonnet
See Flocon Desktop with data and no phone (doc screenshots, UI states, MCP tests, edge cases)flocon-mock-mode skill (--mock=<scenario>)any

Typical flow: Explore locates → planner decides (only if the approach isn't obvious) → implementer / main session codes → test-runner verifies → docs-sync updates the docs → reviewer checks the finished diff → create-pull-request opens the PR. The main session uses opusplan (.claude/settings.json): Opus in plan mode, Sonnet otherwise. The dev-workflow skill and the agent descriptions route tasks automatically, no need to name them.

Who does what

Subagents live in .claude/agents/. The main session plans and writes code; delegate these jobs:

  • planner (opus): designing the approach when the solution is not obvious. It returns steps a Sonnet implementer can follow.
  • implementer (sonnet): carrying out a decided plan or a clear small change.
  • Explore (haiku): finding where something is (files, symbols, usages). Use it instead of reading many files yourself. It returns paths, line numbers and one sentence each.
  • architect (opus): before implementing a new plugin, a protocol change or a change to the layering between modules, send it the plan. Apply its changes before starting.
  • test-runner (haiku): running the module checks from build-verification.md after a change. It returns PASS/FAIL and only the failures.
  • ci-investigator (haiku): when a PR check fails, it reads the CI logs and returns the failing task and error lines. Don't read CI logs yourself.
  • docs-sync (haiku): once the code is done and tested, it updates protocol/, docs/, mkdocs.yml, README and the MCP skill from the diff, then runs mkdocs build --strict.
  • git-ops (haiku): runs the git-setup and create-pull-request skills (branch, commits, draft PR). The main session then binds the PR with the ccd_pr tools.
  • reviewer (sonnet): reviewing the finished diff once, before committing or opening a PR, not after every edit. Fix what it reports, or say why it isn't a problem.

Explore only locates code. Design exploration still follows the Opus rule above.

Rules

Project rules live in .claude/rules/ and are loaded automatically (path-scoped ones only when working in that folder):

  • android-sdk.md: KMP SDK conventions, plugin / no-op parity (FloconAndroid/)
  • desktop-app.md: desktop layering, DI and Room rules (FloconDesktop/)
  • compose.md: Compose UI conventions: screen structure, state, design system, previews (FloconDesktop/)
  • git-workflow.md: commit message format, branches, PRs
  • build-verification.md: which Gradle / MkDocs checks to run locally, and which are left to CI
  • docs-protocol-sync.md: keep protocol/, docs/, MCP docs and README in sync with code

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.