mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-04-25 17:45:53 +03:00
[PR #75] [CLOSED] Fix output token limit failures in agent report writing #102
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shannon-KeygraphHQ#102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/KeygraphHQ/shannon/pull/75
Author: @moscowchill
Created: 2/7/2026
Status: ❌ Closed
Base:
main← Head:fix/chunked-report-writing📝 Commits (1)
de9ea2bFix output token limit failures in agent report writing📊 Changes
14 files changed (+164 additions, -32 deletions)
View changed files
📝
mcp-server/src/tools/save-deliverable.ts(+32 -2)📝
prompts/exploit-auth.txt(+10 -3)📝
prompts/exploit-authz.txt(+10 -3)📝
prompts/exploit-injection.txt(+9 -2)📝
prompts/exploit-ssrf.txt(+10 -3)📝
prompts/exploit-xss.txt(+9 -2)📝
prompts/pre-recon-code.txt(+10 -4)📝
prompts/recon.txt(+14 -3)📝
prompts/vuln-auth.txt(+11 -2)📝
prompts/vuln-authz.txt(+11 -2)📝
prompts/vuln-injection.txt(+11 -2)📝
prompts/vuln-ssrf.txt(+11 -2)📝
prompts/vuln-xss.txt(+11 -2)📝
src/ai/claude-executor.ts(+5 -0)📄 Description
Summary
save_deliverablewould exceed the 32K output token limit, crashing the pipeline at Phase 3 (report synthesis)CLAUDE_CODE_OAUTH_TOKEN) since the Claude Code SDK enforces a 32K default output token limit. API key users (ANTHROPIC_API_KEY) may encounter the same limit depending on SDK configuration.file_pathparameter tosave_deliverableMCP tool so agents can write reports to disk incrementally then pass the path instead of inline contentCLAUDE_CODE_MAX_OUTPUT_TOKENSand auth tokens (OAuth/API key) through SDKenvoption so spawned subprocesses inherit the container environmentTest plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.