feat(output): add --suppress-reads flag#136
Conversation
Triage resultHuman attention: Quick readThis PR looks right-shaped and safe to continue. It adds an opt-in Targeted feature validation passed. Stored Codex review evidence has no blocking P0/P1 findings. CI was initially approval-blocked, was approved, reran, and is now green. Initial and final conflict checks are both clean. IntentAdd a CLI option so WhyToday Codex reviewStored GitHub Codex review data for the current head was empty. Stored local Codex review completed successfully and reported only non-blocking P2 findings:
No blocking P0/P1 findings remain from the stored review evidence. CI/CDTargeted feature validation passed with:
GitHub Actions status:
Conflict status:
RecommendationReady for human landing decision. The PR is solving the right problem, validation passed, CI is green, and no merge conflicts were detected. Human review should focus on whether the remaining non-blocking P2 concerns are acceptable for merge now or should be deferred to follow-up work. |
close #134
This pull request introduces a new
--suppress-readsflag to the CLI, allowing users to suppress the output of raw file contents from read operations in both human-readable and JSON output formats. This is particularly useful for privacy or security-sensitive scenarios, or to reduce noise in agent-to-agent pipelines. The flag is documented across CLI help, documentation, and skill reference files, and is implemented with careful handling in both output formatting and CLI flag resolution.Key changes:
Feature: Suppress Read Output
Added a
--suppress-readsglobal CLI flag that replaces raw file contents with[read output suppressed]in bothtextandjsonoutput formats, while leavingquietmode unchanged. This is reflected in CLI flag parsing, documentation, and the help output.Implemented suppression logic in the output formatters:
CLI and Core Integration
Updated CLI core logic to propagate the
suppressReadsflag through output policy resolution and formatter creation, ensuring consistent behavior across prompt and exec commands.Extended the
GlobalFlagsand output policy types to include the newsuppressReadsoption, ensuring type safety and future extensibility.Documentation
docs/CLI.md,README.md, andskills/acpx/SKILL.md, including usage examples and behavioral details.