Show HN: Skillscript – A declarative, sandboxed language for tool orchestration
Skillscript introduces a declarative, sandboxed language for AI agent orchestration, aiming to solve the high cost, latency, and drift of current LLM agent workflows by providing a structured execution environment. It proposes a unique trust model, where agents author constrained procedures, but humans approve them for execution, enabling auditability and safety. This Show HN post sparked lively debate among Hacker News commenters regarding the efficacy and necessity of creating new domain-specific languages for AI agents versus leveraging existing, battle-tested programming languages like Python.
The Lowdown
Skillscript is a novel, declarative programming language designed for AI agents to define and execute their workflows predictably and efficiently. The project addresses key challenges in current agent deployments, namely the repetitive, token-intensive re-derivation of tasks by LLMs, the lack of a persistent 'substrate' for agents to solidify their capabilities, and the inherent security risks of allowing agents to write arbitrary code in general-purpose languages like Python.
Skillscript aims to provide a solution by:
- Reducing Cost and Latency: By allowing agents to author fixed procedures that execute cheaply and quickly, rather than re-reasoning each time.
- Enhancing Auditability and Safety: The language is deliberately not Turing-complete, disallowing operations like arbitrary
evalorsubprocess.run, thereby limiting potential damage. Its declarative nature ensures human readability and static validation. - Introducing a Connector Model: Skills interact with external tools, models (local or frontier), and data stores via a well-defined connector interface, centralizing security and configuration.
- Defining Skill Types: Distinguishing between 'Headless' (asynchronous output), 'Augmenting' (for agent context), and 'Template' (agent-executable prompt) skills, and the concepts of 'static' vs. 'dynamic' execution.
- Enabling Human Oversight: Agents can author skills, but humans are intended to review and approve them, especially for effectful operations, reinforcing a 'human-in-the-loop' trust model.
The core bet behind Skillscript is that the majority of agent-authored automation is 'dispatch-shaped' rather than 'computation-shaped.' By providing a structured, auditable, and safe language, Skillscript seeks to become the default substrate for agent-fired automation, analogous to how SQL became foundational for data access.
The Gossip
Lexicon Limitations
A significant portion of the discussion centered on the choice to create a new language (Skillscript) rather than using an existing one like Python. Critics argued that inventing new, constrained languages for LLMs is counterproductive because LLMs are already extensively trained on widely-used languages, making it more efficient and less token-intensive to prompt them in Python. They invoked 'Greenspun's Tenth Rule' to suggest that custom, 'hamstrung' languages inevitably evolve into less capable versions of Lisp, incurring significant overhead in explaining the language to the LLM within the context window.