Long Session Check logo

Long Session Check

Organization
MiniMax-AI
long-session-check

Check how an agent or a working session handles long conversations, covering tool-result clearing, compaction, what gets written to files, when to start a new session, and how memory is scoped. Use when a long session starts forgetting constraints, after several compactions, or when reviewing an agent's compaction and memory design.

Overview

PublisherMiniMax-AI
Repositorymcode-stack
Skill namelong-session-check
Stars
464
Forks
36
Bundled files
Instructions only
LicenseMIT
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by MiniMax-AI on GitHub. Read the source before you install it.

Installation

Install the Long Session Check 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/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/long-session-check
  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/MiniMax-AI/mcode-stack.git /tmp/mcode-stack
mkdir -p .claude/skills
cp -r /tmp/mcode-stack/stacks/ronny/skills/long-session-check .claude/skills/long-session-check
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Long Session Check 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 Long Session Check 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 Long Session Check 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.

Long Session Check

The context window is a workbench, not a warehouse. Compaction answers "it does not fit right now"; memory answers "will we remember next time". Both are lossy. The safe pattern is to get anything important into human-readable files early, and to treat compaction as tidying the workbench, not as the only safety net.

Companion to MCode Engineering Notes 03, "Keeping long sessions sharp". Plain-text checklist: checklists/long-session.md.

This skill has two modes. Pick the one that matches the request.

Mode A - the session you are in right now

  1. Sort what is in context into three bins.
    • Drop: things you can fetch again or no longer need (large file reads, test logs, search results, abandoned attempts).
    • Summarize: this-session-only story (where we are, next step, open bugs and leads, files recently touched).
    • Write to a file: anything that would hurt if lost or is needed in a later session (decisions and their reasons, progress, todos, acceptance criteria, long-lived rules).
  2. Write the third bin down now, in the project's progress or design doc, or via handoff-doc.
  3. Choose the next move:
    • Same task, history just long: compact, and say what comes next and what must be kept (for example "focus on the auth refactor, drop the test debugging").
    • New task: start a new session.
    • Compacted several times and drifting, or repeating questions already answered, or breaking earlier constraints: write a hand-off doc and start fresh with it.
    • Went the wrong way: rewind to before the mistake instead of compacting, so the wrong attempt does not end up in the summary.

Mode B - reviewing an agent's design

Read the agent's code and configuration and answer each item with evidence (file and line, config key, or observed behaviour):

  1. Are old tool results cleared before resorting to a full summary?
  2. Are tool calls and their results kept in pairs when results are cleared? Many model APIs reject orphaned calls.
  3. Do key decisions and constraints get written to files, not only kept in the conversation?
  4. Does manual compaction accept instructions about what to keep and what comes next?
  5. Does automatic compaction trigger early enough to leave room for output and for the summary itself? Can the session continue if compaction fails (quota, smaller model)?
  6. Can the compaction request reuse the prompt cache? Does compaction run so often that it keeps invalidating the cache?
  7. Does compaction change only what the model sees, leaving the user's visible history intact? Is it kept out of user-facing budgets such as step limits?
  8. Is the model told that context is managed automatically, so it does not stop half way to "continue next turn"?
  9. Is project memory (AGENTS.md or similar) short and limited to stable rules?
  10. Is memory scoped (session, project, user)? Are temporary progress and todos kept out of long-term memory?
  11. When memory exceeds its injection budget, is truncation visible, and are the most important rules guaranteed to load?
  12. Can a human open, edit and switch off the memory? Rules that must be enforced belong in hooks, not in memory.

Output

For Mode A: the three bins, what you wrote to which file, and the chosen next move. For Mode B: a table of the items with pass / fail / unknown, the evidence, and the top fixes in priority order.

Frequently asked questions

What does the Long Session Check AI skill do?

Check how an agent or a working session handles long conversations, covering tool-result clearing, compaction, what gets written to files, when to start a new session, and how memory is scoped. Use when a long session starts forgetting constraints, after several compactions, or when reviewing an agent's compaction and memory design.

Why use Long Session Check on TypingMind?

Because you install it once and use it with any model. Long Session Check 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 Long Session Check in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/long-session-check. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Long Session Check?

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 Long Session Check?

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

Is the Long Session Check AI skill free?

Yes. It is published on GitHub by MiniMax-AI under the MIT license. 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 👇