Seedlabs

OneFile: compile one canonical instruction source into every coding agent's context file

A tool that syncs one master set of instructions across all the different context files used by AI coding agents.

OneFile is a small compiler plus CI sync that maintains one version-controlled, structured instruction source per repository and auto-generates each coding agent's native context file from it (CLAUDE.md, AGENTS.md, .cursor/rules, copilot-instructions.md), flagging out-of-band edits so parallel files never drift. New evidence sharpens the stakes: guidance-level interventions — enforcing project conventions and restricting agent behavior — are the single largest category of human effort on agent-authored pull requests (58.02%), and harness-engineering results show instruction content measurably drives agent performance and transfers across model families. OneFile's wedge is upstream authoring and fan-out compilation for multi-agent repos — not cleaning stale files or auto-writing guardrail content.

Computer ScienceSoftware Engineering Research
Agentic Intelligence and EvaluationAn engineering platform team standardizing Cursor, Claude Code, and Copilot across a portfolio of repositories keeps one canonical instruction source per repo (seeded from an org template) and compiles it into each agent's native context file in CI. When the security team updates a policy or a build command changes, one reviewed commit fans out to every agent's file, and the team tracks per-agent guidance-level intervention rates on agent-authored PRs as the success metric.

Concept

Most repositories now host several coding agents at once — Claude Code reads CLAUDE.md, Cursor reads .cursor/rules, Copilot reads .github/copilot-instructions.md, cross-tool agents read AGENTS.md — and [0]'s corpus (2,303 context files drawn from just 1,925 repositories) confirms that multiple context files per repo is already the norm. OneFile is the compile step that reality implies: one canonical, version-controlled, structured instruction source per repository (organized by instruction type — build/test, architecture, security, performance, style), compiled into each agent's native format with per-agent dialects and length budgets. CI enforces provenance: generated files carry a stamp, hand-edits are flagged and regenerated, and the compile emits a coverage manifest showing which instruction types every agent receives — cross-agent consistency by construction, with gap-filling left to separate tooling.

What the new evidence adds

The pain is quantified, and it is exactly what drift multiplies. [2]'s study of agent-authored pull requests finds humans intervene in 52.17% of them (vs. 83.59% of human-authored PRs), and that when they do, interventions cost more — larger code churn and longer durations. The dominant category is guidance-level intervention at 58.02% of effort: restricting the agent's actions and enforcing project conventions, ahead of decision-level interventions at 21.1%. That is precisely the content that lives in context files, and precisely what per-agent drift corrupts — the agent whose file is missing the current convention or restriction is the agent whose PRs consume this review effort. OneFile adopts [2]'s 42-action intervention taxonomy as its success metric from day one: per-agent guidance-level intervention rates, churn, and duration, measured before and after compiling from one source, instead of asserting that drift "probably" hurts quality.

Context files are harness components, and harness content is a measured performance lever. [1]'s Agentic Harness Engineering gives every editable harness component a file-level, revertible representation and shows the payoff of treating them as engineering artifacts: ten automated iterations lifted Terminal-Bench 2 pass@1 from 69.7% to 77.0%, the evolved harness transferred to SWE-bench-verified with higher success at 12% lower token cost, and a frozen harness gained +5.1 to +10.1pp pass@1 across three alternate model families. This supports both halves of OneFile's premise: context files are performance-critical configuration that deserves compilation, versioning, and CI provenance — and well-engineered instruction content generalizes across models, making the one-source-many-agents bet plausible.

An honest bound on that second point. [1] transferred harnesses across model families on benchmarks; it did not compile one instruction source into different agents' native file formats in production. Whether Cursor and Claude Code respond differently to the same instruction phrased in their respective dialects — and whether proprietary agents impose hard token or formatting constraints that complicate a generic compiler — remain open, which is why per-agent dialect and length-budget compilation stays a first-class feature rather than an assumed one-size-fits-all output.

How the design adapts to its known risks

  • Bypass friction. If one edit to the canonical source removes the repeated guidance interventions that currently dominate agent-PR review effort [2], the maintenance trade is favorable — but no evidence yet proves developers won't route around the system. Mitigation: CI flags out-of-band edits as a provenance warning with an escape hatch (emergency hotfixes allowed, with a tracked back-port to the source) — a speed bump, not a wall.
  • Single point of failure. A bad canonical instruction now propagates to every agent at once. OneFile borrows [1]'s component-observability principle: the source is file-level and version-controlled, every compile is a reviewable diff, and rollback is one revert in one place. Drift is the worse failure mode — a bad instruction scattered across N untracked files cannot be found or fixed atomically. Staged rollout (compile to one agent first, diff the others) bounds the blast radius.
  • Attribution. No production study yet isolates instruction drift as a cause of bugs or quality loss; [2]'s intervention metrics are the best available proxy, and OneFile instruments them rather than presuming the effect.

Positioning

OneFile is the upstream authoring and fan-out layer: write once, compile to every agent, enforce provenance. It is deliberately not a downstream file cleaner (staleness detection and refactoring of an existing context file), not an auto-writer of missing guardrail sections, and not a PR pre-flight checker — those concerns are complementary and can consume OneFile's canonical source or its generated outputs.

Written by GLM · 4 Dec 2026 · revised 1× with new research (latest 4 Dec 2026, Gemma 4 and GLM)

AI assessment

Backed by 5 papers88

An exceptionally focused tool that transforms agent context management from manual documentation into a versioned engineering pipeline, directly addressing the most expensive part of agent-authored PR reviews.

Evidence strength
5/5
The idea strongly leverages [2] and [5] to identify the specific pain point (guidance-level interventions) and [4] to justify treating context files as engineering artifacts that transfer across models.
Market pull
4/5
Platform engineering teams at large scale have a high urgency to standardize agent behavior across thousands of repos to reduce the high cost of PR review churn.
Novelty & moat
3/5
While similar to ContextJanitor and ContextGuard, it shifts the focus from 'cleaning' or 'generating' to 'compiling' a single source of truth, filling a gap in orchestration.
Feasibility
5/5
Building a compiler that maps a structured source to a few known markdown formats is a straightforward engineering task with low technical risk.
Wedge clarity
5/5
The wedge is very sharp: a CI-based fan-out compiler for multi-agent repositories, avoiding the 'platform' trap by focusing on provenance and synchronization.
Simplicity / focus
5/5
The product is a single, focused utility (compiler + sync) rather than a broad suite of agent management tools.

Scored by Gemma 4 · 4 Dec 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.

Business analysis

OneFile addresses the high cost of 'guidance-level interventions' by treating agent instructions as a compiled engineering artifact rather than static documentation. The framework reveals a strong value proposition based on reducing PR review churn, though it faces a critical technical risk regarding how different agent dialects interpret the same canonical source.

Strengths4

Weaknesses3

Opportunities3

Threats3

Essential for evaluating the internal technical advantage of the 'compile' approach against the external threat of agent providers building native cross-tool synchronization. · Generated 2026-12-04 by Gemma 4AI-generatedFull SWOT Analysis →

Who benefits

  • Anthropiccompany

    Enterprise teams standardizing instructions across Claude Code and other agents from one canonical source get more consistent Claude Code outcomes, and Anthropic can recommend or bundle the compiler for its enterprise deployments.

  • Sync removes a real switching friction for teams that also use Claude Code or Copilot — instructions stay consistent across .cursor/rules and the other agents' files without manual duplication.

  • GitHubcompany

    Org-level canonical instruction templates compiled into copilot-instructions.md and AGENTS.md fit GitHub's existing repo-template and organization-policy surfaces, giving admins governance over agent instructions at fleet scale.

  • Shopifycompany

    Shopify's engineering organization has publicly embraced agentic AI coding across many repositories; a canonical instruction source with CI sync prevents cross-tool drift as multiple agents operate on the same codebase.

  • GitLabcompany

    GitLab could offer org-wide synchronized agent instructions as a governance feature alongside GitLab Duo, appealing to regulated enterprises that need consistent agent behavior across repositories.

Research it builds on

  1. Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses
    Jiaxu Lin, Shichun Liu, Chengjun Pan et al. · 2026 · 216 citations
    All ideas from this paper →
  2. Agentic Much? Adoption of Coding Agents on GitHub
    Romain Robbes, Théo Matricon, Thomas Degueule et al. · 2026 · 80 citations
    All ideas from this paper →
  3. Agent READMEs: An Empirical Study of Context Files for Agentic Coding
    Worawalan Chatlatanagulchai, Hao Li, Yutaro Kashiwa et al. · 2026 · 77 citations
    All ideas from this paper →
  4. Agentic Coding in the Wild: Characterizing GitHub Copilot Traces at Production Scale
    Banruo Liu, Haoran Qiu, Íñigo Goiri et al. · 2026 · 28 citations
    All ideas from this paper →
  5. Behind Agentic Pull Requests: An Empirical Study on Developer Interventions in AI Agent-Authored Pull Requests
    Syrine Khelifi, Ali Ouni, Maha Khemaja · 2026 · 5 citations
    All ideas from this paper →
Leave feedback
feasibility