Skip to content

Commit 83dff3c

Browse files
Thomas TupperThomas Tupper
authored andcommitted
docs: make AGENTS.md canonical across agent toolchains
1 parent 905d7b2 commit 83dff3c

6 files changed

Lines changed: 66 additions & 20 deletions

File tree

.cursor/rules/00-read-agents.mdc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
description: Always read AGENTS.md first
3+
globs:
4+
- "**/*"
5+
alwaysApply: true
6+
---
7+
- Read `AGENTS.md` before making or suggesting changes.
8+
- Treat `AGENTS.md` as canonical over other instruction files.

.github/copilot-instructions.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# GitHub Copilot Instructions
1+
# Copilot Instructions
22

3-
This repo packages deployment topology.
4-
- Favor explicit compose config over magic.
5-
- Keep commands copy/paste safe.
6-
- Update docs whenever compose behavior changes.
3+
Canonical project rules are in `AGENTS.md`.
4+
5+
When proposing code:
6+
- follow `AGENTS.md` constraints
7+
- preserve contract stability
8+
- update tests/docs with behavior changes

AGENTS.md

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,39 @@
1-
# Agent Instructions (foxmemory-deploy)
1+
# AGENTS.md
22

3-
## Priority
4-
1. Keep deployment examples reproducible.
5-
2. Keep one-node and split modes both functional.
6-
3. Document all env vars and defaults.
3+
This is the **canonical automation guide** for this repository.
74

8-
## Rules
9-
- Never hardcode private credentials.
10-
- Keep compose files minimal and explicit.
11-
- Update README + runbook when topology changes.
5+
## Read order (required)
6+
1. Read this `AGENTS.md` first.
7+
2. Read `README.md` for product context.
8+
3. Read `docs/*` relevant to the files you are changing.
9+
10+
All tool-specific instruction files (Claude/Codex/Copilot/Cursor) are thin pointers to this file.
11+
12+
## Core rules
13+
- Keep changes small, testable, and documented.
14+
- Preserve API/deploy contracts unless intentionally versioned.
15+
- Update docs and tests whenever behavior changes.
16+
- Never commit secrets.
17+
18+
## Repository-specific constraints
19+
20+
### foxmemory-infer
21+
- Scope: inference only (stateless embeddings service).
22+
- Do **not** add persistence/storage logic here.
23+
- Keep `/health` and `/embed` stable.
24+
25+
### foxmemory-store
26+
- Scope: memory write/search and persistence APIs.
27+
- Do **not** add embedding inference logic here.
28+
- Keep backend adapters replaceable.
29+
30+
### foxmemory-deploy
31+
- Scope: reproducible deployment topology and runbooks.
32+
- Keep one-node and split-mode examples current.
33+
- Keep compose files explicit and copy/paste safe.
34+
35+
## PR checklist
36+
- [ ] Scope boundaries respected
37+
- [ ] Tests updated/passing
38+
- [ ] Docs updated
39+
- [ ] No secrets or local artifacts committed

CLAUDE.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# CLAUDE.md
22

3-
- Read `AGENTS.md` first.
4-
- Validate compose syntax before committing.
5-
- Keep docs aligned with actual files/commands.
3+
Primary instructions live in `AGENTS.md`.
4+
5+
Before making changes:
6+
1. Read `AGENTS.md`
7+
2. Follow its rules and PR checklist

CODEX.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# CODEX.md
22

3-
- Preserve reproducible deployment commands.
4-
- Keep one-node and split compose files in sync with docs.
5-
- Avoid hidden assumptions about host paths/secrets.
3+
Primary instructions live in `AGENTS.md`.
4+
5+
Before making changes:
6+
1. Read `AGENTS.md`
7+
2. Follow its rules and PR checklist

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ curl -s http://localhost:8082/health
3232
## Notes
3333
- Current images default to GHCR references.
3434
- Can be switched to Docker Hub tags once registry workflow is updated.
35+
## Automation note
36+
Agent tooling should read `AGENTS.md` first.
37+
If your tool supports custom instruction files, point it to `AGENTS.md` as the canonical source.
38+

0 commit comments

Comments
 (0)