mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-08-21 14:44:56 +00:00
docs(skill): avoid output truncation in agent skill instructions (#809)
This commit is contained in:
parent
a9449db5d3
commit
4f7d78f28d
1 changed files with 2 additions and 0 deletions
|
|
@ -100,6 +100,7 @@ ocr review --audience agent --background "business context here" [user-args]
|
|||
**Output mode:**
|
||||
|
||||
- Always use `--audience agent` to suppress progress UI and emit only the final summary
|
||||
- **Prevent output truncation**: For large reviews or restricted tool environments, redirect output to a temporary file (`ocr review --audience agent ... > /tmp/ocr_out.txt 2>&1`) and inspect it in full via a file reading tool instead of piping through `tail` or `head`, which drops earlier review comments.
|
||||
|
||||
### Step 3: Classify and Report
|
||||
|
||||
|
|
@ -216,6 +217,7 @@ ocr rules check src/main/java/com/example/Foo.java
|
|||
- **Plan phase triggers at 50 lines** — diffs exceeding 50 changed lines run an extra risk-analysis phase before main review. This adds latency but improves quality.
|
||||
- **Don't pass `--audience human`** — it streams progress UI that pollutes output. Always use `--audience agent`.
|
||||
- **Comment language follows config** — set `language` config to `English` or `Chinese` (default: Chinese) to control review comment language.
|
||||
- **Avoid output truncation** — Large review runs produce verbose output. Never pipe command output to `tail` or `head` as it drops review comments from earlier sections. Redirect output to a file and read it in full.
|
||||
|
||||
## Validation
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue