DeepSeek's $0.75 search API for agents, Lean's five-kernel proof check, and Pele

1 month ago

DeepSeek's new Search and Fetch APIs give agents the web for 75 cents per 1,000 calls, and they are free through Claude Code and Codex until November 1. Also from Sunday's Hacker News front page: Lean's lake check --paranoid, which rechecks proofs with five kernels, Pele's Mermaid-to-SVG renderer, and Sphinx, a Git hook that quizzes you on your agent's code before a push. DeepSeek search and fetch – $0.75 per 1000 successful requests https://api-docs.deepseek.com/guides/search/ Discussion: https://news.ycombinator.com/item?id=50138531 thombles on Brave and Kagi pricing: https://news.ycombinator.com/item?id=50138776 ggnore7452 on quality in a web-fetch benchmark: https://news.ycombinator.com/item?id=50144703 Lean now ships with verified kernels, by Leonardo de Moura https://leodemoura.github.io/blog/2026-10-15-lean-now-ships-with-verified-kernels/ Discussion: https://news.ycombinator.com/item?id=50114758 Pele: Mermaid diagrams as themeable SVG https://pele.run/ Discussion: https://news.ycombinator.com/item?id=50132193 kepano on following Mermaid's syntax but not its layout: https://news.ycombinator.com/item?id=50134925 bilibali on replacing Mermaid.js in a static-site build: https://news.ycombinator.com/item?id=50141905 Sphinx: a hook that quizzes you on your AI's code before shipping https://sphinx-six-theta.vercel.app/ Discussion: https://news.ycombinator.com/item?id=50137950 lecarore on pasting the question back into the agent: https://news.ycombinator.com/item?id=50141605

Ask about this presentation

Chapters

Show transcript
  1. On Sunday's Hacker News front page, DeepSeek opened its own search engine to agents, on the same API key you already use for its models. Search takes a query, with operators like site and after, and returns up to 50 ranked results, with the page text if you ask for it. Fetch takes one URL and returns the page as Markdown. Both cost 75 cents per 1,000 successful requests, and an empty result or a timeout is free.

    Slide text

    DeepSeek opens its own search engine to agents at 75 cents per 1,000 calls

    POST api.deepseek.com/v1/tools/search  query · up to 50 results · page content
    POST api.deepseek.com/v1/tools/fetch   one URL in · Markdown out
  2. If you run Claude Code, Codex or DeepSeek Harness against the DeepSeek API, you are already calling these endpoints. The model's server-side search and fetch go through them, free for now. Billing starts on November 1, at midnight Beijing time. Each account gets five requests per second for search and five for fetch, across every key, and fetch adds a limit per domain. Past that, requests fail with a 429, so an agent that opens many pages at once needs to wait and retry.

    Slide text

    Through Claude Code or Codex, DeepSeek search is free until November 1

    Search · 5 requests per second Fetch · 5 requests per second Fetch · plus a per-domain limit Over the limit · HTTP 429
  3. The price is what drew the thread. thombles put Brave's search API at five dollars per thousand and Kagi's at twelve, so DeepSeek costs about a seventh of the cheaper one. Quality is the open question. ggnore7452 ran a few quick tests on a personal web-fetch benchmark and found DeepSeek's search and fetch not very good, if cheap, and pointed to Jina as a free option, with Parallel, Firecrawl, Tavily and Exa as the paid ones worth trying.

    Slide text

    DeepSeek charges a fraction of Brave or Kagi per 1,000 searches

    DeepSeek $0.75
    Brave $5
    Kagi $12
    Brave and Kagi prices from thombles, in the thread

    Quick tests on a web-fetch benchmark: not very good, but quite cheap.

    ggnore7452, paraphrased
  4. AI agents have been finding holes in Lean's proof checker, and Lean 4.35 answers with lake check. It exports your project and rechecks it in a sandbox with the official kernel. Add paranoid and four more kernels check it too. con-leche is written in Lean and proven consistent, by Claude, under Joachim Breitner's supervision. Checking with its Rust translation, con-ron, as well guards against bugs in Lean's own compiler. If two kernels disagree about one of your proofs, the Lean team wants to hear about it.

    Slide text

    Lean 4.35 rechecks your whole project with five proof kernels in one command

    $ lake check --paranoid
    leanchecker nanoda lean4lean con-leche · proven consistent con-ron · Rust
  5. Pele takes Mermaid syntax and hands back an SVG, themed with CSS variables, so switching to dark mode changes the colors without a re-render. kepano built it for Obsidian, under the MIT license. It has zero dependencies, is about six times smaller than Mermaid.js, and draws a diagram in well under a millisecond. In the thread, kepano says Pele follows Mermaid's syntax and lays diagrams out its own way. bilibali swapped it into a static-site build that used to need a whole Chromium instance to render them.

    Slide text

    Pele renders Mermaid diagrams to themeable SVG without Mermaid.js

    Bundle, gzipped
    Pele 230 kB
    Mermaid.js 1.6 MB
    Render time
    Pele 0.05–0.3 ms
    Mermaid.js 6–82 ms
  6. Sphinx is a Git hook for code your agent wrote. On a protected branch the push pauses, and a reviewer model that never saw your chat reads the diff and asks what it does when something fails. Answer wrong and it explains why, then tries a new scenario. Answer right and the push goes through. It works with Claude Code, Codex, Cursor, OpenCode and Pi, and sphinx yolo skips the check and logs the skip. lecarore pointed out you could paste the question straight back into the agent. Which agent writes most of what you push?

    Slide text

    Sphinx quizzes you on your agent's code before your git push goes through

    sphinx
    The webhook saves the event ID before it charges. If the charge fails, what does the retry do?

    Which agent writes most of what you push?

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York