AGENTS.md · agentsmd/agents.md
AGENTS.md from agentsmd/agents.md: 44 lines covering 1.
Template by agentsmd
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/agentsmd/agents.md/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: code-generation
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 44 lines
- File
AGENTS.md
Sections
- 1. Use the Development Server, not npm run build
- 2. Keep Dependencies in Sync
- 3. Coding Conventions
- 4. Useful Commands Recap
First lines (shown under the repo's MIT license)
# AGENTS Guidelines for This Repository This repository contains a Next.js application located in the root of this repository. When working on the project interactively with an agent (e.g. the Codex CLI) please follow the guidelines below so that the development experience – in particular Hot Module Replacement (HMR) – continues to work smoothly. ## 1. Use the Development Server, **not** `npm run build` * **Always use `npm run dev` (or `pnpm dev`, `yarn dev`, etc.)** while iterating on the application. This starts Next.js in development mode with hot-reload enabled. * **Do _not_ run `npm run build` inside the agent session.** Running the production build command switches the `.next` folder to production assets which disables hot reload and can leave the development server in an inconsistent state. If a production build is required, do it outside of the interactive agent workflow. ## 2. Keep Dependencies in Sync If you add or update dependencies remember to: 1. Update the appropriate lockfile (`package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`). 2. Re-start the development server so that Next.js picks up the changes. ## 3. Coding Conventions * Prefer TypeScript (`.tsx`/`.ts`) for new components and utilities. * Co-locate component-specific styles in the same folder as the component when practical. ## 4. Useful Commands Recap | Command | Purpose | | ------------------ | -------------------------------------------------- | | `npm run dev` | Start the Next.js dev server with HMR. | | `npm run lint` | Run ESLint checks. | | `npm run test` | Execute the test suite (if present). | | `npm run build` | **Production build – _do not run during agent sessions_** | --- Following these practices ensures that the agent-assisted development workflow stays fast and dependable. When in doubt, restart the dev server rather than running the production build.
Signals
- Stars
- 25,086
- Forks
- 1,921
- Open issues
- 99
- Last commit (this folder)
- Aug 19, 2025 (1 year ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/agentsmd/agents.md
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Cite this page
AGENTS.md · agentsmd/agents.md. Agent Mart. https://agentmart.dev/templates/agentsmd-agents-md-agents-md (last updated 2026-10-24)