Skip to content
Development
Command

/bug

Use when: logging a known bug + repro steps you can't fix right now. Writes a searchable observation (findable via mem_search + surfaced by recall hooks; still NOT memdir). Skip for bugs you're actively fixing in the current turn — just fix them.

From plugin
claude-mem-lite
688 skills8 commands7 hooks1 MCP
> /plugin marketplace add sdsrss/claude-mem-lite
> /plugin install claude-mem-lite@sdsrss

Command definition

bug.md
name: bug
description: "Use when: logging a known bug + repro steps you can't fix right now. Writes a searchable observation (findable via mem_search + surfaced by recall hooks; still NOT memdir). Skip for bugs you're actively fixing in the current turn — just fix them."

/claude-mem-lite:bug

Record a known bug + reproduction steps. Writes a searchable **observation** (`type=bugfix`, description in `lesson_learned`) so future sessions can find it via `mem_search` and the PreToolUse recall hooks warn when the affected files are edited. Does NOT touch memdir. Useful for bugs you can't fix immediately but want future sessions (or yourself after `/clear`) to know about and avoid re-investigating.

When to use

  • Bug is known but fix is blocked (waiting on upstream, needs discussion).
  • Bug is intermittent / race condition; you want a repro recipe recorded.
  • Edge case affecting only part of users; not priority now but must not

be silently re-discovered.

Don't use for bugs you're actively fixing in the current turn — just fix them. Use `/lesson` afterward if there's a non-obvious root cause worth recording.

Arguments

  • Positional text: short bug description.
  • `--file <path>` or `--files f1,f2,...`: affected files. Triggers

pre-tool-recall warning when these files are edited later.

  • `--repro "step1; step2; step3"`: reproduction steps, semicolon-separated.
  • `--severity low|med|high`: maps to importance `1|2|3`. Default `med`.

Execution

Map severity to importance:

  • `low` → importance 1
  • `med` → importance 2 (default)
  • `high` → importance 3

Build the body as `<description>\n\nRepro:\n<repro-steps>` (or just `<description>` if `--repro` is absent).

Run via Bash — the full body is the positional content; a distilled description goes in `--lesson` so it lands in the high-weight `lesson_learned` field. `--lesson` is capped at 500 chars (longer values are rejected), so keep the full body in the positional content and trim `--lesson` to the core description if longer:

node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" save "<body>" \ --type bugfix \ --title "<first 60 chars of description>" \ --lesson "<description, ≤500 chars>" \ [--files f1,f2,...] \ --importance <1|2|3>

Confirm to user with: `Bug logged: #<id>`.

Examples

  • `/claude-mem-lite:bug intermittent test flake when DB is under load --repro "run pnpm test -- --retry=0; fails ~1 in 20 runs when CPU is busy"`.
  • `/claude-mem-lite:bug --file src/auth.mjs --severity high "session refresh drops the X-Forwarded-For header"` — no repro steps, just a high-severity note.
Read more
@sdsrss
Ships withclaude-mem-lite

claude-mem-lite is a persistent memory (also called long-term memory or cross-session context) system for Claude Code — Anthropic's CLI coding agent.

Stars on GitHub

Momentum

stars in total
68
Star history of sdsrss/claude-mem-lite on GitHub, a chart by star-history.com

Other commands on claude-mem-lite.

adopt

adopt

Command

Use when: user asks to put the claude-mem-lite steering block into the current project's CLAUDE.md (for example to share it with…

@sdsrss@sdsrssInstall Command
lesson

lesson

Command

Use when: capturing a non-obvious lesson/gotcha/workaround after a tricky fix or surprising behavior. Writes a searchable…

@sdsrss@sdsrssInstall Command
mem

mem

Command

Use when: querying past work, managing memories, or checking project history

@sdsrss@sdsrssInstall Command
memory

memory

Command

Use when: user asks to remember something, after solving a non-obvious problem, or to capture key session findings

@sdsrss@sdsrssInstall Command
unadopt

unadopt

Command

Use when: user wants to remove the claude-mem-lite steering block from the current project (or from every project Claude Code…

@sdsrss@sdsrssInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command