Specsmaxxing: Fighting AI Psychosis with YAML Specs and ACAI

Acai.sh's latest blog post, "Specsmaxxing – On overcoming AI psychosis, and why I write specs in YAML," tackles the problem of AI agents going off the rails when context windows fill up or sessions die. The author shares a practical workflow: write structured specs in YAML instead of only markdown, and use numbered requirements (e.g., AUTH-1, AUTH-2) that agents can reference directly in code. This method, called Acceptance Criteria for AI (ACAI), emerged when a sub-agent auto-numbered requirements and referenced them in implementation, improving traceability and reducing regressions.
The post describes a four-step process: Specify (write requirements in YAML), Ship (let agents implement), Review (check code against specs), and Iterate. The author admits to previously overdoing markdown specs (PRDs, TRDs, architecture docs) and suffering "AI psychosis" — spending more time building AI harnesses than products. The YAML-based approach is meant to be lighter and more machine-actionable.
Key insight: plain README.md and AGENTS.md already improve agent output significantly. The post argues that "Peak Slop" has passed and structured specs are the next evolution. A code snippet shows the pattern:
# Requirements
AUTH-1: Accepts `Authorization: Bearer <token>` header
AUTH-2: Tokens are user-scoped, providing access to any of the user's resources
AUTH-3: Rejects with 401 Unauthorized
// AUTH-1
const authHeader = req.headers["authorization"];
// AUTH-2
const isAuthorized = verifyBearerToken(authHeader);
// AUTH-3
if (!isValid) return res.status(401).json({ error: "Unauthorized" });
The post also reviews alternatives: GitHub SpecKit, OpenSpec, Kiro, Traycer.ai — and lists reasons you might not like acai.sh (e.g., overhead, opinionated format). It's a pragmatic take for developers who want their AI agents to ship reliable code without constant nudge-and-fix loops.
Who it's for: Developers using AI coding agents (Claude, Copilot, etc.) who hit context limits and want a lightweight spec layer to keep agents on track.
📖 Read the full source: HN AI Agents
👀 See Also

Docent: An AI Assistant for Paper Analysis Built with Claude Code
A developer created Docent, an AI assistant that reads uploaded papers, presents them, answers questions, and assesses understanding using Claude Code. The project is available on GitHub under MIT License with a demo on Vercel.

Knowledge Raven: A Searchable Knowledge Base Plugin for Claude
Knowledge Raven is a tool that lets Claude search your documents from sources like Confluence, Notion, Google Drive, Dropbox, and GitHub via a Claude Desktop plugin or MCP server, providing semantic search, keyword search, and full document retrieval.

Revise: AI Editor Built with Agentic Coding Tools and Y.js CRDT
Revise is an AI editor for documents built from scratch over 10 months using agentic coding tools, with a custom word processor engine and rendering layer that only uses Y.js for the CRDT stack. It integrates multiple AI models including GPT-5.4 variants and Claude models for proofreading and revision.

Local Semantic Memory Search for OpenClaw Agents Using Harrier Embeddings
Run a local embedding server with Microsoft's Harrier model, expose an Ollama-compatible API, and wire OpenClaw's memorySearch config for local semantic memory retrieval without external services.