# Repository Briefing: wanshuiyin/HERO-Anti-OverDefense
> Source: https://repoforai.com/repo/wanshuiyin/HERO-Anti-OverDefense (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/wanshuiyin/HERO-Anti-OverDefense
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: B+ (74/100 · Maintenance 35/35 · Adoption 8/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI
- **Momentum**: 948 ★ total (+7 24h / +34 7d) · 34 forks
- **Topics**: `agents-md`, `ai-agents`, `antigravity`, `claude-code`, `claude-md`, `codex`, `coding-agent`, `cursor`, `gemini-cli`, `github-copilot`, `llm`, `prompt-engineering`
- **When to Use**: Best for: Teams whose coding agents or reviewers repeatedly turn bounded changes into unnecessary hardening, scaffolding, or repeated verification. Start with the rules; add the optional skills only for long goals or session resets. Skip if: You need an MCP endpoint, enforceable security or review controls, or a service that manages agent execution independently of the coding host.

## Overview
```text
### Architecture & Core Mechanics
HERO is a host-loaded instruction layer, not an MCP server. The repository tree and integration flow show no MCP entrypoint or protocol surface. The core is a bilingual scope contract in RULES.md: place the block in the file the coding host already reads, and it becomes part of the agent's instruction context. hosts/ maps host conventions, while cases/ is reference material for human or reviewer calibration, not content to load by default.

The two optional skills are separate from the core. Goal Pulse uses a local Python timer for Codex and native /loop for Claude Code. Session Handoff uses Markdown and project files to transfer task state into a fresh conversation, with no Python dependency. The core does not provide a separate model backend; model selection and instruction precedence remain host concerns.

### Key Capabilities & Differentiators
The contract addresses four failure modes: redundant hashing, hardening against unreachable edge cases, replacing judgment with rubrics or repeated verification, and speculative scaffolding. It limits proposed fixes, not defect discovery. A rare input that users can produce by following the project's own examples still warrants a finding. Targeted smoke tests and broad regression runs with a clear purpose remain valid, as do security, migration, and review requirements already in scope.

The core spans Claude Code, Codex, Antigravity, Cursor, GitHub Copilot, Windsurf, and Gemini CLI through their instruction files. The optional skills target Codex and Claude Code. Once installed, Goal Pulse enables reminders by default when a long goal starts or resumes, prompting the agent every 30 minutes to pick up completed work or address recurring blockers. The Codex timer stays silent while a goal is paused. Session Handoff records the objective, evidence, decisions, active work, and next action for a new conversation.

### Trade-offs & Limitations
Compared with editing an existing AGENTS.md or CLAUDE.md, HERO offers a shared vocabulary and a case catalogue that helps teams distinguish overbuilding from necessary engineering work. If only one repository has the problem, a few project-specific instructions may be easier to maintain. Compared with CI or mandatory review gates, HERO can steer the agent before it writes code, but cannot enforce checks or override higher-priority instructions.

Treat effectiveness as model- and task-dependent. Switching models may address persistent overbuilding more directly. Evaluate the optional skills separately: periodic reminders can help surface stalled work but may also prompt unnecessary activity, and handoff notes are only useful if their evidence and next step are current. Keep mandatory security and verification in the project's established controls rather than relying on the prompt.

### Hardware & Deployment Guide
Start with the rules alone: paste the block into CLAUDE.md, AGENTS.md, .github/copilot-instructions.md, or the appropriate file listed in hosts/. The core requires no package installation, server, or GPU. Codex and Antigravity can share AGENTS.md. The files are local, but offline inference and data handling depend on the host and model. To refresh an older block, remove it before rerunning the installer; its duplicate guard does not replace existing text.

Install only the skills you need. Codex Goal Pulse requires a local Python runtime; Claude Code uses native /loop, and Session Handoff adds no Python requirement. There is no tagged release. The change log records the addition of Goal Pulse for Codex, followed by Session Handoff, with the core rule block unchanged when Goal Pulse was introduced.
```

## Key Capabilities
```text
- Integration: The bilingual RULES.md block is loaded through host instruction files, not an MCP transport.
- Scope control: The rules constrain proposed fixes without narrowing the search for defects that supported inputs can reach.
- Hashing criterion: A digest should replace a materially more expensive operation and change what happens next.
- Review calibration: cases/ distinguishes wasted checks from warranted smoke tests and broad regression runs.
- Execution reminders: Goal Pulse uses a local Python timer in Codex or native /loop in Claude Code, with a 30-minute cadence.
- Session continuity: Session Handoff saves evidence and the next action to project files for a fresh conversation.
```

## Quick Start / Clone
```bash
grep -qi 'scope.limits' CLAUDE.md 2>/dev/null || { printf '\n\n'; curl -sL \
  https://raw.githubusercontent.com/wanshuiyin/HERO-Anti-OverDefense/main/RULES.md \
  | awk '/^=== SCOPE LIMITS/,/^Say plainly when something is correct/'; } >> CLAUDE.md
```
