Agents working in fresh clones run into setup gaps: a test that can't resolve a workspace package until its dist/ is built, a missing Prisma client, a frontend kept outside the workspace with no node_modules. Each time, the agent fixes it by hand, and the next clone hits it again. clove reads those sessions and turns the fixes into steps the golden image runs once.
clove suggest # this repo's suggestions, with evidence
clove suggest --repo mono --json # any repo clove manages, as JSON
clove suggest --apply <name> # add one to ~/.config/clove/repos/<repo>.toml (asks first)In the terminal UI, I opens the list, and a "setup" row with the count shows in the sidebar when there are some. In the app, a "setup suggestions" button shows in the repo's header. Both show the evidence and the [[add_step]], and can add one to your config for the repo after you confirm.
What counts
clove reads the sessions of every agent it links to clones (Claude Code and its subagents, Codex, pi, Antigravity) from the last 30 days (CLOVE_SESSIONS_DAYS), and keeps the shell commands that ran inside one of the repo's clones, past or present. A command is placed by the folder it ran in: Claude Code's cwd, Codex's workdir, the session's folder, then any cd in the command line itself.
A command counts when it prepares a checkout (an install, a build of workspace packages, codegen) and either:
- ran earlyamong the clone's first 10 commands, before the agent's first edit there; or
- fixed somethingit ran within 15 commands after an error that names a missing artifact (
Cannot find module,Failed to resolve import, a Prisma client to generate,vitest: command not found, a missingdist/file). When the command that failed passes afterwards, the fix counts as confirmed.
Installs that add a package (pnpm add zod), tests, linters and builds an agent runs to check its own edits don't count. A command must show up in at least 2 distinct clones to become a suggestion; one clone is chance.
Commands in the same folder that do the same thing (npx prisma generate and pnpm exec prisma generate) group together, and variants of one family (prisma generate, then with --schema prisma/secrets/schema.prisma) merge into one step. A command a configured or detected step already runs is listed as covered, not suggested.
A suggestion
Each one has:
- an
[[add_step]]to paste, withwatchpaths guessed from the files the command reads: the lockfile andpackage.jsonfor an install, the schema for Prisma, the workspace packages apnpm --filter "app^..." buildcompiles; - its evidence: the clones and sessions, how many times it ran, the command lines as run, and the error lines it followed. Nothing else from the conversation is kept;
- a confidence: high when it fixed a missing artifact in 2 clones (or once, confirmed), medium for one fix or 3+ clones, low otherwise;
- where it fits: the team's
.clove.tomlwhen it uses only repo files, your own config when it names paths on this machine.
The guesses are a start. The clove-tune skill that clove agents install gives Claude Code, OpenCode and Pi takes them further: ask an agent to "tune clove for this repo". It reviews the suggestions, fixes watch paths by reading the repo, tests each step in a throwaway clone (the failure without it, the pass with it), then shows you the config diff and asks before writing.
Cost
clove keeps how far it read each session log, with what it found, in ~/.clove/suggest/. A later run reads only the bytes a log gained since; a log that didn't grow isn't opened. The session index's refresh is the only walk of the agents' folders, one stat per log. Reading runs on one thread, at most 256 MB of logs per run (the next run goes on from there), and never on file changes. The terminal UI reads when it starts, when you press I, and every 15 minutes while in front. The app reads when the repo page or the suggestions dialog opens, never on a timer. Nothing leaves the machine.