rs

rs is a command for Claude Code from danielmiessler/LifeOS. It costs 42 tokens per session (302 once invoked), scanned A, original, MIT.

A command for restoring Claude work sessions that ended when a terminal was killed. It can restore all dead registered sessions or one selected by ID or name, each in its recorded directory.

In plain words
What is it for?
Use it to list registered sessions, restore all dead sessions, or bring back one specific session. Restored sessions open in separate kitty terminal tabs when kitty is available.
Why use it?
It avoids rebuilding your working state after a terminal failure. It also skips sessions that are still running, so they are not duplicated.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Codex.

Good fit Use it to list registered sessions, restore all dead sessions, or bring back one specific session. Restored sessions open in separate kitty terminal tabs when kitty is available.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/danielmiessler/lifeos/rs
About the project

LifeOS is an AI-assisted personal operating system that records a person’s goals, values, context, and current situation to help move them toward a desired future state. It supports work such as building applications, starting businesses, and creative projects. Its catalogue entries extend the system through skills, hooks, agents, and commands.

danielmiessler/LifeOS · 20,481 stars · on GitHub · ourlifeos.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/danielmiessler/LifeOS

Made for: Claude Code.

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 rs

README.md
[![agentmods](https://agentmods.dev/badge/commands/danielmiessler/lifeos/rs/github.svg)](https://agentmods.dev/commands/danielmiessler/lifeos/rs)
Your own site
<a href="https://agentmods.dev/commands/danielmiessler/lifeos/rs"><img src="https://agentmods.dev/badge/commands/danielmiessler/lifeos/rs/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 rs

Your own site · 80×15
<a href="https://agentmods.dev/commands/danielmiessler/lifeos/rs"><img src="https://agentmods.dev/badge/commands/danielmiessler/lifeos/rs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 302 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.
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.00042 $0.00302
Opus 5.5 $0.00017 $0.00121
Sonnet 5.5 $0.00008 $0.00060
Haiku 4.5 $0.00004 $0.00030

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

Security

Grade A, and why

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

LifeOS/install/commands/rs.md · 17 lines

What it actually says

rs — Restore sessions

The principal typing /rs (or a bare rs) means: bring back the sessions that died with the terminal. The registry is MEMORY/STATE/live-sessions/; the tool is LIFEOS/TOOLS/Sessions.ts.

  • /rs or /rs --all → bun LIFEOS/TOOLS/Sessions.ts restore --all. Every registered session whose harness process is gone comes back in a new kitty tab, at its recorded directory, on Claude's own resume (the lifeos -r launcher). Codex sessions are not registered today, so /rs does not bring them back. Sessions still running are skipped, never duplicated.
  • /rs <id or name> → restore <query>. A session id prefix or a unique substring of the session name.
  • /rs list → list. Show what is registered and which entries are dead.

Run the command, then report what came back and what was skipped, in the standard format. Outside kitty the tool prints the commands instead of opening tabs; relay them verbatim in a code block.

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 First seen · 17 lines · 42 tokens per session scan A 3e9bb745ad09

Subscribe to this mod's changes

rs is a command published in the GitHub repository danielmiessler/LifeOS (20,481 stars, last pushed 11d ago), licensed MIT. It adds 42 tokens to every session and 302 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-10-28.

Related

rs compared with commands from other repositories

rs next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rsdanielmiessler/LifeOSCommand20k11d agoMITA42Claude Code
fileahundt/autorunCommand137d agononeA14Claude Code
ar-fileahundt/autorunCommand137d agononeA18Claude Code
ar-statusahundt/autorunCommand137d agononeA15Claude Code
engage.actionshypnguyen1209/offensive-claudeCommand4301mo agoMITA11Claude Code
contractstudioKjm/ai-harness-templateCommand461mo agoMITA26Claude Code
stuckData-Wise/claude-pluginsCommand711d agoMITA0Claude Code