# Session init

> Session init is an open-source agent skill for developer tools. Runs session-start checks on git state, Plans.md tasks and a harness-mem resume pack. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/main/skills/session-init
- **Repository:** https://github.com/maxwell2732/claudecode-research-harness-workflow
- **GitHub stars:** 42
- **License:** MIT
- **Skill name:** session-init
- **Collection:** https://github.com/maxwell2732/claudecode-research-harness-workflow
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

Session Init is an internal sub-skill that a session or startup workflow calls at the beginning of a Claude Code session. It looks at the current git branch and uncommitted changes, reads the in-progress and requested tasks in Plans.md, and skims the top of AGENTS.md for role assignments and prohibitions.

The skill also asks the harness-mem memory store for a resume pack covering the current project, using the session identifier when one is available. If retrieval fails, it checks the memory daemon's health, reports the problem and carries on. It warns when Plans.md or the session log grows past set line counts, then produces a short status report with the date, branch, priority tasks and notes.

It expects a git repository and the harness-mem MCP tools to be configured. The skill is not meant to be triggered directly for implementation, reviews or mid-session work.

## When your agent uses it

> Internal sub-skill for session startup checks, Plans.md status, git state, and harness-mem resume pack. Invoked by session/startup workflows only. Do NOT load for: implementation, reviews, or mid-session tasks.

## What it can access

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

- [Instructions only, no scripts](https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/HEAD/skills/session-init)
- [Asks for: Read, Write, Bash, mcp__harness__harness_mem_resume_pack, mcp__harness__harness_mem_sessions_list, mcp__harness__harness_mem_health](https://github.com/maxwell2732/claudecode-research-harness-workflow/blob/HEAD/skills/session-init/SKILL.md)
- [License: MIT](https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/HEAD/skills/session-init)

## Features

- **Git state check:** Reports the current branch, uncommitted changes and recent commits at session start.
- **Plans.md task review:** Pulls in-progress, newly requested and assigned-but-unstarted tasks from Plans.md.
- **AGENTS.md constraint summary:** Surfaces role assignments and prohibitions from the top of AGENTS.md.
- **Harness memory resume pack:** Retrieves prior session context from the shared harness-mem store and injects it into startup.
- **File size warnings:** Flags Plans.md and session log files that have grown beyond suggested limits.
- **Memory daemon recovery:** Checks daemon health and lists recovery commands when memory retrieval fails.

## Good for

- Start a session and see which tasks are still in progress
- Check the branch and uncommitted changes before continuing yesterday's work
- Resume a project with context carried over from the previous session
- Review the role rules in AGENTS.md before making changes
- Find out whether the Plans.md file needs tidying up

## Install

### Claude Code

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

```sh
/plugin marketplace add maxwell2732/claudecode-research-harness-workflow
/plugin install claudecode-research-harness-workflow@claudecode-research-harness-workflow
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/session-init &&
cp -R "$tmp/skills/session-init" ~/.claude/skills/session-init &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/session-init &&
cp -R "$tmp/skills/session-init" ~/.agents/skills/session-init &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/session-init &&
cp -R "$tmp/skills/session-init" ~/.cursor/skills/session-init &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/session-init` 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/maxwell2732/claudecode-research-harness-workflow.git --path skills/session-init
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/session-init &&
cp -R "$tmp/skills/session-init" ~/.copilot/skills/session-init &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git
```

Then copy `claudecode-research-harness-workflow/skills/session-init` into your agent's skills folder as `session-init`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Session init run?

It is called internally from session or SessionStart-type flows. Its metadata sets it to be non-user-invocable and it is meant only for startup, not implementation, reviews or mid-session tasks.

### Which tools does Session init use?

It is allowed to read and write files, run Bash, and call the harness_mem resume pack, sessions list and health tools.

### What happens if the memory lookup fails?

It checks harness-mem health, notes the failure and continues the session. Recovery steps listed are doctor, cleanup-stale and start commands for the harness-memd script.

### Does Session init include scripts?

No. The folder contains only the SKILL.md file and no scripts.

### How do I install Session init in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/session-init to use it in all your projects, or to .claude/skills/session-init in one project. Or install the claudecode-research-harness-workflow plugin, which includes it: /plugin marketplace add maxwell2732/claudecode-research-harness-workflow, then /plugin install claudecode-research-harness-workflow@claudecode-research-harness-workflow.

### Does Session init 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 init?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Session init?

The closest alternatives to Session init are Session hardening, Ck, Session, Harness setup and Nemo rl session memory.

## Where this comes from

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

## Alternatives

- [Session hardening](https://ai-powered.com/skills/session-hardening): Session hardening 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.
- [Session](https://ai-powered.com/skills/session-maxwell2732): Session is an open-source agent skill for developer tools.
- [Harness setup](https://ai-powered.com/skills/harness-setup-chachamaru127): Harness setup is an open-source agent skill for developer tools.
- [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.
- [Autonomous agent harness](https://ai-powered.com/skills/autonomous-agent-harness): Autonomous agent harness is an open-source agent skill for developer tools.
- [Scan sessions and learn](https://ai-powered.com/skills/scan-sessions-and-learn): Scan sessions and learn is an open-source agent skill for developer tools.
- [Close session](https://ai-powered.com/skills/close-session): Close session is an open-source agent skill for knowledge and memory.

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