Skip to content
Skill

Session

Packages an agent session into a shareable bundle to resume on another machine

Session is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
19
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Session

This skill bundles the local session state of a mokata run, including resumable run checkpoints, an approved approach, an emitted spec and any in-progress brainstorm, into a path-free, content-hashed bundle under a tag. The bundle can be stored in a local folder under .mokata or in a shared Postgres table, so another machine or a teammate can pull it and continue the work with mokata resume.

Every push, pull and rename is previewed first and needs explicit approval before it writes anything. Bundles are scanned for secrets on every transport, and a detected secret blocks the operation. On pull, the content hash is verified and a mismatch with the target codebase is surfaced rather than applied silently. A brainstorm that was not approved stays unapproved after a pull.

The skill expects the mokata engine to be installed in the plugin directory, with Python available to run it. The Postgres transport requires a DSN set in an environment variable and the psycopg package; without them the command reports that and does not fall back to a local store.

When your agent uses it

mokata · Portable / shareable tagged sessions — package this session and resume it on another machine or hand it to a teammate. Human-gated.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (8 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the mokata plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostack

Or copy only this skill to ~/.claude/skills/session:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/session &&
cp -R "$tmp/src/mokata/skills/session" ~/.claude/skills/session &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/session inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/session to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/session &&
cp -R "$tmp/src/mokata/skills/session" ~/.agents/skills/session &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/session inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/session to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/session &&
cp -R "$tmp/src/mokata/skills/session" ~/.cursor/skills/session &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/session inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/JasGujral/mokata-oss.git --path src/mokata/skills/session

Or copy the folder to ~/.gemini/skills/session yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/session:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/session &&
cp -R "$tmp/src/mokata/skills/session" ~/.copilot/skills/session &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/session inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/JasGujral/mokata-oss.git

Then copy mokata-oss/src/mokata/skills/session into your agent's skills folder as session. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Portable session bundles
Packages session state into a path-free, versioned bundle with a content hash and provenance stamp.
Local and shared transports
Stores bundles in a local folder or in a shared Postgres table reached through a DSN variable.
Human-gated push and pull
Shows a preview of each push, pull or rename and waits for explicit approval before writing.
Secret scanning
Scans bundles on every transport and hard-blocks any bundle containing a secret.
Hash and codebase checks
Verifies the content hash on pull and flags bundles that came from a different repository.
Named sessions
Renames tagged sessions to readable names without changing their content hash.

Good for

  • Continue this coding session on my laptop after working on the desktop
  • Hand my current session state to a teammate so they can pick up the task
  • Pull a session bundle shared by a colleague and resume where they stopped
  • Rename a saved session to something easier to find later

Session FAQ

What does the skill need to run?

It needs the mokata engine in the Claude Code plugin directory and Python. The Postgres transport also needs a DSN environment variable and psycopg.

Does Session push or share anything without asking?

No. Each push, pull and rename is previewed and requires an explicit yes before it applies.

Where is the session data stored?

Session state lives under .mokata/temp_local, which is local and gitignored. Bundles go to .mokata/session-bundles on the local transport or to the shared database on Postgres.

What happens if a bundle contains a secret?

The secret scan blocks the operation on every transport, and approval cannot override that block.

How do I install Session in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/session to use it in all your projects, or to .claude/skills/session in one project. Or install the mokata plugin, which includes it: /plugin marketplace add JasGujral/mokata-oss, then /plugin install mokata@mostack.

Does Session run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Session?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Session?

The closest alternatives to Session are Nemo rl session memory, Playbook, Session send, Git and Handoff.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from JasGujral/mokata-oss

  1. Makes the agent design API contracts first and check callers before changing them

    • Open source
    • 19 GitHub stars
    • Developer tools
  2. Gives an agent NestJS rules for guards, DTO validation, modules and tests

    • Open source
    • 19 GitHub stars
    • Developer tools
  3. Guides an agent through Socratic exploration of an approach before any spec or code

    • Open source
    • 19 GitHub stars
    • Developer tools
  4. Guides an agent to capture live browser console, network and page state for tests

    • Open source
    • 19 GitHub stars
    • Developer tools
  5. Guides the agent to reproduce a reported bug with a failing test before fixing it

    • Open source
    • 19 GitHub stars
    • Developer tools
  6. Guides an agent on CI/CD pipelines, release builds and pinned supply-chain posture

    • Open source
    • 19 GitHub stars
    • Developer tools