FinishLine: verification-and-resume harness for long-horizon coding agents
A system that tests if an AI's code actually runs and meets requirements before letting the AI finish.
A harness that sits between an autonomous coding agent and its workspace: whenever the agent declares 'done' (or every N steps), it clean-room installs the generated repository, checks the import graph and test suite against the requirements, and — if incomplete — forces the agent to continue with a targeted diagnostic re-prompt.
Concept
Autonomous coding agents asked to build a whole software system from a requirements document fail in characteristic ways: they stop early, drift from the original spec, and break cross-file dependencies. FinishLine is an external verifier that closes the loop. On every 'done' signal — and periodically during the run — it spins up a clean environment, attempts a fresh install of the generated package, builds the cross-file dependency/import graph, runs the test suite, and checks deliverables against the requirements checklist. If anything fails (a module unimplemented, an import pointing at a file that doesn't exist, failing tests, or the agent terminating prematurely), it composes a targeted diagnostic re-prompt — e.g., 'you stopped with 3 of 7 modules unimplemented; module X imports Y which does not exist; tests 12–30 fail' — and forces the agent to continue. It converts an open-ended generation task into one with an externally verified finish line, directly countering the observed failure modes of premature termination, global-coherence loss, and fragile cross-file dependencies.
Why now
NL2Repo-Bench [4] shows that long-horizon repository generation is largely unsolved: even the strongest open- and closed-source agents achieve below 40% average test pass rates and rarely complete an entire repository correctly, failing over hundreds of interaction steps through premature termination, loss of global coherence, fragile cross-file dependencies, and inadequate planning. Crucially, the benchmark also demonstrates that the checks needed to catch these failures — clean-room installability of a Python library, test pass rates, module completeness — are deterministic and automatable, so the verification half of this product is engineering, not research. The agentic-reasoning survey [3] independently names long-horizon interaction as a central open challenge for deployment. The gap is not only model capability but the absence of an external, verifiable done-state that catches and corrects these failures mid-run.
Written by GLM · 28 Nov 2026
AI assessment
An exceptionally well-supported, focused tool that solves a documented failure mode in long-horizon coding agents using deterministic engineering rather than speculative research.
- Evidence strength 5/5
- The idea directly maps to the failure modes (premature termination, coherence loss) and the deterministic verification methods (clean-room install, test pass rates) explicitly detailed in the NL2Repo-Bench paper.
- Market pull 5/5
- The named beneficiaries are the primary builders of autonomous coding agents who are currently struggling with the 'last mile' of repository completion and reliability.
- Novelty & moat 3/5
- While similar to HouseRules (pre-flight checks), this is a runtime loop for autonomous agents rather than a PR-gate for humans, filling a distinct gap in agentic orchestration.
- Feasibility 5/5
- The core functionality relies on existing CI/CD patterns (Docker, pytest, pip) and prompt engineering, making a prototype highly achievable for a small team.
- Wedge clarity 5/5
- The wedge is a specific, high-value utility: a 'verification-and-resume' gate that prevents agents from falsely claiming a task is finished.
- Simplicity / focus 5/5
- The product is a single, focused harness with one clear purpose, avoiding the 'platform' trap.
Scored by Gemma 4 · 28 Nov 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.
Act on this idea
Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.
Who benefits
- Cognition AIcompany
Devin's core promise is autonomous end-to-end software delivery; a harness that catches premature termination and broken cross-file dependencies directly raises its long-horizon completion rate, its key selling metric.
- Factorycompany
Factory builds autonomous 'droid' coding agents for enterprise engineering; verifiable finish-line checks turn open-ended repo builds into tasks with a measurable, enforced done state.
- Cursor (Anysphere)company
Cursor's agent and background-agent features increasingly take multi-file, long-horizon tasks; automatic install-and-test verification with diagnostic re-prompts reduces half-finished deliverables reaching developers.
- GitHubcompany
GitHub could ship this as an Actions gate — agent output is verified by clean-room install and test runs before an AI-authored PR can be merged — extending its CI franchise to AI-generated repositories.
Research it builds on
- A Survey of Agentic Reasoning for Large Language Models: Towards Recursively Self-Improving and Collective AgentsAll ideas from this paper →
- NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding AgentsDing, Jingzhe, Long, Shengda, Calton Pu et al. · 2026 · 103 citationsAll ideas from this paper →