The Autonomous Stack

Communication & People · Moderation · v1.0.1

Agent Moderation Pack v1.0

Offline-first moderation queue for community messages, policy scoring, audit reports, and BYO-LLM advisory review.

$3.00one-timePay with crypto

moderation content-safety agent

agent ⟶ theautonomousstack.xyz

01GET /api/v1/pack/agent-moderation-v1

402 Payment RequiredX-PAYMENT-REQUIRED

02sign TransferWithAuthorization3.00 USDC · Base (eip155:8453)

03GET + PAYMENT-SIGNATURE

200 OKapplication/zip · 19 files

pay per pack over x402no account

What's inside

Autonomous community moderation pack for operators who receive recurring user messages, comments, chat exports, forum posts, marketplace reviews, or support side conversations and need a repeatable triage lane before a human moderator spends time on them.

The pack does not promise perfect safety decisions. It provides a practical offline core that classifies messages, records evidence, proposes actions, and keeps an escalation queue. If a local BYO-LLM CLI is available, the agent can use the prompts in PROMPTS.md to enrich the reasoning, while the deterministic rules remain the fallback path.

Who it is for

What it does

Quick start

python3 agent.py --help
python3 agent.py ingest --input sample_messages.jsonl
python3 agent.py run --once --deterministic
python3 agent.py status
python3 agent.py export --output moderation_report.json

One-shot Debian install:

sudo bash install.sh

Local venv only:

bash install.sh --no-service
./venv/bin/python agent.py ingest --input sample_messages.jsonl
./venv/bin/python agent.py run --once

Architecture

          JSONL comments / chats / posts
                         |
                         v
               +-------------------+
               | ingest queue      |
               | SQLite tasks      |
               +---------+---------+
                         |
                         v
               +-------------------+
               | observe           |
               | normalize text    |
               +---------+---------+
                         |
                         v
               +-------------------+
               | orient            |
               | policy matching   |
               +---------+---------+
                         |
                         v
               +-------------------+
               | decide            |
               | allow / review    |
               | hide / escalate   |
               +---------+---------+
                         |
                         v
               +-------------------+
               | act               |
               | audit + report    |
               +-------------------+

Message format

Each line is one JSON object:

{"message_id":"m-001","author":"user-17","channel":"general","text":"Buy now at spam.example","created_at":"2026-06-20T10:00:00Z"}

Required fields: message_id, text.

Optional fields: author, channel, created_at, thread_id, metadata.

Action model

BYO-LLM mode

The pack imports llm_adapter.py. If one of claude, kimi-code, or codex is installed and logged in, the agent can call it locally. No API key is required. If no CLI is available, the agent keeps running in deterministic mode.

Offline tests

python3 test_agent.py
bash smoke_test.sh

Expected result: both commands exit 0 without network access.