feat: add agent session usage status reporting

Track per-session model and token usage so users can inspect context pressure and cumulative usage with /session_status.
This commit is contained in:
jxxghp
2026-04-26 08:19:05 +08:00
parent 79bfeaf2af
commit 0277288a41
5 changed files with 552 additions and 12 deletions

View File

@@ -155,6 +155,12 @@ class Command(metaclass=Singleton):
"category": "管理",
"data": {},
},
"/session_status": {
"func": MessageChain().remote_session_status,
"description": "会话状态",
"category": "智能体",
"data": {},
},
"/skills": {
"func": SkillsChain().remote_manage,
"description": "管理技能",