Agent SkillsTanStack/ai › tanstack-ai-memory-honcho

tanstack-ai-memory-honcho

GitHub

用于集成Honcho托管记忆适配器,通过对话式综合回答而非离散片段实现记忆召回。支持配置用户ID、服务器地址等参数,需安装可选的SDK依赖,适用于需要会话级记忆管理的AI应用。

packages/ai-memory/skills/tanstack-ai-memory-honcho/SKILL.md TanStack/ai

触发场景

需要基于用户会话的历史记忆进行上下文补充 使用@tanstack/ai-memory/honcho模块初始化记忆中间件

安装

npx skills add TanStack/ai --skill tanstack-ai-memory-honcho -g -y
更多选项

非标准路径

npx skills add https://github.com/TanStack/ai/tree/main/packages/ai-memory/skills/tanstack-ai-memory-honcho -g -y

不安装直接使用

npx skills use TanStack/ai@tanstack-ai-memory-honcho

指定 Agent (Claude Code)

npx skills add TanStack/ai --skill tanstack-ai-memory-honcho -a claude-code -g -y

安装 repo 全部 skill

npx skills add TanStack/ai --all -g -y

预览 repo 内 skill

npx skills add TanStack/ai --list

SKILL.md

Frontmatter
{
    "name": "tanstack-ai-memory-honcho",
    "description": "Use when wiring honcho() from @tanstack\/ai-memory\/honcho — a hosted memory adapter where recall is a dialectic answer over the user's representation (no discrete fragments). Requires the optional @honcho-ai\/sdk peer."
}

Honcho Memory Adapter

Hosted recall/save adapter backed by Honcho. Honcho models memory as peers exchanging messages in a session; recall returns a synthesized dialectic answer over the user peer's representation (so there are no discrete fragments), and save appends the turn's messages to the session.

Setup

import { memoryMiddleware } from '@tanstack/ai-memory'
import { honcho } from '@tanstack/ai-memory/honcho'

const memory = honcho({ user: currentUserId }) // baseURL defaults to HONCHO_URL

memoryMiddleware({ adapter: memory, scope })

@honcho-ai/sdk is an optional peer dependency, loaded lazily on first use — install it where you use honcho().

Options

  • user — user peer id (falls back to scope.userId, then 'demo-user').
  • baseURL — Honcho server URL (default HONCHO_URL or http://localhost:8001).
  • workspaceId — default HONCHO_APP_NAME or 'ai-memory'.
  • apiKey — default HONCHO_API_KEY.
  • assistantId — assistant peer id (default 'assistant').

Scope fields: session key = {tenantId|_}__{threadId}; peer id is {tenantId}__{user} when tenantId is set, otherwise user / scope.userId. namespace is ignored.

recall calls the user peer's dialectic chat() and injects the answer as the system prompt; Honcho exposes no LLM tools.

版本历史

  • 05280a5 当前 2026-07-30 23:52

同 Skill 集合

.claude/skills/gap-analysis/SKILL.md
packages/ai-code-mode/skills/ai-code-mode/SKILL.md
packages/ai-mcp/skills/ai-mcp/SKILL.md
packages/ai-memory/skills/tanstack-ai-memory-hindsight/SKILL.md
packages/ai-memory/skills/tanstack-ai-memory-in-memory/SKILL.md
packages/ai-memory/skills/tanstack-ai-memory-mem0/SKILL.md
packages/ai-memory/skills/tanstack-ai-memory-redis/SKILL.md
packages/ai-memory/skills/tanstack-ai-memory/SKILL.md
packages/ai-persistence/skills/ai-persistence/build-cloudflare-adapter/SKILL.md
packages/ai-persistence/skills/ai-persistence/build-cloudflare-artifact-store/SKILL.md
packages/ai-persistence/skills/ai-persistence/build-custom-adapter/SKILL.md
packages/ai-persistence/skills/ai-persistence/build-drizzle-adapter/SKILL.md
packages/ai-persistence/skills/ai-persistence/build-prisma-adapter/SKILL.md
packages/ai-persistence/skills/ai-persistence/server/SKILL.md
packages/ai-persistence/skills/ai-persistence/SKILL.md
packages/ai-persistence/skills/ai-persistence/stores/SKILL.md
packages/ai/skills/ai-core/ag-ui-protocol/SKILL.md
packages/ai/skills/ai-core/chat-experience/SKILL.md
packages/ai/skills/ai-core/custom-backend-integration/SKILL.md
packages/ai/skills/ai-core/debug-logging/SKILL.md
packages/ai/skills/ai-core/locks/SKILL.md
packages/ai/skills/ai-core/middleware/SKILL.md
packages/ai/skills/ai-core/SKILL.md
packages/ai/skills/ai-core/tool-calling/SKILL.md
.claude/skills/triage-github/SKILL.md
packages/ai-sandbox/skills/ai-sandbox/SKILL.md
packages/ai/skills/ai-core/adapter-configuration/SKILL.md
packages/ai/skills/ai-core/client-persistence/SKILL.md
packages/ai/skills/ai-core/media-generation/SKILL.md
packages/ai/skills/ai-core/structured-outputs/SKILL.md

元信息

文件数
0
版本
1cb04d5
Hash
71fc09e7
收录时间
2026-07-30 23:52

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-01 04:08
浙ICP备14020137号-1 $访客地图$