# agentscope-ai/agentscope

> AgentScope is an agent framework for building and running agents that you can see, understand and trust. Its core idea is to rely on the reasoning and tool use abilities of LLMs rather than constraining them with strict prompts and fixed orchestration. It requires Python 3.11 or higher, and the codebase is mainly Python with a TypeScript web UI.

Source: https://github.com/agentscope-ai/agentscope
Indexed: commit a17937b on 2026-11-23 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Library
- Language: Python
- Stars: 36,524 at index time
- License: Apache-2.0
- Code health: 7.9/10, Good
- Last commit: 2026-11-23
- Contributors: 150

## Install

From the README: https://github.com/agentscope-ai/agentscope#installation

Clone the agentscope repository.
    git clone https://github.com/agentscope-ai/agentscope.git

Move into the agentscope folder.
    cd agentscope

Install AgentScope from PyPI with uv.
    uv pip install agentscope

From the examples/agent_service directory of the repository, start the agent service backend.
    python main.py

In the examples/web_ui directory, install the web UI dependencies with pnpm.
    pnpm install

Start the web UI in a second terminal.
    pnpm dev

## How it works

The agentscope package sits under src and holds the core agent, model, toolkit and service code. Agent building blocks such as the ReAct loop, tools, models and middleware are composed into an agent, and src/agentscope/agent/_realtime/_agent.py is a central file for realtime interruption and resume. For the hosted setup, examples/agent_service/main.py is the entry point that starts the FastAPI agent service backend. The service's chat handling lives in src/agentscope/app/_service/_chat.py, which manages sessions for the frontend. The pre-built Web UI in examples/web_ui pairs a backend with a TypeScript frontend that connects to that service. examples/console/main.py and examples/tui/main.py are alternative entry points for running agents from a terminal.

- examples/a2a/server.py: entry point
- examples/agent_service/main.py: entry point
- examples/console/main.py: entry point
- examples/long_term_memory/agentic_memory/main.py: entry point
- examples/tui/main.py: entry point
Modules: src, tests, examples, scripts, .github. 1,304 files, 309,547 lines, 13,438 symbols.

## Code health

- Score: 7.9/10 (Good)
- Rank: #82 of 265 ranked repos
- Hotspots: src/agentscope/agent/_realtime/_agent.py, src/agentscope/app/_bus_ops.py, src/agentscope/app/_service/_chat.py, src/agentscope/realtime/_gemini/_model.py, src/agentscope/mcp/_mcp_client.py
- Lowest file: src/agentscope/agent/_agent.py
- Dead code: none found

## Maintenance

- Last commit 2026-11-23, 500 commits
- 150 contributors, bus factor 2

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/agentscope-ai/agentscope/security

## More

- Page: https://repowise.dev/repo/agentscope-ai/agentscope
- Ask this codebase: https://repowise.dev/repo/agentscope-ai/agentscope/chat
- Docs: https://repowise.dev/repo/agentscope-ai/agentscope/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/agentscope-ai/agentscope
