← Back to tools
View AGENTS.md for teetail
teetail
Like tee, but only the tail goes in the file
Description
teetail works like the Unix tee command, but only writes the tail (last lines) of the output to a file. This is useful when you want to capture only the most recent output while still seeing everything on screen.
AI Summary
A tee variant that only writes the tail (last N lines) of piped output to a file while showing everything on stdout.
Capabilities
- + Pipe output to both stdout and file like tee
- + Only save the last N lines to the file
- + Reduce log file sizes while maintaining recent output
Use When
- → User wants tee functionality but only needs recent output in the file
- → User wants to keep log files small
Avoid When
- x User needs the complete output saved to file