Build1 distinct publisher3 min readUpdated
A dev.to writeup argues long sessions degrade structurally, not linguistically, and proposes research/plan/implement phases with a hard context clear between each.
The Engineer · Build desk

Compiled by The EngineerSomething wrong?How this is made
A dev.to post published under the headline "Research, Plan, Implement: A Workflow That Keeps AI Agents Accurate" makes a structural argument about why long agent sessions go bad: every input you give the agent and every output it produces is appended to the context window, and nothing ever leaves [1]. If that diagnosis holds, the remedy is plumbing rather than wording, and the author's remedy is a three-phase workflow in which each phase ends in a markdown file and the context is cleared between phases [2][3]. The failure described is cumulative, not sudden. By fifty messages in, according to the author, the agent is re-reading abandoned approaches, stale file contents, and corrections you made an hour ago [4]. The post's blunt version: the fix is not a better prompt, it is less context [5]. Two habits carry the load. Subagents do the heavy reading in their own context and return only a summary [6]. And you clear between phases, on the reasoning that once a phase has produced a file, you no longer need the context that led to it [7]. The author says he aims to stay under 40 percent context usage in the main agent [8], which is a working ceiling that leaves roughly 60 percent as headroom [2]. The three phases are research (write a doc, then clear), plan (write a doc, then clear), and implement [3] - two clears across the run [1]. The main agent never has to remember the previous phase because the previous phase wrote it down [9]. The author credits the pattern to a HumanLayer talk [10]. The research phase spins up parallel subagents, and from HumanLayer's repo the author found three most useful: codebase-locator to find where things live, codebase-analyzer to explain how a component works, and codebase-pattern-finder to find existing patterns to model new work on [11]. There is a cost angle: his subagents run Sonnet while the orchestrator runs Opus [12]. The plan phase runs the locator and analyzer in parallel and then writes a plan naming which files to touch, which lines, and what exactly changes [13][14]. The example plan is the most useful part, because it shows what a reviewable artifact looks like. Current state is asserted with file and line references, such as all routes being unthrottled at src/api/router.ts:34-58 [15], plus the observation that Redis is already present for session storage so no new infrastructure is needed [16]. It carries a discoveries section noting that the existing Redis client is created per request and needs to be a singleton to back a shared counter [17], and that health-check endpoints must stay unthrottled or the load balancer will mark instances unhealthy [18]. It has an explicit "What We're NOT Doing" list: no cross-region quota syncing, no admin UI, no billing-tier limits [19]. Target behaviour is 100 requests per minute per authenticated user and 20 per minute per IP for unauthenticated traffic [20], a five-to-one split [3], with a 429 and a Retry-After header on breach [21]. Real plans, the author says, run a few hundred lines across several phases [22]. The honest caveats are in the post too. If you pass in an older research doc the agent should reference it but still verify it, because the code may have drifted [23]. And plans are only as good as the requirements: agents fill gaps by assuming, and those assumptions rarely match what the app needs, so edge cases have to be written out [24]. The author adds a fourth subagent, context-locator, to pull in prior research, which he says noticeably improves plans [25]. What to watch: this is one practitioner's account, with no measured failure rate before or after, and the 40 percent figure is a personal target rather than a benchmark [8].
Follow any of these and your For You feed starts watching them — no settings page required.
Ranked by verification strength, evidence, and original report placement.
In the sample rate-limiting plan, the current state analysis records that all routes are unthrottled at src/api/router.ts:34-58.
The sample plan notes Redis is already available for session storage, so no new infrastructure is needed (src/lib/redis.ts:12).
The sample plan's key discoveries note the existing Redis client is created per request, which will not work for a shared counter and needs to be a singleton (src/lib/redis.ts:12-19).
The sample plan notes health-check endpoints must stay unthrottled or the load balancer will mark instances unhealthy (deploy/lb-config.yaml:22).
Every input given to an AI agent and every output it produces gets appended to the context window, and nothing leaves.
The workflow has three phases, each ending in a markdown file, with a context clear between each: research (agent writes a research doc, then clears), plan (agent writes a plan doc, then clears), and implement (agent executes the plan).
Evidence-backed comparisons of source perspectives and observed adoption signals. Read the methodology
Which Builder, Operator, and Investor concerns the observed source mix emphasized—not a truth score.
Evidence, demonstrated adoption, hype gap, incentives, and confidence are assessed independently, each on its own current evidence. How these are measured.
One practitioner writeup; mechanics specified, effects unmeasured
The cluster is a single dev.to post. Its descriptive content is unusually concrete — named phases, named subagents, a numeric context target, and a full sample plan with file:line citations — which makes the workflow reproducible. But every efficacy claim (sessions degrade, less context is the fix, noticeably better plans, most reliable setup used) is asserted without benchmarks, logs, comparison runs, or any second source, and the sample plan is explicitly for a made-up feature.
One self-reported user; upstream artifacts reused
The only adoption evidence is the author's own disclosure that he runs the workflow, sourcing three subagent definitions from HumanLayer's repo and adding a fourth of his own, with Sonnet subagents under an Opus orchestrator. That is genuine hands-on use plus reuse of an upstream artifact, but it is a single individual with no team rollout, download counts, or third-party reports.
Reliability language outruns the evidence offered
The framing — sessions inevitably get worse, the fix is less context, this is the most reliable setup used, older research docs produce noticeably better plans — is stronger than a single unmeasured self-report can carry. The gap is moderate rather than severe because the post is transparent about being personal experience, labels its sample plan as a made-up feature, and its prescriptive content is specific and checkable rather than vague.
Practitioner post; visibility incentive, no disclosed commercial stake
The material is a personal developer-platform writeup with no product being sold, no sponsorship, affiliate link, or vendor disclosure in the supplied text. The author credits an external party (a HumanLayer talk and repo) rather than promoting his own tooling. Residual incentive is the ordinary one for practitioner content: authority and audience from a confident, quotable framing, which plausibly shapes the absolute reliability language.
Confident on what the workflow is, weak on whether it works
Confidence is high that the workflow is described as stated — the source is unambiguous and internally consistent, and the mapped descriptive claims are directly quotable. Confidence is low on the causal and efficacy claims, because a single publisher with no measurement, no independent corroboration, and an admittedly invented sample cannot settle whether context clearing produces the reliability gains asserted.
build
Context rot at 15 iterations: two toolkits that move the spec into Git1 distinct publisher
build
Agent reliability is a harness problem, not a prompt problem1 distinct publisher
build
A green build only proves your agent was consistent with itself1 distinct publisher
build
Invoked in three runs, executed in none: the cost rule that never got asked1 distinct publisher
Distinct publishers with included, body-backed reporting in this cluster.
dev.to
1 article · August 18, 2026