Agent MD Refactor

0•

Refactors monolithic agent instruction files into an organized, linked documentation system using progressive disclosure principles.

Agent MD Refactor is designed to optimize the context window and instruction clarity for AI agents by breaking down bloated configuration files like CLAUDE.md or AGENTS.md. It analyzes existing instructions to identify contradictions, extracts core project essentials for a minimal root file, and categorizes detailed guidelines—such as TypeScript patterns, testing protocols, and architectural rules—into separate, linked files. This approach ensures your AI agent remains focused on critical task information while accessing specific domain knowledge only when necessary, significantly reducing token waste and improving instruction adherence.

Key Features

01Identifies and resolves contradictory style or workflow instructions.
02Categorizes instructions into modular, self-contained files (e.g., testing.md, code-style.md).
03Generates a standardized file hierarchy for improved documentation maintainability.
04Extracts essential project metadata for a minimal, high-impact root file.
05Prunes redundant, vague, or default AI behaviors to save context tokens.
060 GitHub stars

Use Cases

01Standardizing instruction sets across multiple repositories to ensure consistent agent behavior.
02Cleaning up a multi-hundred-line CLAUDE.md file that has become difficult for the AI to navigate.
03Optimizing context token usage by moving non-essential guidelines to linked sub-files.