{"id":34599143,"url":"https://github.com/flyingrobots/claude-auto-tee","last_synced_at":"2026-05-27T03:35:27.761Z","repository":{"id":309456133,"uuid":"1036270746","full_name":"flyingrobots/claude-auto-tee","owner":"flyingrobots","description":"Automatic tee injection for Claude Code bash commands - save full output while seeing truncated results","archived":false,"fork":false,"pushed_at":"2025-09-25T15:20:35.000Z","size":1409,"stargazers_count":0,"open_issues_count":79,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-25T17:29:49.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flyingrobots.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-11T20:24:13.000Z","updated_at":"2025-09-25T15:20:38.000Z","dependencies_parsed_at":"2025-08-12T02:48:16.759Z","dependency_job_id":null,"html_url":"https://github.com/flyingrobots/claude-auto-tee","commit_stats":null,"previous_names":["flyingrobots/claude-auto-tee"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flyingrobots/claude-auto-tee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingrobots%2Fclaude-auto-tee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingrobots%2Fclaude-auto-tee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingrobots%2Fclaude-auto-tee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingrobots%2Fclaude-auto-tee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flyingrobots","download_url":"https://codeload.github.com/flyingrobots/claude-auto-tee/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingrobots%2Fclaude-auto-tee/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28002250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-24T12:07:31.811Z","updated_at":"2025-12-24T12:07:43.036Z","avatar_url":"https://github.com/flyingrobots.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!IMPORTANT]\n\u003e **Status:** Invactive\n\u003e As I was in the process of hardening this project, Claude Code released an update and I noticed Claude started doing this by default in many cases. So I've suspended work on this project. It works, but there's a lot of room for perfection. But, alas, I am not even a Claude user anymore, sadly. And so, this project is no longer actively worked on.\n\u003e 🥀\n\n# claude-auto-tee\n\n**Save time and tokens.** Stop Claude from running the same commands over and over.\n\n---\n\n## The Problem\n\nLet's say Claude investigates a build failure. An error message flashes by in hundreds of lines of output. Claude, trying to be helpful, piped the build to `tail -10` to avoid flooding your screen. But surprise - the actual error isn't in the last 10 lines.\n\nNow what?\n\n### BEFORE `claude-auto-tee`\n\n```\nLet me check what's failing...\n→ npm run build | tail -10\n[Shows last 10 lines, no error visible]\nMaybe I should search for errors...\n→ npm run build | grep \"ERROR\"\n0 results\nMaybe it's lowercase...\n→ npm run build | grep \"error\"\n2 results (but not the root cause)\nLet me look for warnings...\n→ npm run build | grep \"warning\"\n47 results (too many)\nLet me see the actual failure...\n→ npm run build | grep -A 5 \"failed\"\n(finds something, but needs more context)\nI need to see what happened before this...\n→ npm run build | grep -B 10 \"failed\"\n(wait... running the whole build AGAIN...)\n```\n\n*Result: 6 builds. 5 minutes wasted. Hundreds of tokens burned.*\n\n### AFTER `claude-auto-tee`\n\n```\nLet me check what's failing...\n→ npm run build | tail -10\n[Shows last 10 lines, no error visible]\n→ Full output saved to /tmp/claude-xyz.log ✨\nLet me search the saved output...\n→ grep -i \"error\" /tmp/claude-xyz.log\n→ grep \"Module not found\" /tmp/claude-xyz.log\n→ grep -B 20 -A 5 \"failed\" /tmp/claude-xyz.log\n→ awk '/warning/,/error/' /tmp/claude-xyz.log\n```\n\n*Result: Build runs ONCE. Claude explores the full output instantly.*\n\n---\n\n### How?\n\nThis hook injects `tee` into any piped command:\n\n```bash\n# Claude runs:\nnpm run build | tail -10\n\n# It becomes:\nnpm run build | tee /tmp/claude-xyz.log | tail -10\n```\n\nClaude sees the truncated output AND gets told where the full log is saved.\n\n**BOOM!** No more re-running commands.\n\n---\n\n## Installation\n\n```bash\n# Clone and install\ngit clone https://github.com/flyingrobots/claude-auto-tee.git\ncd claude-auto-tee\nchmod +x src/claude-auto-tee.sh\n\n# Configure Claude Code\nmkdir -p ~/.claude\necho '{\n  \\\"hooks\\\": {\n    \\\"preToolUse\\\": [{\n      \\\"command\\\": \\\"'$(pwd)'/src/claude-auto-tee.sh\\\",\n      \\\"matchers\\\": [\\\"Bash\\\"]\n    }]\n  }\n}' \u003e ~/.claude/settings.json\n```\n\n## How it works\n\n- **Detects pipes**: Any command with `\\\" | \\\"` gets `tee` injected\n- **Saves everything**: Full output goes to `/tmp/claude-*.log`\n- **Zero config**: Works immediately after installation\n- **Graceful**: If anything fails, your command runs unchanged\n\n## Examples\n\n```bash\n# Claude runs:\nfind . -name \\\"*.js\\\" | wc -l\n\n# Hook transforms to:\nfind . -name \\\"*.js\\\" | tee /tmp/claude-xyz.log | wc -l\n\n# Later, Claude can review the full output:\ncat /tmp/claude-xyz.log\n```\n\n## Configuration\n\nOptional environment variables:\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `CLAUDE_AUTO_TEE_VERBOSE` | `false` | Enable debug logging |\n| `TMPDIR` | `/tmp` | Override temp directory |\n\n## Troubleshooting\n\n```bash\n# Test the tool\necho '{\\\"tool\\\":{\\\"name\\\":\\\"Bash\\\",\\\"input\\\":{\\\"command\\\":\\\"ls | head -5\\\"}}}' | ./src/claude-auto-tee.sh\n\n# Enable verbose mode\nCLAUDE_AUTO_TEE_VERBOSE=true claude\n\n# Run diagnostics\nbash scripts/diagnose.sh\n```\n\n## Roadmap\n\nCurrently implementing Phase 1 improvements. See [open issues](https://github.com/flyingrobots/claude-auto-tee/issues) for details.\n\n**Priority areas:**\n- Platform compatibility testing\n- Error handling improvements  \n- Installation automation\n- Documentation expansion\n\n## Contributing\n\nIssues and PRs welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\nMIT\n\n---\n\n**Bottom line**: Stop re-running slow commands. Install this, run commands with pipes, get full output saved automatically.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyingrobots%2Fclaude-auto-tee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflyingrobots%2Fclaude-auto-tee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyingrobots%2Fclaude-auto-tee/lists"}