- 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 ↗Track several coding agents from the macOS notch, jump to any session, and get warned when two agents touch the same file.
“Monitor Multiple Coding Agents and Catch File Conflicts” is an intermediate Coding AI agent workflow from Software. It connects Claude Code, Codex and Gemini in 5 steps. Setup takes about Not stated and running costs are about Not stated.
Running several coding agents at once makes it easy to lose track of which one is waiting on a question, and two agents can quietly edit the same file at the same time. Without a single view of session state and file activity, time is lost to unnoticed stalls and conflicting edits.
Enable the hook mechanism in each coding agent you run (Claude Code, Codex, Gemini CLI) so every session writes its current state to a shared folder on disk. Confirm each agent emits events for start, working, waiting-for-input, and done.
Point the monitor at that folder and have it read each session file to derive a status per agent. Map the raw events to three visible states: working, done, and waiting on you.
Display one blob per active session beside the MacBook notch, colored by state. Make each blob clickable so selecting it focuses the matching terminal tab.
Compare the file paths reported by each agent's edit events. When two sessions touch the same path, raise a warning naming both agents and the file so you can intervene before the edits collide.
Optionally give each agent its own git worktree to keep changes separate. When a session finishes, surface the diff it produced and whether its tests passed before you merge anything.
Write a small macOS menu-bar utility that reads session state files from [STATE FOLDER] written by Claude Code, Codex and Gemini CLI hooks. For each session, parse the latest event and classify it as working, done, or waiting for input. Render one colored blob per session next to the notch, and when a blob is clicked, activate the terminal tab associated with that session. Also compare the file paths in edit events across sessions and show a warning listing both agents and the shared file when a path appears in more than one active session. Keep the implementation dependency-light and print clear setup instructions for enabling the hooks in each agent.
For each completed session in [STATE FOLDER], collect the git diff and test results from the agent's worktree. Produce a short summary per session covering which files changed, a one-line description of each change, and whether the test command passed or failed. Flag any file that was also modified by another session during the same period. Output the summaries as a plain list ordered by completion time so I can review them before merging.
Track several coding agents from the macOS notch, jump to any session, and get warned when two agents touch the same file.
You need Claude Code, Codex and Gemini.
Plan for about Not stated. It is rated intermediate. The guide walks through 5 steps, starting with “Turn on session hooks”.
Expect about Not stated in running costs (Free range).
Running several coding agents at once makes it easy to lose track of which one is waiting on a question, and two agents can quietly edit the same file at the same time. Without a single view of session state and file activity, time is lost to unnoticed stalls and conflicting edits.
A shell hook that turns command-not-found errors into coding-agent prompts while still catching typos.
Via Hacker News · quan ↗Plan, execute and review a cross-cutting refactor in small batches, with Claude Code making the edits and GitHub Copilot reviewing each PR.
Claude Code reads your coverage report, picks the riskiest untested modules and writes unit tests that pass, one small PR at a time.
Built this workflow? Show it is featured on AgentUseHub with a live upvote count that links back here. About badges