LAP: 1,500+ API Specs Compiled for LLM Consumption to Reduce Claude Hallucinations

What LAP Does
LAP addresses the problem where AI coding agents like Claude hallucinate API endpoints when given vague instructions like "use the Stripe API to create a charge." Instead of guessing or relying on stale training data, LAP provides compiled API specifications specifically structured for LLM consumption.
The core issue is that standard OpenAPI specs are built for humans, not agents. For example, Stripe's OpenAPI spec contains 1.2 million tokens of what the source describes as "noise." LAP compiles these specs 10x smaller while maintaining verified endpoints, correct parameters, and actual authentication requirements.
Technical Implementation
LAP was built primarily with Claude's assistance:
- Claude Code wrote approximately 99.9% of the Python compiler, the TypeScript port, and the benchmark harness
- The registry pipeline (processing 1,500+ specs) was built iteratively with Claude handling parsing, validation, and edge case handling
- The lean output format was co-designed with Claude, optimized for what actually helps agents make correct API calls
- The compilation process is deterministic with no AI in the compilation loop
Workflow Integration
LAP provides several commands for integration:
lap initsets up LAP skills and hooks into automatic update checkinglap checktells you when installed specs are outdatedlap diffshows exactly what changed in updated specs
In practice, you can tell Claude: "Integrate Discord into the project, use LAP to fetch the spec" → Claude will invoke the LAP skill, install the right API-skill, and start coding with verified endpoints instead of guessing.
Performance Benefits
According to the source, LAP delivers:
- 35% cheaper runs
- 29% faster responses
- The primary benefit: agents stop making up endpoints
Getting Started
LAP is open source with PRs, features, and spec requests welcome:
- Initialize with:
npx @lap-platform/lapsh init - GitHub: https://github.com/Lap-Platform/LAP
- Registry (1,500+ APIs): https://registry.lap.sh
📖 Read the full source: r/ClaudeAI
👀 See Also

Memorine: A Local Memory System for OpenClaw Agents Using Python and SQLite
Memorine is a local memory system for OpenClaw agents that uses only Python and SQLite, with no external dependencies, API calls, or telemetry. It provides fact storage with full-text search, memory decay, contradiction detection, causal event chaining, and optional semantic search via fastembed and sqlite-vec.

ByteRover Memory Plugin for OpenClaw: Native Integration with Semantic Hierarchy
ByteRover Memory Plugin for OpenClaw provides native, structured long-term memory via a three-layer architecture and semantic hierarchy stored in Markdown files. It achieves 92.2% retrieval accuracy and requires OpenClaw v2026.3.22+.

Libretto: Deterministic Browser Automation Generation for AI Coding Agents
Libretto is a Skill+CLI toolkit that enables AI coding agents to generate deterministic browser automation scripts as actual code, moving away from runtime AI agents. It combines Playwright UI automation with direct network/API requests for reliability and includes step-through debugging and read-only modes.

Claude Code's Official Telegram Plugin: Setup Notes and Migration from OpenClaw
A developer migrated from OpenClaw to Claude Code's official Telegram integration, documenting the setup process and creating an open-source migration skill. The integration connects via BotFather tokens and offers better token efficiency and cleaner communication.