CLI and Codex hooks for tracking subagent lifecycle events (SubagentStart, SubagentStop, PostToolUse) in a local SQLite ledger. Version 0.1.17 requires Node.js >=22.14.0 for built-in node:sqlite. Designed for Codex multi-agent tasks, it records subagent state into a project-local SQLite database and provides commands to list running/stopped/closed subagents, reset state, and wait for completion. Unlike reading rollout logs, it offers a compact per-session view. Released as an npm package with no extra dependencies.
npm install subagent-auto-managerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Run the CLI with no arguments to list currently running, not-closed subagents for the current Codex session.
Upgrade Node.js to >=22.14.0 or use a version that ships node:sqlite.
Add --human flag to those commands, for example: npx subagent-auto-manager@latest --all --human
Open /hooks in Codex and trust the updated hook definitions if Codex marks them for review.
Always use full flag names and refer to --help output for the specific version.
Ensure hooks are configured before subagent starts, or manually trigger the hook for existing subagents.
Upgrade Node.js to >=22.14.0.
Create a .codex/hooks.json file in the project root with valid hook definitions. See README for example.
Add --human flag to the command, e.g., npx subagent-auto-manager@latest --all --human
Run the hook command at least once (e.g., npx subagent-auto-manager@latest hook) to create the table.
No dependency data recorded yet.