agent-llm-stability

Diagnose LLM instability causes in agent mode and apply targeted fixes.

Updated Jul 22, 2025
One-click install
npx skills add https://github.com/krikz/rob_box_project --skill agent-llm-stability
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-llm-stability
Source: https://github.com/krikz/rob_box_project/tree/main/.agents/skills/agent-llm-stability
Command: npx skills add https://github.com/krikz/rob_box_project --skill agent-llm-stability

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Specialized tooling to diagnose and fix degradation, hangs, and context drift in an autonomous agent's LLM-driven cycle (dialogue_node.py + MCP tools). It helps prevent cascading failures when the agent becomes unresponsive or memory or context grows unmanageably, ensuring reliable operation in production.

Core Features & Use Cases

  • Diagnostics for deadlocks, memory leaks, prompt issues, and tool-call reliability across the agent loop (STT, dialogue_node, MCP tools, and conversation_history).
  • Guided workflows to reproduce, isolate, and fix order-independent failures such as timeouts, slow streams, and unintended memory accumulation, with safe rollbacks.
  • Use Case: When the agent stalls after extended dialogues or drifts into unrelated topics, this skill provides targeted fixes to restore stability.

Quick Start

Run an initial diagnostic pass on the agent thread to detect where the instability originates, then apply recommended fixes in sequence.

Frequently Asked Questions about agent-llm-stability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix LLM agent hangs and memory growth during production cycles?

To fix LLM agent hangs and memory growth, run a diagnostic pass across dialogue_node, MCP tools, and conversation history to isolate deadlocks or leaks. Apply guided workflows to reproduce order-independent failures and execute safe rollbacks to restore stable production operation.

Why does my LLM agent drift into unrelated topics after extended dialogues?

LLM agent context drift after extended dialogues is caused by unmanaged conversation history accumulation. Targeted troubleshooting identifies the specific failure point in the agent loop and provides actionable fixes to restore predictable dialogue boundaries and prevent cascading failures.

What is the best way to diagnose tool-call reliability issues in autonomous agents?

The best way to diagnose tool-call reliability issues in autonomous agents is to apply specialized diagnostics across the STT, dialogue_node, and MCP tools. This isolates slow streams, timeouts, and unintended memory accumulation to ensure robust fallback and clear failure modes.

How do I reproduce and isolate order-independent failures in an LLM agent loop?

Reproduce and isolate order-independent failures in an LLM agent loop by following guided workflows that test the dialogue_node and MCP tools sequentially. This process detects timeouts and memory leaks, enabling targeted fixes with safe rollbacks for reliable production operation.

Can I use stability diagnostics for agent LLMs running in production environments?

Yes, stability diagnostics for agent LLMs are designed for production environments. They prevent cascading failures when the agent becomes unresponsive or memory grows unmanageably, ensuring reliable operation through robust fallbacks and clear failure modes across the agent cycle.