Purpose
aicfg is a command-line tool for the AGENTS.md ecosystem, with the goal of solving the problem of scattered configuration across AI programming tools. Each AI programming tool has its own configuration format (such as CLAUDE.md, .cursorrules, copilot-instructions.md, GEMINI.md), and maintaining them separately easily leads to outdated rules, contradictory instructions, and deviations caused by copy-pasting. aicfg's approach is to make AGENTS.md the single source of truth, turning each tool-specific configuration file into a short shim file that points to AGENTS.md, achieving "edit once, effective everywhere."
Main capabilities
- init: Detects the project tech stack and generates AGENTS.md as well as tool-specific shim files (CLAUDE.md, .cursorrules, GEMINI.md, .github/copilot-instructions.md, etc.). Supports 10 tech stacks: go, rust, node-express, nextjs-typescript, python-fastapi, monorepo, microservices, fullstack-nextjs, enterprise-python, ci-cd-integration, team-sharing. It will not overwrite an existing AGENTS.md or README.
- shim generation: Can generate missing shim files based on an existing AGENTS.md, and is safe to run on existing projects without overwriting existing files.
- validate: Checks the quality of AGENTS.md against best practices, including project overview, build commands, coding style, scope boundaries, error handling, testing, security, Git workflow, and whether the content length is sufficient.
- Full configuration audit: Performs an overall audit of AGENTS.md and all shim files.
- Codebase context packaging: Packages codebase context for AI use.
Usage
The basic command is:aicfg init [stack], where stack is the tech stack name. init generates the complete agent rules (AGENTS.md, as the single source of truth), as well as several shim files: CLAUDE.md, .cursorrules, GEMINI.md, .github/copilot-instructions.md. The content of these shim files points to "Read AGENTS.md".
The repository also provides an in-browser trial entry point: you can select a tech stack in the browser and preview the generated AGENTS.md and shim files without installing anything.
Use cases
- Teams or individuals using the same set of rules across multiple AI programming tools and wanting to maintain them in a unified way.
- Projects that already use AGENTS.md and need to quickly add shim configurations for newly added tools.
- Need to check whether AGENTS.md conforms to best practices, or perform an overall audit of all configuration files.
Background and limitations
AGENTS.md is an open standard for AI agent configuration managed by the Linux Foundation, supported by more than 20 AI programming tools including Claude Code, Cursor, GitHub Copilot, OpenAI Codex, Gemini CLI, Windsurf, Devin, Aider, and others. The material mentions a Princeton study (OpenAI Codex, across 10 repositories / 124 merged PRs) that measured: when AGENTS.md is present, median runtime decreases by 28.6% and median tokens decrease by 16.6%, because agents no longer need to explore the directory structure or guess build/test commands. Currently, more than 60,000 GitHub repositories include this file.
aicfg itself is also configured using aicfg init. The tool is released under the MIT license and is permanently free. Installation commands, the full list of supported tools, and details of the latest features are not yet provided in the material.