Članci s tagom #llm
-
Dead end tracking: teaching AI agents to not repeat failed approaches
Shinobi records approaches that failed and why, so agents don't retry them. check_dead_ends searches them before new work (full-text and file overlap by default, semantic with an embedding provider), log_dead_end records a confirmed failure, update_dead_end retires one that no longer applies, and Claude Code hooks add matching dead ends to the agent's context on every prompt and edit. Updated for Shinobi 0.12.1.
-
Decision logging for AI agents: capturing rationale that survives 6 months
Shinobi's log_decision captures architecture, library, pattern and tradeoff decisions with their rationale when they are made. recall finds them later (full-text by default, semantic with an embedding provider), decisions_for_file shows what was decided about a file, update_decision_status moves a decision through its lifecycle, and extract_decisions drafts entries from a transcript. Updated for Shinobi 0.12.1.
-
Session resumability for AI agents: how task state survives context window limits
Four Shinobi MCP calls make an agent's work resumable after a context window overflow, a crash or a device switch: agent_bootstrap at the start, claim_task before a task, complete_task after it, and session_closeout at the end. What each call takes and returns in Shinobi 0.12.1.
-
Why I built a task management system specifically for AI agents
AI agents forget everything between sessions: context windows fill, sessions end, you switch machines. Shinobi is an open-source MCP server that keeps tasks, decisions and failed approaches outside the context window, with agent_bootstrap at the start of a session, claim_task and complete_task during it, session_closeout at the end, and dead ends checked before new work. Updated for Shinobi 0.12.1.
-
Multi-provider AI chat in PHP: tiered routing saves 80% of tokens
LIMAi: BYOK provider model (Anthropic/OpenAI/Groq/Gemini/Ollama), two-tier routing (Tier 1 keyword pre-routing zero tokens + Tier 2 KIK orchestrator for ambiguous), directChat fallback to TaskRouter::TASK_DRAFTS (Gemini Flash FREE), AITokenTracker unified tracking, ConversationModel per-user history, SSE streaming chat.
-
Circuit breaker for AI providers in PHP: OPEN/HALF_OPEN/CLOSED state machine
CircuitBreaker: CLOSED/OPEN/HALF_OPEN state machine, failureThreshold=3, transientRecoverySeconds=300 (5min), permanentRecoverySeconds=1800 (30min), DB-backed ai_provider_health (one indexed PK read/request). ProviderError: 6 categories — PERMANENT_BILLING vs RATE_LIMITED distinction (413 is TPM cap not billing, URL-stripped match, billing before 4xx/401 check). Retry-After honored. upsert avoids deprecated ON DUPLICATE KEY UPDATE.
-
Multi-provider AI with automatic failover: how TaskRouter works in PHP
TaskRouter: 10 named task roles, failover chains (paid → FREE on failure), a stateful circuit breaker in ai_provider_health, 6 provider adapters, and zero vendor lock-in in application code. Every AI call is one method; the router handles the rest.
-
Building a unified BYOK AI provider: one interface for Claude, OpenAI, DeepSeek, Groq, Gemini, and Ollama
Six AI providers, four wire formats, one interface, and a runtime failover chain that flips paid Claude to free Gemini when the bill spikes. The pattern I'm shipping in every product I build.