frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Koine

https://github.com/pattern-zones-co/koine
34•handfuloflight•1mo ago

Comments

isoprophlex•1mo ago
Unless you're creating a disposable throwaway filesystem that's isolated between API calls, you're setting yourself up for a whole lotta stateful shenanigans...
matthewpetty•1mo ago
Using the filesystem to store state is one pattern, but is probably not the best pattern. State should probably be stored on the client side instead of the agent side.

Like any good SDK, Koine provides a method for managing multi-turn sessions. Data models can use the session uuid as a primary key for storing state.

omneity•1mo ago
> With a typical LLM SDK

What is a typical LLM SDK?

matthewpetty•1mo ago
Vercel AI SDK, Anthhropic Agent SDK, etc
ramon156•1mo ago
I get the "Why Claude Code", just not the "Why a REST API". It doesn't seem to solve a problem at all.

Check the "Who It's For"

> Solo founders who use Claude Code daily and want to use it in toolchains

I can do that just fine without a REST API

> Backend developers adding AI capabilities to services and APIs

You can interact with Claude Code just fine. In fact I wouldn't use CC here since I want control over how it's ran, and CLAUDE.md just doesn't have that power.

> AI tinkerers building agentic workflows, automation, and experiments

Ditto.

> Data engineers who need structured, typed LLM output in pipelines

This has nothing to do with the REST part. I don't see how this is better than just an SDK with structured output.

> Platform teams exposing Claude Code to internal services

I guess I see the appeal a bit here, but anthropic has a platform that can handle agents for you, and this seems like a better fit than a clunky REST API between a CLI tool.

matthewpetty•1mo ago
Thanks for your notes. I'm the maintainer.

This isn't the right tool for every job. Most agentic implementations should use something like BAML.

For people who already have workflows established in Claude Code, they can use Koine to integrate those workflows without having to decouple from Claude Code. I'll think about some updates to the README to make this more clear.

Using an SDK with direct inference from a provider (the typical pattern, right?) means writing orchestrations and prompts from scratch. Claude code has a lot of that already. Relying on Claude Code for agentic orchestration is a bit of a black box solution, but it's a fairly stable pattern for many use cases.

In the end, all Koine does is be an SDK with structured output from Claude Code. The gateway pattern makes a convenient way to call an isolated Claude Code instance.

FWIW, the official Anthropic Agent SDK doesn't provide a way to stream json responses. Most SDKs, including Koine, do.

Alifatisk•1mo ago
Have we stopped with helpful titles nowadays?
matthewpetty•1mo ago
I'm the maintainer of this project. I made this so I could plug and play agentic workflows into existing systems. The prototype I built was for a self-hosted inbox assistant (shoutout Inbox Zero). I wanted to extend the assistant's capabilities without writing my own orchestrations. For instance, I already have a claude code config to get data from my CRM. Rather than program that into the existing service, I just sent the calls to claude code instead.

This isn't going to solve every use case. In most places a proper SDK like BAML will be better suited.

Cheers.

PS - The Anthropic Agent SDK doesn't have native support for streaming JSON. Other SDKs like Vercel and BAML (and Koine) solve this with prompt hacking and schema validation in the client.

Show HN: LocalGPT – A local-first AI assistant in Rust with persistent memory

https://github.com/localgpt-app/localgpt
102•yi_wang•3h ago•29 comments

Bye Bye Humanity: The Potential AMOC Collapse

https://thatjoescott.com/2026/02/03/bye-bye-humanity-the-potential-amoc-collapse/
14•rolph•1h ago•3 comments

SectorC: A C Compiler in 512 bytes (2023)

https://xorvoid.com/sectorc.html
244•valyala•11h ago•46 comments

Haskell for all: Beyond agentic coding

https://haskellforall.com/2026/02/beyond-agentic-coding
46•RebelPotato•3h ago•9 comments

Speed up responses with fast mode

https://code.claude.com/docs/en/fast-mode
159•surprisetalk•11h ago•150 comments

Software factories and the agentic moment

https://factory.strongdm.ai/
190•mellosouls•14h ago•335 comments

Homeland Security Spying on Reddit Users

https://www.kenklippenstein.com/p/homeland-security-spies-on-reddit
34•duxup•1h ago•6 comments

Brookhaven Lab's RHIC concludes 25-year run with final collisions

https://www.hpcwire.com/off-the-wire/brookhaven-labs-rhic-concludes-25-year-run-with-final-collis...
68•gnufx•10h ago•56 comments

LLMs as the new high level language

https://federicopereiro.com/llm-high/
58•swah•4d ago•105 comments

Hoot: Scheme on WebAssembly

https://www.spritely.institute/hoot/
178•AlexeyBrin•16h ago•33 comments

Stories from 25 Years of Software Development

https://susam.net/twenty-five-years-of-computing.html
168•vinhnx•14h ago•17 comments

Why there is no official statement from Substack about the data leak

https://techcrunch.com/2026/02/05/substack-confirms-data-breach-affecting-email-addresses-and-pho...
8•witnessme•35m ago•1 comments

First Proof

https://arxiv.org/abs/2602.05192
130•samasblack•13h ago•76 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
307•jesperordrup•21h ago•96 comments

Total Surface Area Required to Fuel the World with Solar (2009)

https://landartgenerator.org/blagi/archives/127
11•robtherobber•4d ago•2 comments

Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version

https://github.com/Momciloo/fun-with-clip-path
75•momciloo•11h ago•16 comments

Vouch

https://twitter.com/mitchellh/status/2020252149117313349
49•chwtutha•2h ago•8 comments

FDA intends to take action against non-FDA-approved GLP-1 drugs

https://www.fda.gov/news-events/press-announcements/fda-intends-take-action-against-non-fda-appro...
111•randycupertino•6h ago•229 comments

Al Lowe on model trains, funny deaths and working with Disney

https://spillhistorie.no/2026/02/06/interview-with-sierra-veteran-al-lowe/
99•thelok•13h ago•22 comments

Start all of your commands with a comma (2009)

https://rhodesmill.org/brandon/2009/commands-with-comma/
573•theblazehen•3d ago•207 comments

Show HN: A luma dependent chroma compression algorithm (image compression)

https://www.bitsnbites.eu/a-spatial-domain-variable-block-size-luma-dependent-chroma-compression-...
37•mbitsnbites•3d ago•4 comments

The AI boom is causing shortages everywhere else

https://www.washingtonpost.com/technology/2026/02/07/ai-spending-economy-shortages/
299•1vuio0pswjnm7•17h ago•475 comments

Microsoft account bugs locked me out of Notepad – Are thin clients ruining PCs?

https://www.windowscentral.com/microsoft/windows-11/windows-locked-me-out-of-notepad-is-the-thin-...
139•josephcsible•9h ago•166 comments

Selection rather than prediction

https://voratiq.com/blog/selection-rather-than-prediction/
31•languid-photic•4d ago•12 comments

I write games in C (yes, C) (2016)

https://jonathanwhiting.com/writing/blog/games_in_c/
185•valyala•11h ago•168 comments

Learning from context is harder than we thought

https://hy.tencent.com/research/100025?langVersion=en
231•limoce•4d ago•125 comments

The silent death of good code

https://amit.prasad.me/blog/rip-good-code
89•amitprasad•5h ago•81 comments

OpenCiv3: Open-source, cross-platform reimagining of Civilization III

https://openciv3.org/
900•klaussilveira•1d ago•276 comments

Where did all the starships go?

https://www.datawrapper.de/blog/science-fiction-decline
147•speckx•4d ago•229 comments

Unseen Footage of Atari Battlezone Arcade Cabinet Production

https://arcadeblogger.com/2026/02/02/unseen-footage-of-atari-battlezone-cabinet-production/
145•videotopia•4d ago•48 comments