Skip to content

About

Global instructions for my AI chat clients and coding agents, built from shared fragments and checked by a linter.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

agent-instructions: global rules for my AI chat clients and coding agents, kept as code

Lint License Last commit

These are the global instructions I give to my AI chat clients and coding agents: how to talk to me, how to write code for me, and when to stop and ask. They are personal preferences, kept in one place so every client gets the same rules and every change goes through review.

You probably arrived here by accident. You are welcome to read, copy, and adapt anything.

What is here

Client File Goes to
ChatGPT chatgpt/astra-6-2.md Custom instructions
Claude claude-chat/fable-5-2.md User preferences
Gemini app gemini/gemini-4.md Instructions for Gemini
Claude Code claude-code/fable-5-2.md ~/.claude/CLAUDE.md
Codex codex/gpt-6-2.md ~/.codex/AGENTS.md
Antigravity antigravity/gemini-4.md ~/.gemini/GEMINI.md
Pi pi/all-models.md ~/.pi/agent/AGENTS.md
OpenCode opencode/all-models.md ~/.config/opencode/AGENTS.md

Install

setup.sh installs the files for the coding agents it finds on your machine, in the directories those agents actually read, and leaves the chat clients to be pasted by hand:

curl -fsSL https://raw.githubusercontent.com/nervouna/agent-instructions/main/setup.sh | bash

To install for one agent only, name it with --agent (claude-code, codex, opencode, pi, or antigravity):

curl -fsSL https://raw.githubusercontent.com/nervouna/agent-instructions/main/setup.sh | bash -s -- --agent pi

To see which installed files differ from main, and how, without changing anything, add --check:

curl -fsSL https://raw.githubusercontent.com/nervouna/agent-instructions/main/setup.sh | bash -s -- --check

How it works

  • Each file above is generated. Its source lives under src/, and paragraphs used by several clients live once under shared/.
  • notes/ records why each rule exists: what was read or observed, and what a client refused to accept.
  • A linter checks formatting, stale output, and missing notes on every pull request.
python3 scripts/build.py
python3 scripts/lint.py

The full conventions are in AGENTS.md, which is written for the agents that maintain this repository.

License

MIT

About

Global instructions for my AI chat clients and coding agents, built from shared fragments and checked by a linter.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages