# modelscope/ms-agent

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/modelscope-ms-agent).**

3,986 stars · 461 forks · Python · apache-2.0

## Links

- GitHub: https://github.com/modelscope/ms-agent
- Homepage: https://ms-agent-en.readthedocs.io
- awesome-repositories: https://awesome-repositories.com/repository/modelscope-ms-agent.md

## Topics

`agentic-insight` `agentic-search` `chat-bot` `code-generation` `deep-research` `memory`

## Description

ms-agent is an LLM agent framework and multi-agent orchestration system designed to build autonomous entities that combine large language models with tool calling and structured workflows. It serves as a tool integration platform and workflow engine for executing complex tasks through the coordination of specialized agents.

The project distinguishes itself through a multimodal agent workflow engine capable of automating the production of text, images, and video. It features a sandboxed code execution environment for running generated code and quantitative data analysis in isolated containers, alongside a self-healing execution model that uses language models to analyze runtime failures and automatically generate fixes.

The system covers broad capability areas including deep research automation, automated software generation, and financial research analysis. It implements these through a dependency-aware directed acyclic graph for task scheduling, hybrid-search skill matching, and state-aware memory management to maintain context across extended interactions.

An interactive web interface is provided for real-time chatting and monitoring agent execution via bidirectional connections.

## Tags

### Artificial Intelligence & ML

- [Agentic LLM Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-llm-frameworks.md) — Ships a framework for building autonomous agents powered by LLMs with native support for tool use and structured workflows.
- [Autonomous Agent Creation](https://awesome-repositories.com/f/artificial-intelligence-ml/autonomous-agent-creation.md) — Provides a comprehensive framework for building autonomous agent loops that combine LLMs with tool calling and structured workflows. ([source](https://ms-agent-en.readthedocs.io/GetStarted/Introduction.html))
- [AI Agent Integration Platforms](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-integration-platforms.md) — Provides a unified platform for managing the connection between autonomous agents and custom external tool interfaces.
- [AI Agent Workflow Definition](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-workflow-definition.md) — Enables the configuration-based definition of structured agent workflows to handle multi-step reasoning. ([source](https://ms-agent-en.readthedocs.io/))
- [Language Model Integrations](https://awesome-repositories.com/f/artificial-intelligence-ml/artificial-intelligence-tooling/language-model-integrations.md) — Connects various reasoning engines and language model providers to power autonomous agent operations. ([source](https://ms-agent-en.readthedocs.io))
- [Multi-Agent Orchestration](https://awesome-repositories.com/f/artificial-intelligence-ml/multi-agent-orchestration.md) — Implements high-level orchestration for decomposing complex goals and delegating them across multiple specialized agents.
- [Multi-Agent Orchestration Systems](https://awesome-repositories.com/f/artificial-intelligence-ml/multi-agent-orchestration-systems.md) — Implements a system for coordinating multiple autonomous agents to execute collaborative, multi-step workflows.
- [Multi-Agent Orchestrators](https://awesome-repositories.com/f/artificial-intelligence-ml/multi-agent-orchestrators.md) — Coordinates teams of specialized AI agents to decompose complex tasks into manageable sub-tasks. ([source](https://ms-agent-en.readthedocs.io/en/latest/Projects/FinResearch.html))
- [Tool Calling](https://awesome-repositories.com/f/artificial-intelligence-ml/tool-calling.md) — Implements mechanisms for language models to request and execute external functions via a standardized protocol.
- [Automated Software Engineering Agents](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-architectures/ai-agents/software-engineering/automated-software-engineering-agents.md) — Coordinates specialized agents to translate natural language requirements into complete and validated software codebases.
- [Hybrid Short-and-Long Term Memory](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-architectures/memory-management-systems/long-term-memory-stores/hybrid-short-and-long-term-memory.md) — Integrates short-term session context with long-term persistent storage and memory compression to track state.
- [Deep Research Execution](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-task-execution/deep-research-execution.md) — Autonomously executes complex analytical tasks to generate evidence-based research reports combining market data and sentiment analysis.
- [Hybrid Search Retrievers](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-rag-development/knowledge-base-retrieval/hybrid-search-retrievers.md) — Combines keyword and vector search to match user intents with the most relevant agent tools and capabilities.
- [Multimodal Workflow Orchestrators](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/agent-orchestration-multi-agent/autonomous-agents/multimodal-workflow-orchestrators.md) — Coordinates agents across diverse modalities to automate the production of text, images, and video.
- [Runtime Bug Healing](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/agent-orchestration-multi-agent/test-failure-healing/runtime-bug-healing.md) — Uses LLMs to automatically repair runtime bugs occurring during the execution of agent tasks in sandboxed environments. ([source](https://cdn.jsdelivr.net/gh/modelscope/ms-agent@main/README.md))
- [Code Execution Environments](https://awesome-repositories.com/f/artificial-intelligence-ml/code-execution-environments.md) — Provides an isolated container environment specifically for agents to safely execute generated code and data analysis.
- [External Tool Integration](https://awesome-repositories.com/f/artificial-intelligence-ml/external-tool-integration.md) — Provides the connectivity layer for agents to interact with external APIs and perform real-world actions. ([source](https://ms-agent-en.readthedocs.io/))
- [Iterative Report Generators](https://awesome-repositories.com/f/artificial-intelligence-ml/long-form-text-generation/iterative-report-generators.md) — Generates professional long-form reports using iterative search, outlining, and consistency checks. ([source](https://ms-agent-en.readthedocs.io/en/latest/Projects/FinResearch.html))
- [Financial Analysis Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/multi-agent-research-frameworks/financial-analysis-frameworks.md) — Coordinates specialized agents to combine quantitative market data and sentiment analysis for professional financial research. ([source](https://cdn.jsdelivr.net/gh/modelscope/ms-agent@main/README.md))
- [Multimodal Content Generation](https://awesome-repositories.com/f/artificial-intelligence-ml/multimodal-content-generation.md) — Processes and generates content across multiple modalities, including text, images, and video. ([source](https://ms-agent-en.readthedocs.io/en/latest/))
- [Multimodal Model Integrations](https://awesome-repositories.com/f/artificial-intelligence-ml/multimodal-model-integrations.md) — Sets up interfaces that allow LLMs and VLMs to process and respond to multiple data types simultaneously. ([source](https://ms-agent-en.readthedocs.io/))
- [Short-Form Video Generation](https://awesome-repositories.com/f/artificial-intelligence-ml/short-form-video-generation.md) — Automates the end-to-end synthesis of short-form videos, including scripting, storyboarding, and rendering. ([source](https://cdn.jsdelivr.net/gh/modelscope/ms-agent@main/README.md))

### Development Tools & Productivity

- [AI Agent Development Tools](https://awesome-repositories.com/f/development-tools-productivity/ai-agent-development-tools.md) — Provides a comprehensive environment for building autonomous entities that combine LLMs with tool calling and structured protocols.
- [Custom Tool Definitions](https://awesome-repositories.com/f/development-tools-productivity/ai-agent-development-tools/custom-tool-definitions.md) — Implements frameworks for defining typed, executable functions that agents use to interact with external systems. ([source](https://ms-agent-en.readthedocs.io))

### Programming Languages & Runtimes

- [Agent Skill DAG Execution](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/runtime-environments/runtimes/graph-symbolic-execution-engines/directed-acyclic-graph-execution-engines/agent-skill-dag-execution.md) — Executes complex agent skill sequences using a dependency-aware directed acyclic graph for precise task orchestration. ([source](https://cdn.jsdelivr.net/gh/modelscope/ms-agent@main/README.md))

### Security & Cryptography

- [Code Sandboxing Environments](https://awesome-repositories.com/f/security-cryptography/application-and-system-security/sandbox-and-isolation/code-sandboxing-environments.md) — Provides isolated container environments to securely execute model-generated code and data processing tasks.

### Data & Databases

- [Sandboxed Execution](https://awesome-repositories.com/f/data-databases/data-analysis-visualization/sandboxed-execution.md) — Executes quantitative data processing and visualization tasks within isolated environments for security and reproducibility. ([source](https://ms-agent-en.readthedocs.io/en/latest/Projects/FinResearch.html))

### DevOps & Infrastructure

- [Code Execution Sandboxes](https://awesome-repositories.com/f/devops-infrastructure/execution-environments/code-execution-runtimes/code-execution-sandboxes.md) — Runs generated data processing tasks inside isolated containers to ensure environment security and reproducibility. ([source](https://cdn.jsdelivr.net/gh/modelscope/ms-agent@main/README.md))

### Software Engineering & Architecture

- [DAG Workflow Executions](https://awesome-repositories.com/f/software-engineering-architecture/dag-based-dependency-resolution/workflow-orchestration/dag-workflow-executions.md) — Uses directed acyclic graphs to map dependencies between agent skills and ensure correct execution order.
- [LLM-Driven Self-Healing](https://awesome-repositories.com/f/software-engineering-architecture/error-recovery/llm-driven-self-healing.md) — Employs language models to analyze runtime failures and automatically generate fixes to recover failed execution steps.
- [Requirement to Code Generators](https://awesome-repositories.com/f/software-engineering-architecture/requirement-to-task-decomposition/requirement-to-code-generators.md) — Automates the translation of natural language requirements into complete, validated codebases using dependency-aware scheduling. ([source](https://cdn.jsdelivr.net/gh/modelscope/ms-agent@main/README.md))
