agentleFS
kestevakesteva/soloflow/CLAUDE.md

soloflow

CLAUDE.md40 starsChanged 7 months agoMITView on GitHub

SoloFlow is a hooks-based Claude Code workflow orchestration system that automates the product development lifecycle: idea extraction → refinement → execution → verification → learning. Distributed as a Claude Code plugin (git repo + thin plugin wrapper) installable per-project or globally. See docs/ARCHITECTURE.md for the phase workflow, hook system, agent model strategy, and verification hierarchy. This repo does not dogfood SoloFlow on itself. SoloFlow is the product built here, not the workflow used to build it. Do not run /soloflow:*…

The file

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

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When releasing (merging dev → main), do NOT delete the dev branch after merge — it persists for the next cycle.

    line 36

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

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

SoloFlow is a hooks-based Claude Code workflow orchestration system that automates the product development lifecycle: idea extraction → refinement → execution → verification → learning. Distributed as a Claude Code plugin (git repo + thin plugin wrapper) installable per-project or globally.

See docs/ARCHITECTURE.md for the phase workflow, hook system, agent model strategy, and verification hierarchy.

This repo does not dogfood SoloFlow on itself. SoloFlow is the product built here, not the workflow used to build it. Do not run /soloflow:* commands, create .soloflow/ state, spawn SoloFlow agents, or otherwise invoke the SoloFlow pipeline to make changes to this codebase. Work on SoloFlow the way you'd work on any other repo: read files, make edits, run tests, commit. If a request seems to imply "use SoloFlow to improve SoloFlow," stop and ask — it's almost certainly not what the user meant.

Constraints every agent must know

Subagents cannot spawn subagents. Orchestration runs in the main session (/soloflow:sprint, /soloflow:compound, etc.); executors, verifiers, reviewers, and all other agent definitions are leaf nodes only.

Parallel task loops share a per-task worktree. When /soloflow:sprint or /soloflow:mad-max runs multiple non-conflicting tasks concurrently (governed by limits.max_parallel_tasks), the orchestrator creates a short-lived git worktree per task at .soloflow/worktrees/TASK-NNN/ and injects WORKTREE_ROOT: <abs path> into every subagent prompt for that task. Subagents must honor the directive (see each agent's "Working directory" section). Merge-back + settle-task.js run sequentially from the main worktree.

Context-limit handoffs. hooks/statusline.js writes context metrics to a bridge file; hooks/context-monitor.js (PostToolUse) reads it and injects WARNING (≤35% remaining) / CRITICAL (≤25%) into the agent conversation.

  • Subagents respond to CRITICAL by committing in-progress work and reporting CONTEXT_LIMIT status with an inline ### Handoff section. The orchestrator spawns a fresh agent with the handoff context (up to context_limit_respawn_max, default 3).
  • Orchestrators respond to CRITICAL by checkpointing and asking the user to compact-and-continue or save-and-exit.

Release / branch hygiene

Two long-lived branches:

  • main — public stable channel. /plugin install soloflow@soloflow installs from here.
  • dev — pre-release channel for maintainer/tester use. /plugin install soloflow-dev@soloflow installs from here.

Two files deliberately differ between the branches and will conflict on every merge in either direction. Don't collapse the divergence — both values are load-bearing for the parallel-install namespacing.

  • .claude-plugin/plugin.json — "name" is "soloflow" on main and "soloflow-dev" on dev. Each branch's value is correct for that branch. On any merge conflict, keep the destination branch's value (i.e. the side you're merging into). The dev install needs its own plugin.json.name so its /soloflow-dev:* commands and hooks don't collide with the public install's /soloflow:*.
  • .claude-plugin/marketplace.json — main lists both plugin entries (soloflow and soloflow-dev); a freshly-branched dev has only the soloflow entry. Always keep main's two-entry version as canonical; on a main → dev resync, take main's version (harmless to have both entries on dev). Once dev has the two-entry version, this file stops conflicting.

When releasing (merging dev → main), do NOT delete the dev branch after merge — it persists for the next cycle. PRs are fine; the branch survives unless GitHub's "delete branch on merge" toggle is on.

Reference

  • State layout, ID allocation, findings queue, epics → docs/STATE-LAYER.md
  • Phases, hooks, model strategy, verification hierarchy → docs/ARCHITECTURE.md
  • Config, run branches, all runtime settings → docs/CUSTOMIZATION.md
  • Visual verification (Maestro/Playwright MCP) → docs/VISUAL-VERIFICATION-SETUP.md

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.