← Back to all projects

OpenClaw: General-Purpose AI Agent

2026-03-...
AI AgentsLocal LLMTool CallingReActOpen SourceAutomation

OpenClaw is a major open-source framework for building general-purpose AI agents and assistants, especially for users working with local LLMs. My work here was a focused, relatively small participation in the broader upstream project, combined with the development of my own fork for experiments around local models and tool use. The contributions focused on strengthening the core infrastructure for reliable tool use, task automation, and model capability handling. I worked on bridging the gap between small local models and advanced agent workflows through both new feature development and critical bug resolution.

Key Contributions (Local AI Focus):

  • Capability Discovery & Probing (New Feature): Designed and implemented the background probing system that automatically detects whether a local model (via Ollama or similar) supports native tool calling or requires a fallback mechanism.
  • Standardized ReAct Fallback (Infrastructure): Developed the ReAct execution path, enabling lightweight local models to perform complex tool calls by following structured thought processes.
  • Reliable Stream Interleaving (Bug Fixes): Resolved several long-standing issues with how local models handle interleaved thoughts and actions in response streams, specifically fixing parsing errors for indented and unanchored markers.
  • Persistent Model Caching: Created a thread-safe caching layer to store discovered model capabilities locally, significantly reducing latency and redundant API calls across agent sessions.

Media Gallery

OpenClaw: General-Purpose AI Agent: media 1
OpenClaw: General-Purpose AI Agent: media 2