Skip to main content

AI monitoring for Claude Code agents

Project description

Critic

Independent AI monitoring for Claude Code agents. Critic watches your agent's work through hook events and provides quality feedback to prevent common mistakes.

Installation

pip install critic

Usage

1. Start the monitoring server

critic-server [port]

Default port is 8081.

2. Configure Claude Code hooks

Add to your Claude Code project configuration:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "critic-hook {session_id} {source_path}"
          }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "critic-display"
          }
        ]
      }
    ]
  }
}

3. Work normally

Critic monitors in the background and writes feedback to .critic-messages.txt when it has observations. The feedback is displayed at the next user prompt.

How it works

  1. critic-hook forwards Claude Code hook events to the monitoring server
  2. The server runs a monitoring agent that watches for quality issues
  3. When issues are detected, the monitor writes feedback to .critic-messages.txt
  4. critic-display shows the feedback to the agent on the next interaction

Environment Variables

  • ANTHROPIC_API_KEY: Required for the monitoring agent (same as Claude Code)
  • CRITIC_MONITOR_BASE: Override server URL (default: http://127.0.0.1:8081)
  • CLAUDE_MONITOR_SKIP_FORWARD: Set to 1 to disable hook forwarding

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quibbler-0.1.0.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quibbler-0.1.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file quibbler-0.1.0.tar.gz.

File metadata

  • Download URL: quibbler-0.1.0.tar.gz
  • Upload date:
  • Size: 37.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.24

File hashes

Hashes for quibbler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 622a6d0825d9f50fda6abc5b50625190b9e9da966c9fb8b1352f5d3818794bf1
MD5 a7d01f699ffe3046fccc4d146037e6cf
BLAKE2b-256 945b3bcef4313eb75be3fad47e403ce3b13cd766052e494f4d38def8d36b834d

See more details on using hashes here.

File details

Details for the file quibbler-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: quibbler-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.24

File hashes

Hashes for quibbler-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0477b6428e3d9d6c2f5c423ea913e0de2c234f8b59ba199684575c1b0dc9a85a
MD5 0a4db96c8435f70f6a6e8d4e41026158
BLAKE2b-256 27f11c43363a2bfaa707e180c3c0139a39b1a4a2eff22626736c081288681835

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page