Skip to content

docs(agents): building internal code instead of using an open tool needs a written cost in tokens, maintenance, fixes and time #1833

Closed

Description

@dan-petty

AGENTS.md says to avoid custom workarounds when the standard library or established open-source tools exist, in one sentence inside the "Modern Python Ecosystem" bullet. Nothing asks for the choice to be justified, and no gate looks at it, so plans that prescribe an internal build were implemented as written. The release workflow shows the cost: about 3,000 lines in src/devops_cli/release/, roadmap/close.py and commands/release.py, a 403-line release.yml, 16 test files, and 94 issues and 138 merged pull requests with release, changelog, cut or fragment in the title as of 2026-10-22. The owner's rule (2026-10-22) is that any decision to implement internal functionality over an open source alternative must account for the token cost of implementation, of maintenance, of all the bug fixes needed to reach comparable functionality, and for the real time lost to implementation.

Proposed remedy: a top-level AGENTS.md bullet, "Open Tools Before Internal Code", that replaces the buried sentence. Before building a capability, the author names the open tool or library that covers it. Building instead needs a written cost in the issue or pull request: tokens to implement, maintain and fix until it matches the tool, plus elapsed time. A plan that prescribes a build is a proposal. The feature request template's optional "Alternatives Considered" field becomes a required "Existing Tool Considered" field that asks for the same cost. AGENTS.md has 81 characters of headroom under its 40,000-character cap after the change, so the bullet stays short.

Out of scope here and listed for the follow-up work: the roadmap refine prompts and the builder and reviewer briefs ask the same question (they change the structured reply of the in-cluster refine job), and the OpenSpec and release-model changes rewrite more of AGENTS.md.

Acceptance criteria:

  • AGENTS.md has the bullet, the old sentence is gone, and tests/test_agents_md_claims.py passes.
  • The feature request form requires "Existing Tool Considered" with the cost prompt.
  • devops ci passes.

Activity

  1. added
    source/agent
    type/docs
    on Oct 22, 2026
  2. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/docs. The candidate proposes a change to documentation in AGENTS.md.
    • Priority: P2-Medium. The change affects development practices and standards but does not address an urgent issue or bug.
    • Value: Medium. Improving documentation helps maintain consistency and reduces long-term costs of internal code implementation.
    • Effort: Low. The change involves updating documentation and a few form fields, which is relatively low-effort work.
  3. added a commit that references this issue on Oct 22, 2026
    b2d362f
  4. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1834, merged into release/v0.2.39 as b2d362f.

    Cause: AGENTS.md held its open-tools rule as one sentence inside the "Modern Python Ecosystem" bullet, and the feature request form asked for "Alternatives Considered" as an optional field. Nothing asked for the choice to build to be justified, so plans that prescribed an internal build were implemented as written. The release workflow shows the cost: about 3,000 lines of source, a 403-line release.yml, 16 test files, and 94 issues and 138 merged pull requests with release, changelog, cut or fragment in the title on 2026-10-22.

    Change: AGENTS.md has a top-level bullet, "Open Tools Before Internal Code", in place of the sentence. Before building a capability the author names the open tool or library that covers it. Building instead needs a written cost in the issue or pull request: the tokens to implement it, to maintain it and to fix it until it matches the tool, plus the elapsed time. A plan that prescribes a build is a proposal. The feature request form requires "Existing Tool Considered" and asks for the same cost. AGENTS.md ends 81 characters under its 40,000-character cap, which tests/test_agents_md_claims.py enforces. The roadmap refine prompts and the builder and reviewer briefs follow with the OpenSpec work that realigns refine.

    Tests: no code changes. tests/test_agents_md_claims.py and tests/test_agent_task_files.py pass.

    Existing tool considered: none applies; this is a project rule and a form field.

    Fail-to-pass: not applicable: the change is a rule in…

    4 file(s) changed.

    How it was verified

    Check runs at 2ef2eba:

    • Prune PR DevContainer Images: pass
    • Audit Defect PR Hardening: skipping
    • zizmor: pass
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Rule Pack Tests: pass
    • Fail-to-Pass Self-Check: pass
    • Changed-Test Independence: pass
    • Tests & Coverage: pass
    • Analyze (python): pass
    • Fail-to-Pass Check: pass
    • Analyze (actions): pass
    • Static Analysis: pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-1833-open-tools-before-internal-code.md:

    • AGENTS.md has the bullet, the old sentence is gone, and tests/test_agents_md_claims.py passes.
    • The feature request form requires "Existing Tool Considered" with the cost prompt.
    • devops ci passes.
  5. added this to the v0.2.39 milestone on Oct 23, 2026
  6. added a commit that references this issue on Oct 23, 2026
    f209f6c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source/agenttype/docs

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions