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.2.tar.gz (37.5 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.2-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for quibbler-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3af8056b5ba5fc5d805bc0fc6b25dda91884da5fa52a0589530046b56de3e6da
MD5 0e6afc5b2cfa7de583ccb852c2adea66
BLAKE2b-256 ad8559bf91f975ba0e1189d79a33effc501b9484afbd969083be6d29ae534053

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for quibbler-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3c45fc8eb3fdd3e74fb088654459c9b208b7ddf49432d0a2dbdb4c7124092b70
MD5 ac3356f1edc42b659a92217ce671d829
BLAKE2b-256 c608d3fea7162242b29e862a1aca814e8c22cdb2757b133d9f92bbc12657c4ff

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