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

Krasis LLM Runtime Shows 8.9x Prefill and 4.7x Decode Speed Improvements Over Llama.cpp
Krasis LLM runtime now runs both prefill and decode entirely on GPU with different optimization strategies, achieving 8.9x faster prefill and 4.7x faster decode than llama.cpp on Qwen3.5-122B with a single 5090 GPU.

Session Search: Local Full-Text Search for Claude Code and Codex Sessions, Now in Your Menu Bar
Session Search indexes local Claude Code and Codex transcripts using SQLite FTS, enabling deep full-text search across errors, commands, filenames, and decisions—accessible from the macOS menu bar with highlighted snippets.

AIDA: Open-Source Platform for AI-Powered Penetration Testing
AIDA is an open-source platform that provides AI agents with a full penetration testing environment via MCP connection to a Docker container. The latest version replaces the 40GB Exegol requirement with a purpose-built 1GB container containing essential security tools.

OpenClaw Memos Plugin Addresses Memory Handoff Issues in AI Coding Agents
A Reddit user shares how the Claude code leak highlighted problems with memory handoff in AI coding agents, where bloated transcripts cause issues during model switching. They implemented the memos plugin in OpenClaw with selective recall strategy to compress recent work and drop stale tool calls.