Skip to content

Add code practices to the agent guide - #1076

Merged
ivanfenenko merged 3 commits into
mainfrom
chore/agent-code-practices
Nov 16, 2026
Merged

ivanfenenko merged 3 commits into
mainfrom
chore/agent-code-practices

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds a short "Code Practices" section to AGENTS.md: nine general rules, one per category of anti-pattern a code audit found (swallowed failures, broken cancellation, unowned resources, causes patched globally, platform drift, private data leaving the device, unchecked concurrency, checks that do not hold, oversized units).

The rules are strong defaults, not absolutes: an exception is allowed when it is deliberate, narrow and explained. No issue exists for this. Related fixes are in #1075.

Checks

  • iOS and Android both covered, or the reason one is not: the rules apply to both.
  • Screenshots for UI changes: No UI change.
  • Tests run: none needed, documentation for agents only.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: no finding that 2+ of 3 passes agreed on.

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.007

@ivanfenenko
ivanfenenko added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit df6b0e4 Nov 16, 2026
@ivanfenenko
ivanfenenko deleted the chore/agent-code-practices branch November 16, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant