Review AI Replies Truncated by Output Limits

    by Shogun Labs

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+23 more

    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_reason is length.
    • Responses API records with status: incomplete and incomplete_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

    1. Run python3 scripts/review_replies.py <file> on a local JSON or JSONL file of OpenAI response records.
    2. Read the counts (records read, truncated or unknown endings, bad rows, unreadable records) and one line per finding. Add --format json for 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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+

    Permissions

    Terminal / Shell
    Read Files
    Listedtoday

    What's inside

    Frequently Asked Questions

    This skill identifies rows in your local OpenAI API records where the generation was cut off due to token limits. It also flags malformed JSONL rows and reports the text length and ending metadata for every recognized record.

    You need to provide a local JSON or JSONL file containing OpenAI Chat Completions or Responses API data. The file must be UTF8 encoded and the skill requires Python 3 to process the records locally.

    The skill provides a console report by default, but you can also request a structured JSON output. It specifically identifies finish reasons like length or max output tokens and lists the line numbers for any invalid data found.

    It runs locally and reads only the fields the APIs document, so it gives the same answer every time. It reports the ending reason for each record by line; it makes no API calls and does not change your files. It does not judge the answers or decide whether to retry.

    The skill does not assess the correctness of the content or provide logic to retry failed generations. It is also limited to local UTF8 files and specific OpenAI response shapes, and it will not process files that are empty or oversized.

    You can ask your agent to run the script command targeting your specific local JSON or JSONL file. For example, you can tell the agent to review a file for truncated replies and specify if you want the results in a structured JSON format.

    New in LLM Ops