Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By sirmewsv1.0.0In 1 marketplace
Lets you search and debug failed and successful bash commands Claude ran from a local history. Hooks log every Bash call and can rewrite commands such as npm to bun; it needs the claude-hook-advisor binary installed via cargo.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
bash-history, command-tracking, failure-detection, debugging, shell-history, hooks, bash, history ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that provides intelligent command history tracking with automatic failure detection.
/history - View recent command history (last 20 commands)/history-failures - Show only failed commands with AI analysis/history-search <pattern> - Search for specific commands (e.g., /history-search git)/history-session <id> - View all commands from a specific sessionInstall the claude-hook-advisor binary first:
# From crates.io (recommended)
cargo install claude-hook-advisor
# Or from source
git clone https://github.com/sirmews/claude-hook-advisor.git
cd claude-hook-advisor
cargo install --path .
Verify installation:
which claude-hook-advisor
# Should output: ~/.cargo/bin/claude-hook-advisor
Copy the plugin directory to your project:
cp -r plugin ~/.claude/plugins/claude-hook-advisor
Enable the plugin in your .claude/settings.json:
{
"plugins": [
"~/.claude/plugins/claude-hook-advisor"
]
}
Create configuration file in your project root:
cat > .claude-hook-advisor.toml << 'EOF'
[commands]
# Add your command mappings here
# npm = "bun"
[semantic_directories]
# Add your directory aliases here
# docs = "~/Documents/Documentation"
[command_history]
enabled = true
log_file = "~/.claude-hook-advisor/bash-history.db"
EOF
Restart Claude Code to activate the plugin
Place the plugin directory in your project's .claude/plugins/ folder:
mkdir -p .claude/plugins
cp -r plugin .claude/plugins/claude-hook-advisor
Add to .claude/settings.local.json:
{
"plugins": [
"./.claude/plugins/claude-hook-advisor"
]
}
Simply type:
/history
You'll see:
Command History (5 records)
================================================================================
2025-11-12T14:30:35Z ✗ FAILED
Command: npm test
CWD: /home/user/my-project
Session: abc123-def456
2025-11-12T14:30:30Z ✓
Command: git status
CWD: /home/user/my-project
Session: abc123-def456
/history-failures
Claude will automatically:
/history-search git
Finds all commands containing "git" in the history.
/history-session abc123-def456
Shows complete timeline of a session's commands.
The plugin uses a clever two-hook approach:
Key Insight: Claude Code only fires PostToolUse for successful commands. Any command that remains "pending" means it failed!
This workaround solves the limitation where Claude Code doesn't send PostToolUse events for failed commands.
All commands are stored in SQLite at ~/.claude-hook-advisor/bash-history.db (configurable).
Each record includes:
Edit .claude-hook-advisor.toml in your project root:
[commands]
npm = "bun" # Replace npm with bun
yarn = "bun" # Replace yarn with bun
curl = "wget --verbose" # Use wget instead of curl
[semantic_directories]
docs = "~/Documents/Documentation"
project_docs = "~/Documents/my-project"
[command_history]
enabled = true
log_file = "~/.claude-hook-advisor/bash-history.db"
Check binary installation:
which claude-hook-advisor
Should return ~/.cargo/bin/claude-hook-advisor
Verify plugin path in settings.json is correct
Check logs in Claude Code for errors
Restart Claude Code after installation
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (sirmews/claude-hook-advisor) — no native marketplace selected
npx claudepluginhub p/sirmews-claude-hook-advisor-pluginPlugins from other owners that cover similar ground