Skip to content

docs: clarify large artifact context tooling#63

Open
tomcasaburi wants to merge 1 commit into
masterfrom
codex/docs/agent-large-artifact-tools
Open

docs: clarify large artifact context tooling#63
tomcasaburi wants to merge 1 commit into
masterfrom
codex/docs/agent-large-artifact-tools

Conversation

@tomcasaburi

@tomcasaburi tomcasaburi commented Jun 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Add AGENTS.md guidance for optional local compression helpers such as chopratejas/headroom when navigating very large non-source artifacts.
  • Keep the source-of-truth guardrail: agents must verify conclusions against the original uncompressed artifact before editing code or making final claims.

Verification

  • git diff --check

No build or test run: documentation-only AGENTS.md change.


Note

Low Risk
Documentation-only change to agent guidance; no runtime, auth, or application code affected.

Overview
Adds an AI Context Tools section to AGENTS.md between the GitHub Issues rules and Core MUST Rules. It tells agents they may use optional local helpers (e.g. chopratejas/headroom) when skimming very large non-source artifacts (CI logs, traces, huge command output), and that they must confirm anything that affects code or final statements against the original uncompressed data.

Reviewed by Cursor Bugbot for commit f03509e. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

  • Documentation
    • Updated agent guidelines for improved handling and verification of large artifacts.

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

AGENTS.md is updated with new guidance under "Core MUST Rules" that permits agents to optionally use local compression tools for navigating large non-source artifacts, contingent upon validating conclusions against the original uncompressed content before any code edits or final assertions.

Changes

Agent Guidance Enhancement

Layer / File(s) Summary
AI Context Tools guidance
AGENTS.md
New subsection permitting optional use of compression tools like chopratejas/headroom for very large artifacts, with mandatory validation against original uncompressed content before code edits or final claims.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • bitsocialnet/bitsocial-cli#36: Both PRs modify AGENTS.md by adding/expanding agent guidance and rules, with directly related documentation changes.

Poem

🐰 When contexts grow too wide to bound,
We fetch a tool to compress around,
Yet check the source when done with care—
No guesses made on compressed air! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'docs: clarify large artifact context tooling' directly and clearly describes the main change: documentation clarification about tooling for handling large artifacts in agent context.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/docs/agent-large-artifact-tools

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AGENTS.md`:
- Around line 84-86: The "AI Context Tools" paragraph is placed before the "Core
MUST Rules" section but contains a MUST-level requirement; move this paragraph
under the "Core MUST Rules" header as a ### subsection named "AI Context Tools"
(or split it into two sentences under "AI Context Tools": one MAY sentence
recommending compression tools and a separate MUST sentence requiring
verification of conclusions against the original artifact) so the mandatory
language lives inside "Core MUST Rules" and the optional guidance remains
clearly marked as MAY.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7dfc37d5-adc5-4233-99e2-af00a76e3c5f

📥 Commits

Reviewing files that changed from the base of the PR and between b662d4c and f03509e.

📒 Files selected for processing (1)
  • AGENTS.md

Comment thread AGENTS.md
Comment on lines +84 to +86
## AI Context Tools

For very large non-source artifacts such as CI logs, debug traces, generated JSON, or massive command output, agents may optionally use `chopratejas/headroom` or a similar local compression tool as a navigation aid, but must verify conclusions against the original uncompressed artifact before editing code or making final claims.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Placement inconsistency: Section should likely be under "Core MUST Rules".

The PR description states this guidance is added "under 'Core MUST Rules'", but the actual implementation places it as a sibling section before "Core MUST Rules" (line 88). Additionally, the content contains a MUST-level requirement ("must verify conclusions") but is placed outside the "Core MUST Rules" section.

Consider either:

  1. Moving this subsection under "Core MUST Rules" as a ### subsection (matching the PR description), or
  2. Restructuring to separate the optional suggestion (using compression tools) from the mandatory requirement (verification before final claims)
📝 Proposed fix: Move under Core MUST Rules as a subsection
-## AI Context Tools
-
-For very large non-source artifacts such as CI logs, debug traces, generated JSON, or massive command output, agents may optionally use `chopratejas/headroom` or a similar local compression tool as a navigation aid, but must verify conclusions against the original uncompressed artifact before editing code or making final claims.
-
 ## Core MUST Rules
 
+### AI Context Tools
+
+- **MAY** optionally use `chopratejas/headroom` or a similar local compression tool as a navigation aid for very large non-source artifacts such as CI logs, debug traces, generated JSON, or massive command output.
+- **MUST** verify conclusions against the original uncompressed artifact before editing code or making final claims.
+
 ### Environment Setup

This aligns with the PR description and separates the optional (MAY) from mandatory (MUST) guidance using the priority levels defined in the document.

🧰 Tools
🪛 LanguageTool

[style] ~86-~86: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase.
Context: ...mit messages. ## AI Context Tools For very large non-source artifacts such as CI logs, d...

(EN_WEAK_ADJECTIVE)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 84 - 86, The "AI Context Tools" paragraph is placed
before the "Core MUST Rules" section but contains a MUST-level requirement; move
this paragraph under the "Core MUST Rules" header as a ### subsection named "AI
Context Tools" (or split it into two sentences under "AI Context Tools": one MAY
sentence recommending compression tools and a separate MUST sentence requiring
verification of conclusions against the original artifact) so the mandatory
language lives inside "Core MUST Rules" and the optional guidance remains
clearly marked as MAY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant