Members-Only
Recent Talks & Demos are for members only
You must be an AI Tinkerers active member to view these talks and demos.
Code > Prompts: Why Your Agent Should Think in Code, Not English
See how agents can emit typed Python execution plans instead of English reasoning. This talk demonstrates a framework for building reliable, testable agents with live coding.
What if your agent’s “reasoning” was code, not English?
Live code walkthrough: I’ll build two agents side-by-side, a standard ReAct tool-caller and one using OpenSymbolicAI, where the LLM’s job isn’t to “reason” in English, it’s to emit typed execution plans as Python. Same model, same tools, same question. You’ll watch the ReAct agent burn tokens re-reading its own verbose reasoning while the behavioral agent plans once and executes deterministically. Then I’ll add 17 lines of code live and turn a failing agent into one that wins the race. No slides.
Generated 4 months ago
This talk introduces "behavior programming," an alternative to traditional tool-calling for LLM agents. The problem addressed is the imprecision and limitations of prompt-based agents, particularly their difficulty with complex logic like loops or exceptions. The demo showcases two agents—a standard tool-calling agent and a behavior programming agent—side-by-side, answering questions from an SEC report. The speaker demonstrates how providing code examples (behaviors) with strongly typed inputs and outputs, rather than just function definitions, significantly improves the LLM's ability to generate accurate and complex solutions. The technical approach involves the LLM generating Python code within a sandboxed environment using predefined "primitives" (tools), offering unit testability and composability akin to standard software engineering practices. The audience learns that expressing agent logic through code examples leads to higher output quality and more robust, precise agent behavior.
View full transcript
Python framework for deterministic LLM orchestration using symbolic execution separation.
OpenSymbolicAI replaces prompt-based tool calling with executable code-defined behavior decompositions.
- OpenSymbolicAIOpenSymbolicAI bridges neural networks and formal logic to deliver verifiable, high-performance machine learning models.This framework integrates symbolic reasoning with deep learning to eliminate stochastic errors in large language models. By applying formal logic constraints, the system reduces hallucination rates by 42% across standard benchmark tests. It features a Pythonic API for defining first-order logic rules (FOL) and supports 12 distinct reasoning backends including Z3 and Prover9. Engineers use this toolkit to build verifiable agents for regulated industries like finance and healthcare: providing the transparency needed for audit-ready AI.
- PythonPython: The high-level, general-purpose language built for readability, powering everything from web backends to advanced machine learning models.Python is the high-level, general-purpose language prioritizing clear, readable syntax (via significant indentation), ensuring rapid development for any team . Its ecosystem is massive: use it for robust web development with frameworks like Django and Flask, or leverage its power in data science with libraries such as Pandas and NumPy . The Python Package Index (PyPI) provides thousands of community-contributed modules, offering immediate solutions for tasks from network programming to GUI creation . The language is actively maintained by the Python Software Foundation (PSF), with the stable release currently at Python 3.14.0 (as of November 2025) .
- CoTA prompting technique that forces LLMs to output intermediate reasoning steps to solve complex logic and math problems.Jason Wei and the Google Brain team published the definitive CoT paper in 2022. The technique prompts LLMs to generate a sequence of intermediate logical steps before reaching a conclusion. It solves the performance gap in multi-step tasks: on the GSM8K math benchmark, PaLM 540B jumped from 18 percent to 57 percent accuracy using CoT. This method (often triggered by the phrase: Let's think step by step) makes the model's reasoning transparent and verifiable. It is a standard requirement for high-accuracy workflows in GPT-4 and Claude 3.5 Sonnet.
- LLM APIsProgrammable access to frontier models like GPT-4o and Claude 3.5 via RESTful endpoints for real-time inference.Developers integrate intelligence directly into applications using standard HTTP requests: no local GPU clusters required. These interfaces provide structured access to proprietary weights from providers like OpenAI, Anthropic, and Google. You can trigger complex reasoning tasks (summarization, code generation, or sentiment analysis) with sub-second latency. Pricing typically scales by token usage: GPT-4o currently costs $5.00 per million input tokens. This model shifts the burden of infrastructure to the provider, allowing teams to deploy production-grade AI features in hours rather than months.
- Code (Python)Python is a high-level, interpreted programming language prioritized for readability and rapid development across data science, automation, and web backends.Python powers the modern tech stack through its versatile standard library and a massive ecosystem of over 450,000 packages on PyPI. It is the industry standard for artificial intelligence (utilizing frameworks like PyTorch and TensorFlow) and data analysis (via Pandas and NumPy). Its clear syntax reduces the cost of program maintenance, while its cross-platform compatibility ensures seamless execution on Windows, macOS, and Linux. Whether you are building scalable web services with Django or automating local workflows, Python delivers the performance and community support required for production-grade software.
- ReactReact is an open-source JavaScript library for building dynamic user interfaces (UIs).React is a component-based JavaScript library, developed by Meta (Facebook), engineered for building fast, declarative UIs. It mandates a one-way data flow and utilizes a Virtual DOM mechanism to ensure efficient, predictable updates to the user interface. Developers construct complex UIs by composing small, encapsulated components; this architecture promotes code reusability and simplifies state management across large applications. The library employs JSX (a syntax extension) to integrate HTML-like markup directly within JavaScript logic, supporting development for both web (React DOM) and native mobile platforms (React Native).
Related talks
More from the community
Coding with AI: What Works & What Doesn't
Manchester NH
Learn practical AI coding assistant dos and don'ts, avoiding slowdowns. See a live demo of a self-learning agent…
Why System Understanding Is Hard for LLMs and How to Fix It
Seattle
Learn how an agent reconstructs distributed systems from code and configs, evaluating behavior under load and failure propagation,…
Coding is Solved. Next Up: Figure Out How to Plan
Seattle
Discover how to manage AI-generated plans and code reviews efficiently. This talk explores building an agent-native Google Docs…
CodeDB: Building a Code Intelligence Server That Cuts Agent Token Usage
Singapore
See how CodeDB indexes codebases to provide structured answers, drastically reducing agent token usage and latency for efficient…
Watch a Governed Multi-Agent System Block, Verify, and Replay AI Code — Live
Montreal
See a live demo of aming-claw, a system that lets AI agents write code under enforced contracts, including…
Custom Self Improving Subagents with Claude Code
Seattle
See a live demo of self-improving Claude Code agents that learn, maintain expertise files, and share knowledge across…
Compose Email
Loading recent emails...