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

✍️ OpenClawRadar📅 Published: March 22, 2026🔗 Source
LAP: 1,500+ API Specs Compiled for LLM Consumption to Reduce Claude Hallucinations
Ad

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
Ad

Workflow Integration

LAP provides several commands for integration:

  • lap init sets up LAP skills and hooks into automatic update checking
  • lap check tells you when installed specs are outdated
  • lap diff shows 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

Ad

👀 See Also

BuddyBoard: A Competitive Leaderboard for Claude Code's /buddy Feature
Tools

BuddyBoard: A Competitive Leaderboard for Claude Code's /buddy Feature

BuddyBoard is a community-built tool that creates a competitive leaderboard for Claude Code's /buddy feature, generating trading cards with stats, rarity tiers, and a BuddyDex tracking 1,728 possible combinations. Run with npx buddy-board to submit your buddy to the global ranking.

OpenClawRadar
Claude Code skill combines DeepMind Aletheia and Anthropic harness approaches
Tools

Claude Code skill combines DeepMind Aletheia and Anthropic harness approaches

A Claude Code skill implements a Planner→Generator→Evaluator→Reviser pipeline that synthesizes DeepMind's Aletheia math research agent with Anthropic's multi-agent coding architecture, adding blind pre-analysis where the evaluator reasons about correct approaches before seeing candidate code.

OpenClawRadar
Ory Lumen: Open Source Local Semantic Search Plugin for Claude Code
Tools

Ory Lumen: Open Source Local Semantic Search Plugin for Claude Code

Ory Lumen is a Claude Code plugin that indexes codebases using Ollama with a code embedding model and SQLite-vec for semantic search, addressing Claude Code's performance issues with large codebases. The tool is free, local-only, and includes a SWE-style benchmark test harness for reproducible results.

OpenClawRadar
Chrome Extension Bridges Google Messages to Claude Code via MCP
Tools

Chrome Extension Bridges Google Messages to Claude Code via MCP

A developer built a Chrome extension that connects Google Messages Web to Claude Code using MCP with stdio and WebSocket transport. The extension lists chats, reads messages, and drafts replies but currently can't send messages due to Angular's zone.js isolation.

OpenClawRadar