clawdforge/clawdforge
Kayos 8d1da6e20d runner: pipe prompts > 64KB via stdin to avoid OS argv limit
Cobb's seed-cleanup job hit OSError [Errno 7] Argument list too long with
a 577KB prompt. Linux ARG_MAX is typically 128KB-2MB depending on kernel +
env; passing the full prompt as 'claude -p <PROMPT>' fails for big jobs.

Fix: detect prompt size > 64KB threshold, omit the positional prompt
argument from the CLI invocation and pipe via subprocess.run(input=...)
instead. claude -p reads the prompt from stdin when no positional given.

System prompt + flags still pass as CLI args (those stay small).
2026-04-28 22:08:47 -07:00
..
__init__.py v0.1 — clawdforge service scaffold 2026-04-28 16:46:44 -07:00
auth.py v0.1 — clawdforge service scaffold 2026-04-28 16:46:44 -07:00
config.py v0.1 — clawdforge service scaffold 2026-04-28 16:46:44 -07:00
runner.py runner: pipe prompts > 64KB via stdin to avoid OS argv limit 2026-04-28 22:08:47 -07:00
server.py v0.1 — clawdforge service scaffold 2026-04-28 16:46:44 -07:00
store.py v0.1 — clawdforge service scaffold 2026-04-28 16:46:44 -07:00