go/plugin/commands/remember.md
Snider a93cc3540a feat(plugin): add Claude Code plugin for host-uk framework
Core plugin providing:
- Skills: core CLI reference, PHP patterns, Go patterns
- Commands: /core:remember for context persistence
- Hooks:
  - PreToolUse: block dangerous commands (rm -rf, sed -i, grep -l |)
  - PreToolUse: enforce core CLI over raw go/php commands
  - PostToolUse: auto-format Go/PHP, check for debug statements
  - PostToolUse: warn about uncommitted work after git commit
  - PreCompact: save state to prevent amnesia after auto-compact
  - SessionStart: restore context from recent sessions (<3h)
- MCP: core CLI server integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 10:27:04 +00:00

760 B

name description args
remember Save a fact or decision to context for persistence across compacts <fact to remember>

Remember Context

Save the provided fact to ~/.claude/sessions/context.json.

Usage

/core:remember Use Action pattern not Service
/core:remember User prefers UK English
/core:remember RFC: minimal state in pre-compact hook

Action

Run this command to save the fact:

~/.claude/plugins/cache/core/scripts/capture-context.sh "<fact>" "user"

Or if running from the plugin directory:

"${CLAUDE_PLUGIN_ROOT}/scripts/capture-context.sh" "<fact>" "user"

The fact will be:

  • Stored in context.json (max 20 items)
  • Included in pre-compact snapshots
  • Auto-cleared after 3 hours of inactivity