Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v1.0.24 Home All releases olderv1.0.23 v1.0.25newer
Claude Code v1.0.24

New Features

Tool Execution Hooks

Version 1.0.24 introduces a powerful hooks system that allows you to run custom commands before and after tool executions. This feature enables advanced workflows, custom validations, and integrations.

Configuration: Add hooks to your ~/.claude/claude.json file:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "pre-edit-validator.sh"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "log-bash-commands.sh"
          }
        ]
      }
    ]
  }
}

Hook Types:

  • PreToolUse: Executes before a tool runs
  • Receives tool arguments as JSON input
  • Exit code 0: Continues normally (output not shown)
  • Exit code 2: Shows stderr to Claude and blocks the tool execution
  • Other exit codes: Shows stderr to user but continues
  • PostToolUse: Executes after a tool completes
  • Receives JSON with "inputs" (tool arguments) and "response" (tool result)
  • Exit code 0: Output shown in transcript mode (Ctrl-R)
  • Exit code 2: Shows stderr to Claude immediately
  • Other exit codes: Shows stderr to user only
  • Notification: Triggers when notifications are sent

Example Use Cases:

  • Pre-commit hooks before file edits
  • Security validation before running commands
  • Logging and auditing tool usage
  • Custom linting or formatting checks
  • Integration with external systems

OAuth Flow Improvements

The OAuth authentication flow now provides better visibility into the authorization process:

  • The authorization URL is now accessible programmatically during the flow
  • Improved error handling for OAuth client configuration issues
  • Better cleanup of invalid OAuth credentials when authentication fails

See this entry in the whole of v1.0.24 →