jiayan-xu/dsh-memoria-extra
memoria 进阶工具:会话上下文注入(画像+召回)、近期决策、健康报告、命名空间白名单、记忆关系图与实体搜索;dsh-memoria 的伴生插件。
已收录
0
Memory
Bundle 已验证
功能介绍
memoria 进阶工具:会话上下文注入(画像+召回)、近期决策、健康报告、命名空间白名单、记忆关系图与实体搜索;dsh-memoria 的伴生插件。
适合
- 需要从画像和召回记忆组装会话上下文的现有 memoria 用户。
- 需要检索近期决策或搜索 memoria 实体的 Agent。
- 需要检查授权命名空间、记忆关系或服务与索引健康状态的运维人员。
不适合
- 没有伴生 memoria 配置或无法连接 memoria 服务的用户。
- 无法提供 `MEMORIA_ADMIN_KEY` 的健康检查场景,因为该工具使用 admin 身份。
- 要求单次返回完整大型关系图的分析;采样上限为 5,000,输出最多 50 个节点和 50 条边。
- 仅需 dsh-memoria 核心记住与召回工具的基础工作流。
README
dsh-memoria-extra
dsh-memoria-extra provides six advanced memoria tools for dsh. It is a companion to @dsh-external/dsh-memoria and connects to the same memoria service and configuration source.
Tools
-
memoria_context: Build a session context block from a memory profile and optional top-k recall results. Supports profile inclusion, static and dynamic limits, and anas_oftimestamp. -
memoria_recent_decisions: Retrieve recent decision records, with a default limit of 10. -
memoria_health: Request a read-only health report covering service, index, quota, and related status through the admin identity. -
memoria_allowed_ns: Return the namespaces authorized for the current caller. -
memoria_graph: Retrieve a weighted sample of the memory relation graph together with summary totals. The sample defaults to 200 nodes and is capped at 5,000; output includes at most 50 nodes and 50 edges. -
memoria_entity_search: Search entities by name, aliases, summary, memory context, and optional entity type.
Configuration
The plugin reads the memoria section from ~/.dsh/settings.yaml when tools are invoked, allowing settings changes to be picked up without recreating the plugin. Supported fields are:
memoria:
baseURL: http://127.0.0.1:9003
agentId: dsh-main
apiKeyEnv: MEMORIA_AGENT_KEY
namespace: agent/xujiayan
These values are the built-in defaults when the corresponding settings are absent.
Normal requests send X-Agent-Id using agentId and obtain X-Agent-Key from the environment variable named by apiKeyEnv. memoria_health instead uses the admin identity and MEMORIA_ADMIN_KEY. If that environment variable is absent, the plugin also looks for a MEMORIA_ADMIN_KEY entry in ~/agent-core/.env.
Most operations use JSON-RPC at <baseURL>/mcp. memoria_graph uses GET <baseURL>/graph.
The dsh bundle registers @jhp830901/dsh-memoria-extra with the ID dsh-memoria-extra.
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:jiayan-xu/dsh-memoria-extra。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。