summaryrefslogtreecommitdiffhomepage
path: root/AGENTS.md
diff options
context:
space:
mode:
authorDax <[email protected]>2026-03-03 22:14:28 -0500
committerGitHub <[email protected]>2026-03-03 22:14:28 -0500
commit3ebebe0a96de5ec4757de12a21cb9f933e0fbba0 (patch)
tree7c56cbf1d556dbe3261501399a816d0fb8e7b00b /AGENTS.md
parent2a0be8316be7ae6ec78f5d221851fc1cc0cdddb2 (diff)
downloadopencode-3ebebe0a96de5ec4757de12a21cb9f933e0fbba0.tar.gz
opencode-3ebebe0a96de5ec4757de12a21cb9f933e0fbba0.zip
fix(process): prevent orphaned opencode subprocesses on shutdown (#15924)
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 758714d10..2158d73af 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -20,6 +20,17 @@
Prefer single word names for variables and functions. Only use multiple words if necessary.
+### Naming Enforcement (Read This)
+
+THIS RULE IS MANDATORY FOR AGENT WRITTEN CODE.
+
+- Use single word names by default for new locals, params, and helper functions.
+- Multi-word names are allowed only when a single word would be unclear or ambiguous.
+- Do not introduce new camelCase compounds when a short single-word alternative is clear.
+- Before finishing edits, review touched lines and shorten newly introduced identifiers where possible.
+- Good short names to prefer: `pid`, `cfg`, `err`, `opts`, `dir`, `root`, `child`, `state`, `timeout`.
+- Examples to avoid unless truly required: `inputPID`, `existingClient`, `connectTimeout`, `workerPath`.
+
```ts
// Good
const foo = 1