Skip to content
aicoolies logo
TaskWeaver logo

TaskWeaver

Code-first agent framework for data analytics tasks

TaskWeaver is Microsoft's open-source code-first agent framework that converts natural language requests into executable Python code for data analytics and workflow automation. Unlike text-based agent frameworks, it preserves rich in-memory data structures like DataFrames across conversation turns, supports custom algorithm plugins as callable functions, and verifies generated code before execution. It includes a Planner for task decomposition and a Code Interpreter for generation and execution.

About TaskWeaver

TaskWeaver addresses a specific limitation of most agent frameworks: they treat everything as text strings, losing the ability to work with native Python data structures like pandas DataFrames, numpy arrays, and dictionaries across conversation rounds. When a user asks TaskWeaver to pull data from a SQL database, run anomaly detection, and visualize results, the framework generates Python code that operates on actual in-memory objects rather than serializing everything to strings or files between steps. This makes it practical for real data analytics workflows where a business analyst wants to interact with data using natural language while the system handles the code generation and execution transparently.

The architecture has three core components. The Planner acts as the entry point, breaking user requests into subtasks and managing execution with self-reflection — if something goes wrong, it adjusts the plan rather than failing. The Code Generator produces Python code for each subtask, considering available plugins and domain-specific examples. The Code Executor runs the generated code in isolated processes with session management to keep different users' data separate. Plugins are standard Python functions that encapsulate custom algorithms — developers write functions for their domain-specific operations (SQL queries, ML models, API calls) and TaskWeaver treats them as callable tools the LLM can orchestrate. Domain knowledge is incorporated through configurable examples that teach the planner how to approach specific types of tasks.

TaskWeaver ships with a Docker image for containerized deployment and supports code execution in separate processes for security isolation. The framework works with OpenAI models and can be configured for local LLMs as well. The research paper behind TaskWeaver details a benchmark of 258 test cases for evaluating data analytics agent performance. While the project's release cadence has slowed compared to its initial launch in late 2023, it remains a reference implementation for the code-first approach to data agent design — particularly relevant as the industry shifts from simple chat-based interactions toward agents that can genuinely manipulate and analyze structured data.

Pricing & Platform Specs

Pricing Summary

Open-source code-first AI agent framework developed by Microsoft under the MIT License ($0 software cost). Fully self-hosted with local Python execution. Operational costs depend solely on user-configured LLM provider API token consumption (e.g., Azure OpenAI Service, OpenAI API, or local LLMs).

full pricing breakdown →

Supported Platforms

Python, Docker, supports OpenAI and local LLMs

Explore categories, tags & use cases

AI agent framework for web browser automation

Browser Use is an open-source AI agent framework with 99K+ GitHub stars enabling LLMs to control web browsers via natural language. Y Combinator-backed, it lets agents navigate sites, fill forms, extract data, and complete multi-step tasks autonomously. Built on Playwright with vision-based element detection, multi-tab management, cookie persistence, and self-correcting actions. Supports OpenAI, Anthropic, and local models with a simple Python API for building custom browser agents.

freemiumOpen Source

Lightweight multi-modal agent framework

Fast, lightweight Python framework for building multi-modal AI agents, formerly known as Phidata. Includes built-in memory, knowledge bases, tools, and reasoning capabilities with 40K+ GitHub stars. Designed for developers who want to build production-ready agents quickly with minimal boilerplate, supporting structured outputs and multi-agent coordination out of the box.

Open Source

Multi-agent orchestration platform for Claude Code

Claude-Flow is an open-source multi-agent orchestration platform that deploys dozens of concurrent Claude Code agents with shared memory and coordinated workflows. It enables parallel task execution, hierarchical agent coordination, and persistent context across sessions. Run via npx with zero setup. Described as the leading agent orchestration platform for Claude by industry analysts, it has 9,100+ GitHub stars and is used for complex codebase-wide refactoring and multi-file development tasks.

Open Source

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is TaskWeaver?

TaskWeaver is Microsoft's open-source code-first agent framework that converts natural language requests into executable Python code for data analytics and workflow automation. Unlike text-based agent frameworks, it preserves rich in-memory data structures like DataFrames across conversation turns, supports custom algorithm plugins as callable functions, and verifies generated code before execution. It includes a Planner for task decomposition and a Code Interpreter for generation and execution.

Is TaskWeaver free?

Yes — TaskWeaver is free to use. Open-source code-first AI agent framework developed by Microsoft under the MIT License ($0 software cost). Fully self-hosted with local Python execution. Operational costs depend solely on user-configured LLM provider API token consumption (e.g., Azure OpenAI Service, OpenAI API, or local LLMs).

Is TaskWeaver open source?

Yes — TaskWeaver is open source.

Is TaskWeaver still maintained?

Yes — TaskWeaver is active. Its listing was last verified on September 6, 2026.

What are the best TaskWeaver alternatives?

The first editor-selected TaskWeaver alternatives are Browser Use, Agno, Claude-Flow.