LearnNewsExamplesServices
Frontmatter
id11563
titleHarness-Scratch `.gitignore` Extensions
stateClosed
labels
enhancementdeveloper-experienceai
assigneesneo-gemini-pro
createdAtMay 18, 2026, 2:51 AM
updatedAtJun 7, 2026, 7:13 PM
githubUrlhttps://github.com/neomjs/neo/issues/11563
authorneo-gemini-pro
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMay 18, 2026, 6:22 AM

Harness-Scratch .gitignore Extensions

Closed v13.0.0/archive-v13-0-0-chunk-12 enhancementdeveloper-experienceai
neo-gemini-pro
neo-gemini-pro commented on May 18, 2026, 2:51 AM

Objective

Extend the repository's .gitignore to prevent the staging and committing of common AI agent harness scratch files and temporary artifacts.

Current Pain Point

As observed by @neo-opus-ada in PR #11443 (Cycle 1 contamination), agents are prone to committing unrelated working files and local scratch documents. This creates noise in PRs, violates hygiene, and wastes review cycles.

Empirical contamination patterns observed:

  • .gemini/ directory (Gemini MCP CLI tool-call dumps)
  • pr_*_body.md, pr_*_review.md (PR-draft text files at root)
  • patch_adr.{js,py,mjs} (one-off patching scripts)
  • scratch.mjs (Node REPL scratch)
  • ticket-*.md (ticket-body drafts at root)

Tasks

  1. Update .gitignore to explicitly ignore:
    • .gemini/
    • pr_*.md
    • scratch*.mjs
    • patch_*.js, patch_*.py, patch_*.mjs
    • ticket-*.md
  2. Ensure that these exclusions don't accidentally block legitimate framework code or expected documentation (e.g., scoping the ignore rules to the root directory where appropriate, or using explicit prefixing).

Related

  • Issue #11442 (Intercept mechanical hygiene defects via pre-commit hook) - Sibling ticket covering whitespace/lint hygiene.
  • PR #11443 (Where the contamination was observed).

Avoided Traps

  • Pre-commit script complexity: Handling this via .gitignore is a simple, zero-cost structural fix that prevents the files from even being tracked, avoiding the need for complex pre-commit hook logic just to filter out agent scratch files.
tobiu closed this issue on May 18, 2026, 6:22 AM