TaskWeaver

Stale
GitHub Python MIT

Description

TaskWeaver is Microsoft's open-source code-interpreter-style agent framework, suitable for data analysis and complex task automation.

Key Features

  • Code-first agent framework: interprets user requests through code snippets with plugin-based execution
  • Stateful execution preserving both chat history and code execution history including in-memory data
  • Rich data structure support: works with DataFrames and complex Python data types instead of plain strings
  • Customizable plugins: encapsulate domain-specific algorithms and orchestrate them for complex tasks
  • Reflective execution: agent reflects on execution process and makes adjustments for better results
  • Container-based code execution for security, with session management for multi-user data isolation

Use Cases

💡 Complex data analytics tasks with DataFrame manipulation and multi-step reasoning
💡 Prototyping AI-powered data analysis workflows with custom algorithm plugins
💡 Multi-turn data exploration where the agent maintains state across interactions
💡 Enterprise data analysis with domain-specific knowledge integration and security controls

Strengths & Limitations

Strengths

  • High community interest (6.2k stars)
  • Permissive open-source license (MIT)
  • Established track record (2 years in production)
  • Responsive to issues, low backlog

Quick Start

git clone https://github.com/microsoft/TaskWeaver.git
cd TaskWeaver
pip install -r requirements.txt

# Configure your LLM endpoint in config.yaml
# Then run:
python -m taskweaver.app

# Or use Docker:
docker pull taskweaver/taskweaver:latest
docker run -p 8000:8000 taskweaver/taskweaver:latest

Related Projects

Patchwork

1.6k · Python
Active B

Agentic AI framework for enterprise workflow automation. Uses LLM-powered pipelines for code reviews, DevOps, and other enterprise tasks.

automationworkflowagent +2
  • · Reusable atomic Steps for creating PRs, committing changes, calling LLMs, and more
  • · Customizable Prompt Templates optimized for library updates, code generation, and vulnerability remediation
  • · Patchflows combining Steps and Prompts for PR reviews, code fixing, and documentation automation

DSPy

37.3k · Python
Active A+

DSPy is a declarative LLM programming framework focused on optimizable prompts and program structure, suitable for complex agent workflows.

llmoptimizationagent +1
  • · Declarative LLM programming — Define LM call logic in Python code instead of prompts for modular AI system construction
  • · Automatic prompt optimization — DSPy Compiler automatically optimizes prompts and few-shot examples without manual tuning
  • · Modular pipeline composition — Freely combine ChainOfThought, ReAct, multi-hop and other modules for complex reasoning chains

forge

2.2k · Python
Active A

Forge is a self-hosted LLM tool-calling framework for function calling and multi-step agentic workflows using local models like Ollama and llamafile.

self-hostedtool-callingfunction-calling +4
  • · Proxy server mode drops guardrails into any OpenAI-compatible or Anthropic client without code changes
  • · Rescue parsing handles malformed tool calls from Mistral, Qwen, and fenced-JSON formats automatically
  • · WorkflowRunner with SlotWorker provides priority-queued GPU access for multi-agent architectures

Related Articles