Build AI agents and web apps — with a single binary.
Find a file
Max 4d7e8e8df6 Enhance history management in assistant with improved message filtering and conversion
- Introduce a new method to control the maximum number of history messages loaded, prioritizing user-defined options over store settings.
- Update the history loading logic to filter out non-semantic message types and convert tool call and action messages into historical summaries for better context.
- Refactor the message conversion functions to handle different formats and ensure clarity in the historical context provided to the LLM.
- Add comprehensive tests to validate the new behavior and ensure accurate message handling in various scenarios.
2026-03-02 12:00:20 +08:00
.github Refactor testing structure and update Makefile for clarity 2026-02-25 19:05:53 +08:00
agent Enhance history management in assistant with improved message filtering and conversion 2026-03-02 12:00:20 +08:00
aigc Refactor AIGC ID Handling in Load Function 2025-12-15 12:10:01 +08:00
api Refactor error handling in various components to improve logging and message formatting 2025-09-28 10:24:17 +08:00
assert Implement P3 Run Phase with Enhanced Validation and Execution Logic 2026-01-17 12:22:23 +08:00
attachment Add zip processing functionality for attachments 2026-02-15 12:12:17 +08:00
audit Update dependencies in go.mod and go.sum to latest versions for improved stability and performance 2025-07-13 09:15:54 +08:00
bin Enhance File Handling and Input Parsing in Test Framework 2025-12-25 11:50:58 +08:00
cert fix: Enhance loading functions to handle non-existent directories 2025-05-13 09:10:10 +08:00
cmd Update dependencies and enhance logging in the Assistant module 2026-02-23 19:22:31 +08:00
config Enhance configuration path resolution in LoadWithRoot function 2026-02-21 16:11:26 +08:00
connector fix setup bugs 2023-05-18 15:28:22 +08:00
crypto Add algorithm parameter to HmacWith function 2024-01-27 10:17:48 +08:00
cui ⚠️ BREAKING: Rename XGen to CUI and update license terms 2025-05-18 12:16:45 +08:00
data Update executor to support V2 execution model and enhance event handling 2026-02-25 18:40:48 +08:00
docker feat: add production builds with -s -w stripping and UPX compression 2026-02-03 12:27:37 +08:00
docs Update README.md for Improved Clarity and Visual Appeal 2026-01-29 01:04:22 +08:00
dsl Refactor Store Management to Replace Badger with Xun 2025-12-22 09:27:32 +08:00
engine Update dependencies and enhance logging in the Assistant module 2026-02-23 19:22:31 +08:00
event Enhance subscription management by adding cancel functions and improving channel handling 2026-02-24 00:22:08 +08:00
excel refactor: Simplify sheet dimension retrieval in Excel processing 2025-05-15 13:02:13 +08:00
flow fix: Enhance loading functions to handle non-existent directories 2025-05-13 09:10:10 +08:00
fs Add seed file system support and deprecate legacy registrations 2025-10-20 10:34:52 +08:00
helper Refactor captcha handling in tests and core functionality 2025-10-15 15:43:16 +08:00
i18n fix: Enhance loading functions to handle non-existent directories 2025-05-13 09:10:10 +08:00
importer Refactor error handling in various components to improve logging and message formatting 2025-09-28 10:24:17 +08:00
integrations Enhance message handling for integrations with improved formatting and localization 2026-03-02 09:00:56 +08:00
job Add job.jsapi import and enhance session handling in goroutine execution 2026-02-12 23:02:22 +08:00
kb Refactor Knowledge Base Collection Initialization and Document Retrieval 2026-01-10 12:38:42 +08:00
mcp Refactor MCP client handling for improved categorization and information display 2025-12-05 14:17:56 +08:00
messenger Implement Attachment Support in Email Messaging 2026-01-18 17:05:24 +08:00
moapi Remove unused utils import and clean up ImagesGenerations function 2024-11-07 17:03:58 +08:00
model Enhance Execution Record Model and Storage Implementation 2026-01-18 16:38:30 +08:00
openai Add audio transcription file handling and related tests 2026-02-10 19:05:29 +08:00
openapi Implement refresh token rotation handling to prevent duplicate refresh attempts 2026-03-02 11:01:45 +08:00
pack [add] pack & start command support license 2023-04-23 10:57:28 +08:00
pipe Refactor error handling in various components to improve logging and message formatting 2025-09-28 10:24:17 +08:00
plugin Refactor error handling in various components to improve logging and message formatting 2025-09-28 10:24:17 +08:00
query fix setup bugs 2023-05-18 15:28:22 +08:00
rss Add RSS and Sitemap support in main.go imports 2026-02-12 14:30:18 +08:00
runtime feat: Add ConsoleMode configuration to runtime settings 2025-04-04 18:26:35 +08:00
sandbox Refactor session cleanup logic to ensure single execution and improve resource management 2026-02-26 15:35:47 +08:00
schedule Refactor error handling in various components to improve logging and message formatting 2025-09-28 10:24:17 +08:00
script Refactor assistant script loading and improve error diagnostics 2025-02-24 14:33:04 +08:00
seed Enhance OpenAPI and JSON Parsing Functionality 2025-12-31 11:54:36 +08:00
service Refactor error handling in middleware and clean up template struct comments 2026-02-15 17:56:54 +08:00
setup Fix endpoint URL formatting to handle default port correctly 2024-11-29 20:50:24 +08:00
share Enhance tool inspection and remove studio configuration 2026-02-14 21:06:59 +08:00
sitemap Add RSS and Sitemap support in main.go imports 2026-02-12 14:30:18 +08:00
socket [*] migrate to gou v0.10.3 (50%) 2023-02-01 17:25:11 +08:00
store Refactor Context Management to Use Memory Instead of Space 2025-12-22 11:19:00 +08:00
sui Implement refresh token rotation handling to prevent duplicate refresh attempts 2026-03-02 11:01:45 +08:00
task Refactor error handling in various components to improve logging and message formatting 2025-09-28 10:24:17 +08:00
test Fix event service startup error handling to ignore already started state 2026-02-23 19:37:17 +08:00
trace Enhance subscription management by adding cancel functions and improving channel handling 2026-02-24 00:22:08 +08:00
ui [add] XGen v1.0 packing 2022-09-27 23:54:06 +08:00
utils Update Go module dependencies and enhance assistant context management 2025-11-15 10:05:57 +08:00
websocket [*] migrate to gou v0.10.3 (50%) 2023-02-01 17:25:11 +08:00
wework [add] yao.wework.* processes 2023-04-09 21:25:12 +08:00
widget fix: Enhance loading functions to handle non-existent directories 2025-05-13 09:10:10 +08:00
widgets Refactor start command and enhance tool availability reporting 2026-02-15 18:48:27 +08:00
yao Update executor to support V2 execution model and enhance event handling 2026-02-25 18:40:48 +08:00
.gitignore Enhance robot integration with Telegram and improve event handling 2026-03-01 22:03:25 +08:00
COMMERCIAL_LICENSE.md ⚠️ BREAKING: Rename XGen to CUI and update license terms 2025-05-18 12:16:45 +08:00
COMMERCIAL_LICENSE.zh-CN.md ⚠️ BREAKING: Rename XGen to CUI and update license terms 2025-05-18 12:16:45 +08:00
go.mod Add Discord integration support in robot lifecycle 2026-03-02 07:53:49 +08:00
go.sum Add Discord integration support in robot lifecycle 2026-03-02 07:53:49 +08:00
LICENSE ⚠️ BREAKING: Rename XGen to CUI and update license terms 2025-05-18 12:16:45 +08:00
main.go Add job.jsapi import and enhance session handling in goroutine execution 2026-02-12 23:02:22 +08:00
Makefile Enhance robot integration with Telegram and improve event handling 2026-03-01 22:03:25 +08:00
README.md Update README.md for Improved Clarity and Visual Appeal 2026-01-29 01:04:22 +08:00
README.zh-CN.md Update installation instructions in README 2024-05-31 17:11:11 +08:00

Yao — Build Autonomous Agents. Just Define the Role.

Yao is an open-source engine for autonomous agents — event-driven, proactive, and self-scheduling.

Mission Control

Quick Links:

🏠 Homepage: https://yaoapps.com

🚀 Quick Start: https://yaoapps.com/docs/documentation/en-us/getting-started

📚 Documentation: https://yaoapps.com/docs

Why Yao? https://yaoapps.com/docs/why-yao

🤖 Yao Agents: https://github.com/YaoAgents/awesome ( Preview )


What Makes Yao Different?

Traditional AI Assistants Yao Autonomous Agents
Entry point: Chatbox Entry point: Email, Events, Schedules
Passive: You ask, they answer Proactive: They work autonomously
Role: Tool Role: Team member

The entry point is not a chatbox — it's email, events, and scheduled tasks.


Features

Autonomous Agent Framework

Build agents that work like real team members:

  • Three Trigger Modes — Clock (scheduled), Human (email/message), Event (webhook/database)
  • Six-Phase Execution — Inspiration → Goals → Tasks → Run → Deliver → Learn
  • Multi-Agent Orchestration — Agents delegate, collaborate, and compose dynamically
  • Continuous Learning — Agents accumulate experience in private knowledge bases

Native MCP Support

Integrate tools without writing adapters:

  • Process Transport — Map Yao processes directly to MCP tools
  • External Servers — Connect via SSE or STDIO
  • Schema Mapping — Declarative input/output schemas

Built-in GraphRAG

  • Vector Search — Embeddings with OpenAI/FastEmbed
  • Knowledge Graph — Entity-relationship retrieval
  • Hybrid Search — Combine vector similarity with graph traversal

Full-Stack Runtime

Everything in a single executable:

  • All-in-One — Data, API, Agent, UI in one engine
  • TypeScript Support — Built-in V8 engine
  • Single Binary — No Node.js, Python, or containers required
  • Edge-Ready — Runs on ARM64/x64 devices