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.1.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.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quibbler-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1eefe0a3bf61730c26f5a4b9b45c567a56f7dfe02ba10c2911a113e2c8f46dfc
MD5 eefda2c74e813db0f02681e2d1fdb14f
BLAKE2b-256 3b709e9f0cf0bad8ab6cc714483d2829aafcfa59c7c7a4b5f53dbbc46310d30a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quibbler-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9725c8f4747ab3197f5780a1e3e5c89d903b48faf5f118705111a1811c4c106b
MD5 df4bf51040ea62952485593f7c20c6a6
BLAKE2b-256 3006935ec50da11ee6cca145f04114f0c5bf4485ff904bb0797ac58a8a2c859c

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