跳到主要内容

trellis-session-insight

12.9k12.9k2026.07.20

@mindfold-ai/trellis-session-insight通过 trellis mem 检索历史 AI 对话,用于「上次怎么解的」「之前讨论过吗」等跨会话回忆。

开发工具开发者: Mindfold AI
技能元信息 · 译文
nametrellis-session-insight
description通过 trellis mem 检索历史 AI 对话,用于「上次怎么解的」「之前讨论过吗」等跨会话回忆。

跨会话记忆检索

trellis-session-insight

通过 trellis mem 检索历史 AI 对话,用于「上次怎么解的」「之前讨论过吗」等跨会话回忆。

核心说明

以下为上游 SKILL.md 摘要(英文原文结构保留要点):

Trellis Session Insight

This skill teaches an AI how to call trellis mem — the project's cross-session memory feedstock — and when reaching for it is the right move.

It is intentionally a capability skill, not a workflow. There is no fixed output file, no required write-back step, no "always run after finish-work" rule. What to do with what mem returns is a judgement call made in the moment of the conversation. The skill exists so the AI knows the capability is there and can decide.

What trellis mem is

A local CLI that indexes the user's past Claude Code, Codex, Pi Agent, and ZCode conversation logs and lets you list, search, slice by Trellis task boundaries, and dump cleaned dialogue from them. Claude and Codex use ~/.claude/projects/ and ~/.codex/sessions/. Pi uses its default or environment-configured session root, global ~/.pi/agent/settings.json, and the scoped project's .pi/settings.json; relative sessionDir values resolve from the settings file directory. Project-local Pi settings require project-scoped lookup through the current cwd or --cwd. ZCode uses ~/.zcode/cli/db/db.sqlite. OpenCode logs are not yet indexable (provider adapter pending) — when an OpenCode session is the obvious target, surface that limitation rather than guessing.

Nothing in mem is uploaded. All reads are local.

When to reach for it

The bar is "would a senior teammate ask 'didn't we already talk about this?'" — those are the moments. Some concrete patterns:

  • Brainstorm rerun risk. Starting a new task that touches an area the user has been in before, and you want to check whether a decision was already made — before re-asking the user.
  • Familiar-bug debugging. The current bug pattern feels like one the user reported / fixed before.

安装

随 Trellis 一并分发。执行 trellis init 后可在 .agents/skills/trellis-session-insight/(及各平台 skill 目录)使用。

npm install -g @mindfoldhq/trellis@latest
trellis init -u your-name

来源:mindfold-ai/Trellis · .agents/skills/trellis-session-insight