Skip to content

The research behind Cully ​

Cully reads your coding-agent sessions and proposes agents, background jobs, rules and skills. A proposal should rest on something better than taste, so this page lists what each behaviour rests on, what the source actually says, and where the support is thin or the choice is Cully's own.

How to read the evidence. Sources are of three kinds. Paper means a preprint or a peer-reviewed paper. Vendor means an engineering post by a company that sells the tool; it is practice, not independent evidence. Practice means a write-up by a team describing its own system. Most papers here are preprints. Where a claim comes from a vendor or practice post, the table says so.

What was checked. These sources were found and summarised in November 2026 from search results and abstracts. Their full texts were not all read. Before you quote a figure, open the source. Anything marked unverified below I could not confirm.

What each Cully behaviour rests on ​

What Cully doesWhat it rests onStrength
Reads transcripts read-only and keeps counts, not contentTool output is most of what an agent reads (about 84 percent of an average turn in one study, arXiv 2508.21433) and much of it is redundant or expired (arXiv 2509.23586). Privacy is Cully's own rule, not a research result.Paper (preliminary, small samples)
Sends a model a short digest, not a transcriptQuality falls as input grows and unevenly so (Chroma, Context Rot, 18 models; Liu et al., arXiv 2307.03172); Anthropic frames context as a finite budget to spend on the smallest set of useful tokens.Paper plus vendor
Counts first, asks a model second, and grounds a verdict in countsLLM judges agree with people over 80 percent of the time but show position, length and self-preference bias (Zheng et al., arXiv 2306.05685). Anthropic advises reading transcripts to validate graders.Paper plus vendor
Flags the same call repeating, and long failing runsRepeated identical actions snowball in SWE-agent trajectories (arXiv 2405.15793); endless repetition and failed localisation recur (arXiv 2504.21798); failed runs are longer and more variable but length alone is ambiguous (arXiv 2511.00197, arXiv 2604.02547).Paper
Flags edits with no check afterwardsTask verification is one of three failure clusters in 1,600+ multi-agent traces (MAST, arXiv 2503.13657); agents tend to rate their own work too well (Anthropic, Harness design for long-running apps).Paper plus vendor
Shows cache reads apart from fresh input and outputInput tokens drive agent cost, runs of one task vary up to 30 times, and more tokens do not mean more accuracy (arXiv 2604.22750). Cache reads are priced at a fraction of fresh input (Anthropic prompt caching docs; the multiplier differs by model, so check the pricing page).Paper plus vendor docs
Estimates tokens by kind of workThe split of a turn's fresh input and output across its tool calls is Cully's own estimate, not a measured attribution: Claude reports usage once per turn. It is labelled as an estimate on the page.Heuristic
Splits a session into steps and tells each step's storyAnthropic: transcripts record what the agent said and did, and the outcome is the final state; read both. A session often holds several jobs, and the research on trajectories analyses them per step. The per-step format is Cully's design.Partly supported
Proposes the simplest tool first: a job, then a rule, a skill, an agentAnthropic: find the simplest solution and add complexity only when needed (Building effective agents). A job runs one command with no model, so it costs no tokens.Vendor
Keeps rules minimal and asks before writing themRepository context files lowered agent success and raised cost by more than 20 percent in one study; model-written files hurt, short human-written files helped slightly (arXiv 2602.11988). Cully drafts a rule only from an observed failure and never saves one unapproved.Paper (one study; the abstract and the body frame the effect differently)
Ships skills with only a short description always loadedSkills load a name and description at start and the body only when needed (Anthropic, Equipping agents for the real world with Agent Skills).Vendor
The handoff note, and starting a fresh session from itA progress file beside version history carried long-running work across context windows (Anthropic, Effective harnesses for long-running agents); a fresh context with a structured handoff can beat compaction (Anthropic, Harness design for long-running apps); evolving a context playbook beats rewriting it whole (ACE, arXiv 2510.04618, ICLR 2026).Vendor plus paper
Memory by meaning (Mem0 and PostgreSQL)Mem0 reports large token and latency savings over full context on the LOCOMO benchmark (arXiv 2504.19413). These are the vendor's own measurements.Paper by the vendor

Software factory: why Factory mode exists ​

A software factory is a setup where people state the intent and the checks and agents do the building. The sources agree on a few points, and Factory mode (a choice beside Edit and Plan only when you start a task) turns them on together:

Factory ideaSourceIn Cully
People write the spec and the scenarios; agents implementStrongDM's Software Factory (practice); Factory, Agent Native Development (vendor); the SE 3.0 and SASE roadmaps (arXiv 2410.06107, arXiv 2509.06216)You describe the goal and the acceptance scenarios; the brief tells the agent to write a spec and plan small tasks first.
Scenarios are held back from the builder, like a holdout set, so the agent cannot write to the testStrongDM (practice). Critics ask who can trust code that agents both build and test (Stanford Law commentary), so this is a design choice, not a proven result.Your scenarios are never sent to the agent. A reviewer holds them and says only what is missing.
Verification before done, by something other than the builderAnthropic's planner, generator and evaluator split (vendor); MAST (paper)The keep-going loop judges the work against your scenarios; an approved agent named "Independent reviewer" reviews the finished work.
Specify, plan, implement, validate, in small tasksSpec-Driven Development (arXiv 2602.00180, a practitioner guide); Qodo and Thoughtworks write-ups (practice)The brief asks for exactly that order and one commit per task.
The repository is the system of record; the agent map is shortOpenAI, Harness engineering (vendor)The cully-repo-map skill keeps the map under about 100 lines and points to docs.
Humans review traces and outcomes, not every lineFactory and OpenAI (vendor)The task page shows the graph and every tool call with its parameters.

What the factory sources do not show. Almost none of this is independent evidence. StrongDM, Factory and OpenAI describe their own systems; the "no human reads the code" part drew the most scepticism and Cully does not adopt it: you still approve the result. Spec drift (the spec and the code parting ways) and instruction bloat are named failure modes of spec-driven work, which is why the skills are short and say to update the spec with the code.

Task recipes: what the research supports ​

A recipe is a way to run one task: a brief for the agent plus, for some recipes, a loop around it. You pick one when you start a task (see Recipes in the UI). Each recipe below is tied to the papers that motivate it, and the table says how strong that evidence is, including where it is thin.

How to read this section. I read the abstracts of these papers, not the full papers, so a claim here is what the authors state in their abstract and nothing more. Every recipe is a prompt plus a loop that Cully runs, not a feature of one agent, so Claude, Codex and Cursor all get them. Two limits come from how Cully is built: the judge that checks a recipe's "Done when" runs on Claude, and Cursor runs edit recipes without permission cards.

RecipeWhat Cully doesVerified source(s)Strength of evidenceCaveat
Test first (tdd)The agent writes failing tests that express the request, confirms they fail, then implements until they pass and quotes the final run.Mathews and Nagappan, Test-Driven Development for Code Generation, arXiv 2402.13521: tests in the prompt consistently raised success on MBPP and HumanEval. Fakhoury et al., LLM-Based Test-Driven Interactive Code Generation (TiCoder), arXiv 2404.10100: in a 15-programmer study people judged AI code more correctly with less cognitive load; absolute pass@1 rose 45.97% within 5 interactions.Strong for tests in the prompt (the UI labels it strong); the user study is small.Both use function-level benchmarks, not whole repositories. TiCoder's 45.97% used simulated user feedback, so it is not what a real person would see.
Debug (debug)The agent states hypotheses, tests each with a run or a debugger before touching code, then makes the smallest fix and adds a regression test.Kang et al., AutoSD, arXiv 2304.02195: hypothesise, test with a debugger, then patch; competitive repair results. A 20-person study found accuracy improved on 5 of 6 bugs, but the explanations did not speed up judging.Mixed (the UI labels it mixed).Small study, shown on short Python bugs. The explanation may make you more accurate, not faster. AutoSD drives a real debugger; Cully asks for the same discipline in a prompt, which is not the same thing.
Fix (fix)The agent localizes the fault, repairs it with the smallest patch, then validates with the project's checks, in that order, for at most 3 rounds.Xia et al., Agentless, arXiv 2407.01489: localize, repair, validate with no autonomous agent loop; 32.00% on SWE-bench Lite at $0.70 per issue.Mixed (the UI labels it mixed), as a cheap baseline.A 2024 snapshot: models and agent scaffolds have moved since. It shows a simple pipeline is competitive, not that it beats every agent today.
Best of N (bestofn)The same task runs as 2 to 4 separate options, each is checked against your required "Done when", which is held back from the agent, and Cully reports which options passed. It never picks a winner.Brown et al., Large Language Monkeys, arXiv 2407.21787: SWE-bench Lite rose from 15.9% with one sample to 56% with 250; voting and reward models plateau without an automatic verifier. Li et al., AlphaCode, arXiv 2203.07814: sample at large scale, then filter by behaviour.Strong that coverage grows with samples when a verifier exists (the UI labels it strong).The gain needs a check that can tell a pass from a fail. With 2 to 4 options you get far fewer samples than 250, so expect a small share of that gain. A badly written check passes bad options.
Factory (factory)See Software factory above.The sources listed there.Mixed; mostly practice and vendor writing.Hidden scenarios are a design choice, not a proven result.

What Cully does not offer, and why ​

These are popular, and the abstracts I read do not support adding them.

  • Role-based multi-agent teams (a "product manager", "architect" and "tester" agent). MetaGPT (arXiv 2308.00352) and ChatDev (arXiv 2307.07924) do not report a single-agent comparison in their abstracts. Cemri et al., Why Do Multi-Agent LLM Systems Fail? (arXiv 2503.13657) report that gains are often minimal and name 14 failure modes.
  • Debate between agents (arXiv 2305.14325). The evidence is for reasoning and factuality tasks; I found no code evidence.
  • Self-critique with no external check. Huang et al. (arXiv 2310.01798): large language models cannot self-correct reasoning without external feedback. Olausson et al. (arXiv 2306.09896): self-repair gains are modest once the cost of the extra calls is counted. For contrast, Self-Refine (arXiv 2303.17651) reports about 20% average gain across 7 tasks that are not mostly code. Cully's recipes use tests, runs and a judge holding your checks, which are external.
  • An architect/editor split (one model plans, another edits). I found no paper for it.
  • "Ralph" loops (restart with fresh context until done). This is practice only; I found no study.

None of this says these ideas never work. It says Cully does not ship them as recipes until there is evidence, or until your own eval results show a gain.

The proposal gate and agent housekeeping ​

Before an agent is proposed it must rest on at least three distinct sessions on two days, must not overlap an existing agent, job, rule, skill, waiting proposal or recently dismissed idea, must not be work a job, rule or skill would serve, and must carry an expected-value line. Sources: Anthropic, Building effective agents (vendor: use the simplest solution, add complexity only when needed); Cemri et al., arXiv 2503.13657 (more agents is often not better). Overlap is exact Jaccard similarity over normalised words, word pairs and character 4-grams, the quantity MinHash (Broder, 1997) and SimHash (Charikar, 2002) approximate at scale; those two papers were not re-read for this change. Evidence strength: weak to moderate. The check was tuned on a hand-labelled set and, on 4 held-out near-duplicate pairs, found 2 (no false matches on 4 held-out different pairs). It is lexical and misses rewordings with no shared words. Every threshold (3 sessions, 2 days, 30 days, cap of 3, the cost cut-offs, the health limits) is Cully's own choice, not a finding.

What ships with setup ​

  • Skills installed for Claude, Codex and Cursor: cully (memory), cully-setup, cully-sessions (how to read each harness's sessions and what to capture), cully-spec, cully-verify, cully-handoff, cully-repo-map. A copy you edit is never overwritten or removed.
  • Ready-made agents, offered before there is any history, each read only where it can be: Independent reviewer, Handoff keeper, Loop breaker.
  • A ready-made background job: the folder's own test command at a quiet hour, which uses no tokens.
  • Each card shows its sources. Nothing is created until you review and approve it.

What is Cully's own choice, with no source behind it ​

Say this plainly so no one mistakes a number for a finding:

  • The thresholds that count as repeated work (six sessions on three different days in one folder), and the 30-day window.
  • The health score's weights and the exact tolerances for repeated calls or untested edits. The signals follow the research above; the numbers do not come from a study. The code comment that credits "Harness Engineering, arXiv 2609.00006" is unverified: only a secondary glossary links that number to a paper, so treat that citation as unconfirmed.
  • The per-kind token split.
  • Titling a task from its latest analysed session.

Where each harness keeps sessions ​

Claude Code documents its own location and retention (30 days by default, then deleted at startup; check cleanupPeriodDays). Codex and Cursor layouts are not documented by their vendors; they come from users' reports and from Cully's own scanners, so they can change. See the cully-sessions skill for the paths and what each file does and does not record.

Sources ​

Papers: MAST, arXiv 2503.13657 · SWE-agent, 2405.15793 · SWE-smith, 2504.21798 · trajectory study, 2511.00197 · trajectory length, 2604.02547 · token cost, 2604.22750 · AgentDiet, 2509.23586 · context management, 2508.21433 · Lost in the Middle, 2307.03172 · LLM-as-a-Judge, 2306.05685 · Evaluating AGENTS.md, 2602.11988 · ACE, 2510.04618 · Mem0, 2504.19413 · Spec-Driven Development, 2602.00180 · SE 3.0, 2410.06107 · SASE, 2509.06216

Vendor and practice: Anthropic, context engineering · long-running harnesses · harness design · evals · building effective agents · Agent Skills · prompt caching · Claude Code, .claude directory · OpenAI, harness engineering · StrongDM Software Factory · Factory, what is a software factory · Chroma, Context Rot

Built in the open. Apache 2.0 licensed.