Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manage Happier sessions (list/status/send/wait/history/stop + execution runs) via the happier CLI JSON contract.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 106% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -14% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -37% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -21% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 13% | 0% |
This skill enables an agent framework (for example OpenClaw) to control Happier sessions using the existing happier CLI in --json mode.
happier CLI is installed and authenticated.session (prefix-only):happier --server <profile-id-or-name> session list --jsonhappier --server-url <url> --webapp-url <url> session list --jsonAll 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.Check auth status without scraping human output:
bashhappier auth status --json
List sessions:
bashhappier session list --json
Inspect session status (server snapshot):
bashhappier session status <session-id-or-prefix> --json
Inspect session status with a best-effort live refresh:
bashhappier session status <session-id-or-prefix> --live --json
Create/load a session by tag:
bashhappier session create --tag <tag> --json
Send a message to a session:
bashhappier session send <session-id-or-prefix> "<message>" --json
Send a message and wait until the session is idle:
bashhappier session send <session-id-or-prefix> "<message>" --wait --timeout 300 --json
Wait for a session to become idle:
bashhappier session wait <session-id-or-prefix> --timeout 300 --json
Stop a session:
bashhappier session stop <session-id-or-prefix> --json
Read session history (compact is recommended for prompt stuffing):
bashhappier session history <session-id-or-prefix> --limit 50 --format compact --json
Start an execution run:
bashhappier session run start <session-id-or-prefix> --intent review --backend claude --json
List runs for a session:
bashhappier session run list <session-id-or-prefix> --json
Get a run:
bashhappier session run get <session-id-or-prefix> <run-id> --include-structured --json
Send input to a run:
bashhappier session run send <session-id-or-prefix> <run-id> "<message>" --json
Stop a run:
bashhappier session run stop <session-id-or-prefix> <run-id> --json
Execute an action on a run:
bashhappier session run action <session-id-or-prefix> <run-id> <action-id> --input-json '<json>' --json
Wait for a run to finish:
bashhappier session run wait <session-id-or-prefix> <run-id> --timeout 300 --json
Stream turn IO for a streaming run (e.g. intent=voice_agent):
bashhappier 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
List server profiles:
bashhappier server list --json
Current active server:
bashhappier server current --json
Add a server profile non-interactively:
bashhappier server add --name "My Server" --server-url https://example.com --webapp-url https://example.com --use --json
Switch active server:
bashhappier server use <id-or-name> --json
Remove a server profile:
bashhappier server remove <id-or-name> --force --json
Probe server reachability/version:
bashhappier server test [<id-or-name>] --json
Set a one-off custom server as active:
bashhappier server set --server-url https://example.com --webapp-url https://example.com --json
Other measured skills in the registry, with their headline benchmark lift.