Omarchy as an Agent Launch Surface: Designing Around 429s Without Hiding Them
Описание и применение
Обеспечьте безопасный запуск агентских CLI через обертку, которая логирует маршруты и запрещает автоматический повтор при 429/504, предотвращая непреднамеренную дубликацию файловых изменений.
Задача
Unhandled HTTP 429 or 504 responses during agentic runs can silently corrupt local state by replaying mutating actions after rate limits are hit.
Результат
The wrapper prevents silent corruption by stopping automatic retries on 429/504, providing an audit trail and deterministic behavior for file‑mutating agents.
Рабочий процесс
- 1. Create a bash wrapper script that logs agent name, route, and exit status.
- 2. Install the wrapper to ~/.local/bin/agent-run and make it executable.
- 3. Route agent CLI commands through the wrapper, e.g.,
agent-run aider --model "$AIDER_MODEL". 4. The wrapper exits immediately on non‑zero status, logging the event. 5. Inspect the log to verify no dirty files were committed and decide whether to retry or switch models.
Доказательства
Drop the script directly onto your PATH and route your agent CLIs through it:
The core architectural invariant is the final catch‑all branch: no automatic replay.
- Дата записи: 2026-09-16T23:45:40.625Z