Review AI Replies Truncated by Output Limits
by Shogun Labs
Review saved OpenAI responses and report Chat Completions choices ended by length and Responses records incomplete at max_output_tokens. Names findings by line; it does not judge answers or recommend retries.
$5
Works with the AI Agents you already use
Review AI Replies Truncated by Output Limits
Example session with this skill installed
python3 scripts/review_replies.py examples/responses.jsonl
- Read your context and instructions
- Compiled the review ai replies
The command reads examples/responses.jsonl and reports which records ended at an output limit.
Records read: 3
Truncated or unknown endings: 2
Bad rows: 0
Unreadable response records: 0
line 1 chat_completions id=chatcmpl-demo-1 choice=0 reason=length text=yes chars=30
line 2 responses id=resp-demo-2 reason=max_output_tokens text=yes chars=19
Each finding names the response ID, the choice when present, whether text exists, and its character count. The counts summarize how many records were read, how many ended at a limit or with an unknown reason, how many rows were malformed, and how many were unreadable response shapes.
Connects securely to your tools. The creator never sees your data.
About this skill
Use this local command after saving one OpenAI response object as JSON, or one response per line as JSONL. It reads the file and reports which records ended because of an output limit, without judging the answers.
What it reports
- Chat Completions choices whose
finish_reasonislength. - Responses API records with
status: incompleteandincomplete_details.reason: max_output_tokens. - Each finding includes the response ID, the choice index when present, whether answer text exists, and its character count.
- Unknown ending reasons are named and kept, not dropped.
- Malformed JSONL rows are named by line number while valid rows still appear.
- Valid JSON whose shape is not a supported API response is counted separately as an unreadable response record.
How it works
- Run
python3 scripts/review_replies.py <file>on a local JSON or JSONL file of OpenAI response records. - Read the counts (records read, truncated or unknown endings, bad rows, unreadable records) and one line per finding. Add
--format jsonfor machine-readable output.
What it does not do
It does not judge whether an answer is correct, whether it sounds complete, or whether it should be retried. It does not infer why a limit was reached. It makes no API calls, connects to no network, and does not change the input file. Records read counts only recognized response records; if none are recognized, the command exits with status 2.
Requirements
Python 3.9+. Input is UTF-8 JSON or JSONL, at most 5 MiB.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Processes local UTF-8 files only. Does not assess content accuracy or handle retries. Requires specific OpenAI API response schemas to function.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Python 3.9+