status

A command for checking whether the MemoryLayer service is connected and showing information about the current workspace and active hooks.

In plain words
What is it for?
Use it to inspect the connection, workspace name, memory counts, and the status of the PreCompact, SessionStart, and Stop hooks.
Why use it?
It quickly reveals whether saved agent context is available and whether the expected startup, compaction, and stopping actions are enabled.

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/scitrera/memorylayer/status
Clone the repo
git clone --depth 1 https://github.com/scitrera/memorylayer
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 289 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.00000 $0.00289
Opus 5 $0.00000 $0.00144
Sonnet 5 $0.00000 $0.00058
Haiku 4.5 $0.00000 $0.00029

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

Security

Grade A, and why

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

memorylayer-cc-plugin/commands/status.md · 61 lines

What it actually says

/memorylayer-status

Check MemoryLayer connection status and workspace information.

Usage

/memorylayer-status

Behavior

When this command is invoked:

  1. Check Server Connection

    • Use memory_briefing to verify the MCP server is connected
    • Report connection status
  2. Display Workspace Info

    • Show the current workspace name (auto-detected from directory/git)
    • Show memory statistics from the briefing
  3. Report Hook Status

    • Confirm which hooks are active (PreCompact, SessionStart, Stop)

Response Format

Provide a concise status report:

MemoryLayer Status
==================
Server: Connected (http://localhost:61001)
Workspace: my-project (auto-detected from git)

Statistics:
- Total memories: 42
- Recent (24h): 5
- Associations: 18

Hooks Active:
- PreCompact: Yes (preserves context before compaction)
- SessionStart: Yes (loads context at start)
- Stop: Yes (prompts for final memories)

All systems operational.

If there are issues, report them clearly:

MemoryLayer Status
==================
Server: NOT CONNECTED

Troubleshooting:
1. Start the server: memorylayer serve
2. Check MEMORYLAYER_URL environment variable
3. Run /memorylayer-setup for guided configuration
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 · 61 lines · 0 tokens per session scan A d1fec8502d26

Subscribe to this mod's changes

status is a command published in the GitHub repository scitrera/memorylayer (2 stars, last pushed 3mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 289 tokens. 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.