happier: Skill for Claude Code

.agents/skills/happier-session-control/SKILL.md

happier-session-control is a skill for Claude Code, Codex from happier-dev/happier. It costs 41 tokens per session (1,612 once invoked), scanned A, original, MIT.

A command-line control interface for Happier sessions, which are remote or managed coding-agent sessions. It uses structured JSON responses to list, inspect, message, wait for, review, or stop sessions and execution runs.

In plain words
What is it for?
Use it to check session status, send instructions, retrieve history, wait for runs, stop sessions, and manage execution through scripts.
Why use it?
It gives automation a predictable way to control sessions and handle errors such as missing authentication or an unknown session. It requires an installed and authenticated Happier command-line tool.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions subagents; installed under .agents/ (shared by several agents); built for openclaw.

This is happier-dev/happier's own configuration. It tells Claude Code and Codex how to work on happier itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything happier configures →

About the project

Happier is an open-source, end-to-end encrypted client that lets people run AI coding-agent sessions on a computer and continue controlling them from a phone, browser, or desktop app. It is for developers who use agents such as Claude Code, Codex, Gemini, or OpenCode across multiple devices, with self-hosting available. The catalogue entries are add-ons for configuring or extending this client and its supported coding-agent workflows.

happier-dev/happier · 2,072 stars · on GitHub · happier.dev

Reuse

Borrowing it

Nothing to install: this file belongs to happier-dev/happier. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/happier-dev/happier/dev/.agents/skills/happier-session-control/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/happier-dev/happier

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for happier-session-control

README.md
[![agentmods](https://agentmods.dev/badge/skills/happier-dev/happier/happier-session-control/github.svg)](https://agentmods.dev/skills/happier-dev/happier/happier-session-control)
Your own site
<a href="https://agentmods.dev/skills/happier-dev/happier/happier-session-control"><img src="https://agentmods.dev/badge/skills/happier-dev/happier/happier-session-control/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for happier-session-control

Your own site · 80×15
<a href="https://agentmods.dev/skills/happier-dev/happier/happier-session-control"><img src="https://agentmods.dev/badge/skills/happier-dev/happier/happier-session-control.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,612 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01612
Opus 5.5 $0.00016 $0.00645
Sonnet 5.5 $0.00008 $0.00322
Haiku 4.5 $0.00004 $0.00161

Measured 1mo ago against content hash 30cbaeeb6e43, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

happier-session-control scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/happier-session-control/SKILL.md · 223 lines

How it starts

The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

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

or:

{ "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.

Read the full file on GitHub · 223 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +24 lines · +11 tokens per session 30cbaeeb6e43
  2. 1mo ago First seen · 199 lines · 30 tokens per session scan A a243a6d36ed2

Subscribe to this mod's changes

happier-session-control is a skill published in the GitHub repository happier-dev/happier (2,072 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 1,612 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.