frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Infinite Tool Use

https://snimu.github.io/2025/05/23/infinite-tool-use.html
83•tosh•1y ago

Comments

anko•1y ago
I have been thinking along these lines myself. Most of the time, if we need to calculate things, we'd use a calculator or some code. We wouldn't do it in our head, unless it's rough or small enough. But that's what we ask LLMs to do!

I believe we juggle 7 (plus or minus 2) things in our short term memory. Maybe short term memory could be a tool!

We also don't have the knowledge of the entire internet in our heads, but meanwhile we can still be more effective at strategy/reasoning/planning. Maybe a much smaller model could be used if the only thing it had to do is use tools and have a basic grasp on a language.

dijit•1y ago
I was once told that we can only hold 7 things in our heads at once, especially smart people might manage 9; this was by a psychologist that I respect- whether its true or not I am not certain. He was using it as an argument to either condense the array of things I was thinking about into smaller decisions, or to make decisions and move on instead of letting them rot my brain.

It was good advice for me.

blixt•1y ago
Let’s not forget that every round trip with the LLM costs latency (and extra input tokens). We now have parallel tool calls which sometimes works in some models[1]. But it’s great because now a model can say “write these 3 files then read these 2 files” before the time-to-first token latency is incurred once more (not to mention input token cost).

I think LLMs will indirectly move towards being fuzzy VMs that output tokens much like VM instructions so they can prepare multiple conditional branches of tool calling, load/unload useful subprograms, etc. It might not be expressed exactly like that, but I think given how LLMs today are very poor at reusing things in their context window, we will naturally add features that take us in this direction. Also see frameworks like CodeAct[2] etc.

[1] This can be converted to a single tool call with many arguments instead, which you’ll see providers do in their internal tools, but it’s just messier.

[2] https://machinelearning.apple.com/research/codeact

brador•1y ago
Your only useful purpose is to assign the goal. Everything else is an uppity human getting in the way of a more efficient (and more creative) production system.
rahimnathwani•1y ago
I'm wondering how we might apply this to the task of writing a novel.

There's an open source tool being developed that is sort of along these lines: https://github.com/raestrada/storycraftr

But:

- it expects the user to be the orchestrator, rather than running fully unattended in a loop, and

- it expects the LLM to output a whole chapter at a time, rather than doing surgical edits: https://github.com/raestrada/storycraftr/blob/b0d80204c93ff1...

(It does use a vector store to help the model get context from the rest of the book, so it doesn't assume everything is in context.)

ksilobman•1y ago
> Give it access to a full text-editor that is controllable through special text-commands, and see many benefits

I’d like to apply what is being suggested in this post, but it doesn’t make sense to me to have to give an LLM access to a text editor just to write a novel. Isn’t there a better way?

dazzaji•1y ago
I’m still stuck on the first sentence "An LLM should never output anything but tool calls and their arguments” because it just doesn’t make sense to me.

Tool calling is great, but LLMs are - and should be used as - more than just tool callers. I mean, some tools will have to be other LLMs doing what they’re good at, like writing a novel, summarizing, brainstorming ideas, or explaining complex topics. Tools are useful, but the stuff LLMs actually do is also useful. The basic premise that LLMs should never output anything beyond tools and arguments is leaving most of the value of LLMs on the table.

bsenftner•1y ago
I think the blog simply does not explain well. Consider the example of a text editor, the "tool calls" are text fragments generated by the LLM then embedded into text editor tool calls that place the generated text fragment into the text editor, performing cuts, pastes, and so on.

FWIW, I've done this and it works incredibly well. It's essentially integrating the LLM into the text editor, and requests of the LLM are more like requests of the text editor directly. The mental model I use is the editor has become an AI Agent itself. I've also done with with spreadsheets, web page editors, various tools in project management software. It's an incredible perspective that works.

dazzaji•1y ago
Got it, thanks for clarifying! So if I’m understanding you right, you’re saying that all the generative stuff the LLM does—like creating text—basically becomes part of the ‘arguments’ the original post talks about, and then that gets paired with a tool call (like inserting into a text editor, doing edits, etc.). I was focused on the tool call not the argument content aspect of the post.

And it sounds like you’ve had a lot of success with this approach in an impressive variety of application types. May I ask what tooling you usually use for this (eg custom python for each hack? MCP? some agent framework like LangGraph/ADK/etc, other?)

bsenftner
ayolisup•1y ago
A naive approach could be to create an outline, then have an LLM randomly sample a section, supply the surrounding context, rewrite that part, then repeat, ideally alongside human writing. Some sort of continuous revision cycle.
yencabulator•1y ago
The underlying problem might get solved differently with diffusion.

https://news.ycombinator.com/item?id=44057820

PeterStuer•1y ago
In theory not being 'locked in' on the early generation track is a potential advantage of diffusion LLM's. In practice it remains to be seen wether they can truly outperform the current standard LLM with heurstics.
•
1y ago
I noticed fairly early that the foundation LLMs have the source code to most FOSS, as well as the developer conversations, the user discussions trying to understand how to use that software, and the documentation too. The foundational models have a good amount of training data of each popular FOSS app, and by examining the code and the developer comments, and then adopting their language style, the LLM practically takes on the persona of the developer. So I spent some time understanding the internal communications of each app, and my 'tool calls' are structured JSON of the internal structures these applications use, and my own code receives these structured outputs and I just replace in the application's running memory. Not quite so blind as I describe, some of the insertion of these data structures is complicated.

In the end, each app is both what it was before, as well as can be driven by prompts. I've also specialized each to have 4 agents that are as I describe, but they each have a different representation of the app's internal data; for example, a word processor has the "content, the document" in HTML/CSS as well as raw text. When one wants to manipulate the text, requests use the HTML/CSS representation, and selections go through a slightly separate logic than a request to be applied to the entire document. When one wants to critically analyze the text, it is ASCII text, no need for the HTML/CSS at all. When one wants to use the document as a knowledge base, outside the editor, that's yet another variant that uses the editor to output a RAG ready representation.

dazzaji•1y ago
That system would make a tidy startup, especially if tightly integrated with an open source office suite behind the scenes (LibreOffice, OpenOffice, etc) and a generative AI native UX.
dazzaji•1y ago
* I'd call it "VibeOffice".

BicDB – a PostgreSQL-compatible database for local-first apps

https://github.com/nikoma/bicdb
1•nikoma777•32s ago•0 comments

AlternativeTo – Crowdsourced Software Recommendations

https://alternativeto.net
1•elliot_a•34s ago•0 comments

AI Data Center Basics: What Is Linear Pluggable Optics (LPO)?

https://blog.semtech.fr/ai-data-center-basics-what-is-linear-pluggable-optics-lpo
1•peter_d_sherman•39s ago•0 comments

Don't Use AI to Write

https://paulbakker.io/writing/no-ai-for-writing/
1•eigenBasis•41s ago•0 comments

DBClient: A native Mac database client for 12 engines (I'm the dev)

https://dbclient.net/
1•elgs•3m ago•0 comments

I found a better React color picker

https://www.npmjs.com/package/chroma-panel
1•itssohailkhan•3m ago•0 comments

The easiest-to-understand article I've read about Jev

https://inlevel9.com/en/issues/jev-judgment-not-writing
1•haebom•5m ago•0 comments

Calibre v9.15's "Create your own adventure" writing game

https://calibre-ebook.com/whats-new
1•tapanjk•6m ago•0 comments

Chinese CXMT to Match Micron's DRAM Manufacturing Capacity This Year

https://www.techpowerup.com/350726/chinese-cxmt-to-match-microns-dram-manufacturing-capacity-this...
1•tosh•9m ago•0 comments

Sonnex – A DAW for macOS

https://apps.apple.com/us/app/sonnex/id6757343055?mt=12
1•vali1•10m ago•1 comments

The Economic Incentives Behind the Push to Pause AI

https://www.vincentschmalbach.com/economic-incentives-behind-the-push-to-pause-ai/
2•vincent_s•14m ago•0 comments

A Conversation with Arthur Whitney: Can code ever be too terse? (2009)

https://queue.acm.org/doi/10.1145/1515964.1531242
1•tosh•15m ago•0 comments

Jev-Leftpad

https://github.com/f/jev-leftpad
2•fka•15m ago•0 comments

Oxford Economics Global Cities Index 2026

https://www.oxfordeconomics.com/global-cities-index/
1•giuliomagnifico•17m ago•0 comments

Jev and AI SDK Template by Vercel Labs

https://github.com/vercel-labs/jev-ai-sdk-form-router
1•flashbrew•18m ago•0 comments

Show HN: Paste a domain and watch four AI engines judge every page

https://www.citegraph.app/live
1•asifkabir•20m ago•0 comments

Jev at the Branches: The State Machine Is the Agent

https://stacktoheap.com/blog/2026/09/21/the-state-machine-is-the-agent/
1•manojlds•24m ago•0 comments

Show HN: Sealr – E2EE messenger with per-message rules and screenshot blocking

https://sealr.chat/
1•filoviercki•26m ago•0 comments

Letting Astra decide when to compact its own context

https://github.com/manuelcecchetto/codex-context-gc
3•manuelcecchetto•33m ago•1 comments

Holocene Calendar

https://holocenecalendar.com/
2•TP740•34m ago•0 comments

Show HN: Deterministic UI testing that checks backend logs, not just the UI

https://get-verirun.duely.in
1•shad0w008•43m ago•0 comments

Google Home MCP Server

https://developers.home.google.com/mcp/home
2•CoderLim110•43m ago•0 comments

OpenAI's Agentic Software Factory

https://newsletter.pragmaticengineer.com/p/openai-software-factory
2•ishener•44m ago•0 comments

Show HN: I found the free SaaS listing directory

https://goodsaas.xyz
1•agnes_realm•45m ago•0 comments

AI hallucination of Chinese nuclear components almost led to US Military attack

https://arstechnica.com/ai/2026/09/report-us-almost-boarded-chinese-ship-over-hallucinated-ai-arm...
4•vintagedave•45m ago•0 comments

Show HN: SnipStash, a snippet keyboard for iOS with no accounts or servers

https://khancreators.netlify.app/apps/snipstash/
1•chhasnikhan•45m ago•0 comments

Show HN: Using Qwen to track under-covered news

https://pressaudit.org/f/findings/underreported-in-the-us
1•SLHamlet•45m ago•1 comments

Diogo Almeida: Thoughts on a Typesafe Coding Agent

https://docs.google.com/document/d/1G61uUB0FifUnmmrPzFQojZ3KpczYKmXGpgEXDJ2l_Zg/edit?usp=drivesdk
1•yarapavan•47m ago•0 comments

Bsdkrun: A Firecracker-style MicroVM for BSD/Linux guests, built on libkrun

https://github.com/tsirysndr/bsdkrun
1•rguiscard•49m ago•0 comments

Unix Year 2038 problem and the art of underestimating

https://www.buzzsprout.com/2469780/episodes/19824439
1•ibobev•50m ago•0 comments