# Repository Briefing: iamfakeguru/agent-md
> Source: https://repoforai.com/repo/iamfakeguru/agent-md (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/iamfakeguru/agent-md
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Shell
- **License**: MIT
- **Engineering Health**: B+ (65/100 · Maintenance 20/35 · Adoption 19/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI
- **Momentum**: 965 ★ total (+0 24h / +1 7d) · 185 forks
- **When to Use**: Best for: Teams using multiple coding agents in one repository that want shared rules, durable task handoffs, and local verification alongside CI. Skip if: You need an MCP endpoint, a security sandbox, or identical enforcement across all coding agents.

## Overview
```text
### Architecture & Core Mechanics
`agent-md` is a Shell CLI that installs policy and verification machinery into a project checkout, not an MCP server. `install.sh` lays down host-specific rules, hooks, helper scripts, and handoff files. `AGENT.md` is the canonical policy: Claude Code imports it through a thin `CLAUDE.md` wrapper, while Codex, Cursor, and Windsurf receive inlined copies in their own rule formats. The wrapper avoids presenting Claude Code with two identical files that its `/init` workflow could deduplicate incorrectly.

Enforcement runs as local scripts on host-exposed events. Claude Code and Codex have distinct hook entry points under `.claude/hooks/` and `.codex/hooks/`, while `.githooks/pre-commit` offers an optional commit-time fallback. Helpers in `.agent-md/bin/` are callable from any agent; `.agents/skills/` is a separate Codex-native integration. The `memory/` Markdown files carry project context, plans, progress, acceptance criteria, and known pitfalls across sessions without a hosted state service.

### Key Capabilities & Differentiators
`agent-md.toml` can define project-specific type-check, lint, test, and per-file lint commands. On completion, Claude Code can hard-block when required checks fail or when source files changed without an update to `memory/progress.md`. Codex uses its stop hook to request continuation for those conditions. Claude Code and Codex also have pre-execution guards for destructive Bash commands; Cursor and Windsurf receive no equivalent native runtime guard from this toolkit.

Visual checks are advisory by default. On the supported hook paths, `[visual].required = true` requires a fresh, non-empty evidence note with the required fields and a filename reference to a fresh, non-empty image. The Playwright helper captures screenshots; the hook checks the evidence format and freshness, not visual correctness. If no verification commands are detected, completion is allowed with an unverified warning rather than treated as a verified pass.

### Trade-offs & Limitations
Compared with maintaining native rule files separately, this setup adds a canonical policy, a defined place for session handoffs, and reusable verification hooks. The trade-off is that only Claude Code imports the canonical file directly: hosts with inlined rules need a way to keep their copies in sync. For one agent and a short policy, a native rule file plus existing CI may be simpler to maintain.

Compared with CI-only checks, local hooks give earlier feedback, but enforcement varies by client and event. Codex hooks are experimental, Cursor and Windsurf rely on advisory rules and an optional commit-time fallback, and local Git hooks are bypassable. Destructive-command checks are guardrails, not sandboxing. Keep mandatory gates in centrally enforced CI and treat progress notes and screenshot artifacts as review inputs, not proof of implementation quality.

### Hardware & Deployment Guide
Run `./install.sh .` from a reviewed local copy, or use `--agent=claude` or `--agent=codex,cursor` to narrow the install. Claude Code, Codex, Cursor, and Windsurf are included by default. The installer backs up existing top-level rule files and preserves `memory/*.md`. It skips an existing `.claude/settings.json` by default, so teams relying on Claude hooks should verify registration and deliberately choose merge or replace if needed. Codex requires `[features]` with `codex_hooks = true` in `~/.codex/config.toml`.

The installed toolkit runs locally through Shell scripts without a separate service, database, or GPU. Provision the tools invoked by your verification commands and add Playwright tooling if you use screenshot capture. For reproducible rollout, review and pin the installer to a commit rather than piping the moving `main` branch into Bash. No release is listed, so there is no release milestone to use as a rollout baseline. CI runs Bats, ShellCheck, JSON validation, alias-sync checks, and installer smoke tests.
```

## Key Capabilities
```text
- Policy distribution: `AGENT.md` is imported by Claude Code and inlined for Codex, Cursor, and Windsurf.
- Host-specific enforcement: Claude Code can hard-block completion; Codex can request continuation through an experimental stop hook.
- Deterministic verification: `agent-md.toml` accepts explicit type-check, lint, test, and per-file lint commands.
- Durable handoff: `memory/progress.md` is checked when source files change, and the installer preserves existing `memory/*.md` files.
- Visual evidence: strict checks require a fresh, non-empty Markdown note with required fields and a filename reference to a fresh, non-empty image.
- Installer safeguards: existing top-level rule files are backed up, and existing Claude settings are skipped by default.
```

## Quick Start / Clone
```bash
# From inside your project directory
curl -sL https://raw.githubusercontent.com/iamfakeguru/agent-md/main/install.sh | bash
```
