iamfakeguru/agent-md
A Shell toolkit for shared coding-agent rules and repo-local verification
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
AGENT.md is imported by Claude Code and inlined for Codex, Cursor, and Windsurf.agent-md.toml accepts explicit type-check, lint, test, and per-file lint commands.memory/progress.md is checked when source files change, and the installer preserves existing memory/*.md files.Teams using multiple coding agents in one repository that want shared rules, durable task handoffs, and local verification alongside CI.
You need an MCP endpoint, a security sandbox, or identical enforcement across all coding agents.
Quick Start & Installation
# From inside your project directory curl -sL https://raw.githubusercontent.com/iamfakeguru/agent-md/main/install.sh | bash
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| agent-md ★ | 965 | +1 | Shell | MIT | A Shell toolkit for shared coding-agent rules and repo-local verification |
| skills | 338.7k | +4.4k | Shell | MIT | Composable Markdown skills that bring engineering workflows to coding agents |
| superpowers | 332.4k | +4.2k | Shell | MIT | A skills framework that gives coding agents a test-first development workflow |
| agency-agents | 173k | +2.3k | Shell | MIT | A Markdown agent library for deploying specialist roles across AI coding tools |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/iamfakeguru/agent-md.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about agent-md
Where do I edit shared rules, and how do agents pick them up?
AGENT.md as the canonical policy. Claude Code reads it through the @AGENT.md import in CLAUDE.md; Codex, Cursor, and Windsurf receive inlined rules in their respective formats. Check those copies after policy edits, and confirm that the host has loaded its hooks before treating any rule as enforced. There is no MCP endpoint to configure.What hardware do I need, and what adds runtime overhead?
Can we use it commercially and keep the toolkit local?
When is this preferable to native agent rules or CI-only enforcement?
agent-md when multiple agents need shared policy, durable handoffs, and local checks that give feedback before commit. Keep mandatory checks in CI or another centrally enforced system when they must apply to every contributor, regardless of client or local hook settings.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy