Repository navigation
Add development principles to AGENTS.md - #4547
Draft
peterschmidt85 wants to merge 3 commits into
Draft
peterschmidt85 wants to merge 3 commits into
peterschmidt85 wants to merge 3 commits into
Conversation
jvstme
reviewed
Nov 27, 2026
| 1. When it comes to implementation, simplicity is a priority. Aim for the simplest and smallest solutions where possible. | ||
| 2. The repo has very strong conventions over how code and documentation are written. This includes design approaches, interface approaches, models, level of verbosity, etc. | ||
| 3. When it comes to documentation or comments, we always aim for a minimal but very clear and explicit style. Explicitness doesn't mean verbosity or a "defensive approach". Specifics mean explaining the main point simply and clearly - focusing on the main point, what, why, etc. | ||
| 4. If the contract of a method or a class is unclear from the code, it must be documented, but the documentation's purpose is not verbosity or repeating the obvious but explaining the context of the contract: who invokes this and why, and what is special about this method or class, etc. Simple and clear inline comments are also helpful, especially if they are implementation-specific (not contract-specific). |
Collaborator
There was a problem hiding this comment.
who invokes this and why
I find such comments somewhat annoying. When adding or removing callers, these comments either get out of sync or require changes. Finding the list of callers is trivial, so I think it's almost never necessary to reference them in comments or docstrings.
I believe the docstring should only describe the contract itself, not who uses it.
peterschmidt85
marked this pull request as draft
November 27, 2026 10:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add development principles to
AGENTS.mdto ensure agents follow dstack conventions when making changes, including codebase size, contracts and interfaces, design simplicity, types, tests, and documentation.Require explicit escalation of design or implementation issues and exceptions to conventions, while keeping improvements scoped to the changes.