News for hackers. Stuff that matters.

binalpatel

Show HN: Discord Agent Gateway

https://github.com/caesarnine/discord-agent-gateway

Made this as a side-quest, simple way to allow agents to self-register, interact, and poll a Discord channel (alongside human interactions).Largely interested in seeing how groups of agents can self-organize/work on hard problems, tried Discourse as well but the real-time chat view in Discord was more fun.

( Read More... | no comments | 2 points | on HN )
Re:Run Clawdbot/Moltbot on Cloudflare with Moltworker on Thursday January 29, 2026 @02:12PM (#46815007)
The agent making it's own harness idea is really powerful, I gave it a try here with some opinionated choices:

https://github.com/caesarnine/binsmith

Been running it on a locked down Hetzner server + using Tailscale to interact with it and it's been surprisingly useful even just defaulting to Gemini 3 Flash.

It feels like the general shape of things to come - if agents can code then why can't they make their own harness for the very specific environments they end up in (whether it's a business, or a super personalized agent for a user, etc). How to make it not a security nightmare is probably the biggest open question and why I assume Anthropic/others haven't gone full bore into it.

This is admittedly dated but even back in December 2023 GPT-4 with it's Vision preview was able to very reliably do structured extraction, and I'd imagine Gemini 3 Flash is much better than back then.

https://binal.pub/2023/12/structured-ocr-with-gpt-vision/

Back of the napkin math (which I could be messing up completely) but I think you could process a 100 page PDF for ~$0.50 or less using Gemini 3 Flash?

>560 input tokens per page * 100 pages = 56000 tokens = $0.028 input ($0.5/m input tokens) >~1000 output tokens per page * 100 pages = $0.30 output ($3/m output tokens)

(https://ai.google.dev/gemini-api/docs/gemini-3#media_resolut...)

Re:The Code-Only Agent on Monday January 19, 2026 @02:23AM (#46675895)
It reuses previously generated code, so tools it creates persists from session to session. It also lets the LLM avoid actually “seeing” the tokens in some cases since it can pipe directly between tools/write to disk instead of getting returned into the LLMs context window.
Re:The Code-Only Agent on Monday January 19, 2026 @02:06AM (#46675817)
I've been using it daily, so far it's built CLIs for hackernews, BBC news, weather, a todo manager, fetching/parsing webpages etc. I asked it to make a daily briefing one that just composes some of them. So the first thing it runs when I message it in the morning is the daily briefing which gives me a summary of top tech news/non-tech news, the weather, my open tasks between work/personal. I can ask for follow ups like "summarize the top 5 stories on HN" and it can fetch the content and show it to me in full or give me a bullet list of the key points.

Right now I'm thinking through how to make it more "proactive" even if it's just a cron that wakes it up, so it can do things like query my emails/calendar on an ongoing basis + send me alerts/messages I can respond to instead of me always having to message it first.

Re:The Code-Only Agent on Sunday January 18, 2026 @10:35PM (#46674768)
I went down (continue to do down) this rabbit hole and agree with the author.

I tried a few different ideas and the most stable/useful so far has been giving the agent a single run_bash tool, explicitly prompting it to create and improve composable CLIs, and injecting knowledge about these CLIs back into it's system prompt (similar to have agent skills work).

This leads to really cool pattens like: 1. User asks for something

2. Agent can't do it, so it creates a CLI

3. Next time it's aware of the CLI and uses it. If the user asks for something it can't do it either improves the CLI it made, or creates a new CLI.

4. Each interaction results in updated/improved toolkits for the things you ask it for.

You as the user can use all these CLIs as well which ends up an interesting side-channel way of interacting with the agent (you add a todo using the same CLI as what it uses for example).

It's also incredibly flexible, yesterday I made a "coding agent" by having it create tools to inspect/analyze/edit a codebase and it could go off and do most things a coding agent can.

https://github.com/caesarnine/binsmith

Re: on Wednesday January 14, 2026 @09:45PM (#46627393)
100% - sharing CLIs with the agent has felt like another channel to interact with them once I’ve done it enough, like a task manager the agent and I can both use using the same interface
Re: on Wednesday January 14, 2026 @04:44PM (#46624051)
Cool to see lots of people independently come to "CLIs are all you need". I'm still not sure if it's a short-term bandaid because agents are so good at terminal use or if it's part of a longer term trend but it's definitely felt much more seamless to me then MCPs.

(my one of many contribution https://github.com/caesarnine/binsmith)

Show HN: Server for Pydantic-AI Agents

https://github.com/caesarnine/lattis

Built this for myself but thought it was useful enough to share. It's essentially a server/client setup that lets you plug in arbitrary Pydantic-AI agents. All the state is handled server side which lets you create/use thin clients (TUI + Web for now) to interact with the agents.I run this on a Linux server with Tailscale, then I can connect to and interact with the agents from any device on my...

( Read More... | no comments | 2 points | on HN )

Show HN: LLM Agent That Makes Composable CLIs

https://github.com/caesarnine/binsmith

Fun agent I've been playing with - the idea is it only has access to a bash tool, and it's directed to create CLIs for use (with additional direction to make the CLIs composable, follow the Unix philosophy, etc). It persists these CLIs and knowledge about them get injected into the system prompt dynamically, so each time it runs it gets access to a larger and larger toolset of composable...

( Read More... | no comments | 2 points | on HN )

Show HN: CLIs Are All You Need for Agents

https://github.com/caesarnine/binsmith

Fun agent I've been playing with - the idea is it only has access to a bash tool, and it's directed to create CLIs for use (with additional direction to make the CLIs composable, follow the Unix philosophy, etc).It persists these CLIs and knowledge about them get injected into the system prompt dynamically, so each time it runs it gets access to a larger and larger toolset of composable...

( Read More... | no comments | on HN )
Re:Building your own CLI coding agent with Pydantic-AI on Thursday August 28, 2025 @03:51PM (#45056306)
Pydantic-AI is lovely - I've been working on a forever, fun project to build a coding agent CLI for a year plus now. IMO it does make constructing any given agent very easy, though the lower level APIs are a little painful to use but they seem to be aware of that.

https://github.com/caesarnine/rune-code

Part of the reason I switched to it initially wasn't so much it's niceties versus just being disgusted at how poor the documentation/experience of using LiteLLM was and I thought the folks who make Pydantic would do a better job of the "universal" interface.

Re:Genie 2: A large-scale foundation world model on Wednesday December 04, 2024 @11:29AM (#42319098)
This is super impressive.

Interesting they're framing this more from the world model/agent environment angle, when this seems like the best example so far of generative games.

720p realtime mostly consistent games for a minute is amazing, considering stable diffusion was originally released 2ish years ago.

Under $100:

The heat gun mosquito things that some tech folks were mentioning on Twitter. Always get quarter sized terribly itchy bumps for each mosquito bites and using it makes them essentially itch-free immediately.

Under $1000:

Weekly house cleaning. Such reduced cognitive load/increased free time to not have to clean all the time, think about cleaning, etc especially with a toddler.

Re:ChatGPT now on chat.com on Wednesday November 06, 2024 @02:21PM (#42067795)
This is going to wreck Goldman's next analysis.

(context: https://the-decoder.com/goldman-sachs-blunder-adds-to-ai-sto...)

My personal (overly biased view after reading Chip War recently) take is pretty much there, seems like a lot of the same early dynamics of semiconductors are playing out here.

Very large R&D expenditures for the next iterations of the models at the leading edge (the "fabs" of the world), everything downstream getting much cheaper and better with demand increasing as a result.

Like a world where Claude Opus 3.5 is incredibly expensive to train and run, but also results in a Claude Haiku that's on net better than the Opus of the prior generation, occurring every cycle.

Re:How on-the-wrist sleep apnea detection works on Monday September 09, 2024 @02:25PM (#41491733)
One fun detail - I don't know any Typescript nor have I ever coded a VSCode extension before, so this was all made going back and forth with Sonnet 3.5 + digging through the VSCode repo to figure out how their new proposed shell integration API works.

Show HN: Experimenting with Autonomous Coding Assistants in VSCode [video]

https://www.youtube.com/watch?v=1DnuyJOb8bc

Fun little project I created with Sonnet 3.5 in a few hours.Essentially exploring the idea of a coding assistant that can interact with the workspace and run shell commands without any user verification, while allowing the user to still direct it/modify files.It's been pretty fun to mess with, and surprisingly useful sometimes with things like the LLM running a script, seeing an error in the...

( Read More... | 1 comment | 3 points | on HN )
Re:The Syndicated Actor Model on Wednesday August 14, 2024 @11:50AM (#41247464)
Virtual actors are so nice, Dapr[1] uses them as well. You can get hack together something like a virtual actor with Ray too but I'm hoping their actors eventually evolve into something like virtual actors eventually.

[1] https://docs.dapr.io/developing-applications/building-blocks...

Re:Show HN: Zerox – document OCR with GPT-mini on Wednesday July 24, 2024 @12:20PM (#41058638)
You can do some really cool things now with these models, like ask them to extract not just the text but figures/graphs as nodes/edges and it works very well. Back when GPT-4 with vision came out I tried this with a simple prompt + dumping in a pydantic schema of what I wanted and it was spot on, pretty much this (before json mode was a supported):

    You are an expert in PDFs. You are helping a user extract text from a PDF.

    Extract the text from the image as a structured json output.

    Extract the data using the following schema:

    {Page.model_json_schema()}

    Example:
    {{
      "title": "Title",
      "page_number": 1,
      "sections": [
        ...
      ],
      "figures": [
        ...
      ]
    }}

https://binal.pub/2023/12/structured-ocr-with-gpt-vision/
Re:Jamba: Production-grade Mamba-based AI model on Thursday March 28, 2024 @03:51PM (#39856525)
Gemini 1.5 Pro is really good at long context in my experience.
Re:Structured OCR with GPT Vision on Monday December 11, 2023 @09:22AM (#38600863)
Here's a direct link to the code: https://github.com/caesarnine/llm-experiments/blob/main/3_st...

Just a Pydantic model to define an extraction schema + a simple prompt works reasonably well.

Re:Turn recipe websites into plain text on Saturday June 27, 2020 @01:53PM (#23663329)
I'd recommend checking out https://whisk.com too.

Older »