Trellis Session Insight logo

Trellis Session Insight

OrganizationPopular
fy-agent
trellis-session-insight

Reach into past AI conversation history through the `trellis mem` CLI. Use whenever the user asks 'how did we solve X last time', 'have we discussed this before', 'what was the decision on X', 'remind me what we did in this task', '上次怎么解的', '之前讨论过吗', '想起一段对话', or when starting a brainstorm that overlaps prior work, debugging a familiar bug, continuing a task across sessions, or doing a finish-work review. Returns raw past dialogue; decide for the moment whether to update spec, append to task notes, quote inline in the answer, or just internalize.

Overview

Publisherfy-agent
Repositoryfyagent
Skill nametrellis-session-insight
Stars
1.7K
Forks
139
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by fy-agent on GitHub. Read the source before you install it.

Installation

Install the Trellis Session Insight AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/fy-agent/fyagent/tree/main/.agents/skills/trellis-session-insight
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fy-agent/fyagent.git /tmp/fyagent
mkdir -p .claude/skills
cp -r /tmp/fyagent/.agents/skills/trellis-session-insight .claude/skills/trellis-session-insight
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Trellis Session Insight in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Trellis Session Insight on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Trellis Session Insight is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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. Pulling the relevant past session can save a full debugging loop.
  • Cross-session continuation. The user resumes work after a gap and says "where were we" / "继续上次的" without being specific.
  • Decision retrieval. The user references "the decision we made about X" but the decision lives in an old brainstorm, not in any prd.md / spec/.
  • Finish-work retrospective. When the user explicitly asks for a wrap-up of what was decided / what hurt / what surprised them in this task — not as a forced step on every finish-work.
  • Pattern-spotting across past work. The user asks "do I keep making the same mistake on X" / "我每次都踩这个坑吗" — search across sessions answers that.

If none of these apply, don't call mem. It is a tool, not a ceremony.

When NOT to reach for it

  • The relevant context is already in the current turn, prd.md, design.md, recent git log, or the open files. mem is for stuff that has fallen out of immediate reach.
  • The user is asking about a fact in the code, not a fact from a past conversation. git log -p / grep / reading the file directly is faster and more authoritative.
  • You are in a sub-agent (trellis-implement / trellis-check) whose dispatch prompt already includes the curated implement.jsonl / check.jsonl context. Adding mem on top usually just clutters.
  • The user has explicitly said "don't dig through history, just answer what I asked".

What to do with what mem returns

Treat the output as raw material, not a deliverable. Once you have it, decide based on the live conversation:

  • Quote inline in your reply if a specific past exchange answers the user's current question — and cite the session-id / phase so the user can verify.
  • Update <task>/prd.md or <task>/design.md if mem surfaced a load-bearing decision that should have been written down but wasn't. Surface the proposed edit to the user first.
  • Append to a task-local notes file (e.g. <task>/notes.md or extending an existing one) if the finding belongs to the current task's record but doesn't fit the PRD.
  • Update .trellis/spec/ if the finding is a project-wide convention or gotcha that would help future tasks. Run the trellis-update-spec skill for that — session-insight ends at the discovery.
  • Just absorb it for the next few turns and answer better, without writing anything. This is often the right move for one-off recall.

Trellis does not prescribe a single destination. Forcing every recall into a fixed file makes the file grow into noise. Let the situation decide.

How to call it

Full CLI reference is in references/cli-quick-reference.md. The 80% case is one of:

bash
# Find sessions whose contents mention a keyword (project-scope is default;
# add --global to search every project on this machine).
trellis mem search "<keyword>"

# Dump dialogue from one session, optionally filtered by phase or keyword.
trellis mem extract <session-id> --phase brainstorm
trellis mem extract <session-id> --grep "<keyword>"

# Drill into a session: top-N hit turns + surrounding context.
trellis mem context <session-id> --turns 3 --around 2

# When you do not know the session id yet, start with list + filter.
trellis mem list --cwd <project-path>
trellis mem projects   # → list active project cwds, then narrow

Phase slicing (--phase brainstorm|implement|all) cuts the session at task.py create and task.py start boundaries. For a finish-work review of the current task, --phase brainstorm recovers the planning discussion and --phase implement recovers the execution loop. Default is all.

Triggering patterns

references/triggering-patterns.md lists more verbatim user phrasings (English + Chinese) that should make you think "reach for mem" — keep that handy when training instinct.

Out of scope

  • mem does not edit code or update files. Any write-back is your decision in the moment.
  • mem is read-only on the platform JSONL stores. It does not push or sync to remote.
  • This skill does not replace trellis-update-spec (which is the right tool for promoting a finding into project-wide guidance) or the platform-native task / spec workflow.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Trellis Session Insight AI skill do?

Reach into past AI conversation history through the `trellis mem` CLI. Use whenever the user asks 'how did we solve X last time', 'have we discussed this before', 'what was the decision on X', 'remind me what we did in this task', '上次怎么解的', '之前讨论过吗', '想起一段对话', or when starting a brainstorm that overlaps prior work, debugging a familiar bug, continuing a task across sessions, or doing a finish-work review. Returns raw past dialogue; decide for the moment whether to update spec, append to task notes, quote inline in the answer, or just internalize.

Why use Trellis Session Insight on TypingMind?

Because you install it once and use it with any model. Trellis Session Insight is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Trellis Session Insight in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/fy-agent/fyagent/tree/main/.agents/skills/trellis-session-insight. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Trellis Session Insight?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Trellis Session Insight?

As many as you like. As long as a model supports skills, you can use Trellis Session Insight with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Trellis Session Insight AI skill free?

It is published on GitHub by fy-agent. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇