Agent skill

Happier Session Control

by happier-dev in happier-dev/happier

Manage Happier sessions and execution runs through the CLI JSON contract, and create independent Happier diagnosis sessions with explicit ownership, safe options, and fire-and-forget presentation…

MITAuto-check passed

Install Happier Session Control

skills CLI
$ npx skills add happier-dev/happier --skill happier-session-control -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install happier-dev/happier happier-session-control --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/happier-dev/happier.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/happier-session-control .claude/skills/happier-session-control && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
happier-session-control
GitHub stars
1.9k
Token cost
~1.7k tokens
SKILL.md length
533 words
Files
1
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

Manage Happier sessions and execution runs through the CLI JSON contract, and create independent Happier diagnosis sessions with explicit ownership, safe options, and fire-and-forget presentation…

  • SKILL.md covers Prerequisites, Contract, Independent session delegation and Auth Commands (JSON), plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Happier Session Control is an agent skill from happier-dev/happier. Manage Happier sessions and execution runs through the CLI JSON contract, and create independent Happier diagnosis sessions with explicit ownership, safe options, and fire-and-forget presentation semantics.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Web, Desktop & Mobile client and orchestrator for Codex, Claude Code, OpenCode, Pi, Cursor, Grok, Antigravity, Kimi, Augment Code, Qwen, fully end-to-end encrypted. The licence is MIT.

Example prompts

  • “/happier-session-control”

What it can do on your machine

Read from SKILL.md and the folder at commit 493820f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Happier Session Control loads about 1.7k tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 533 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from happier-dev/happier at commit 493820f, republished under its MIT licence (© happier-dev). 533 words, ~1,660 tokens.

Download SKILL.mdSave it as .claude/skills/happier-session-control/SKILL.md (or your agent's skills folder).
name
happier-session-control
description
Manage Happier sessions and execution runs through the CLI JSON contract, and create independent Happier diagnosis sessions with explicit ownership, safe options, and fire-and-forget presentation semantics.

Happier Session Control (CLI JSON)

This skill enables an agent framework (for example OpenClaw) to control Happier sessions using the existing happier CLI in --json mode.

Prerequisites

  • The happier CLI is installed and authenticated.
  • If using multiple servers/profiles, pass server selection flags before session (prefix-only):
    • happier --server <profile-id-or-name> session list --json
    • happier --server-url <url> --webapp-url <url> session list --json

Contract

All JSON outputs are a pure-stdout envelope:

json
{ "v": 1, "ok": true, "kind": "...", "data": {} }

or:

json
{ "v": 1, "ok": false, "kind": "...", "error": { "code": "..." } }

Common error codes to handle:

  • not_authenticated: run happier auth login on the host (or mount/provide a valid HAPPIER_HOME_DIR).
  • session_id_ambiguous: pick deterministically from error.candidates (prefer exact id; otherwise ask the user).
  • session_not_found: call happier session list --json and retry.
  • unsupported: feature disabled by server policy or backend doesn’t support the requested intent.

Independent session delegation

Use an independent Happier session only when the user asks for new sessions or when an invoking workflow explicitly selects that topology. Native subagents remain the owner for in-session delegation.

When an independent session owns a complete work bundle:

  • create it with a self-contained initialMessage, descriptive title and tag, the intended repository path, and only user-selected or safely resolved machine/profile/backend/model options;
  • use canonical read-only permission mode for diagnosis when the selected backend supports it, plus an explicit no-write constraint in the brief. Permission modes are backend-applied policy, not a universal security sandbox; do not overclaim enforcement;
  • treat a successful accepted spawn as the triage lane's completion for that bundle;
  • return the new session id/title and allocation to the user, then stop by default;
  • let the spawned session present its diagnosis directly to the user;
  • do not wait for idle or pull its transcript merely to re-present the same result;
  • do not instruct the spawned session to create further independent sessions unless the user explicitly requested recursive orchestration.

Use monitoring only when the user asks the parent to supervise, consolidate, or continue after the child. In that case, session.wait.idle, session.transcript.get, and session.message.send are optional follow-up tools, not part of the default spawn flow.

The Happier MCP action ids are:

  • session.spawn_new — accepts initialMessage, title, tag, path, machineId, profileId, backend/model selection, and permissionMode;
  • session.wait.idle — optional monitoring;
  • session.transcript.get — optional transcript retrieval;
  • session.message.send — optional follow-up or correction.

The MCP binding names are session_spawn_new, session_wait_idle, session_transcript_get, and session_message_send. When actions are unavailable, use the corresponding CLI JSON commands below where the needed options are supported, or report the missing capability instead of silently changing topology.

Show full SKILL.md (142 more words)Show less

Auth Commands (JSON)

Check auth status without scraping human output:

bash
happier auth status --json

Session Commands

List sessions:

bash
happier session list --json

Inspect session status (server snapshot):

bash
happier session status <session-id-or-prefix> --json

Inspect session status with a best-effort live refresh:

bash
happier session status <session-id-or-prefix> --live --json

Create/load a session by tag:

bash
happier session create --tag <tag> --json

Send a message to a session:

bash
happier session send <session-id-or-prefix> "<message>" --json

Send a message and wait until the session is idle:

bash
happier session send <session-id-or-prefix> "<message>" --wait --timeout 300 --json

Wait for a session to become idle:

bash
happier session wait <session-id-or-prefix> --timeout 300 --json

Stop a session:

bash
happier session stop <session-id-or-prefix> --json

Read session history (compact is recommended for prompt stuffing):

bash
happier session history <session-id-or-prefix> --limit 50 --format compact --json

Execution Run Commands

Start an execution run:

bash
happier session run start <session-id-or-prefix> --intent review --backend claude --json

List runs for a session:

bash
happier session run list <session-id-or-prefix> --json

Get a run:

bash
happier session run get <session-id-or-prefix> <run-id> --include-structured --json

Send input to a run:

bash
happier session run send <session-id-or-prefix> <run-id> "<message>" --json

Stop a run:

bash
happier session run stop <session-id-or-prefix> <run-id> --json

Execute an action on a run:

bash
happier session run action <session-id-or-prefix> <run-id> <action-id> --input-json '<json>' --json

Wait for a run to finish:

bash
happier session run wait <session-id-or-prefix> <run-id> --timeout 300 --json

Stream turn IO for a streaming run (e.g. intent=voice_agent):

bash
happier session run stream-start <session-id-or-prefix> <run-id> "<message>" --json
happier session run stream-read <session-id-or-prefix> <run-id> <stream-id> --cursor 0 --json
happier session run stream-cancel <session-id-or-prefix> <run-id> <stream-id> --json

Server Commands (JSON)

List server profiles:

bash
happier server list --json

Current active server:

bash
happier server current --json

Add a server profile non-interactively:

bash
happier server add --name "My Server" --server-url https://example.com --webapp-url https://example.com --use --json

Switch active server:

bash
happier server use <id-or-name> --json

Remove a server profile:

bash
happier server remove <id-or-name> --force --json

Probe server reachability/version:

bash
happier server test [<id-or-name>] --json

Set a one-off custom server as active:

bash
happier server set --server-url https://example.com --webapp-url https://example.com --json

© happier-dev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/happier-session-control of happier-dev/happier.

Open the folder on GitHubat commit 493820f

Compare with similar skills

Happier Session Control next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Happier Session Control compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Happier Session Control this skillhappier-dev/happier1.9k—~1.7kAutomated safety check: PassMIT
Session Handoffsickn33/agentic-awesome-skills47k—~1.8kAutomated safety check: NotesMIT
Sessionanthropics/claude-for-legal9.6k3 repos~478Automated safety check: PassApache-2.0
Session History Searchslopus/happy24k—~3.1kAutomated safety check: PassMIT
Session Handoffdavila7/claude-code-templates32k2 repos~1.6kAutomated safety check: PassMIT
Read Sessionasgeirtj/system_prompts_leaks69k—~2.4kAutomated safety check: PassCC0-1.0

Similar skills

  • Session Handoff

    sickn33/agentic-awesome-skills

    A skill your agent uses when context approaches capacity, before /clear or /compact, when switching tasks, or when ending a coding session: produces a structured handoff artifact for the next session.

    47k GitHub stars~1.8k tokensUpdated yesterday
    Agent WorkflowsAuto-check: notes
  • Session

    anthropics/claude-for-legal

    Official

    Run a focused N-question study session on a subject — MBE, essay, or flashcards.

    9.6k GitHub starsUsed in 3 repos~478 tokens
    EducationAuto-check passed
  • Searches past Claude Code, Codex and Cursor sessions and summarizes what was worked on, tried or decided, using extraction scripts instead of reading raw logs.

    24k GitHub stars~3.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Session Handoff

    davila7/claude-code-templates

    Creates comprehensive handoff documents for seamless AI agent session transfers.

    32k GitHub starsUsed in 2 repos~1.6k tokens
    Agent WorkflowsAuto-check passed
  • Read Session

    asgeirtj/system_prompts_leaks

    Locate and read Muse Code's OWN session logs — the current session or a prior one.

    69k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Coding Agent Session Finder

    code-yeongyu/oh-my-openagent

    Finds, reads and reconstructs past coding-agent sessions across Codex, Claude, OpenCode, Senpi and many other local agent logs.

    70k GitHub stars~2.8k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from happier-dev/happier

All 28 skills in this repo
  • Happier Review

    happier-dev/happier

    Conduct evidence-backed Happier code, plan-completeness, session, worktree, feature, commit, branch, PR, codebase, and release-readiness reviews with affected-corridor analysis, high-confidence…

    1.9k GitHub stars~4.5k tokensUpdated today
    Auto-check passed
  • Happier CI Stabilize

    happier-dev/happier

    Stabilize failing, flaky, slow, or repeatedly rerun Happier CI and nightlies by collecting all reachable failures from one exact attempt, correcting canonical causes in one batch, simplifying…

    1.9k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Happier Commit Worktree

    happier-dev/happier

    Reconnoiter, classify, validate, group, and commit a large or continuously changing Happier worktree as coherent, human-understandable commits while preserving concurrent work and excluding…

    1.9k GitHub stars~3.9k tokensUpdated today
    Auto-check passed
  • Happier Release

    happier-dev/happier

    Resolve Happier's private release authority and run an exact-SHA release or nightly through cheap admission, verified CI evidence, resumable immutable candidates, and terminal publication proof.

    1.9k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Happier Diagnose

    happier-dev/happier

    Diagnose and explain a Happier runtime, session, daemon, provider (Claude/Codex/OpenCode), authentication, or connectivity incident from logs, structured diagnostics, runtime state, and source…

    1.9k GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Happier Implement

    happier-dev/happier

    Implement, change, build, fix, refactor, migrate, or apply accepted review findings in the Happier repositories with canonical-owner discovery, scope-preserving solution economy, TDD, efficient…

    1.9k GitHub stars~4.2k tokensUpdated today
    Auto-check passed

Questions about Happier Session Control

What does Happier Session Control do?

Manage Happier sessions and execution runs through the CLI JSON contract, and create independent Happier diagnosis sessions with explicit ownership, safe options, and fire-and-forget presentation…. Happier Session Control is an agent skill from happier-dev/happier. Manage Happier sessions and execution runs through the CLI JSON contract, and create independent Happier diagnosis sessions with explicit ownership, safe options, and fire-and-forget presentation semantics.

How do I install Happier Session Control in Claude Code?

Run `npx skills add happier-dev/happier --skill happier-session-control -a claude-code`. Or copy the skill folder (.agents/skills/happier-session-control in happier-dev/happier) into .claude/skills/happier-session-control in your project. Claude Code loads it when a task matches its description.

How do I install Happier Session Control in Codex?

Run `npx skills add happier-dev/happier --skill happier-session-control -a codex`. Or copy the skill folder (.agents/skills/happier-session-control in happier-dev/happier) into .agents/skills/happier-session-control in your project. Codex loads it when a task matches its description.

Can I use Happier Session Control in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add happier-dev/happier --skill happier-session-control -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/happier-session-control, .gemini/skills/happier-session-control, .github/skills/happier-session-control and .opencode/skills/happier-session-control in your project.

What does Happier Session Control need to run?

SKILL.md names no scripts, command-line tools or credentials: Happier Session Control is instructions for the agent only.

Does Happier Session Control access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Happier Session Control safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Happier Session Control use?

Happier Session Control is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Happier Session Control use?

About 1.7k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Happier Session Control?

Skills that share tags, products or a category with Happier Session Control: Session Handoff (sickn33/agentic-awesome-skills, 47k stars), Session (anthropics/claude-for-legal, 9.6k stars), Session History Search (slopus/happy, 24k stars) and Session Handoff (davila7/claude-code-templates, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Happier Session Control?

happier-dev (a GitHub organization) maintains it in happier-dev/happier, which has 1,876 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 7, 2026.

Source: happier-dev/happier on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.