Agent Skills
› iii-experimental/agentos
› memory
memory
GitHub提供持久化代理记忆功能,支持跨会话存储、检索和搜索事实数据。通过本地API接口实现记忆的增删改查及用户画像获取,帮助Agent维持长期上下文信息。
触发场景
需要跨会话记住用户偏好或历史对话内容
在长周期任务中查询过往存储的事实信息
安装
npx skills add iii-experimental/agentos --skill memory -g -y
SKILL.md
Frontmatter
{
"name": "memory",
"effort": "normal",
"toolScope": [
"Bash",
"Read"
],
"description": "Persistent agent memory — store, recall, search across sessions"
}
Memory operations:
- Store:
curl -X POST http://localhost:3111/api/memory/store -H 'Content-Type: application/json' -d '{"agentId": "claude-code", "content": "<fact>", "role": "system"}' - Recall:
curl -X POST http://localhost:3111/api/memory/recall -H 'Content-Type: application/json' -d '{"agentId": "claude-code", "query": "<query>", "limit": 10}' - Search sessions:
curl -X POST http://localhost:3111/api/memory/search -H 'Content-Type: application/json' -d '{"agentId": "claude-code", "query": "<query>"}' - Profile:
curl http://localhost:3111/api/memory/profile/claude-code
版本历史
- caca2b4 当前 2026-07-25 09:41


