setup-remembrall

setup-remembrall is a command for coding agents from cukas/remembrall. It costs 32 tokens per session (1,822 once invoked), scanned B, original, MIT.

A manual setup command for connecting Remembrall to Claude Code’s status line. The status line is the small information area showing details about the current session.

In plain words
What is it for?
Use it to check, add, or customize the Remembrall bridge in Claude Code’s settings, including its context-remaining gauge.
Why use it?
The connection lets Remembrall read how much conversation space remains; the command is useful if automatic setup failed or you want to adjust the display.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the remembrall plugin — 6 skills, 12 commands, 4 hooks shipped together

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/cukas/remembrall/setup-remembrall
Clone the repo
git clone --depth 1 https://github.com/cukas/remembrall

Or install remembrall, the plugin that ships this one along with the rest of its 6 skills, 12 commands, 4 hooks.

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 setup-remembrall

README.md
[![agentmods](https://agentmods.dev/badge/commands/cukas/remembrall/setup-remembrall.svg)](https://agentmods.dev/commands/cukas/remembrall/setup-remembrall)
Your own site
<a href="https://agentmods.dev/commands/cukas/remembrall/setup-remembrall"><img src="https://agentmods.dev/badge/commands/cukas/remembrall/setup-remembrall.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,822 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00032 $0.01822
Opus 5 $0.00016 $0.00911
Sonnet 5 $0.00006 $0.00364
Haiku 4.5 $0.00003 $0.00182

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

Security

Grade B, and why

setup-remembrall scanned grade B with 1 finding 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 4d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

grep -q "claude-context-pct" ~/.claude/settings.json 2>/dev/null && echo "Bridge already installed" || echo "Bridge not found"
commands/setup-remembrall.md · 113 lines

How it starts

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

Setup Remembrall Bridge (Manual Fallback)

Note: Since v2.3.0, the bridge auto-configures on first session start. You only need this command if auto-setup failed or you want to customize the Remembrall gauge.

Remembrall needs a small bridge in your Claude Code status line to feed context window % to its hooks. This command helps you add it.

You MUST complete ALL steps below (1–10). Do not stop after the bridge — the gauge and optional features are part of the setup flow.

What the Bridge Does

Your status line already has access to $remaining (context window % remaining) and $session_id. The bridge writes $remaining to a file in /tmp/claude-context-pct/ named by session_id. Each Claude session gets its own bridge file.

Steps

  1. Check if the bridge already exists — Run:

    grep -q "claude-context-pct" ~/.claude/settings.json 2>/dev/null && echo "Bridge already installed" || echo "Bridge not found"
    
  2. If already installed: Tell the user "Remembrall bridge is already set up." and continue to step 7.

  3. If not installed: Read the user's current ~/.claude/settings.json and find the statusLine section.

  4. Find the insertion point — Look for the block that checks if [ -n "$remaining" ]. The bridge snippet goes inside this block, before the closing fi.

  5. Show the user the bridge snippet they need to add inside their existing if [ -n "$remaining" ]; then ... fi block. The snippet requires $session_id to be extracted earlier in the status line (add session_id=$(echo "$input" | jq -r '.session_id // empty'); alongside the other extractions):

CTX_DIR="/tmp/claude-context-pct"; mkdir -p "$CTX_DIR" 2>/dev/null;
printf "%s" "$remaining" > "$CTX_DIR/${session_id}" 2>/dev/null;
  1. Edit the settings file — Insert the bridge snippet into the status line command. The exact location depends on the user's existing status line format. Find the if [ -n "$remaining" ] block and add the bridge snippet inside it (after the existing context display logic, before the fi).

Read the full file on GitHub · 113 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. 4d ago First seen · 113 lines · 32 tokens per session scan B a505f7cd348e

Subscribe to this mod's changes

setup-remembrall is a command published in the GitHub repository cukas/remembrall (6 stars, last pushed 5mo ago), licensed MIT. It adds 32 tokens to every session and 1,822 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.