Agent Skills › TanStack/ai › tanstack-ai-memory-honcho

tanstack-ai-memory-honcho

GitHub

集成Honcho托管记忆适配器,通过会话对等体交换消息实现记忆保存与综合检索。提供基于用户表示的辩证式回忆功能,替代离散片段存储,支持自定义作用域与认证配置。

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

Trigger Scenarios

需要持久化AI对话上下文 使用TanStack AI Memory中间件 配置Honcho记忆后端

Install

npx skills add TanStack/ai --skill tanstack-ai-memory-honcho -g -y
More Options

Non-standard path

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

Use without installing

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'

// Build per request from the server-validated session — never from req.body.
function memoryFor(session: { userId: string; threadId: string }) {
  const memory = honcho({ user: session.userId }) // baseURL defaults to HONCHO_URL

  return memoryMiddleware({
    adapter: memory,
    scope: { threadId: session.threadId, userId: session.userId },
  })
}

@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.

Version History

  • 645757a Current 2026-09-22 03:42

    修复代码示例类型检查问题,更新适配器配置文档以匹配实际API暴露选项,修正转录服务器示例及描述性文本。

  • 05280a5 2026-07-30 23:52

Same Skill Collection

.agents/skills/add-example-tutorial/SKILL.md
.agents/skills/gap-analysis/SKILL.md
.agents/skills/i-have-adhd/SKILL.md
.agents/skills/pr-description/SKILL.md
.claude/skills/add-example-tutorial/SKILL.md
.claude/skills/gap-analysis/SKILL.md
.claude/skills/i-have-adhd/SKILL.md
.claude/skills/pr-description/SKILL.md
.grok/skills/add-example-tutorial/SKILL.md
.grok/skills/gap-analysis/SKILL.md
.grok/skills/i-have-adhd/SKILL.md
.grok/skills/pr-description/SKILL.md
examples/ts-remix-chat/.agents/skills/remix/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
testing/panel/skills/emoji-storyteller/SKILL.md
testing/panel/skills/haiku/SKILL.md
testing/panel/skills/pirate-speak/SKILL.md
.agents/skills/bugfix-pr/SKILL.md
.agents/skills/docs/SKILL.md
.agents/skills/ponytail/SKILL.md
.agents/skills/pr-sweep/SKILL.md
.agents/skills/simple-english/SKILL.md
.agents/skills/triage-github/SKILL.md
.claude/skills/bugfix-pr/SKILL.md
.claude/skills/docs/SKILL.md
.claude/skills/ponytail/SKILL.md
.claude/skills/pr-sweep/SKILL.md

Metadata

Files
0
Version
645757a
Hash
6fb30709
Indexed
2026-07-30 23:52

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-26 23:34
浙ICP备14020137号-1