Show HN: Kastor β Terraform-style specs for AI agents
24 points - today at 3:25 PM
SourceComments
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.