Metadata-Version: 2.4
Name: agentica
Version: 1.6.1
Summary: Agentica: A lightweight Python SDK for building AI agents with persistent memory and self-evolution
Author-email: XuMing <xuming624@qq.com>
License:                                  Apache License
                                   Version 2.0, January 2004
                                http://www.apache.org/licenses/
        
           TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
        
           1. Definitions.
        
              "License" shall mean the terms and conditions for use, reproduction,
              and distribution as defined by Sections 1 through 9 of this document.
        
              "Licensor" shall mean the copyright owner or entity authorized by
              the copyright owner that is granting the License.
        
              "Legal Entity" shall mean the union of the acting entity and all
              other entities that control, are controlled by, or are under common
              control with that entity. For the purposes of this definition,
              "control" means (i) the power, direct or indirect, to cause the
              direction or management of such entity, whether by contract or
              otherwise, or (ii) ownership of fifty percent (50%) or more of the
              outstanding shares, or (iii) beneficial ownership of such entity.
        
              "You" (or "Your") shall mean an individual or Legal Entity
              exercising permissions granted by this License.
        
              "Source" form shall mean the preferred form for making modifications,
              including but not limited to software source code, documentation
              source, and configuration files.
        
              "Object" form shall mean any form resulting from mechanical
              transformation or translation of a Source form, including but
              not limited to compiled object code, generated documentation,
              and conversions to other media types.
        
              "Work" shall mean the work of authorship, whether in Source or
              Object form, made available under the License, as indicated by a
              copyright notice that is included in or attached to the work
              (an example is provided in the Appendix below).
        
              "Derivative Works" shall mean any work, whether in Source or Object
              form, that is based on (or derived from) the Work and for which the
              editorial revisions, annotations, elaborations, or other modifications
              represent, as a whole, an original work of authorship. For the purposes
              of this License, Derivative Works shall not include works that remain
              separable from, or merely link (or bind by name) to the interfaces of,
              the Work and Derivative Works thereof.
        
              "Contribution" shall mean any work of authorship, including
              the original version of the Work and any modifications or additions
              to that Work or Derivative Works thereof, that is intentionally
              submitted to Licensor for inclusion in the Work by the copyright owner
              or by an individual or Legal Entity authorized to submit on behalf of
              the copyright owner. For the purposes of this definition, "submitted"
              means any form of electronic, verbal, or written communication sent
              to the Licensor or its representatives, including but not limited to
              communication on electronic mailing lists, source code control systems,
              and issue tracking systems that are managed by, or on behalf of, the
              Licensor for the purpose of discussing and improving the Work, but
              excluding communication that is conspicuously marked or otherwise
              designated in writing by the copyright owner as "Not a Contribution."
        
              "Contributor" shall mean Licensor and any individual or Legal Entity
              on behalf of whom a Contribution has been received by Licensor and
              subsequently incorporated within the Work.
        
           2. Grant of Copyright License. Subject to the terms and conditions of
              this License, each Contributor hereby grants to You a perpetual,
              worldwide, non-exclusive, no-charge, royalty-free, irrevocable
              copyright license to reproduce, prepare Derivative Works of,
              publicly display, publicly perform, sublicense, and distribute the
              Work and such Derivative Works in Source or Object form.
        
           3. Grant of Patent License. Subject to the terms and conditions of
              this License, each Contributor hereby grants to You a perpetual,
              worldwide, non-exclusive, no-charge, royalty-free, irrevocable
              (except as stated in this section) patent license to make, have made,
              use, offer to sell, sell, import, and otherwise transfer the Work,
              where such license applies only to those patent claims licensable
              by such Contributor that are necessarily infringed by their
              Contribution(s) alone or by combination of their Contribution(s)
              with the Work to which such Contribution(s) was submitted. If You
              institute patent litigation against any entity (including a
              cross-claim or counterclaim in a lawsuit) alleging that the Work
              or a Contribution incorporated within the Work constitutes direct
              or contributory patent infringement, then any patent licenses
              granted to You under this License for that Work shall terminate
              as of the date such litigation is filed.
        
           4. Redistribution. You may reproduce and distribute copies of the
              Work or Derivative Works thereof in any medium, with or without
              modifications, and in Source or Object form, provided that You
              meet the following conditions:
        
              (a) You must give any other recipients of the Work or
                  Derivative Works a copy of this License; and
        
              (b) You must cause any modified files to carry prominent notices
                  stating that You changed the files; and
        
              (c) You must retain, in the Source form of any Derivative Works
                  that You distribute, all copyright, patent, trademark, and
                  attribution notices from the Source form of the Work,
                  excluding those notices that do not pertain to any part of
                  the Derivative Works; and
        
              (d) If the Work includes a "NOTICE" text file as part of its
                  distribution, then any Derivative Works that You distribute must
                  include a readable copy of the attribution notices contained
                  within such NOTICE file, excluding those notices that do not
                  pertain to any part of the Derivative Works, in at least one
                  of the following places: within a NOTICE text file distributed
                  as part of the Derivative Works; within the Source form or
                  documentation, if provided along with the Derivative Works; or,
                  within a display generated by the Derivative Works, if and
                  wherever such third-party notices normally appear. The contents
                  of the NOTICE file are for informational purposes only and
                  do not modify the License. You may add Your own attribution
                  notices within Derivative Works that You distribute, alongside
                  or as an addendum to the NOTICE text from the Work, provided
                  that such additional attribution notices cannot be construed
                  as modifying the License.
        
              You may add Your own copyright statement to Your modifications and
              may provide additional or different license terms and conditions
              for use, reproduction, or distribution of Your modifications, or
              for any such Derivative Works as a whole, provided Your use,
              reproduction, and distribution of the Work otherwise complies with
              the conditions stated in this License.
        
           5. Submission of Contributions. Unless You explicitly state otherwise,
              any Contribution intentionally submitted for inclusion in the Work
              by You to the Licensor shall be under the terms and conditions of
              this License, without any additional terms or conditions.
              Notwithstanding the above, nothing herein shall supersede or modify
              the terms of any separate license agreement you may have executed
              with Licensor regarding such Contributions.
        
           6. Trademarks. This License does not grant permission to use the trade
              names, trademarks, service marks, or product names of the Licensor,
              except as required for reasonable and customary use in describing the
              origin of the Work and reproducing the content of the NOTICE file.
        
           7. Disclaimer of Warranty. Unless required by applicable law or
              agreed to in writing, Licensor provides the Work (and each
              Contributor provides its Contributions) on an "AS IS" BASIS,
              WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
              implied, including, without limitation, any warranties or conditions
              of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
              PARTICULAR PURPOSE. You are solely responsible for determining the
              appropriateness of using or redistributing the Work and assume any
              risks associated with Your exercise of permissions under this License.
        
           8. Limitation of Liability. In no event and under no legal theory,
              whether in tort (including negligence), contract, or otherwise,
              unless required by applicable law (such as deliberate and grossly
              negligent acts) or agreed to in writing, shall any Contributor be
              liable to You for damages, including any direct, indirect, special,
              incidental, or consequential damages of any character arising as a
              result of this License or out of the use or inability to use the
              Work (including but not limited to damages for loss of goodwill,
              work stoppage, computer failure or malfunction, or any and all
              other commercial damages or losses), even if such Contributor
              has been advised of the possibility of such damages.
        
           9. Accepting Warranty or Additional Liability. While redistributing
              the Work or Derivative Works thereof, You may choose to offer,
              and charge a fee for, acceptance of support, warranty, indemnity,
              or other liability obligations and/or rights consistent with this
              License. However, in accepting such obligations, You may act only
              on Your own behalf and on Your sole responsibility, not on behalf
              of any other Contributor, and only if You agree to indemnify,
              defend, and hold each Contributor harmless for any liability
              incurred by, or claims asserted against, such Contributor by reason
              of your accepting any such warranty or additional liability.
        
           END OF TERMS AND CONDITIONS
        
           APPENDIX: How to apply the Apache License to your work.
        
              To apply the Apache License to your work, attach the following
              boilerplate notice, with the fields enclosed by brackets "[]"
              replaced with your own identifying information. (Don't include
              the brackets!)  The text should be enclosed in the appropriate
              comment syntax for the file format. We also recommend that a
              file or class name and description of purpose be included on the
              same "printed page" as the copyright notice for easier
              identification within third-party archives.
        
           Copyright [yyyy] [name of copyright owner]
        
           Licensed under the Apache License, Version 2.0 (the "License");
           you may not use this file except in compliance with the License.
           You may obtain a copy of the License at
        
               http://www.apache.org/licenses/LICENSE-2.0
        
           Unless required by applicable law or agreed to in writing, software
           distributed under the License is distributed on an "AS IS" BASIS,
           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
           See the License for the specific language governing permissions and
           limitations under the License.
        
Project-URL: Homepage, https://github.com/shibing624/agentica
Project-URL: Documentation, https://shibing624.github.io/agentica
Project-URL: Repository, https://github.com/shibing624/agentica
Project-URL: Issues, https://github.com/shibing624/agentica/issues
Project-URL: Changelog, https://github.com/shibing624/agentica/blob/main/CHANGELOG.md
Keywords: ai,agent,llm,sdk,agentic
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openai>=2.51.0
Requires-Dist: anthropic>=0.40
Requires-Dist: pydantic>=2.0
Requires-Dist: httpx>=0.26
Requires-Dist: Pillow>=10.0
Requires-Dist: aiofiles>=23.0
Requires-Dist: tiktoken>=0.5
Requires-Dist: pyyaml>=6.0
Requires-Dist: ruamel.yaml>=0.17
Requires-Dist: python-dotenv>=1.0
Requires-Dist: typing_extensions>=4.0
Requires-Dist: python-frontmatter>=1.0
Requires-Dist: prompt-toolkit>=3.0
Requires-Dist: rich>=13.0
Requires-Dist: markdown-it-py>=2.2
Requires-Dist: beautifulsoup4>=4.12
Requires-Dist: lxml>=4.9
Requires-Dist: markdownify>=0.11
Requires-Dist: requests>=2.31
Requires-Dist: puremagic>=1.15
Requires-Dist: tqdm>=4.65
Provides-Extra: ollama
Requires-Dist: ollama>=0.1; extra == "ollama"
Provides-Extra: azure
Requires-Dist: azure-ai-inference>=1.0; extra == "azure"
Requires-Dist: aiohttp; extra == "azure"
Provides-Extra: litellm
Requires-Dist: litellm<=1.82.6; extra == "litellm"
Provides-Extra: google
Requires-Dist: google-genai>=1.0; extra == "google"
Provides-Extra: groq
Requires-Dist: groq>=0.4; extra == "groq"
Provides-Extra: mistral
Requires-Dist: mistralai>=1.0; extra == "mistral"
Provides-Extra: bedrock
Requires-Dist: boto3; extra == "bedrock"
Requires-Dist: aioboto3; extra == "bedrock"
Provides-Extra: mcp
Requires-Dist: mcp<3,>=2; extra == "mcp"
Provides-Extra: ddg
Provides-Extra: wikipedia
Requires-Dist: wikipedia>=1.4; extra == "wikipedia"
Provides-Extra: serper
Provides-Extra: exa
Provides-Extra: bocha
Provides-Extra: tavily
Requires-Dist: tavily-python>=0.3; extra == "tavily"
Provides-Extra: yfinance
Requires-Dist: yfinance>=0.2; extra == "yfinance"
Provides-Extra: arxiv
Requires-Dist: arxiv>=2.0; extra == "arxiv"
Provides-Extra: newspaper
Requires-Dist: newspaper4k; extra == "newspaper"
Requires-Dist: lxml_html_clean; extra == "newspaper"
Provides-Extra: dblp
Provides-Extra: dalle
Provides-Extra: cogview
Provides-Extra: cogvideo
Provides-Extra: ocr
Requires-Dist: pytesseract>=0.3; extra == "ocr"
Provides-Extra: image-analysis
Provides-Extra: video-analysis
Provides-Extra: crawl
Provides-Extra: jupyter
Requires-Dist: jupyter>=1.0; extra == "jupyter"
Requires-Dist: ipykernel>=6.0; extra == "jupyter"
Provides-Extra: sql
Requires-Dist: sqlalchemy>=2.0; extra == "sql"
Provides-Extra: e2b
Requires-Dist: e2b_code_interpreter>=1.0; extra == "e2b"
Provides-Extra: resend
Requires-Dist: resend>=0.7; extra == "resend"
Provides-Extra: volc-tts
Provides-Extra: weather
Requires-Dist: requests>=2.31; extra == "weather"
Provides-Extra: cos
Provides-Extra: tools-search
Requires-Dist: agentica[ddg]; extra == "tools-search"
Requires-Dist: agentica[wikipedia]; extra == "tools-search"
Requires-Dist: agentica[serper]; extra == "tools-search"
Requires-Dist: agentica[exa]; extra == "tools-search"
Requires-Dist: agentica[bocha]; extra == "tools-search"
Provides-Extra: tools-research
Requires-Dist: agentica[arxiv]; extra == "tools-research"
Requires-Dist: agentica[wikipedia]; extra == "tools-research"
Requires-Dist: agentica[newspaper]; extra == "tools-research"
Requires-Dist: agentica[dblp]; extra == "tools-research"
Provides-Extra: tools-finance
Requires-Dist: agentica[yfinance]; extra == "tools-finance"
Provides-Extra: tools-media
Requires-Dist: agentica[dalle]; extra == "tools-media"
Requires-Dist: agentica[cogview]; extra == "tools-media"
Requires-Dist: agentica[cogvideo]; extra == "tools-media"
Requires-Dist: agentica[ocr]; extra == "tools-media"
Requires-Dist: agentica[image-analysis]; extra == "tools-media"
Requires-Dist: agentica[video-analysis]; extra == "tools-media"
Provides-Extra: tools-extra
Requires-Dist: agentica[tools-search]; extra == "tools-extra"
Requires-Dist: agentica[tools-research]; extra == "tools-extra"
Requires-Dist: agentica[tools-finance]; extra == "tools-extra"
Requires-Dist: agentica[crawl]; extra == "tools-extra"
Provides-Extra: gateway
Requires-Dist: agentica-gateway[feishu]==1.6.1; extra == "gateway"
Provides-Extra: telegram
Requires-Dist: agentica[gateway]; extra == "telegram"
Requires-Dist: agentica-gateway[telegram]==1.6.1; extra == "telegram"
Provides-Extra: discord
Requires-Dist: agentica[gateway]; extra == "discord"
Requires-Dist: agentica-gateway[discord]==1.6.1; extra == "discord"
Provides-Extra: slack
Requires-Dist: agentica[gateway]; extra == "slack"
Requires-Dist: agentica-gateway[slack]==1.6.1; extra == "slack"
Provides-Extra: qq
Requires-Dist: agentica[gateway]; extra == "qq"
Requires-Dist: agentica-gateway[qq]==1.6.1; extra == "qq"
Provides-Extra: wecom
Requires-Dist: agentica[gateway]; extra == "wecom"
Requires-Dist: agentica-gateway[wecom]==1.6.1; extra == "wecom"
Provides-Extra: dingtalk
Requires-Dist: agentica[gateway]; extra == "dingtalk"
Requires-Dist: agentica-gateway[dingtalk]==1.6.1; extra == "dingtalk"
Provides-Extra: wechat
Requires-Dist: agentica[gateway]; extra == "wechat"
Requires-Dist: agentica-gateway[wechat]==1.6.1; extra == "wechat"
Provides-Extra: langfuse
Requires-Dist: langfuse>=5.0.4; extra == "langfuse"
Provides-Extra: opentelemetry
Requires-Dist: opentelemetry-sdk; extra == "opentelemetry"
Requires-Dist: opentelemetry-exporter-otlp; extra == "opentelemetry"
Provides-Extra: tracing
Requires-Dist: agentica[langfuse]; extra == "tracing"
Requires-Dist: agentica[opentelemetry]; extra == "tracing"
Provides-Extra: models
Requires-Dist: agentica[ollama]; extra == "models"
Requires-Dist: agentica[azure]; extra == "models"
Requires-Dist: agentica[litellm]; extra == "models"
Requires-Dist: agentica[google]; extra == "models"
Requires-Dist: agentica[groq]; extra == "models"
Requires-Dist: agentica[mistral]; extra == "models"
Provides-Extra: full
Requires-Dist: agentica[models]; extra == "full"
Requires-Dist: agentica[mcp]; extra == "full"
Requires-Dist: agentica[tools-extra]; extra == "full"
Requires-Dist: agentica[tools-media]; extra == "full"
Requires-Dist: agentica[gateway]; extra == "full"
Requires-Dist: agentica[tracing]; extra == "full"
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
Requires-Dist: pytest-cov>=4.0; extra == "dev"
Requires-Dist: pytest-mock>=3.10; extra == "dev"
Requires-Dist: pytest-xdist>=3.0; extra == "dev"
Requires-Dist: ruff>=0.1; extra == "dev"
Requires-Dist: mypy>=1.7; extra == "dev"
Requires-Dist: twine>=4.0; extra == "dev"
Requires-Dist: build>=1.0; extra == "dev"
Dynamic: license-file

<p align="center">
  <a href="https://github.com/shibing624/agentica">
    <img src="https://raw.githubusercontent.com/shibing624/agentica/main/docs/assets/logo.png" height="150" alt="Agentica Logo">
  </a>
</p>

<h1 align="center">Agentica</h1>

<p align="center"><b>跑在你自己电脑上的全能 AI 工作台。</b><br />桌面端、CLI 终端、本地网页、手机微信随时开干，记忆与技能越用越熟 —— 同时提供 Python & TypeScript SDK。</p>

<h3 align="center">
  <a href="https://github.com/shibing624/agentica/releases/latest">⬇️ 下载桌面版 Desktop App</a>
  &nbsp;·&nbsp;
  <a href="https://shibing624.github.io/agentica">📖 使用文档</a>
</h3>

<p align="center">macOS · Windows · Linux 开箱即用，数据与记忆留在你自己的电脑上</p>

<p align="center">
  <a href="https://badge.fury.io/py/agentica"><img src="https://badge.fury.io/py/agentica.svg" alt="PyPI version" /></a>
  <a href="https://github.com/shibing624/agentica"><img src="https://img.shields.io/github/stars/shibing624/agentica?style=social" alt="GitHub stars" /></a>
  <a href="https://github.com/shibing624/agentica/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License Apache 2.0" /></a>
  <a href="#社区与支持"><img src="https://img.shields.io/badge/wechat-group-green.svg?logo=wechat" alt="Wechat Group" /></a>
</p>

<p align="center">简体中文 | <a href="https://github.com/shibing624/agentica/blob/main/README_EN.md">English</a></p>

https://github.com/user-attachments/assets/39fb961e-3979-4629-a87d-81dce9196597

---

## 选择你的使用方式

同一套本地记忆、技能和会话记录，在哪一端打开都能接着聊。

| 产品 | 适合谁 | 立即开始 |
|---|---|---|
| **🖥️ Desktop App（桌面端）** | 想要独立窗口应用，零环境配置、打开即用 | [前往 Releases 下载安装包](https://github.com/shibing624/agentica/releases/latest)（[桌面端说明](https://shibing624.github.io/agentica/advanced/gateway)） |
| **⌨️ CLI 终端** | 在终端里写代码、查 Bug、开多个窗口并行干活 | [CLI 安装与终端指南](https://shibing624.github.io/agentica/getting-started/terminal) |
| **🌐 本地 Web & 手机 IM** | 浏览器多工作区 / 多账号管理，或用微信、飞书、企微、Telegram 远程指挥本机 | [Web 与微信/IM 接入指南](https://shibing624.github.io/agentica/advanced/gateway) |
| **🐍 Python SDK & 📦 npm SDK** | 把 Agent 嵌入你自己的 Python 服务或 Node / TypeScript 应用 | [Python 5 分钟上手](https://shibing624.github.io/agentica/getting-started/quickstart) · [TypeScript SDK (`@agentica-ai/sdk`)](https://shibing624.github.io/agentica/advanced/gateway) |

模型 API Key 配置、免费模型起步与 Docker 部署，请看 **[安装与配置文档](https://shibing624.github.io/agentica/getting-started/installation)**。

<p align="center">
  <img src="https://raw.githubusercontent.com/shibing624/agentica/main/docs/assets/agentica-web.png" width="820" alt="Agentica Desktop & Web UI" />
</p>

<p align="center">
  <img src="https://raw.githubusercontent.com/shibing624/agentica/main/docs/assets/cli_snap.png" width="820" alt="Agentica CLI 终端" />
</p>

---

## 为什么选 Agentica

### 1. 🏆 同一个模型，更准、更快、更省钱

对 DeepSeek、智谱、通义千问、Kimi、豆包以及 OpenAI、Claude 等模型深度适配，会话中随时切换。和 OpenAI Codex 用同一个模型跑同一批公开题库：

<p align="center">
  <img src="https://raw.githubusercontent.com/shibing624/agentica/main/docs/assets/benchmark-agentica-vs-codex.png" width="880" alt="Benchmark: Agentica vs Codex" />
</p>

**编程题全对、数据分析题准确率更高——耗时少一半、输入 token 省三分之二。** 详见 [评测报告](https://shibing624.github.io/agentica/guides/benchmark)。

### 2. 🤝 多窗口组队，一个人指挥一支队伍

一个窗口不够用时，Agent 可以派生只读子任务查代码查资料；`task` 返回 `run_id` / `child_session_id` / `transcript_path` 和工具输出定位符，后续用 `get_task_result(run_id)` 或 `read_file(output_path)` 按需取回，不会把整段轨迹塞回主上下文；长命令用 `execute(background=True)` 在后台跑，并用 `/ps`、`wait` 查看或等待结果；多个终端同时改同一个仓库时用 `/worktree` 自动隔离分支。详见 [Subagent](https://shibing624.github.io/agentica/multi-agent/subagent)。

### 3. 🧬 越用越懂你和你的项目

你的习惯与项目背景会自动记进长期记忆；踩过的坑和跑通的流程能沉淀为可复用的技能（Skill）。下次遇到同类任务直接按老规矩办，不用每次从头交代。详见 [记忆系统](https://shibing624.github.io/agentica/concepts/memory) 与 [Skills](https://shibing624.github.io/agentica/advanced/skills)。

### 4. 🧠 长任务不掉链子，聊再久也不忘事

命令输出太长会自动存盘按需读取；到 `min(compact_token_limit, 窗口 × 95%)` 这条换窗线时，先把旧工具结果修剪为头尾，能降到工作窗口 50% 以下才保留当前窗口，否则直接做进度交接并开新窗口。完整历史随时可查回。详见 [上下文管理](https://shibing624.github.io/agentica/advanced/compression)。

### 5. 📱 人离开电脑，手机微信接着管

个人微信扫码即连（也支持飞书、企业微信、Telegram、QQ、钉钉、Slack），不需要公网 IP。出门在外可以直接在手机上查看电脑里哪几个任务还在跑、发话指挥它们，或者让助理帮你汇总进度。详见 [微信与 IM 指南](https://shibing624.github.io/agentica/advanced/gateway)。

---

## 和其它工具对比

| | Agentica | Claude Code | Codex CLI |
|---|---|---|---|
| **产品形态** | ✅ Desktop App + CLI + 本地 Web + 手机 IM | CLI / IDE | CLI |
| **模型选择** | ✅ 多厂商自由切换（国产 / 海外 / 本地 Ollama） | 仅 Claude | 仅 OpenAI |
| **多会话组队协作** | ✅ 子任务 + 后台进程 + Worktree 分支隔离 | ❌ | ❌ |
| **长期记忆与自进化技能** | ✅ 自动记忆 + 经验沉淀为 Skill | ❌ | ❌ |
| **SDK 二次开发** | ✅ Python SDK (`agentica`) + npm (`@agentica-ai/sdk`) | 部分（绑定 Claude） | ❌ |
| **开源协议** | ✅ Apache 2.0 | ❌ | ✅ |

---

## 文档与示例

- **完整文档站**：**https://shibing624.github.io/agentica**
- **快速入口**：[安装与配置](https://shibing624.github.io/agentica/getting-started/installation) · [桌面端与 Web / 微信](https://shibing624.github.io/agentica/advanced/gateway) · [CLI 终端](https://shibing624.github.io/agentica/getting-started/terminal) · [Python SDK 快速上手](https://shibing624.github.io/agentica/getting-started/quickstart)
- **代码示例库**：[examples/](https://github.com/shibing624/agentica/tree/main/examples)（基础用法、多智能体编排、MCP 与完整行业应用）
- **开发者选读**：[架构设计与内部实现](https://shibing624.github.io/agentica/introduction/architecture)

---

## 🔥 News

- [2026/11/19] **v1.6.1**：右侧栏浏览器标签、上传放宽到 1GB 且不限类型、会话目录与日志读法收敛到一处、压缩只在换窗线上修剪一次。详见 [Release-v1.6.1](https://github.com/shibing624/agentica/releases/tag/v1.6.1)
- [2026/11/12] **v1.5.2**：Web / Desktop 后台任务与自动化任务、提问卡与实时思考，以及用 `agentica watch` 跟踪本机之外的长任务。详见 [Release-v1.5.2](https://github.com/shibing624/agentica/releases/tag/v1.5.2)
- [2026/11/04] **v1.5.1**：Web 与桌面端后端独立为 `agentica-gateway` 包并与 `agentica` 同版本发布；桌面端 macOS / Windows / Linux 安装包、PyPI 与 npm `@agentica-ai/sdk` 同步更新。详见 [Release-v1.5.1](https://github.com/shibing624/agentica/releases/tag/v1.5.1)
- [2026/10/22] **v1.5.0**：Langfuse 5 全链路追踪升级；长会话历史完整重放与跨模型切换保留工具记录；按模型实测 token 校准上下文压缩。详见 [Release-v1.5.0](https://github.com/shibing624/agentica/releases/tag/v1.5.0)
- [2026/10/15] **v1.4.17**：内置看图工具；网关空回复自动重试；目录结构收敛，公开导入保持兼容。详见 [Release-v1.4.17](https://github.com/shibing624/agentica/releases/tag/v1.4.17)
- [2026/09/15] **v1.4.16**：上下文满窗改为零成本换窗并保留全文检索；CLI 支持外部 Hooks。详见 [Release-v1.4.16](https://github.com/shibing624/agentica/releases/tag/v1.4.16)
- 更早版本记录见 [Releases](https://github.com/shibing624/agentica/releases) 与 [CHANGELOG.md](https://github.com/shibing624/agentica/blob/main/CHANGELOG.md)。

---

## 社区与支持

> 如果 Agentica 帮到了你，欢迎点个 ⭐ Star，让更多人看到！

- **问题反馈与建议** — [GitHub Issues](https://github.com/shibing624/agentica/issues)
- **微信交流群** — 添加微信号 `xuming624`，备注 `llm` 加入技术交流群

<img src="https://raw.githubusercontent.com/shibing624/agentica/main/docs/assets/wechat.jpeg" width="200" alt="微信群二维码" />

## 引用

如果您在研究中使用了 Agentica 的自进化与 skill 准入，请引用：

> Shang, L., Xu, M., Sun, Y., Xia, T., Hu, L., Xu, L., & Zheng, N. (2026). *When Self-Evolution Backfires: Pre-Commit Gating against Skill Contamination in LLM Agents*. arXiv:2608.05810. https://arxiv.org/abs/2608.05810

BibTeX：

```bibtex
@misc{shang2026selfevolution,
  title         = {When Self-Evolution Backfires: Pre-Commit Gating against Skill Contamination in LLM Agents},
  author        = {Shang, Linfang and Xu, Ming and Sun, Yiding and Xia, Tianle and Hu, Lingxiang and Xu, Lan and Zheng, Ning},
  year          = {2026},
  eprint        = {2608.05810},
  archivePrefix = {arXiv},
  primaryClass  = {cs.AI},
  url           = {https://arxiv.org/abs/2608.05810}
}
```

软件本身：

> Xu, M. (2026). Agentica: A Human-Centric Framework for Large Language Model Agent Workflows. GitHub. https://github.com/shibing624/agentica

```bibtex
@misc{xu2026agentica,
  author    = {Xu, Ming},
  title     = {Agentica: A Human-Centric Framework for Large Language Model Agent Workflows},
  year      = {2026},
  publisher = {GitHub},
  url       = {https://github.com/shibing624/agentica}
}
```

仓库根目录也提供了 [CITATION.cff](https://github.com/shibing624/agentica/blob/main/CITATION.cff)。

## 许可证

[Apache License 2.0](https://github.com/shibing624/agentica/blob/main/LICENSE)

## 贡献

欢迎贡献！请查看 [CONTRIBUTING.md](https://github.com/shibing624/agentica/blob/main/CONTRIBUTING.md)。

## 致谢

- [phidatahq/phidata](https://github.com/phidatahq/phidata)
- [openai/openai-agents-python](https://github.com/openai/openai-agents-python)
