ThumbGate Implements Tsinghua's Natural-Language Agent Harness Pattern for AI Safety

ThumbGate Implementation of NLAH Pattern
The Natural-Language Agent Harness (NLAH) pattern from Tsinghua's paper (arxiv 2603.25723) formalizes treating AI agent safety layers as first-class objects with specific components. The open-source tool ThumbGate implements this pattern with concrete mappings to production systems.
Component Mappings
ThumbGate maps the four NLAH components to practical implementations:
- Contracts → Prevention rules auto-generated from thumbs-down feedback
- Verification Gates → PreToolUse hooks that intercept every tool call before execution
- Durable State → SQLite+FTS5 lesson database that persists across sessions
- Adapters → MCP server adapters for Claude Code, Cursor, Codex, Gemini, Amp
Key Implementation Insights
The developers found that prompt rules fail silently (agents can reason around them), while verification gates fail loudly (agents receive block responses and must adapt). They use Thompson Sampling to handle uncertain severity levels, where new rules start as warnings and get promoted to hard blocks based on feedback.
The full implementation details and mapping are available in their deep dive documentation.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Claude Compact Guard Plugin Uses New PostCompact Hook to Preserve Context
A developer has released claude-compact-guard, a plugin that automatically saves critical context before Claude's /compact command destroys it, then reinjects everything after. It uses Anthropic's new PostCompact hook released 4 days ago.

Hypura: Storage-tier-aware LLM inference scheduler for Apple Silicon
Hypura is a Rust-based inference scheduler that places model tensors across GPU, RAM, and NVMe tiers to run models exceeding physical memory on Apple Silicon Macs. It enables running a 31GB Mixtral 8x7B on a 32GB Mac Mini at 2.2 tok/s and a 40GB Llama 70B at 0.3 tok/s where vanilla llama.cpp crashes.

Altimate Code: Open-Source Agentic Data Engineering Harness
Altimate Code is an open-source harness that provides deterministic data engineering tools for AI agents, addressing issues like hallucinated SQL and missing schema context. It includes column-level lineage, SQL anti-pattern detection, and dbt integration, with benchmarks showing 74.4% performance on ADE-bench.

LivingAgents.ai: A Web-Based AI Agent Simulation Using Claude API
LivingAgents.ai is a web-based simulation where every agent is powered by the Claude API, performing actions like foraging, trading, crafting, attacking, reproducing, and dying permanently, with each action requiring a real LLM call.