मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट280k · #127

agent-architecture-audit

यह क्या करती है

यह टूल उन AI सिस्टम में गड़बड़ी ढूँढने और ठीक करने में मदद करता है जो सही से काम नहीं कर रहे लगते। यह सिस्टम के अलग-अलग हिस्सों की जाँच करता है ताकि पता चले कि गड़बड़ी कहाँ हो रही है।

कब इस्तेमाल करें

  • ✓जब अपडेट के बाद कोई AI फ़ीचर काम करना बंद कर दे।
  • ✓जब AI गलत या असंगत जवाब देने लगे।
  • ✓जब शक हो कि सिस्टम के अंदर कोई चीज़ यूज़र तक पहुँचने से पहले जवाब को बिगाड़ रही है।

Skill का लिंक

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-architecture-audit/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-architecture-audit/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे AI agent का audit करो, नए tools जोड़ने के बाद यह अजीब जवाब दे रहा है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह AI सिस्टम को कई layers में जाँचता है, शुरुआती instructions से लेकर जवाब दिखाने के तरीके तक। यह ऐसी समस्याएँ खोजता है जैसे पुरानी जानकारी का इस्तेमाल होना, tools का गलत तरीके से call होना, या रास्ते में जवाब का बदल जाना।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Agent Architecture Audit

A diagnostic workflow for agent systems that hide failures behind wrapper layers, stale memory, retry loops, or transport/rendering mutations.

When to Activate

MANDATORY for:

  • Releasing any agent or LLM-powered application to production
  • Shipping features with tool calling, memory, or multi-step workflows
  • Agent behavior degrades after adding wrapper layers
  • User reports "the agent is getting worse" or "tools are flaky"
  • Same model works in playground but breaks inside your wrapper
  • Debugging agent behavior for more than 15 minutes without finding root cause

Especially critical when:

  • You've added new prompt layers, tool definitions, or memory systems
  • Different agents in your system behave inconsistently
  • The model was fine yesterday but is hallucinating today
  • You suspect hidden repair/retry loops silently mutating responses

Do not use for:

  • General code debugging — use agent-introspection-debugging
  • Code review — use language-specific reviewer agents
  • Security scanning — use security-review or security-review/scan
  • Agent performance benchmarking — use agent-eval
  • Writing new features — use the appropriate workflow skill

The 12-Layer Stack

Every agent system has these layers. Any of them can corrupt the answer:

# Layer What Goes Wrong
1 System prompt Conflicting instructions, instruction bloat
2 Session history Stale context injection from previous turns
3 Long-term memory Pollution across sessions, old topics in new conversations
4 Distillation Compressed artifacts re-entering as pseudo-facts
5 Active recall Redundant re-summary layers wasting context
6 Tool selection Wrong tool routing, model skips required tools
7 Tool execution Hallucinated execution — claims to call but doesn't
8 Tool interpretation Misread or ignored tool output
9 Answer shaping Format corruption in final response
10 Platform rendering Transport-layer mutation (UI, API, CLI mutates valid answers)
11 Hidden repair loops Silent fallback/retry agents running second LLM pass
12 Persistence Expired state or cached artifacts reused as live evidence

Common Failure Patterns

1. Wrapper Regression

The base model produces correct answers, but the wrapper layers make it worse.

Symptoms:

  • Model works fine in playground or direct API call, breaks in your agent
  • Added a new prompt layer, existing behavior degraded
  • Agent sounds confident but is confidently wrong
  • "It was working before the last update"

2. Memory Contamination

Old topics leak into new conversations through history, memory retrieval, or distillation.

Symptoms:

  • Agent brings up unrelated past topics
  • User corrections don't stick (old memory overwrites new)
  • Same-session artifacts re-enter as pseudo-facts
  • Memory grows without bound, degrading response quality over time

3. Tool Discipline Failure

Tools are declared in the prompt but not enforced in code. The model skips them or hallucinates execution.

Symptoms:

  • "Must use tool X" in prompt, but model answers without calling it
  • Tool results look correct but were never actually executed
  • Different tools fight over the same responsibility
  • Model uses tool when it shouldn't, or skips it when it must

4. Rendering/Transport Corruption

The agent's internal answer is correct, but the platform layer mutates it during delivery.

Symptoms:

  • Logs show correct answer, user sees broken output
  • Markdown rendering, JSON parsing, or streaming fragments corrupt valid responses
  • Hidden fallback agent quietly replaces the answer before delivery
  • Output differs between terminal and UI

5. Hidden Agent Layers

Silent repair, retry, summarization, or recall agents run without explicit contracts.

Symptoms:

  • Output changes between internal generation and user delivery
  • "Auto-fix" loops run a second LLM pass the user doesn't know about
  • Multiple agents modify the same output without coordination
  • Answers get "smoothed" or "corrected" by invisible layers

Audit Workflow

Phase 1: Scope

Define what you're auditing:

  • Target system — what agent application?
  • Entrypoints — how do users interact with it?
  • Model stack — which LLM(s) and providers?
  • Symptoms — what does the user report?
  • Time window — when did it start?

…

अक्सर पूछे जाने वाले सवाल

AI सिस्टम में 'layers' क्या होती हैं?

Layers को AI द्वारा सवाल को प्रोसेस करने के अलग-अलग चरणों की तरह समझें। हर चरण (जैसे सवाल समझना, tool इस्तेमाल करना, पिछली बातचीत याद रखना) में समस्या हो सकती है।

AI समय के साथ 'खराब' क्यों हो जाता है?

ऐसा तब हो सकता है जब सिस्टम के नए हिस्से (जैसे ज़्यादा instructions या memory) पुराने हिस्सों में दखल दें, या AI पुरानी जानकारी इस्तेमाल करने लगे।

'tool discipline failure' का क्या मतलब है?

इसका मतलब है कि AI उन नियमों का पालन नहीं कर रहा जो बताते हैं कि दिए गए tools कब और कैसे इस्तेमाल करने हैं। वह ज़रूरी tool को नज़रअंदाज़ कर सकता है या गलत tool चुन सकता है।

जानकारी

लेखक का मूल विवरण

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehave

repo: affaan-m/ECC

लोकप्रियता

GitHub स्टार
280k
रैंकिंग में स्थान
#127
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

accessibility

280k

यह आपके एजेंट को ऐसे इंटरफ़ेस बनाने में मदद करता है जिन्हें हर कोई इस्तेमाल कर सके। यह पक्का करता है कि वेबसाइट और ऐप दिव्यांग लोगों के लिए भी अच्छे से काम करें, जैसे नेत्रहीन या जिन्हें चलने-फिरने में दिक्कत होती है।

डिज़ाइनइंटरफ़ेस (UI/UX)

agent-eval

280k

यह आपके एजेंट को अलग-अलग AI coding tools की तुलना करने में मदद करता है। यह मापता है कि किसी खास काम के लिए कौन सा टूल ज़्यादा तेज़, सस्ता और भरोसेमंद है।

AI और एजेंटएजेंट

agent-harness-construction

280k

यह आपके एजेंट को काम कैसे करना है, यह बेहतर समझने में मदद करता है। यह उन tools और instructions को बेहतर बनाता है जिनका एजेंट इस्तेमाल करता है, ताकि उसकी सफलता की संभावना बढ़े।

AI और एजेंटएजेंट

agent-introspection-debugging

280k

यह आपके एजेंट को गड़बड़ होने पर खुद को ठीक करने में मदद करता है। यह बस दोबारा कोशिश करने के बजाय जाँचता है कि failure क्यों हुआ और उसका हल कैसे निकले।

AI और एजेंटएजेंट

मिलती-जुलती skills