惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
S
Secure Thoughts
博客园 - 三生石上(FineUI控件)
爱范儿
爱范儿
宝玉的分享
宝玉的分享
J
Java Code Geeks
博客园 - 司徒正美
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
腾讯CDC
S
SegmentFault 最新的问题
博客园 - 聂微东
Jina AI
Jina AI
C
CERT Recently Published Vulnerability Notes
Application and Cybersecurity Blog
Application and Cybersecurity Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Hacker News: Ask HN
Hacker News: Ask HN
N
News and Events Feed by Topic
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
PCI Perspectives
PCI Perspectives
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
P
Proofpoint News Feed
Stack Overflow Blog
Stack Overflow Blog
I
Intezer
P
Privacy & Cybersecurity Law Blog
小众软件
小众软件
I
InfoQ
S
Security Affairs
B
Blog RSS Feed
L
Lohrmann on Cybersecurity
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
T
Threat Research - Cisco Blogs
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Help Net Security
T
Tailwind CSS Blog
C
Check Point Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
C
Cybersecurity and Infrastructure Security Agency CISA
Recorded Future
Recorded Future
Martin Fowler
Martin Fowler
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Simon Willison's Weblog
Simon Willison's Weblog
Blog — PlanetScale
Blog — PlanetScale
Cisco Talos Blog
Cisco Talos Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Open Source Project of the Day (#104): AgentScope 2.0 — Alibaba's Production-Ready Agent Framework Built Around Model Reasoning
WonderLab · 2026-06-24 · via DEV Community

Introduction

"Build and run agents you can see, understand, and trust."

This is article #104 in the Open Source Project of the Day series. Today's project is AgentScope 2.0 — Alibaba DAMO Academy's open-source production-ready agent framework.

The agent framework space is crowded. LangChain centers on chain-based orchestration. AutoGen centers on multi-agent conversation. CrewAI centers on role-based collaboration. AgentScope's differentiation is in its design philosophy: when LLM reasoning is strong enough, the framework should step back rather than constraining the model's decision space with rigid pipelines.

AgentScope 2.0 adds the production infrastructure that philosophy requires: event system, permission controls, multi-tenant isolation, sandbox execution, middleware hooks. The goal is not a demo that runs — it's a system that ships.

What You'll Learn

  • AgentScope 2.0's design philosophy: why "model-led" over "fixed pipeline"
  • The five core systems: Event / Permission / Multi-tenancy / Workspace / Middleware
  • Agent Team pattern: how the Leader-Worker architecture handles complex tasks
  • Permission system fine-grained control: tool call approval and boundary configuration
  • Positioning differences vs. LangChain and AutoGen
  • The full ecosystem: AgentScope Runtime, ReMe, OpenJudge, Trinity-RFT

Prerequisites

  • Familiarity with LLM agent concepts (tool use, reasoning loop)
  • Basic Python async programming
  • Experience with LangChain or AutoGen helps with positioning comparison

Project Background

What Is AgentScope?

AgentScope 2.0 is a production-ready agent framework — "an agent development platform with essential abstractions, designed to work with rising model capability, with built-in production support."

The core problem it addresses: traditional agent frameworks constrain LLMs with rigid pipelines and opinionated prompt templates. As LLM reasoning capability has improved rapidly, that constraint has become a bottleneck. AgentScope shifts to "letting the model's native reasoning and tool-use capabilities drive agent behavior" — the framework provides production infrastructure, not execution path constraints.

Author / Team

  • Team: Alibaba DAMO Academy
  • Key researchers: Dawei Gao, Zitao Li, Yaliang Li, Bolin Ding, Jingren Zhou, and others
  • License: Apache-2.0
  • Version: v2.0.2 (June 2026)
  • Papers: arXiv:2402.14034 (2024) and arXiv:2508.16279 (2025)

Project Stats

  • ⭐ GitHub Stars: 27,100+
  • 🍴 Forks: 3,100+
  • 📦 Releases: 40
  • 📄 License: Apache-2.0

Core Features

Basic Building Block

The minimum working unit in AgentScope 2.0 is an Agent, extended by composing systems:

import asyncio
from agentscope import Agent, Toolkit, DashScopeChatModel, DashScopeCredential
from agentscope.tools import Bash, Grep, Glob, Read, Write
from agentscope.message import UserMsg

# Define a toolkit
toolkit = Toolkit(tools=[Bash(), Grep(), Glob(), Read(), Write()])

# Create an agent
agent = Agent(
    name="code-assistant",
    system_prompt="You are a code assistant that helps users analyze and modify codebases.",
    model=DashScopeChatModel(
        credential=DashScopeCredential(api_key="your_key"),
        model="qwen3.6-plus"
    ),
    toolkit=toolkit
)

# Streaming reasoning loop
async def run():
    async for evt in agent.reply_stream(UserMsg("user", "Analyze the structure of this codebase")):
        match evt.type:
            case EventType.TEXT_BLOCK_DELTA:
                print(evt.delta, end="", flush=True)
            case EventType.TOOL_CALL_START:
                print(f"\n[Tool call] {evt.tool_name}")

asyncio.run(run())

Five Core Systems

1. Event System

A unified event bus connecting all phases of the agent's reasoning process:

EventType.REPLY_START          # Agent begins responding
EventType.MODEL_CALL_START     # Model call initiated
EventType.TEXT_BLOCK_START     # Text block starts
EventType.TEXT_BLOCK_DELTA     # Streaming text delta
EventType.TEXT_BLOCK_END       # Text block complete
EventType.TOOL_CALL_START      # Tool call initiated
EventType.TOOL_CALL_END        # Tool call complete

Human-in-the-loop workflows attach through the event system: pause the agent on a specific event, wait for human confirmation, resume execution.

2. Permission System

Fine-grained control over which tool calls require approval vs. automatic execution:

from agentscope.permission import PermissionConfig, ApprovalMode

config = PermissionConfig(
    # File writes require confirmation
    Write: ApprovalMode.ALWAYS,
    # Shell execution requires confirmation
    Bash: ApprovalMode.ALWAYS,
    # Reads are automatic
    Read: ApprovalMode.NEVER,
    # Operations over $0.10 require confirmation
    default_cost_threshold=0.10
)

Permission Bypass Mode: For testing or trusted scenarios, disable all approvals and let the agent run fully autonomously.

3. Multi-Tenancy / Session Isolation

The FastAPI service layer provides production-grade tenant and session isolation:

  • Agent instances across tenants are invisible to each other
  • Session-level context management
  • Concurrent request handling across multiple users
  • Built-in authentication

4. Workspace / Sandbox Execution

Three backend options for isolated tool execution:

Backend Best for
Local Development and testing, fastest
Docker Production, dependency isolation
E2B Cloud sandbox, highest security

5. Middleware System

Insert composable hooks into the agent's reasoning-acting loop without modifying core agent code:

from agentscope.middleware import LoggingMiddleware, GuardrailMiddleware

agent = Agent(
    ...
    middlewares=[
        LoggingMiddleware(log_tool_calls=True),
        GuardrailMiddleware(blocked_patterns=["rm -rf", "DROP TABLE"]),
    ]
)

Agent Team (Multi-Agent Coordination)

Leader-Worker pattern: a Leader Agent decomposes tasks and creates Worker agents via built-in team tools, then aggregates results.

from agentscope.tools import TeamTools

# Leader has team_tools — can create and coordinate workers
leader = Agent(
    name="research-leader",
    system_prompt="You lead a research team. Decompose tasks and synthesize results.",
    model=model,
    toolkit=Toolkit(tools=[*TeamTools()])
)

# At runtime, the leader automatically decomposes:
# "Analyze the core arguments of these 5 papers"
# → Creates 5 workers, one per paper
# → Aggregates results

Worker agents' capabilities are determined dynamically by the leader at runtime — no need to predefine all possible worker types.

Task Planning

Agents decompose complex tasks into tracked plan steps, updating state in real time as execution proceeds:

Task: "Write a complete test suite for this Python project"
Agent generates plan:
  Step 1: [In progress] Scan project structure, identify all modules
  Step 2: [Waiting]     Analyze public API of each module
  Step 3: [Waiting]     Generate unit tests
  Step 4: [Waiting]     Generate integration tests
  Step 5: [Waiting]     Run test suite, fix failures

Step 1 completes → Step 2 starts automatically, plan state updates

Background Task Offloading

Long-running tool calls (file processing, network requests, code compilation) shift to background without blocking the agent conversation stream:

User: "Compile this large C++ project and run the tests"
Agent: [Launches background task, continues conversation immediately]
Agent: "Compilation started in background, estimated 5 minutes.
        I can help with other things while you wait."
...(5 minutes later)
System notification: background task complete
Agent: "Compilation complete. Test results: ..."


Deep Dive

Design Philosophy: Let the Model Lead

This is the most fundamental difference between AgentScope 2.0 and many comparable frameworks:

Traditional approach (LangChain-style):

Developer defines a fixed chain:
Step 1 → Step 2 → Step 3 (developer decides what happens at each step)
The model fills in blanks within each step

AgentScope approach:

Developer provides: toolkit + permissions + constraints
Model decides:      what to do, in what order, with which tools
Framework handles:  production safety, observability, human-in-the-loop

When model reasoning was weak, fixed pipelines were correct — models needed guidance. When model reasoning is strong enough, fixed pipelines become constraints — the model has better plans it can't execute. AgentScope 2.0's timing judgment: mainstream models from 2025 onward are capable enough to deserve more autonomy.

Streaming Event Architecture

The standard async for evt in agent.reply_stream() pattern enables:

  • Frontend can display the agent's reasoning process in real time
  • Tool calls show up as they begin, not after completion
  • Human approvals can be inserted before any tool call
  • The entire reasoning process is fully observable and loggable

Production Deployment: AgentScope Runtime

A separate AgentScope Runtime (runtime.agentscope.io) provides a complete production service layer:

  • Secure sandbox execution: for code running and tool calls
  • Service deployment: turn agents into callable API services
  • Multi-language runtimes: Python, Java (JVM), TypeScript backends

Full Ecosystem

AgentScope is not just a framework — there's a complete toolchain behind it:

Component Function
AgentScope Studio Visual debugging tool for agent runs
ReMe Cross-session persistent memory (file-based + vector-based)
OpenJudge 50+ judges (code, math, tool use, multimodal output)
Trinity-RFT Agent fine-tuning framework (decoupled Explorer/Trainer/Buffer)
Mem0 integration Long-term memory (added June 2026)

Framework Comparison

Dimension LangChain AutoGen AgentScope 2.0
Core pattern Chain-based Multi-agent conversation Model-reasoning-led
Production infra Third-party Third-party Built-in
Sandbox execution None Limited Local / Docker / E2B
Human-in-the-loop Plugin Native Event system native
Evaluation system None None OpenJudge (50+ judges)
Fine-tuning support None None Trinity-RFT
Academic backing Yes Yes Yes (2 arXiv papers)

The most significant gap: AgentScope covers the full agent lifecycle — framework → memory → evaluation → fine-tuning → apps. LangChain and AutoGen stop at the framework and memory layers.


Quick Start

Install:

pip install agentscope

Or from source:

git clone https://github.com/agentscope-ai/agentscope.git
pip install -e .

Run the web UI:

cd agentscope
pnpm install && pnpm run dev   # frontend
python -m agentscope.service   # backend


Links and Resources

Official Resources


Conclusion

AgentScope 2.0's timing is deliberate: at a moment when LLM reasoning capability is advancing fast, it chooses "reduce framework constraints, let the model lead" as its direction.

The five core systems (Event / Permission / Workspace / Multi-tenancy / Middleware) address the production pain points of traditional frameworks: poor observability, no fine-grained tool permission control, difficulty serving multiple users, and security constraints mixed into business logic.

The ecosystem coverage is what separates it most clearly. Framework → memory → evaluation → fine-tuning is a complete chain that LangChain and AutoGen haven't built. OpenJudge alone — 50+ judges covering code, math, tool use, and multimodal output — fills a gap that most teams solve by writing evaluation scripts from scratch.

27.1k Stars, 40 releases, two arXiv papers, and an Alibaba engineering team behind it. Among production-grade agent frameworks, AgentScope 2.0 is one of the most thorough options currently available.


Explore PrimeSkills — A marketplace for handpicked AI Agents and skills. Each is validated in real enterprise workflows, stripping away hype and keeping only what truly works.

Welcome to my Homepage for more useful insights and interesting products.