Install
1
Run in your terminal$
npx claudepluginhub nwave-ai/nwave --plugin nwRisk Indicators
Executes bash commandsModifies files
Source
Defined in hooks/hooks.json
Configuration
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python3 -c \"import os,sys,pwd;from pathlib import Path;r=os.environ.get('CLAUDE_PLUGIN_ROOT','');p=r+'/scripts' if r else '';h=os.environ.get('HOME') or '';h=h if len(h)>1 else pwd.getpwuid(os.getuid()).pw_dir;p=p or next((str(s) for s in sorted(Path(h).joinpath('.claude/plugins/cache').glob('*/nw/*/scripts')) if (s/'des'/'__init__.py').exists()),None);p=p or str(Path(h)/'.claude/lib/python');sys.path.insert(0,p);sys.argv=['des-hook','pre-task'];from des.adapters.drivers.hooks.claude_code_hook_adapter import main;main()\""
}
],
"matcher": "Agent"
},
{
"hooks": [
{
"type": "command",
"command": "INPUT=$(cat); echo \"$INPUT\" | grep -q 'execution-log\\.json' && { echo \"$INPUT\" | python3 -c \"import os,sys,pwd;from pathlib import Path;r=os.environ.get('CLAUDE_PLUGIN_ROOT','');p=r+'/scripts' if r else '';h=os.environ.get('HOME') or '';h=h if len(h)>1 else pwd.getpwuid(os.getuid()).pw_dir;p=p or next((str(s) for s in sorted(Path(h).joinpath('.claude/plugins/cache').glob('*/nw/*/scripts')) if (s/'des'/'__init__.py').exists()),None);p=p or str(Path(h)/'.claude/lib/python');sys.path.insert(0,p);sys.argv=['des-hook','pre-write'];from des.adapters.drivers.hooks.claude_code_hook_adapter import main;main()\"; exit $?; }; test -f .nwave/des/deliver-session.json || exit 0; echo \"$INPUT\" | python3 -c \"import os,sys,pwd;from pathlib import Path;r=os.environ.get('CLAUDE_PLUGIN_ROOT','');p=r+'/scripts' if r else '';h=os.environ.get('HOME') or '';h=h if len(h)>1 else pwd.getpwuid(os.getuid()).pw_dir;p=p or next((str(s) for s in sorted(Path(h).joinpath('.claude/plugins/cache').glob('*/nw/*/scripts')) if (s/'des'/'__init__.py').exists()),None);p=p or str(Path(h)/'.claude/lib/python');sys.path.insert(0,p);sys.argv=['des-hook','pre-write'];from des.adapters.drivers.hooks.claude_code_hook_adapter import main;main()\""
}
],
"matcher": "Write"
},
{
"hooks": [
{
"type": "command",
"command": "INPUT=$(cat); echo \"$INPUT\" | grep -q 'execution-log\\.json' && { echo \"$INPUT\" | python3 -c \"import os,sys,pwd;from pathlib import Path;r=os.environ.get('CLAUDE_PLUGIN_ROOT','');p=r+'/scripts' if r else '';h=os.environ.get('HOME') or '';h=h if len(h)>1 else pwd.getpwuid(os.getuid()).pw_dir;p=p or next((str(s) for s in sorted(Path(h).joinpath('.claude/plugins/cache').glob('*/nw/*/scripts')) if (s/'des'/'__init__.py').exists()),None);p=p or str(Path(h)/'.claude/lib/python');sys.path.insert(0,p);sys.argv=['des-hook','pre-edit'];from des.adapters.drivers.hooks.claude_code_hook_adapter import main;main()\"; exit $?; }; test -f .nwave/des/deliver-session.json || exit 0; echo \"$INPUT\" | python3 -c \"import os,sys,pwd;from pathlib import Path;r=os.environ.get('CLAUDE_PLUGIN_ROOT','');p=r+'/scripts' if r else '';h=os.environ.get('HOME') or '';h=h if len(h)>1 else pwd.getpwuid(os.getuid()).pw_dir;p=p or next((str(s) for s in sorted(Path(h).joinpath('.claude/plugins/cache').glob('*/nw/*/scripts')) if (s/'des'/'__init__.py').exists()),None);p=p or str(Path(h)/'.claude/lib/python');sys.path.insert(0,p);sys.argv=['des-hook','pre-edit'];from des.adapters.drivers.hooks.claude_code_hook_adapter import main;main()\""
}
],
"matcher": "Edit"
},
{
"hooks": [
{
"type": "command",
"command": "# des-hook:pre-bash\nINPUT=$(cat); CMD=$(echo \"$INPUT\" | python3 -c \"import sys,json; print(json.load(sys.stdin).get('tool_input',{}).get('command',''))\"); echo \"$CMD\" | grep -q 'execution-log' || exit 0; echo \"$CMD\" | grep -qE 'des\\.cli\\.(log_phase|init_log|verify_deliver_integrity)' && exit 0; echo '{\"decision\":\"block\",\"reason\":\"Direct modification of execution-log.json via Bash is blocked.\\nTo read it, use the Read tool.\\nTo modify it, use des.cli.log_phase.\"}'; exit 2"
}
],
"matcher": "Bash"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python3 -c \"import os,sys,pwd;from pathlib import Path;r=os.environ.get('CLAUDE_PLUGIN_ROOT','');p=r+'/scripts' if r else '';h=os.environ.get('HOME') or '';h=h if len(h)>1 else pwd.getpwuid(os.getuid()).pw_dir;p=p or next((str(s) for s in sorted(Path(h).joinpath('.claude/plugins/cache').glob('*/nw/*/scripts')) if (s/'des'/'__init__.py').exists()),None);p=p or str(Path(h)/'.claude/lib/python');sys.path.insert(0,p);sys.argv=['des-hook','post-tool-use'];from des.adapters.drivers.hooks.claude_code_hook_adapter import main;main()\""
}
],
"matcher": "Agent"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "python3 -c \"import os,sys,pwd;from pathlib import Path;r=os.environ.get('CLAUDE_PLUGIN_ROOT','');p=r+'/scripts' if r else '';h=os.environ.get('HOME') or '';h=h if len(h)>1 else pwd.getpwuid(os.getuid()).pw_dir;p=p or next((str(s) for s in sorted(Path(h).joinpath('.claude/plugins/cache').glob('*/nw/*/scripts')) if (s/'des'/'__init__.py').exists()),None);p=p or str(Path(h)/'.claude/lib/python');sys.path.insert(0,p);sys.argv=['des-hook','session-start'];from des.adapters.drivers.hooks.claude_code_hook_adapter import main;main()\""
}
],
"matcher": "startup"
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "python3 -c \"import os,sys,pwd;from pathlib import Path;r=os.environ.get('CLAUDE_PLUGIN_ROOT','');p=r+'/scripts' if r else '';h=os.environ.get('HOME') or '';h=h if len(h)>1 else pwd.getpwuid(os.getuid()).pw_dir;p=p or next((str(s) for s in sorted(Path(h).joinpath('.claude/plugins/cache').glob('*/nw/*/scripts')) if (s/'des'/'__init__.py').exists()),None);p=p or str(Path(h)/'.claude/lib/python');sys.path.insert(0,p);sys.argv=['des-hook','subagent-stop'];from des.adapters.drivers.hooks.claude_code_hook_adapter import main;main()\""
}
]
},
{
"hooks": [
{
"type": "command",
"command": "python3 -c \"import os,sys,pwd;from pathlib import Path;r=os.environ.get('CLAUDE_PLUGIN_ROOT','');p=r+'/scripts' if r else '';h=os.environ.get('HOME') or '';h=h if len(h)>1 else pwd.getpwuid(os.getuid()).pw_dir;p=p or next((str(s) for s in sorted(Path(h).joinpath('.claude/plugins/cache').glob('*/nw/*/scripts')) if (s/'des'/'__init__.py').exists()),None);p=p or str(Path(h)/'.claude/lib/python');sys.path.insert(0,p);sys.argv=['des-hook','deliver-progress'];from des.adapters.drivers.hooks.claude_code_hook_adapter import main;main()\""
}
]
}
],
"SubagentStart": [
{
"hooks": [
{
"type": "command",
"command": "python3 -c \"import os,sys,pwd;from pathlib import Path;r=os.environ.get('CLAUDE_PLUGIN_ROOT','');p=r+'/scripts' if r else '';h=os.environ.get('HOME') or '';h=h if len(h)>1 else pwd.getpwuid(os.getuid()).pw_dir;p=p or next((str(s) for s in sorted(Path(h).joinpath('.claude/plugins/cache').glob('*/nw/*/scripts')) if (s/'des'/'__init__.py').exists()),None);p=p or str(Path(h)/'.claude/lib/python');sys.path.insert(0,p);sys.argv=['des-hook','subagent-start'];from des.adapters.drivers.hooks.claude_code_hook_adapter import main;main()\""
}
]
}
]
}Summary
{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 9
},
"eventStats": {
"PreToolUse": 4,
"PostToolUse": 1,
"SessionStart": 1,
"SubagentStop": 2,
"SubagentStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 9
}
}Stats
Parent Repo Stars299
Parent Repo Forks37
Last CommitMar 23, 2026