frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Kastor – Terraform-style specs for AI agents

https://github.com/weirdGuy/kastor
29•weirdguy•3h ago

Comments

weirdguy•3h ago
hey HN, it's first time posting something here.

I’m building Kastor: Go CLI/declarative language/config for AI agents.

the motivation: agent definitions often end up spread across framework code, prompt files, tool files/mcps, platform UI settings, and env vars. that makes them hard to review, diff, reproduce or move.

Kastor is an attempt to put a source-of-truth layer above that.

right now the working proof of concept is narrow:

- .agent / .tool / .prompt files - HCL parser + validation - dependency/reference checks - LangGraph codegen - runnable weather example - runnable content scheduler example

the long-term direction is Terraform-ish:

- build: compile to framework code - plan/apply: reconcile hosted platform agents - state: track remote resources and detect drift

I’m deliberately not trying to build another agent runtime. the thing I’m trying to validate is whether agents need something closer to IaC: versionable, reviewable, declarative source of truth.

would appreciate any kind of feedback, especially on the language/design.

handfuloflight•3h ago
The website is down?
weirdguy•3h ago
oh, it's not, just root domain (non-www) without redirect
handfuloflight•3h ago
That's not working either.
weirdguy•2h ago
try with www, should work, the apex zone still did not propagate for whatever reason
handfuloflight•2h ago
Works now.
Leewen•3h ago
works for me. terraform for agents? neat
weirdguy•3h ago
thanks — that’s the direction. current version is still just validate + LangGraph codegen, but plan/apply/state is the part I’m trying to get to next
Leewen•2h ago
GL
empath75•3h ago
The problem right now with something like this is you're trying to nail jello to a wall. People haven't figured out what an agent is yet, and trying to crystalize what people happen to be doing right now means in a few months, you're going to be obsolete.
weirdguy•2h ago
I agree with you

don't think the "agent" abstraction is stable enough to standardize the behavior/runtime layer yet.

thing I'm trying to test is smaller: is that possible to standardize the outer contract around agents?

what inputs does it accept? what outputs does it promise? what model does it use? what prompt/template does it depend on? what tools can it call? what target should it be built or applied to?

so here it is intentionally not trying to describe the full control loop or become a runtime. it's more like a source-of-truth layer for the parts that are already showing up everywhere, even if the runtime patterns keep changing underneath.

I might be wrong, but my bet is that the runtime layer will keep changing, while the need for reviewable/diffable agent contracts will not.

reactordev•2h ago
You mean Claude…
giancarlostoro•1h ago
Claude is a model, an agent is more like the full solution. Some would call Claude Code itself an agent. Agents do things, models are just models until you use them.
reactordev•1h ago
What are you going on about? I was saying that they didn’t write any code it was all Claude. Obviously using Claude code.
whattheheckheck•30m ago
Why not just make an actual terraform module?
weirdguy•22m ago
Good question

For hosted agents only, a Terraform provider probably makes sense.

The reason I didn’t start there is that Kastor has two paths:

1 - build: compile the spec into framework code, e.g. LangGraph

2 - plan/apply for agents hosted on platforms

Terraform is great for the second path, but awkward as the primary tool for the first one. I want the same agent spec to be able to produce code or manage a remote agent.

So I can imagine a Terraform provider being one target later, but I don’t think Terraform itself is the right tool/place for the whole thing.

giancarlostoro•1h ago
The post you replied about is regarding people not knowing what "agent" means, but you also wrote very little, so its hard to gauge what your angle was. Not sure why it was downvoted.

Show HN: Microsoft releases Flint, a visualization language for AI agents

https://microsoft.github.io/flint-chart/#/
52•chenglong-hn•1h ago•22 comments

Show HN: Follow London Trains in 3D

https://ride.nexttrain.london/
96•mgranados•4d ago•43 comments

Show HN: Foreman, a self-hosted LLM gateway for cost aware model routing

https://github.com/Northwood-Systems/foreman
2•AndrewLiu96•1h ago•0 comments

Show HN: Monogram, AI app with on the fly generation

https://www.monogram.ai/
8•edouard1234567•1h ago•3 comments

Show HN: Requirements Engineering with Formal Verification

https://fizzbee.ai/
9•jayaprabhakar•1h ago•0 comments

Show HN: Davit, a Apple Containers UI

https://davit.app
374•xinit•1d ago•95 comments

Show HN: Hover over your UI element to get its exact location in code

https://loerei.github.io/HoverSource/
2•Loerei•1h ago•1 comments

Show HN: Kastor – Terraform-style specs for AI agents

https://github.com/weirdGuy/kastor
29•weirdguy•3h ago•17 comments

Show HN: Rowboat – Open-source, local-first alternative to Claude Desktop

https://github.com/rowboatlabs/rowboat
209•segmenta•1d ago•90 comments

Show HN: Neil the Seal Game

https://neiltheseal.app/
80•dalemhurley•3d ago•65 comments

Show HN: Chiptune Radio

https://chiptune-radio.alephvoid.com/
71•bootbloopers•18h ago•15 comments

Show HN: Maps for e-scooters (hills and battery routing)

https://battmap.com
2•thepaulthomson•3h ago•2 comments

Show HN: Pug.sh – open-source product analytics

https://pug.sh/
9•BajajScooter•6h ago•5 comments

Show HN: Free Mermaid Diagram Editor

https://moxiedocs.com/mermaid-diagram-editor
49•ghosts_•19h ago•12 comments

Show HN: PostgreSQL performance and cost across 23 EC2 instance types

https://postgres.saneengineer.com
94•anivan_•1d ago•19 comments

Show HN: Docx-CLI: agents read/edit Word docs using 1/2 the time and tokens

https://github.com/kklimuk/docx-cli
68•kirillklimuk•1d ago•30 comments

Show HN: Fast, native Mac file manager (filters, fuzzy find, 9 MB, no Electron)

https://whimfiles.com
97•whimbyte•1d ago•68 comments

Show HN: Halo – open-source, tamper-evident runtime evidence for AI agents

https://github.com/bkuan001/halo-record
37•brian_kuan•1d ago•23 comments

Show HN: Pretend to Vibe Code, but Meditate

https://tomreinert.de/no-effort/
5•tom2948329494•2h ago•4 comments

Show HN: your website as a TUI, over SSH right now

11•keepamovin•18h ago•5 comments

Show HN: Turbo – An open-source, fast HTTP server with a real-time config GUI

https://turbo.okzgn.com
8•okzgn•18h ago•2 comments

Show HN: Pulpie – Models for Cleaning the Web

https://usefeyn.com/blog/pulpie-pareto-optimal-models-for-cleaning-the-web/
101•snyy•2d ago•25 comments

Show HN: Ghostmeet – Self-hosted meeting transcription and summaries

https://ghostmeet.sshlab.dev/
16•swq115•17h ago•7 comments

Show HN: I built an AI spritesheet generator for game developers

https://www.autosprite.io
4•autosprite•20h ago•0 comments

Show HN: OCR Buddy: local browser OCR for code, formulas (LaTeX) and tables

https://github.com/Fanfulla/OCR-buddy
6•Fanfulla•21h ago•0 comments

Show HN: Jot, a menu bar app that catches a thought before it's gone

https://jot.arunbrahma.com
5•masterbrewer•12h ago•5 comments

Show HN: Codex-profiles – isolated Codex CLI/Desktop profiles

https://ducksss.github.io/codex-profiles/
3•chaipinzheng•12h ago•0 comments

Show HN: Baerly-storage, a document DB that runs per request, no DB server

https://github.com/Gusto/baerly-storage
17•baerbaerbaer•1d ago•1 comments

Show HN: Context Warp Drive – Deterministic context folding for AI agents

https://github.com/dogtorjonah/context-warp-drive
10•Dr_Jonah•1d ago•5 comments

Show HN: Homegames. An open-source game platform I've been making for 8 years

https://homegames.io
227•homegamesjoseph•2d ago•55 comments