memory-commands

memory-commands is a command for Claude Code from fatihguner/foreman. It costs 46 tokens per session (4,335 once invoked), scanned A, original, MIT.

A set of commands for viewing and managing an entrepreneur’s saved context, such as identity, company details, decisions, follow-ups, and session data.

In plain words
What is it for?
Use it to view all saved context or a specific layer, and to manage the memory used by the system.
Why use it?
It keeps important background information available across sessions and lets you inspect or update it without searching through old conversations.

Command for Claude Code

Part of the foreman plugin — 37 skills, 14 commands, 6 agents 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/fatihguner/foreman/memory-commands
Clone the repo
git clone --depth 1 https://github.com/fatihguner/foreman

Made for: Claude Code.

Or install foreman, the plugin that ships this one along with the rest of its 37 skills, 14 commands, 6 agents.

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 memory-commands

README.md
[![agentmods](https://agentmods.dev/badge/commands/fatihguner/foreman/memory-commands.svg)](https://agentmods.dev/commands/fatihguner/foreman/memory-commands)
Your own site
<a href="https://agentmods.dev/commands/fatihguner/foreman/memory-commands"><img src="https://agentmods.dev/badge/commands/fatihguner/foreman/memory-commands.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,335 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.00046 $0.04335
Opus 5 $0.00023 $0.02167
Sonnet 5 $0.00009 $0.00867
Haiku 4.5 $0.00005 $0.00434

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

Security

Grade A, and why

memory-commands 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 5d 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.

.claude/commands/memory-commands.md · 521 lines

How it starts

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

Memory Commands

/context

Description

Displays the entrepreneur's current context as stored in memory. Without arguments, returns a consolidated view combining identity (who you are), company (stage, sector, metrics, challenges), and active items (running playbooks, pending decisions, upcoming follow-ups). With a layer argument, returns only that specific layer. This command is read-only — it never modifies state.

Syntax

/context [layer]

Parameters

Parameter Required Type Default Description
layer No string all Specific memory layer: identity, company, active

Examples

/context
→ Identity:
    Name: Sarah Chen
    Role: CEO & Co-founder
    Experience: 8 years product management, 2 years as founder
  Company:
    Name: Relay Health
    Sector: B2B healthtech
    Stage: early-traction
    MRR: $42,000
    Team size: 12
    Challenges: churn rate rising, Series A timeline pressure
  Active:
    Playbook: fundraising-playbook (Step 4 of 8)
    Pending decisions: 2 (VP Engineering hire, pricing model change)
    Overdue follow-ups: 1 (investor update to Sequoia)

/context company
→ Company:
    Name: Relay Health
    Sector: B2B healthtech
    Stage: early-traction
    MRR: $42,000
    Burn rate: $85,000/month
    Runway: 11 months
    Team size: 12
    Challenges: churn rate rising, Series A timeline pressure

/context identity
→ Identity:
    Name: Sarah Chen
    Role: CEO & Co-founder
    Experience: 8 years product management, 2 years as founder
    Strengths: product intuition, stakeholder communication
    Development areas: financial modeling, board management

Related Commands

  • /update company — Modify the company profile
  • /update identity — Modify the personal profile
  • /history — View past actions rather than current state

Error Handling

Input Error Message
/context session Unknown layer "session". Available layers: identity, company, active. Session data is internal and not directly viewable.
/context (empty memory) No context found. Run /update identity and /update company to set up your profile.

Read the full file on GitHub · 521 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. 5d ago First seen · 521 lines · 46 tokens per session scan A b97f6473fe04

Subscribe to this mod's changes

memory-commands is a command published in the GitHub repository fatihguner/foreman (47 stars, last pushed 5mo ago), licensed MIT. It adds 46 tokens to every session and 4,335 once invoked, about $0.0002 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-30.