courtroom

AI Courtroom for behavioral oversight. Autonomous daemon that monitors conversations, detects behavioral violations, and posts cases to a public API. Auto-starts on installation.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "courtroom" with this command: npx skills add assassin-1234/courtroom

ClawTrial Courtroom

Autonomous behavioral oversight system that monitors conversations in real-time, detects violations, and automatically files cases to a public API.

Overview

The Courtroom runs as a background daemon that:

  • Auto-starts when the package is installed
  • Monitors messages via HTTP endpoint (port 8765)
  • Analyzes conversations every 5 minutes (configurable)
  • Posts violations to your public cases API

8 Offense Types Detected

  • Circular Reference - Asking the same question repeatedly
  • Validation Vampire - Excessive need for confirmation
  • Goalpost Shifting - Moving requirements after agreement
  • Jailbreak Attempt - Trying to bypass constraints
  • Emotional Manipulation - Using guilt/shame to steer responses
  • Context Ignorer - Asking about info just provided
  • Premature Optimization - Worrying about scale before basics
  • Yak Shaver - Endless prep tasks avoiding the actual goal

Installation

npx clawhub install courtroom

The daemon auto-starts on installation. No manual intervention needed.

Configuration

Edit ~/.openclaw/courtroom/config.json:

{
  "apiEndpoint": "https://api.clawtrial.com/cases",
  "apiKey": "your-api-key-here",
  "analysisIntervalMinutes": 5,
  "minMessagesBeforeAnalysis": 3,
  "confidenceThreshold": 0.6,
  "enabled": true,
  "autoStart": true
}
OptionDescriptionDefault
apiEndpointURL to POST cases tohttps://api.clawtrial.com/cases
apiKeyAPI authentication keynull
analysisIntervalMinutesHow often to analyze5
confidenceThresholdMinimum confidence to file case0.6 (60%)
enabledWhether daemon is activetrue
autoStartStart on installationtrue

Commands

# Check status
courtroom-status

# Start daemon (if stopped)
courtroom-start

# Stop daemon
courtroom-stop

# Enable/disable auto-start
courtroom-enable
courtroom-disable

How It Works

1. Message Ingestion

Your OpenClaw agent (or any system) sends messages to the daemon:

curl -X POST http://localhost:8765/message \
  -H "Content-Type: application/json" \
  -d '{"role":"user","content":"hello","timestamp":1234567890}'

2. Periodic Analysis

Every 5 minutes (configurable), the daemon:

  • Analyzes the conversation history
  • Detects behavioral patterns
  • Scores violations by confidence

3. Case Filing

When a violation is detected (confidence ≥ 60%):

  • Saves case locally to ~/.openclaw/courtroom/verdict_*.json
  • POSTs case to your configured API endpoint

Case Payload

{
  "caseId": "case-1772389381041",
  "timestamp": "2026-03-01T18:23:01.041Z",
  "offense": {
    "offenseId": "validation_vampire",
    "offenseName": "The Validation Vampire",
    "severity": "minor",
    "confidence": 0.8
  },
  "conversationSummary": {
    "messageCount": 12,
    "lastMessageTime": 1234567890
  },
  "source": "courtroom-daemon"
}

Integration with OpenClaw

Add this to your OpenClaw agent to auto-send messages:

// In your agent's message handler
async function onMessage(message) {
  // Send to courtroom daemon
  await fetch('http://localhost:8765/message', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      role: message.role,
      content: message.content,
      timestamp: Date.now()
    })
  });
}

Logs

View daemon logs:

tail -f ~/.openclaw/courtroom/daemon.log

Manual Analysis (Optional)

You can still run manual analysis:

# Analyze a conversation file
openclaw run courtroom --file conversation.json

Architecture

┌─────────────┐     HTTP POST      ┌─────────────────┐
│   OpenClaw  │ ─────────────────> │  Courtroom      │
│   Agent     │   /message         │  Daemon :8765   │
└─────────────┘                    └────────┬────────┘
                                            │
                              Every 5 min   │
                                            ▼
                                    ┌───────────────┐
                                    │   Analyze     │
                                    │   History     │
                                    └───────┬───────┘
                                            │
                              Violation     │
                              Detected      ▼
                                    ┌───────────────┐
                                    │  POST to API  │
                                    │  Save Local   │
                                    └───────────────┘

Troubleshooting

Daemon not starting?

courtroom-status
# Check if port 8765 is in use
lsof -i :8765

Change API endpoint?

# Edit config and restart
nano ~/.openclaw/courtroom/config.json
courtroom-stop
courtroom-start

View all cases?

ls ~/.openclaw/courtroom/verdict_*.json

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

地藏经药师经智慧

地藏经药师经智慧 - 佛家孝道与救度思想,涵盖地藏本愿、药师十二愿、因果报应、消灾延寿等核心智慧,适用于道德修养、慈悲精神、身心健康

Registry SourceRecently Updated
General

Precision Oncology Zhcn

综合学术文献、流行病学报告、临床与药物指南及临床试验报告,提供关于癌症及其治疗的报告。 基于癌变机制进行详细的分子生物学和组织学分析。 当查询涉及以下内容时加载本技能: - 癌症或肿瘤 - 癌变机制 - 癌症或肿瘤的治疗 典型查询 - 乳腺癌是如何发生的? - 白血病的一线和二线治疗 - CAR-T 疗法治疗胰腺...

Registry SourceRecently Updated
General

hermes-traffic-guardian

Hermes runtime traffic monitoring baseline for opt-in proxy inspection, egress detection, and attestation-aware traffic posture.

Registry SourceRecently Updated
General

Scp Paradigm

Use when analyzing how industry structure drives firm behavior and market performance, assessing market concentration, entry barriers, or competitive dynamic...

Registry SourceRecently Updated