claudeコマンドを起動し、/hooksを入力し、hooksの設定画面を開く- 以下のような設定を Notification, Stop の両方に設定する
cat | jq -r --arg host "$(hostname)" ' { channel : "claude-code", username : "Claude Code",
icon_emoji : ":claude:",
| #!/usr/bin/env python3 | |
| ''' | |
| Command line tool to run a command and send a message to a Slack webhook if the command fails. | |
| ''' | |
| import subprocess | |
| import urllib | |
| import urllib.request | |
| import urllib.parse |
| #!/usr/bin/env python3 | |
| import sys | |
| def unicode_escape(file_path): | |
| try: | |
| with open(file_path, 'r', encoding='utf-8') as file: | |
| content = file.read() | |
| escaped_content = content.encode('unicode_escape').decode('ascii') |
| import jax.numpy as jnp | |
| from dataclasses import dataclass | |
| from functools import partial | |
| from jax.tree_util import register_dataclass, tree_flatten, tree_leaves | |
| from jax import vmap | |
| import jax | |
| @partial( | |
| register_dataclass, |