- Type in shell
- Hook catches failure
- Typo check
Shell Plugin That Sends Unrecognized Commands to Claude Code or Codex
A shell hook that turns command-not-found errors into coding-agent prompts while still catching typos.
Via Hacker News · quan ↗Use an AI model to find reproducible bugs and then drive a 4x decompression speedup in a dormant C++ library.
“AI-Assisted Bug Hunt and Speedup for a C++ Compression Library” is an intermediate Coding AI agent workflow from Software. It connects Other or custom in 4 steps. Setup takes about Not stated and running costs are about Not stated.
A mature but dormant C++ compression library had accumulated latent bugs and slow decompression paths. Manually auditing the codebase and profiling for performance wins would take significant effort, and the author wanted a faster way to surface minimal reproducible defects and then push throughput improvements without rewriting the core.
Point a capable coding model at the repository and ask it to hunt for defects. Require each finding to come with a minimal reproducing test so you can verify it quickly instead of trusting the report.
Review each reported bug against its reproducer, discard false positives, and merge the valid fixes. Cut a bugfix release so the baseline is stable before attempting performance work.
Give the model a single measurable goal, such as doubling decompression throughput, and let it propose and implement changes. Keep the target numeric so success is checkable.
Time decompression on a fixed corpus with the old and new versions, comparing checksums to confirm output is unchanged. Record the numbers to confirm the claimed improvement.
Review the source tree of [LIBRARY NAME] in [REPO PATH]. Identify correctness bugs, especially in decompression and seek/index handling. For every bug you report, include a minimal standalone test or input file that reproduces it, the expected versus actual behavior, and the file and function involved. Rank findings by severity and skip style or cosmetic issues. Do not modify any files yet; just produce the report.
In [REPO PATH], speed up single-threaded decompression of [LIBRARY NAME] by at least 2x without changing the output bytes. Profile the hot paths first, then propose and implement the changes. Keep the public API stable, preserve existing tests, and add a benchmark script that decompresses [SAMPLE ARCHIVE] and verifies the checksum matches the original. Report the before and after timings and summarize each optimization you made.
Use an AI model to find reproducible bugs and then drive a 4x decompression speedup in a dormant C++ library.
You need Other or custom.
Plan for about Not stated. It is rated intermediate. The guide walks through 4 steps, starting with “Run an AI bug sweep over the codebase”.
Expect about Not stated in running costs (Under $25/mo range).
A mature but dormant C++ compression library had accumulated latent bugs and slow decompression paths. Manually auditing the codebase and profiling for performance wins would take significant effort, and the author wanted a faster way to surface minimal reproducible defects and then push throughput improvements without rewriting the core.
A shell hook that turns command-not-found errors into coding-agent prompts while still catching typos.
Via Hacker News · quan ↗A coordinating agent splits long projects into tasks, runs parallel coding workers, and enforces review loops before merges.
Via Bluesky · @dolthub.bsky.social ↗Plan, execute and review a cross-cutting refactor in small batches, with Claude Code making the edits and GitHub Copilot reviewing each PR.
Built this workflow? Show it is featured on AgentUseHub with a live upvote count that links back here. About badges