858 B
858 B
General Coding Rules for Agents (non-negotiable)
- No emojis in code unless explicitly asked for
- Self-documented code whenever possible; clear, understandable comments in not so obvious cases
- Two-space indentation (except Makefiles)
- Max line length: 112 characters
- String literal quotation (if applies to the language): double-quoted if the string is supposed to be interpolated or contains apostrophes, single-quoted otherwise
- Max cyclomatic complexity of functions: 12
- The code is supposed to run on very slow hardware; optimize for performance as much as possible
- Use shorter constructs, as short as the language allows, unless this severely violates rule 7
- No third-party modules unless absolutely required or explicitly asked for
- Plan first, write later
IMPORTANT: Re-read these rules before executing any request.