Skip to content

docs: clarify large artifact context tooling#114

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

docs: clarify large artifact context tooling#114
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.

Summary by CodeRabbit

  • Documentation
    • Updated guidelines for handling large artifacts with optional compression tools during review.

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This pull request adds a single instruction to AGENTS.md that permits optional use of compression-based navigation tools for extremely large non-source artifacts such as CI logs or debug traces, contingent on verifying conclusions against the original uncompressed artifact before making code changes or final assertions.

Changes

Agent Guidance Documentation

Layer / File(s) Summary
Compression Navigation Tool Instruction
AGENTS.md
Added guidance permitting optional use of compression/navigation tools for oversized non-source artifacts, with mandatory verification against the uncompressed original before acting on findings.

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 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 accurately reflects the main change: adding documentation about using local compression/navigation tools for large artifacts.
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`:
- Line 103: Update the AGENTS.md line that references "chopratejas/headroom" to
describe it as a compression/token-reduction tool (e.g., library/proxy/MCP
server for compressing tool outputs/logs) used to reduce tokens before
processing, rather than calling it a "navigation aid"; keep the existing
guardrail language requiring agents to verify conclusions against the original
uncompressed artifact before editing code or making final claims, and ensure the
sentence mentions examples like CI logs, debug traces, generated JSON, or
massive tool output for clarity.
🪄 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 53ff238c-c9bb-43a5-b0df-c472cd40c80f

📥 Commits

Reviewing files that changed from the base of the PR and between 0e826a5 and ad5997d.

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

Comment thread AGENTS.md
@@ -100,6 +100,7 @@ Before working on certain areas, read the relevant protocol doc to avoid mistake
- When debugging CI failures, download the GitHub Actions artifacts from the failed run. The most useful are: (1) `per-test-logs-*` — contains per-test-file `<stem>.stdout.log` and `<stem>.stderr.log` mirroring the test path (e.g. `node/pkc/pkc.stderr.log`); start with the stderr log of the failing test file. (2) `test-server-log-*` — the full `test_server.log` with community-side DEBUG output. (3) `test-logs-*` — aggregate stdout/stderr from `--log-prefix`. (4) `vitest-*` — vitest JSON reports.
- To capture stdout/stderr from `run-test-config.js` to log files, use `--stdout-log <path>` and `--stderr-log <path>`, or use `--log-prefix <prefix>` to automatically create `<prefix>.stdout.log` and `<prefix>.stderr.log`. DEBUG output (from the `debug` module) goes to stderr.
- To capture per-test-file logs, use `--per-test-logs <dir>`. Each test file gets its own `<stem>.stdout.log` and `<stem>.stderr.log` under a directory structure mirroring the test path (e.g. `test/node/pkc/pkc.test.ts` → `<dir>/node/pkc/pkc.stderr.log`). This also captures DEBUG output by redirecting the `debug` module through `console.error`, which vitest then captures per-test via `onUserConsoleLog`. Example: `DEBUG="pkc-js*" node test/run-test-config.js --pkc-config "local-kubo-rpc,remote-pkc-rpc" --per-test-logs .tmp/test-logs test/node/pkc/pkc.test.ts`.
- For very large non-source artifacts such as CI logs, debug traces, generated JSON, or massive tool 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

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Verify if the referenced tools exist as GitHub repositories

echo "Checking chopratejas/headroom..."
gh repo view chopratejas/headroom --json name,description,url 2>&1 || echo "Repository not found"

Repository: pkcprotocol/pkc-js

Length of output: 320


Clarify chopratejas/headroom wording to match its purpose (AGENTS.md line 103).

chopratejas/headroom exists and is a library/proxy/MCP server for compressing tool outputs/logs (token reduction). Adjust the guidance from “navigation aid” to “compression/token-reduction (e.g., via headroom) before processing,” while keeping the “verify against the original uncompressed artifact” guardrail.

🧰 Tools
🪛 LanguageTool

[style] ~103-~103: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase.
Context: ...-logs test/node/pkc/pkc.test.ts`. - 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` at line 103, Update the AGENTS.md line that references
"chopratejas/headroom" to describe it as a compression/token-reduction tool
(e.g., library/proxy/MCP server for compressing tool outputs/logs) used to
reduce tokens before processing, rather than calling it a "navigation aid"; keep
the existing guardrail language requiring agents to verify conclusions against
the original uncompressed artifact before editing code or making final claims,
and ensure the sentence mentions examples like CI logs, debug traces, generated
JSON, or massive tool output for clarity.

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