What problem does it solve?
Prevents AI coding agents from expanding scope, adding unrequested abstractions, or changing files the user did not ask to modify, ensuring small, reviewable diffs and avoiding over-engineering.
Core Features & Use Cases
- Scope enforcement: Limits edits strictly to user-specified files and lines, asking for confirmation before touching anything else.
- Minimal-change preference: Prioritizes the simplest viable change (one-line or one-function fixes) and reuses existing code instead of introducing new abstractions or dependencies.
- Intervention levels: Detects and classifies diffs into L1–L4 severity levels with prescribed actions (self-revert, course correction, scope reset, emergency brake).
- Use case: A developer asks an AI to fix a single bug; Moyu ensures the agent produces the minimal patch without refactoring unrelated modules, adding libraries, or creating new files.
Quick Start
Ask the AI to fix the specified bug and instruct it to "apply moyu: only change the files and lines I specify; ask before any other edits."