TGViewer
Software Development Software Development @softwaredevelopmentofficial ยท 519 subscribers
Post #342 33
๐Ÿ’กSoftware Development Trick

๐Ÿงฉ Do not give an AI agent only a prompt. Give it a project map.


Use Markdown files as an inference harness: they help the agent understand the repository, make safer decisions, and verify its own work.

Claude Code automatically reads CLAUDE.md at the start of a session. Similar project instruction files can be used by other coding tools, but the filename and loading behavior may differ.

Create these files:

CLAUDE.md
architecture.md
decisions.md
backlog.md
verification.md

Rules:
- Read these files before editing code.
- Inspect the repository before making assumptions.
- Update only the relevant Markdown file after a decision.
- Never mark a task complete without verification.
- If requirements conflict, report the conflict first.

verification.md

# Verification

## Every feature must pass

- [ ] Happy-path test
- [ ] Invalid-input test
- [ ] Authentication and authorization test
- [ ] Error-handling test
- [ ] Database or API integration test
- [ ] Manual user-flow test

## Completion rule

A feature is complete only when:
1. The code works.
2. Tests pass.
3. The change matches the acceptance criteria.
4. Known limitations are documented.

๐Ÿง  Rare architect trick:

Do not ask AI, โ€œIs this code correct?โ€

Ask it to produce:

1. Implementation
2. Evidence
3. Failed tests
4. Remaining assumptions
5. Recommended next test

This changes AI from a code generator into a system that must provide evidence.

OpenRouter Routing Trick
Use OpenRouter when you want one application to access multiple models and providers. It supports provider routing, fallbacks, and structured JSON responses.

const response = await fetch("https://openrouter.ai/api/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.OPENROUTER_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    model: "YOUR_PRIMARY_MODEL",
    models: [
      "YOUR_PRIMARY_MODEL",
      "YOUR_BACKUP_MODEL"
    ],
    messages: [
      {
        role: "user",
        content: "Return a risk assessment for this software change."
      }
    ],
    provider: {
      require_parameters: true,
      allow_fallbacks: true
    },
    response_format: {
      type: "json_object"
    }
  })
});

๐Ÿ“Œ require_parameters: true   is useful when tools or structured output are essential. Otherwise, a fallback provider may not support the same capability.

๐Ÿ”— Research:

OpenRouter Provider Routing

OpenRouter API Reference

OpenAI Harness Engineering

Anthropic Agent Evals

Core idea
Prompt = what the agent should do

Markdown files = what the agent must understand

Verification = how the agent proves it worked

OpenRouter = how your application selects and switches models

Claim your Free $5 Bonus Here:
https://bit.ly/3wUxw09

LinkedIn profile ๐Ÿ‘‡

https://www.linkedin.com/in/subarno-roy-3b2251374

Join our WhatsApp Channel ๐Ÿ‘‡

https://whatsapp.com/channel/0029VbAi27y0lwghBe9mE42i

WhatsApp Community Link ๐Ÿ‘‡

https://chat.whatsapp.com/G8wPqAwwm1qHo1AdM8YPkM

1๏ธโƒฃ Web Development and Web Design
๐Ÿ“Ž Channel Link:
[ https://t.me/webdevelopment_official ]

---

2๏ธโƒฃ DevOps
๐Ÿ“Ž Channel Link:
[ https://t.me/DevOpsofficial ]

---

3๏ธโƒฃ Software Development
๐Ÿ“Ž Channel Link:
[ https://t.me/softwaredevelopmentofficial ]

---

4๏ธโƒฃ Data Science
๐Ÿ“Ž Channel Link:
[ https://t.me/datascience_official ]

Share with your College Whatsapp Groups & Friends too

All the best ๐Ÿ‘๐Ÿ‘
More from @softwaredevelopmentofficial
  1. Oct 3, 2026๐—ง๐—ต๐—ผ๐˜€๐—ฒ ๐˜„๐—ต๐—ผ ๐˜„๐—ฎ๐—ป๐˜ ๐—ฟ๐—ฒ๐—ณ๐—ฒ๐—ฟ๐—ฟ๐—ฎ๐—น๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—๐—ผ๐—ฏ๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐—ป๐˜€๐—ต๐—ถ๐—ฝ๏ฟฝโ€ฆ
  2. Sep 30, 2026โค๏ธ Here is the list of highly recommended Telegram channels for your free learning โค๏ธ Getโ€ฆ
  3. Sep 27, 2026๐Ÿšจ Earn Passive Money Easily ๐Ÿšจ Since your device is already connected to the internet, yoโ€ฆ
  4. Sep 26, 2026Hackathon National Research & Innovation Challenge Season 3 ๐Ÿ“ŒAPPLY LINK : https://bit.ly/โ€ฆ
  5. Sep 13, 20265 Most common used Java List methods 1. add(E element) - Adds the specified element to theโ€ฆ
  6. Sep 11, 2026๐—ง๐—ต๐—ผ๐˜€๐—ฒ ๐˜„๐—ต๐—ผ ๐˜„๐—ฎ๐—ป๐˜ ๐—ฟ๐—ฒ๐—ณ๐—ฒ๐—ฟ๐—ฟ๐—ฎ๐—น๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—๐—ผ๐—ฏ๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐—ป๐˜€๐—ต๐—ถ๐—ฝ๏ฟฝโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’