← Directory

TaskWeaver

Open Source
• Updated Jun 4, 2026, 07:12 PM

TaskWeaver is a code-first agent framework developed by Microsoft that enables seamless planning and execution of data analytics tasks.

Use Cases ▼
01

Automating exploratory data analysis by describing the desired statistics and letting TaskWeaver generate the corresponding Python scripts

02

Generating SQL queries from plain English questions and executing them against a database to retrieve results

03

Creating data visualizations such as charts and graphs by specifying the type and data columns

04

Performing time series forecasting by outlining the steps and letting the agent code and run the model

05

Cleaning and preprocessing datasets by instructing the agent to detect missing values, normalize columns, or encode categorical variables

06

Producing summary reports by chaining data extraction, transformation, and formatting tasks

What Problem It Solves ▼

Data scientists, analysts, and business users often face the challenge of translating analytical questions into code quickly and accurately. Manual coding is time-consuming and error-prone, especially for repetitive or complex multi-step tasks. TaskWeaver addresses this by allowing users to describe what they want in natural language, and then it automatically generates and runs the necessary code, transforming raw data into actionable insights without requiring expert programming skills for every task.

Key Features ▼
✓

Code-first approach gives precise control and transparency over generated logic

✓

Automatically translates natural language into executable, editable code

✓

Open-source and self-hostable, ensuring data privacy

✓

Includes a web UI for interactive task definition and monitoring

✓

Supports complex multi-step planning and execution for data analytics

Overview

TaskWeaver is a code-first agent framework developed by Microsoft that enables seamless planning and execution of data analytics tasks. It interprets user instructions in natural language and generates executable code, typically Python, to carry out data manipulation, analysis, and visualization tasks. By combining a planning layer with a code execution engine, TaskWeaver breaks complex analytical requests into smaller, manageable steps and executes them iteratively. It supports a variety of data sources and integrates with common data science libraries, making it suitable for automating exploratory data analysis, report generation, and routine data workflows.

Full Description ▼

The framework is designed to be self-hosted, with support for Docker deployment and a web-based UI for interaction. Users can define tasks, monitor execution, and view results through a playground interface. TaskWeaver emphasizes a code-first paradigm, meaning that the generated code is human-readable and editable, allowing developers and data scientists to inspect, refine, and extend the logic. This transparency is critical for analytical tasks where correctness and interpretability are paramount.

TaskWeaver's architecture includes components for task decomposition, code generation, execution, and memory management. It can leverage large language models to understand user intent and produce suitable code, while also incorporating domain-specific plugins for specialized operations. Although the project has been archived and is no longer actively maintained, it remains a useful reference implementation for building LLM-powered data analytics agents.

Pros & Cons

Pros

+

Code-first approach gives precise control and transparency over generated logic

+

Automatically translates natural language into executable, editable code

+

Open-source and self-hostable, ensuring data privacy

+

Includes a web UI for interactive task definition and monitoring

+

Supports complex multi-step planning and execution for data analytics

Cons

−

Project has been archived, so no ongoing maintenance or new features

−

Primarily focused on data analytics, limiting its general agentic use

−

Requires technical setup and Python environment configuration

Similar Tools

LangChain AutoGen Semantic Kernel PandasAI OpenAI Codex

More in AI Agents