You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: tee full output to file for LLM re-read without re-run #86
When RTK filters command output (especially test runners), LLM agents like Claude Code often lose critical failure details (stack traces, assertion messages). This leads to re-running the same command 2-3 times just to get the full error info — wasting both tokens and time.
Some users already work around this with manual tee instructions in their CLAUDE.md.
Proposed Solution
Tee the full unfiltered output to a temporary file, and append a one-line hint at the end of RTK's filtered output:
✓ 42 passed, 1 failed (3.2s)
FAIL: test_parse_complex_input - assertion failed at src/filter.rs:142
📄 Full output: /tmp/rtk/cargo-test-2026-02-12-143052.log
The LLM can then read /tmp/rtk/...log once if it needs details, instead of re-running the command.
Design Considerations
Scope: start with test runners (cargo test, vitest, playwright, pytest) and build commands (cargo build, cargo clippy, tsc) — commands where failure details matter most
File location: /tmp/rtk/ (or $TMPDIR/rtk/) with auto-cleanup (e.g., 24h retention or max N files)
Naming: rtk-{cmd}-{timestamp}.log to avoid collisions
Config: opt-in or opt-out via config.toml ([output] tee_to_file = true)
Size cap: consider a max file size to avoid filling /tmp
Reacted by Christian C. Berclaz, noname9312, Gabriel Dehan, aliom, Daniel Aquino, Tom, Zhiqin "Niq" Lin, Andrey Morskov, Viacheslav, Adam Fratino and 5 more
Activity
feat: tee raw output to file for LLM re-read without re-run (#86)
feat: tee raw output to file for LLM re-read without re-run (rtk-ai#134)
feat: tee raw output to file for LLM re-read without re-run (rtk-ai#134)