
Leo: The Prompt Engineering SDK
Optimize, benchmark & evaluate LLM prompts with 1 command.
What it does
Bring rigor to your AI agents. Trusted by 8,500+ developers, Leo is a lightweight Python SDK designed to integrate prompt optimization directly into your CI/CD pipelines or internal tools. Stop shipping prompts that only work "most of the time." Leo provides a structured way to optimize drafts into role-based instructions and automatically evaluates them against real-world test cases using G-Eval and Hallucination Accuracy metrics. It's the missing piece of the LLM DevStack.
Does a similar job
all alternatives →
- APAutomatic prompt optimizer for LLMs2023 · promptperfect.jina.ai · ▲126
- PEPrompt Engine – Auto pick LLMs based on your prompts2024 · jigsawstack.com · ▲93
Nowadays, a common AI tech stack has hundreds of different prompts running across different LLMs. Three key problems: - Choices, picking from 100s of LLMs the best LLM for that 1 prompt is gonna be challenging, you're probably not picking the most optimized LLM for a prompt you wrote. - Scaling/Upgrading, similar to choices but you want to keep consistency of your output even when models depreciate or configurations change. - Prompt management is scary, if something works, you'll never want to touch it but you should be able to without fear of everything breaking. So we launched Prompt…


More ai this month
the category →
I trained a 125M-parameter transformer to autocomplete piano performances in real time (~108 notes/sec on an iPhone 15). The idea is basically GitHub Copilot or Tabnine, except instead of prompting it with code, you prompt it by playing a few notes on a MIDI piano. The model then continues what you played, entirely on-device. The app is free if anyone wants to try it. Happy to answer questions about the model, training, Core ML, or the many things that didn't work.
AI · 17d ago · simedw.com
Astute▲585Automate your B2B brand going viral, with new media creators
AI · 19d ago · company-app.joinastute.com


Hey HN, Henry from Cactus here! We previously released Cactus Needle, a 14MB agentic LLM for tool call, device use, and structured extraction for phones, wearables, smart homes, small robots and microcontrollers. We got really great feedback here, and have now incorporated the suggestions to release Needle 2. The whole model is a single 14MB binary that runs a full session in 28MB of RAM; 45m parameters at 2bit compression. Needle hits 500 tokens/sec decode speed on a Raspberry Pi 5, sits between 400-1,500 tokens/sec on VR devices like Meta Quest 3S and Apple Vision Pro, and ranges…
AI · 27d ago · cactuscompute.com

