andreasronge

andreasronge

Build LLM agents that write and execute programs instead of reading data. ptc_runner lets LLMs generate PTC-Lisp programs that run deterministically in sandboxed BEAM processes — no Python runtime, no Docker containers.

Instead of stuffing thousands of records into an LLM’s context window, the LLM writes a small program that filters, aggregates and transforms the data computationally. Tool results stay in BEAM memory, the LLM only sees what it needs.

Features

  • purpose-built PTC-Lisp (Clojure inspired) language with minimal surface area — the language itself is the sandbox
  • process isolation with configurable timeouts and heap limits, one crash never takes anything else down
  • typed signatures with automatic retry — LLM gets structured feedback on errors, including process crashes (OOM, timeout), and adapts
  • transactional memory via def — data persists across turns without re-entering context
  • composable SubAgents with typed imports/exports — agents pass large datasets between each other through BEAM memory
  • parallel tool calling with pmap/pcalls — BEAM-native concurrency, no thread pool configuration
  • ad-hoc llm-query from within generated programs — combine computation and LLM judgment in one workflow
  • compiled SubAgents — LLM writes orchestration logic once, execute deterministically after that
  • telemetry spans for every turn, LLM call and tool call with parent-child correlation
  • trace viewer with Chrome DevTools flame chart export
  • JSON mode for single-turn structured output via Mustache templates

Based on the Programmatic Tool Calling concept from Anthropic: https://www.anthropic.com/engineering/advanced-tool-use

Blog post about the motivation and design: PTC-Runner Blog | ptc_runner blog

Links

Package: ptc_runner | Hex
Docs: PtcRunner v0.13.0 — Documentation
Source:

https://github.com/andreasronge/ptc_runner

Where Next? Top

Trending in Announcing Top

bluzky
You may know https://ui.shadcn.com/, a UI component library for React. I really love it’s design style and components. I’ve built some co...
387 15136 120
New
woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
shahryarjb
The Chelekom project is a library of Phoenix and LiveView components generated via Mix tasks to fit developer needs seamlessly. One of i...
New
woylie
Phoenix components for pagination, sortable tables and filter forms with Flop and (optionally) Ecto. pagination cursor pagination sorta...
New
kip
Please say hi to a new lib, Astro that aims to deliver easy-to-consume astronomy calculations of practical use. For now it only calculat...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

Other Trending Topics Top

juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New

We're in Beta

About us Mission Statement