frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: My agents kept hallucinating APIs, so I built them a headless IDE

https://context-engine.app
1•welf•41m ago
I built Context Engine last year mostly out of frustration. Agents impressed me and made me angry at the same time: they kept calling APIs that don't exist, re-implementing APIs already defined in the codebase, and getting stuck in write-compile-rewrite loops. Sometimes they seemed very intelligent and sometimes extremely stupid. But they aren't stupid: take any brilliant engineer, give them a whiteboard, and ask them to implement a new feature in a large codebase they have never seen. And for agents, every session is a project they have never seen.

The problem is that agents lack proper tooling. They work with plain text, like human engineers in 1995, in the pre-IDE era, and they face the same problems engineers faced 30 years ago. Where a human engineer just hovers over a symbol or presses F12, an agent spends thousands of tokens to get the same result. So I built the IDE part they were missing, without the editor part they don't need — an IDE headless in the same sense as a headless browser.

Initially my goal was to eliminate API hallucinations by giving agents cheap tools that to resolve the APIs instead of guessing about them. Then, to make it even cheaper, I added inlined inlay hints: resolved types and parameter names at call sites, so agents spend their reasoning budget on the task instead of on reconstructing types.

But then I realized that there is a more fundamental issue: the codebase is not a set of files, it is a graph of symbols (and dependency symbols are the part of it). If I provide agents the tools to follow the graph, I enable them to cherry-pick only the symbols they consider meaningful for the task they are working on. LSPs provide this capability. And Tree-sitter allowed agents to cherry-pick only the necessary parts of those symbols.

Since January I have been using it daily in my current project (math-to-silicon synthesis engine) as an internal tool. Some thoughts (not benchmarks!) after seven months of extensive use:

1. I expected fewer mistakes from eliminating API guessing, but the result was better. Agents behave like better engineers: they tend to reuse abstractions already defined in the codebase rather than duplicate them ad hoc, and not only did type and lifetime compile errors almost disappear — they also make fewer logical errors. My assumption is that this comes from reduced context pollution: when agents cherry-pick only the information relevant to the task, their reasoning capability degrades slower.

2. Token usage reduction wasn't a goal, but the savings per task turned out substantial.

3. The most unusual experience was UX design for machines. Giving agents better tools isn't enough: you have to convince them to use these tools instead their built-in text-oriented tools. The working solution was to describe workflows (codebase exploration, debugging, dependency API discovery, refactoring, reading and editing documentation) as chains of the new tools rather than describing each tool separately.

Context Engine runs fully locally, and your code never leaves your machine. One daemon is shared between all your agents and their subagents: Claude Code, Codex, Cursor, or any other agent that supports MCP talks to the same instance, and agents working in the same workspace also share the LSP servers serving it.

Context Engine MCP requires an API key, which you can get for free on https://context-engine.app. I do not have plans to make it paid yet but want to reserve the right to do it in the future. Anyway, it is free now and will remain free in the foreseeable future. It is language-agnostic and can work with any language, although it is validated end-to-end for Python, TypeScript/JavaScript, Rust, Go, and Markdown only so far. The known issue is with Java: jdtls is still fighting me.

I would love feedback, especially on the tool output design.

Today I realized you can't star an achived repo in GitHub

1•dclavijo•7s ago•0 comments

OpenDesk Edu – Open-Source Digital Workplace for Universities

https://opendesk-edu.org/en
2•graphwi-ai•1m ago•0 comments

A VCR to test your back end – record/replay K8s env as deterministic sandboxes

https://github.com/keploy/keploy
1•keploy•1m ago•0 comments

Nature Is Healing

https://daringfireball.net/linked/2026/08/12/nature-is-healing
1•vintagedave•1m ago•0 comments

Gram – A code editor for humanoid apes and grumpy toads

https://gram-editor.com/
1•indigodaddy•1m ago•0 comments

Business is short on decisions, not dashboards

https://lordly.io
1•eduardosully•2m ago•0 comments

An Engineer's Old Cooking Trick Is Going Viral, Divides the Internet

https://pleated-jeans.com/2026/08/15/engineers-forgotten-recipe-hack-viral-divides-internet/
1•alexandrehtrb•2m ago•1 comments

Show HN: K7d – Fork live Kubernetes clusters in <1s –> GRPO-train AI on infra

https://github.com/katakate/k7d
1•gbxk•4m ago•0 comments

Prospera: The Caribbean libertarian enclave backed by Silicon Valley [video]

https://www.youtube.com/watch?v=RH3pfIcVk7k
1•neom•4m ago•0 comments

Test Rocket: Rethinking the Test Pyramid for the AI Era

1•sudokar•6m ago•0 comments

NASA's IXPE detects 80% X-ray polarization from magnetar 1E 1547.0-5408

https://www.nature.com/articles/s41586-026-10859-z
2•khanhnguyen8386•6m ago•0 comments

The Shape of One Joint: Low-Level Control on a Unitree R1

https://www.ramonov.com/blog/one-joint-unitree-r1/
1•sabrina_ramonov•7m ago•0 comments

The A.I.s Are Already Out of Control

https://www.nytimes.com/2026/08/18/opinion/ezra-klein-podcast-helen-toner.html
2•jlev1•10m ago•1 comments

Anthropic crossed 40% of ARR from indirect channels

https://twitter.com/SemiAnalysis_/status/2089714350164492652
2•porridgeraisin•12m ago•0 comments

Show HN: Obidos – self-hosted secrets storage and sharing with fine-grained ACLs

https://github.com/spenego/Obidos
1•spenegosoftware•12m ago•0 comments

Remote work benefits are much bigger than a paycheck

https://thehill.com/opinion/technology/6033665-economic-value-personal-time-salary/
4•madihaa•12m ago•1 comments

Interfaces Cheat Sheet

https://interfaces.dev/cheat-sheet
2•thm•12m ago•0 comments

Show HN: Shoehorn – Quantize any model down to run on your machine

https://notactuallytreyanastasio.github.io/shoehorn/
2•rhgraysonii•13m ago•0 comments

How to build Online Stores Effectively in 2026

https://shopi.lk/blog/woocommerce-vs-ai-ecommerce-website-sri-lanka-2026/
2•ruzny-ramzan•14m ago•0 comments

Ask HN: Can I realistically make an app as a junior dev?

3•brooke1•16m ago•3 comments

StockHuntr, chat with SEC filings and get cited answers (free)

https://www.stockhuntr.net
1•KylieM•16m ago•0 comments

Human Agents

https://docs.ojin.ai
1•arbayi•18m ago•0 comments

Supper Cool Doodle Characters

https://github.com/albertobeiz/kindergrimm
1•boveyking•18m ago•0 comments

Muse Glimmer is a memory hierarchy disguised as a 30B Transformer

https://abstractextraordinary.com/blog/how-muse-glimmer-fits-an-agent-on-your-device/
2•stepnivlk•19m ago•0 comments

Firefox and Exa Partnership

https://blog.mozilla.org/en/firefox/firefox-exa-partnership/
3•pentagrama•20m ago•0 comments

Smaller Images for the Web

https://milofultz.com/2026-08-06-smaller-images-for-the-web.html
1•surprisetalk•20m ago•0 comments

Will you be wearing an exoskeleton in ten years?

https://www.nature.com/articles/d41586-026-02527-z
1•sohkamyung•20m ago•1 comments

One Video Per Day – An intentional alternative to infinite feeds

https://www.onevideoperday.com
1•flingflangflode•21m ago•0 comments

Show HN: CSS-in-JS Arena Bamboo, StyleX and Panda on Pixel-Identical Apps

https://github.com/gajus/css-in-js-arena
1•gajus•21m ago•1 comments

Show HN: Spyc – a vi-driven terminal file commander for your coding agents

https://github.com/Tripstack-Corp/spyc
1•agentdrek•21m ago•1 comments