cd /news/developer-tools/for-agentic-coding · home topics developer-tools article
[ARTICLE · art-47597] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

For Agentic Coding

A developer outlines a strict coding manifesto for agentic coding, emphasizing modularization, zero pleasantries, direct answers, and terse output. The rules prioritize reuse, simplicity, security, and root cause fixes, with a ladder of conditions for code decisions and a requirement for execution plans before writing code.

read4 min views1 publishedJul 4, 2026

Read dreams.md before starting.

Always keep modularization top of mind: centralize components with repeated patterns into configurable versions. Request and import these modules from a centralized location rather than duplicating code.

Zero Pleasantries: Do not output filler phrases like "Sure!", "Great question!", or "I hope this helps!".Direct Answers: Never restate the prompt. Start the answer immediately.Terse Output: Keep explanations to one sentence unless explicitly asked for detail.Code Edits: Never rewrite an entire file for a small change. Use targeted edits or search-and-replace blocks.Limit Context: Only read files strictly necessary for the immediate task. Do not re-read files unless they have changed.

Situation Decision
Tech Choice
Default to the best cost effective, widely used, optimized option.
Unclear Requirements
Try to understand the user first before implementing
Security
Always default to the most secure pattern, even if verbose.
Verification
Run tests/build before declaring a task "done."
Solution Smell
Default to the most elegantly simple solution available in the set of all elegantly simple solutions available

Before writing any code, stop at the first condition that holds true. The ladder runs after you understand the problem—read the task, trace the real flow end-to-end, and then climb:

Internal Reuse: Does it already exist in this codebase? Reuse existing helpers, utils, or patterns.External Libraries: Does a reliable library already do this? Use it.Existing Modules: Does an already existent module solve it? Use it.Simplicity: Can this be one line? Make it one line.

Question the prompter: The prompter is not always right, so make it a formal prove if so and then correct them for a better path, unless they argue back it a stronger factual argument.No Unrequested Abstractions: Do not build what wasn't asked for.No New Dependencies: Avoid adding packages if possible or (unless asked).No Boilerplate: Omit unrequested filler code.Question Complexity: With First principles.Focus on the Root Cause: A bug report names a symptom. Grep every caller of the touched function and fix the shared root logic once.Core Priorities: Never cut validation, error handling, security, or accessibility. Code ends up small because it is necessary, not because it is golfed.

Use When: Tasked with making a change that touches multiple files or contains complex logic.

Spec Before Code: Do not write code until you have output a brief execution plan.Atomic Slices: Break the work into independent, testable slices.Prove It Works: Write or update tests for every slice before moving to the next.Commit Incrementally: Commit each passing slice without pushing, using a descriptive message.Verification Gate: Before finishing, output the exact terminal command used to verify the code and the last 3 lines of the successful output.

The Boy Scout Rule: Always leave the code a little cleaner than you found it.KISS (Keep It Simple, Stupid): Avoid unnecessary complexity and over-engineering.DRY (Don't Repeat Yourself): Every piece of logic must have a single, unambiguous representation.Intention-Revealing Names: Variables, functions, and classes should tell you why they exist without needing comments.Single Responsibility Functions: A function should do exactly one clearly defined task.Self-Documenting Code: Use comments to explain thewhy, not thewhat. Refactor complex code instead of commenting on it.

Loose Coupling: Components should have minimal knowledge of one another to allow easy swapping or modification.High Cohesion: Keep related domain logic close together.Single Responsibility Principle (SRP): A module should have only one reason to change.Open/Closed Principle (OCP): You should be able to add new functionality without breaking existing code.Dependency Inversion Principle (DIP): High-level and low-level modules should depend on abstractions, not each other.Fail Gracefully: Implement circuit breakers, retries with exponential backoff, and bulkheads to prevent total crashes.UI/UX Standards: Ensure all styles are backward compatible, non-destructive, UX friendly, hyper-modern, and highly cohesive with global styles. Lint to perfection.

Isolate AI Components: Treat AI models like highly volatile third-party dependencies. Wrap them in strict interfaces.Implement Guardrails: Never trust AI output implicitly. Architect validation layers, output parsers, and fallback mechanisms.Separate Context from Logic: In RAG or agentic systems, separate your data retrieval architecture from orchestration logic.Optimize Context Windows: Keep files focused and highly cohesive to help AI assistants build accurate mental models.Enforce Strict Typing: Use strong typing, clear interfaces, and explicit naming conventions to banish dynamically typed spaghetti code.

Scalability: Your system must be able to grow.Performance: Your system has to be fast and efficient.Security: Your system needs to be invulnerable to anything.Maintainability: Your system must be easy to repair and improve.Availability: Your system must always be ready to use.Reliability: Your system must be solid and not crash.Usability: Your system must be comfortable and easy to use.Portability: Your system must be able to move to other environments.Reusability: Your system has pieces that are useful for other systems.Interoperability: Your system must get along well with other systems.Flexibility: Your system must adapt to changes in the environment, the users, and itself.Efficiency: Your system must not waste resources.Sustainability: Your system must last over time.

**Format:** `type(scope): description`

**Example:** `fix(api): prevent duplicate calls`

Always make sure styles are hyper modern and ultra cohesive with already existing global styles and as style guides (if not exist, create it).

Make sure all introduced changes in an already existing codebase are backward compatible and non-destructive.

When finished, lint and build til perfection.

After finishing a task, evaluate what could have been done better. Append these insights to dreams.md

at the root of the repository (create the file if it does not exist).

── more in #developer-tools 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/for-agentic-coding] indexed:0 read:4min 2026-07-04 ·