WhoBuilt

A Piece of Pi: Embedding The OpenClaw Coding Agent In Your Product

May 11, 2026· 21 min· 16K views·Watch on YouTube

Speaker

Matthias Luebken of Tavon AI discusses how to embed Pi and coding-agent patterns in products at an AI Engineer event.

Make products easy for agents to use

Luebken connects the Unix idea of programs that do one thing well to building products for coding agents. He points to Claude’s finance tools as an example: a skill combines a CLI, Pandas, OpenPyXL, and LibreOffice tools to work with spreadsheets. He says there are no established patterns yet, so teams should experiment and keep systems accessible to agents.

Build with Pi’s agent core

Luebken describes Pi as an open-source, minimal starting point and explains that an agent runs tools in a loop using goals and context. His TypeScript CRM lead qualifier is a small terminal app that scores leads through tool calls. Hooks can check an action before a tool runs, while events let the application track tool results.

Extend the coding agent with product interactions

A coding agent adds a runtime and shell to the same tool-running loop. Luebken describes Pi extensions that connect session events and UI interactions: his CRM example adds a `/pipeline` command and lets users select contacts. He also shows a web UI built around the same extension mechanism, while noting that Pi’s framework is still geared toward coding.

Apply agent sessions to a sales workflow

Luebken explains that OpenClaw uses Pi’s core packages for embedded agents and sessions, while adding its own support for channels, provider orchestration, sub-agents, and gateways. In a client sales process, incoming proposal emails are routed to customer-specific agents with role and customer instructions, reusable sessions, and CLI access to CRM and ERP data. The system associates work with a case and produces an editable draft email for the user.

Takeaways

  • Expose product capabilities through simple tools, such as CLIs, that agents can use.
  • Use hooks to check sensitive actions before an agent executes them.
  • Use session history to give agents context across repeated work on a case.
  • Keep the user’s workflow familiar by delivering agent output as an editable email draft.
  • Treat Pi as a minimal system to experiment with, while accounting for the work needed beyond coding-agent use cases.

Mentioned in this talk

Search inside this talk

What was claimed 7

  • feature
    Tavon AI: Builds agents for organizations
    “We’re building agents for organizations.”
    YouTube
    Unverified1 source· Talk
  • feature
    Claude: Desktop bundles a coding agent
    “They’re basically bundling their coding agent into something”
    YouTube
    Unverified1 source· Talk
  • feature
    Claude: Finance tools include an Excel skill that uses a CLI, Pandas, OpenPyXL, and LibreOffice tools
    “they have this Excel skill now, and it talks to Excel”
    YouTube
    Unverified1 source· Talk
  • feature
    Pi: Open source and minimal
    “It’s open source and minimal”
    YouTube
    Unverified1 source· Talk
  • feature
    Pi: Provides an extension API with session events and UI interaction
    “the important part is the extension API”
    YouTube
    Unverified1 source· Talk
  • uses
    “all of Pi’s core packages are used in OpenClaw”
    YouTube
    Verified2 sources· Talk
  • feature
    OpenClaw: Supports multi-channel routing, provider orchestration, sub-agents, and gateway support
    “It supports multi-channel routing, different provider orchestration, sub-agents, gateway support”
    YouTube
    Unverified1 source· Talk

Related talks