# Session

> Session is an open-source agent skill for developer tools. Packages an agent session into a shareable bundle to resume on another machine. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/JasGujral/mokata-oss/tree/main/src/mokata/skills/session
- **Repository:** https://github.com/jasgujral/mokata-oss
- **GitHub stars:** 19
- **License:** Apache-2.0
- **Skill name:** session
- **Collection:** https://github.com/JasGujral/mokata-oss
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/session)
- [License: Apache-2.0](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/session)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

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

## Alternatives

- [Nemo rl session memory](https://ai-powered.com/skills/nemo-rl-session-memory): Nemo rl session memory is an open-source agent skill for knowledge and memory.
- [Playbook](https://ai-powered.com/skills/playbook-jasgujral): Playbook is an open-source agent skill for developer tools.
- [Session send](https://ai-powered.com/skills/session-send-chachamaru127): Session send is an open-source agent skill for developer tools.
- [Git](https://ai-powered.com/skills/git-jasgujral): Git is an open-source agent skill for developer tools.
- [Handoff](https://ai-powered.com/skills/handoff-oneafrikan): Handoff is an open-source agent skill for developer tools.
- [Ck](https://ai-powered.com/skills/ck): Ck is an open-source agent skill for developer tools.
- [Autonomous agent harness](https://ai-powered.com/skills/autonomous-agent-harness): Autonomous agent harness is an open-source agent skill for developer tools.
- [Core](https://ai-powered.com/skills/core-arjunrajlaboratory): Core is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/session
