-
Notifications
You must be signed in to change notification settings - Fork 589
Closed
Description
Description
When the total command line exceeds 100KB, the SDK writes the agents JSON to a temp file and passes --agents @/path/to/temp.json. However, the CLI doesn't parse this syntax - it treats the literal string @/path/... as the JSON value, which fails to parse.
Reproduction Steps
- Create agent definitions totaling >60KB
- Add a system prompt >40KB
- Total command exceeds 100KB limit
- SDK writes to temp file (visible in logs: "Using temp file for --agents")
- CLI fails to load custom agents
Expected Behavior
CLI should read JSON from the file path when --agents value starts with @
Actual Behavior
CLI sees literal @/path/... string, can't parse as JSON, loads zero custom agents.
Error observed by orchestrator:
Agent type 'file-processor' not found. Available agents: general-purpose, statusline-setup, Explore, Plan
Versions
- SDK: 0.1.8
- CLI: 2.1.12
Workaround
Keep total command under 100KB by reducing prompt sizes.
Metadata
Metadata
Assignees
Labels
No labels