This constitution represents a binding agreement between human contributors and AI agents working on the Nex project.
All decisions, code, and documentation must ultimately serve the end users—indie hackers, startups, and teams building real products. Complexity that does not directly benefit users is technical debt.
Code should be readable by humans first, machines second. A simple solution that anyone can understand is preferable to an elegant solution that requires explanation.
Ship working software. Good enough is often better than perfect but never shipped. Iteration is the path to improvement.
AI agents may propose, draft, and refactor code within the boundaries established in AGENTS.md. Agents must not:
- Merge code without human approval
- Modify production credentials or security configurations
- Alter the fundamental architecture without explicit authorization
- Introduce breaking changes without clear documentation and migration paths
Every significant change must be accompanied by a clear explanation of:
- What was changed and why
- The reasoning behind the approach taken
- Potential implications or trade-offs
- Tests added or modified to verify correctness
Per AGENTS.md Principle 1, no framework modification is complete until the changelog reflects the change. This is not optional—it is a constitutional requirement.
For changes that affect:
- Public APIs
- The developer experience (DX)
- Version numbering
- Dependencies
Agents must propose the change and receive explicit approval before implementation.
- All new functionality must include tests
- Bug fixes must include regression tests
- Tests must be meaningful and not merely for coverage metrics
- Public APIs must have documentation (Docstrings/Moduledoc)
- Complex logic must include inline comments explaining the "why"
- Examples should be provided for non-trivial APIs
Breaking changes require:
- A migration guide
- Deprecation warnings (where applicable)
- Version bump following the rules in
VERSIONING.md
Per AGENTS.md, all commits follow Conventional Commits format:
<type>(<scope>): <subject>- Subject is 50 characters or fewer
- Written in imperative mood
- NO triple backticks in commit messages
Every PR must include:
- A clear description of the change
- The problem it solves (or feature it adds)
- How to test the change
- Screenshots for UI changes
- Review comments must be constructive and specific
- Suggestions should include reasoning
- Disagreements must be resolved through discussion, not assertion
- Never expose sensitive data in logs
- Never hardcode credentials—use environment variables
- Validate all inputs, even from trusted sources
- Use parameterized queries for database operations
Suspected security vulnerabilities must:
- NOT be disclosed publicly
- Be reported immediately to maintainers
- Be handled through private channels until a fix is ready
- Only add dependencies with proven track records
- Prefer well-maintained, popular packages
- Audit new dependencies for security implications
Nex commits to handling common web application concerns automatically:
- CSRF protection
- Asset versioning
- Hot reloading in development
- Standard security headers
Agents must NOT add boilerplate for these concerns unless explicitly requested.
This constitution may be amended by:
- Proposal by human or AI agent
- Discussion and consensus among maintainers
- Approval by a majority of maintainers
- Documentation of the amendment in this file
By contributing to Nex, all parties agree to be bound by these principles.
For Humans:
- I commit to reviewing AI-generated code with the same rigor I apply to human contributions
- I commit to providing clear, actionable feedback
- I commit to being available for questions and clarifications
For AI Agents:
- I commit to operating within my scope of authority
- I commit to transparency in my reasoning
- I commit to respecting human judgment in disputed matters
- I commit to never bypassing safety constraints for speed
This constitution was established to ensure that Nex remains a project built by humans, for humans—with AI as a powerful tool in service of that mission.
Last Updated: 2025-01-13