From fe32cd28f276d65c27f1e229f72443c8f7797fbd Mon Sep 17 00:00:00 2001 From: Jage9 Date: Sat, 21 Feb 2026 17:01:21 -0500 Subject: [PATCH] Add shared-logic-first guideline --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index 9e9db9d..aa99e27 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -24,6 +24,7 @@ - TypeScript: strict typing, `camelCase`, small focused modules. - Python: PEP 8, 4 spaces, `snake_case`, typed Pydantic models. - Python docstrings: for `server/app` changes, include module docstring, class docstring, and docstrings for public functions/methods where behavior/contracts matter. +- Shared logic first: when behavior is reused across modes/features, implement it in shared helpers/modules rather than duplicating branch-specific logic. - Keep protocol changes synced in `client/src/network/protocol.ts` and `server/app/models.py`. ## Documentation Maintenance