Personal General Global AGENTS.md ― A universal agent instruction file for AI coding agents.
This repository provides AGENTS.gg.md, my personal agent instruction file that offers consistent guidelines and preferences for AI coding agents (like Codex, Claude Code, Cursor, Windsurf, etc.) across all my projects and tools.
By maintaining a single, centralized instruction file, I ensure that AI assistants understand my development workflow, coding standards, and safety practices regardless of which project I'm working on.
🚧 Documentation in progress
📝 Coming soon
-
Clone this repository, then
cd /path/to/gg-agents.md -
Run the setup script:
./scripts/setup.shThe script will:
- Create symlinks from each AI agent's global instruction file to
AGENTS.gg.md - Backup any existing instruction files to
bak/<service>/before overwriting
| Service | Global Instruction Path | Symlink Target |
|---|---|---|
| Codex | ~/.codex/AGENTS.md |
AGENTS.gg.md |
| Claude Code | ~/.claude/CLAUDE.md |
AGENTS.gg.md |
If you prefer manual setup, create symlinks yourself:
# Codex
ln -s /path/to/gg-agents.md/AGENTS.gg.md ~/.codex/AGENTS.md
# Claude Code
ln -s /path/to/gg-agents.md/AGENTS.gg.md ~/.claude/CLAUDE.mdFeel free to fork this repository and customize the AGENTS.gg.md file to match your own preferences.
.
├── AGENTS.gg.md # Main deliverable: agent's global instruction file (symlink source)
├── AGENTS.md # Repository-local agent instructions (not for distribution)
├── LICENSE # MIT License
├── README.md # This file
├── scripts/
│ └── setup.sh # Symlink setup script
└── bak/ # Backup directory (created by setup.sh)
└── <service>/ # Per-service backup directories
This is a personal configuration repository.
While I'm not actively seeking contributions at this time, feel free to open an issue if you have suggestions or ideas!
MIT License - see LICENSE file for details.
Primarily intended for:
- Codex - OpenAI's agent-style coding tool
May be adaptable for:
- Claude Code - Anthropic's coding-focused assistant
- Cursor - AI-powered code editor
- Windsurf - AI-native IDE from Codeium
- Other tools that support AGENTS.md or similar instruction files
Different services label their instruction systems differently. In this repository, "agent instruction file" refers to file-based, project- or user-scoped instructions.
- Codex: "instructions" in
AGENTS.md - Claude Code: "memory" in
CLAUDE.md - GitHub Copilot: "custom instructions" / "agent instructions" via
AGENTS.mdand.github/*
Made with 🤖 for better AI-assisted development