sessions:settings

A command for viewing and changing how session memory is kept. A session is one working conversation, and the settings cover retention, archives, storage limits, and automatic saving.

In plain words
What is it for?
Use it to inspect current memory settings or edit the configuration file to change retention periods, archive behavior, storage limits, and automatic saving.
Why use it?
It lets you control how long past work remains available and how much disk space saved sessions may use.

Command

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.

agentmods
npx agentmods add commands/iam-dev/cc-sessions/sessions-settings
Clone the repo
git clone --depth 1 https://github.com/iam-dev/cc-sessions
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 781 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00008 $0.00781
Opus 5 $0.00004 $0.00391
Sonnet 5 $0.00002 $0.00156
Haiku 4.5 $0.00001 $0.00078

Measured yesterday against content hash a69b4c3f8a78, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sessions:settings 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 yesterday.

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.

commands/sessions-settings.md · 98 lines

How it starts

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

Memory Settings

View and modify cc-sessions configuration.

Instructions

When the user runs /sessions:settings:

  1. Run the cc-sessions settings command to display current configuration:
node "${CLAUDE_PLUGIN_ROOT}/dist/cli.js" settings
  1. If the user wants to change a setting, help them edit ~/.cc-sessions/config.yml

Output Format

┌─────────────────────────────────────────────────────────────────┐
│                    SESSION MEMORY SETTINGS                      │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  RETENTION                                                      │
│  ┌─────────────────────────────────────────────────────────┐   │
│  │ Full sessions:    {currentValue}                        │   │
│  │                   Options: 7d, 30d, 90d, 1y, forever    │   │
│  │ Archives:         {currentValue}                        │   │
│  │ Max storage:      {currentValue} GB                     │   │
│  └─────────────────────────────────────────────────────────┘   │
│                                                                 │
│  AUTO-SAVE                                                      │
│  ┌─────────────────────────────────────────────────────────┐   │
│  │ [x] Auto-save sessions on exit                          │   │
│  │ [x] Generate AI summaries                               │   │
│  │ [x] Extract tasks automatically                         │   │
│  │ [x] Show last session on start                          │   │
│  └─────────────────────────────────────────────────────────┘   │
│                                                                 │
│  AI SUMMARIES                                                   │
│  ┌─────────────────────────────────────────────────────────┐   │
│  │ Model: {haiku/sonnet}                                   │   │
│  │        haiku: Fast, cheap (~$0.001/summary)             │   │
│  │        sonnet: Better quality (~$0.01/summary)          │   │
│  └─────────────────────────────────────────────────────────┘   │
│                                                                 │
│  STORAGE STATUS                                                 │
│  ┌─────────────────────────────────────────────────────────┐   │
│  │ Sessions saved:    {count}                              │   │
│  │ Storage used:      {usedMB} MB / {maxGB} GB             │   │
│  └─────────────────────────────────────────────────────────┘   │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Config file: ~/.cc-sessions/config.yml

Read the full file on GitHub · 98 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. yesterday First seen · 98 lines · 8 tokens per session scan A a69b4c3f8a78

Subscribe to this mod's changes

sessions:settings is a command published in the GitHub repository iam-dev/cc-sessions (2 stars, last pushed 4mo ago), licensed MIT. It adds 8 tokens to every session and 781 once invoked, about $0.0000 per session on Opus 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-31.