πŸš€ Big News:Socket Has Acquired Secure Annex.Learn More β†’
Socket
Book a DemoSign in
Socket

@prismer/claude-code-plugin

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prismer/claude-code-plugin

Prismer Evolution plugin for Claude Code β€” auto-learning from every coding session

Source
npmnpm
Version
1.7.5
Version published
Weekly downloads
8
-84.91%
Maintainers
1
Weekly downloads
Β 
Created
Source

@prismer/claude-code-plugin (v1.7.4)

Prismer Evolution plugin for Claude Code (v3). Implements an 8-hook evolution architecture that turns coding sessions into transferable knowledge β€” errors become learning strategies, successful fixes become shared recommendations across all agents.

How It Works (v3 Eight-Hook Architecture)

β”Œβ”€ SessionStart ─────────────────────────────────────────┐
β”‚  session-start.mjs                                     β”‚
β”‚  1. Sync pull: trending genes + hot strategies         β”‚
β”‚  2. Retry queue: resend any failed session-end pushes  β”‚
β”‚  3. Memory pull: inject persistent memory              β”‚
β”‚  4. Skill sync: download cloud-installed skills        β”‚
β”‚  5. Pre-warm MCP server (background)                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                         β”‚
β”Œβ”€ Mid-Session ──────────┼───────────────────────────────┐
β”‚                        β–Ό                               β”‚
β”‚  PreToolUse(Bash): pre-bash-suggest.mjs                β”‚
β”‚  - Stuck detection: same error signal >= 2x in journal β”‚
β”‚  - Only queries /analyze when stuck (not every command) β”‚
β”‚                                                        β”‚
β”‚  PreToolUse(WebFetch): pre-web-cache.mjs               β”‚
β”‚  - Context cache load (opt-in, disabled by default)    β”‚
β”‚  - Cache hit β†’ return cached content, skip fetch       β”‚
β”‚                                                        β”‚
β”‚  PostToolUse(Bash|Edit|Write): post-bash-journal.mjs   β”‚
β”‚  - Writes to LOCAL session-journal.md only             β”‚
β”‚  - 13 signal patterns for error classification         β”‚
β”‚  - Tracks signal counts for stuck detection            β”‚
β”‚                                                        β”‚
β”‚  PostToolUse(WebFetch|WebSearch): post-web-save.mjs    β”‚
β”‚  - Silently caches web content to Prismer Cloud        β”‚
β”‚                                                        β”‚
β”‚  PostToolUseFailure: post-tool-failure.mjs             β”‚
β”‚  - Direct failure signal extraction to journal         β”‚
β”‚                                                        β”‚
β”‚  SubagentStart: subagent-start.mjs                     β”‚
β”‚  - Injects top strategies + parent signals             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                         β”‚
β”Œβ”€ Session End ──────────┼───────────────────────────────┐
β”‚                        β–Ό                               β”‚
β”‚  Stop: session-stop.mjs (primary path)                 β”‚
β”‚  1. Read session journal β†’ has evolution value?        β”‚
β”‚  2. YES β†’ block + inject gene adherence self-eval      β”‚
β”‚  3. Claude LLM reviews session with full context       β”‚
β”‚  4. Calls MCP: evolve_record, evolve_create_gene,      β”‚
β”‚     memory_write (zero extra LLM cost)                 β”‚
β”‚                                                        β”‚
β”‚  SessionEnd: session-end.mjs (fallback path)           β”‚
β”‚  - Async sync push for gene feedback + signals         β”‚
β”‚  - Retry queue for failed pushes                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Quick Start

Install from Marketplace

/plugin marketplace add Prismer-AI/PrismerCloud
/plugin install prismer@prismer

On first enable, Claude Code will prompt for your API key (stored securely in keychain).

Install from Local Directory (Development)

claude --plugin-dir /path/to/sdk/prismer-cloud/claude-code-plugin

Configuration

The plugin reads config from multiple sources (in priority order):

SourceVariables
Environment variablesPRISMER_API_KEY, PRISMER_BASE_URL
Claude Code userConfigPrompted on plugin enable (stored in keychain)
~/.prismer/config.tomlapi_key, base_url (shared with CLI)
# Option 1: Environment variable
export PRISMER_API_KEY="sk-prismer-..."

# Option 2: Config file
cat > ~/.prismer/config.toml << 'EOF'
api_key = "sk-prismer-..."
base_url = "https://prismer.cloud"
EOF

Optional Feature Flags

VariableDefaultDescription
PRISMER_WEB_CACHE_LOAD0Set to 1 to enable WebFetch cache load (pre-check before fetching)
PRISMER_SCOPEauto-detectedOverride project scope (default: from package.json name or git remote)

Components

1. Hooks (8 Lifecycle Events)

Registered via hooks/hooks.json:

EventScriptPurpose
SessionStartsession-start.mjsSync pull + retry queue + memory + skill sync + MCP pre-warm
PreToolUse (Bash)pre-bash-suggest.mjsStuck detection β†’ conditional /analyze query
PreToolUse (WebFetch)pre-web-cache.mjsContext cache load (opt-in)
PostToolUse (Bash|Edit|Write)post-bash-journal.mjsLocal session journal with signal detection
PostToolUse (WebFetch|WebSearch)post-web-save.mjsSilent context cache save
PostToolUseFailurepost-tool-failure.mjsFailure signal extraction
SubagentStartsubagent-start.mjsStrategy + signal injection to subagents
Stopsession-stop.mjsEvolution value check β†’ block + gene adherence self-eval
SessionEndsession-end.mjsAsync fallback sync push + retry queue

2. MCP Server (33 Tools)

Configured via .mcp.json β€” @prismer/mcp-server provides tools including evolve_analyze, evolve_record, evolve_create_gene, evolve_publish, evolve_delete, memory_write, recall, skill_search, skill_sync, and more.

3. Skills (5 Slash Commands)

SkillDescription
/prismer:evolve-analyzeQuery the evolution network for known fix strategies
/prismer:evolve-createCreate a new gene from a discovered pattern
/prismer:evolve-recordRecord an outcome after applying a strategy
/prismer:evolve-session-reviewFull session review with gene adherence evaluation
/prismer:prismer-setupFirst-run setup guidance

File Structure

claude-code-plugin/
β”œβ”€β”€ .claude-plugin/
β”‚   β”œβ”€β”€ plugin.json              # Plugin manifest (with userConfig)
β”‚   └── marketplace.json         # Marketplace catalog
β”œβ”€β”€ hooks/
β”‚   └── hooks.json               # 8 hook entries across 7 events
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ session-start.mjs        # SessionStart: sync + retry + memory + skills
β”‚   β”œβ”€β”€ pre-bash-suggest.mjs     # PreToolUse(Bash): stuck detection
β”‚   β”œβ”€β”€ pre-web-cache.mjs        # PreToolUse(WebFetch): cache load (opt-in)
β”‚   β”œβ”€β”€ post-bash-journal.mjs    # PostToolUse(Bash|Edit|Write): journal
β”‚   β”œβ”€β”€ post-web-save.mjs        # PostToolUse(WebFetch|WebSearch): cache save
β”‚   β”œβ”€β”€ post-tool-failure.mjs    # PostToolUseFailure: failure signals
β”‚   β”œβ”€β”€ subagent-start.mjs       # SubagentStart: strategy injection
β”‚   β”œβ”€β”€ session-stop.mjs         # Stop: block + gene adherence
β”‚   β”œβ”€β”€ session-end.mjs          # SessionEnd: async fallback sync
β”‚   └── lib/
β”‚       β”œβ”€β”€ resolve-config.mjs   # Config resolution (env β†’ userConfig β†’ toml)
β”‚       └── signals.mjs          # 13 shared signal patterns
β”œβ”€β”€ skills/
β”‚   β”œβ”€β”€ evolve-analyze/SKILL.md
β”‚   β”œβ”€β”€ evolve-create/SKILL.md
β”‚   β”œβ”€β”€ evolve-record/SKILL.md
β”‚   β”œβ”€β”€ evolve-session-review/SKILL.md
β”‚   └── prismer-setup/SKILL.md
β”œβ”€β”€ .mcp.json                    # MCP server configuration (33 tools)
β”œβ”€β”€ DESIGN.md                    # v3 architecture design document
β”œβ”€β”€ CHANGELOG.md
β”œβ”€β”€ LICENSE                      # MIT
β”œβ”€β”€ README.md                    # This file
└── package.json

Privacy & Security

What is sent:

  • Aggregated error signals (types + counts, not raw stderr)
  • Gene proposals (abstracted strategies, no project-specific paths)
  • Outcome feedback (success/failure + adherence assessment)
  • WebFetch/WebSearch cached content (public URLs only, fire-and-forget)

What is NOT sent:

  • Source code or file contents
  • Environment variables or secrets
  • Raw error output (kept in local journal only)
  • Private/localhost URLs

All data is scoped to your API key. Evolution data propagates to other agents in the same scope.

  • @prismer/sdk β€” Prismer SDK with CLI
  • @prismer/mcp-server β€” MCP Server (33 tools)
  • @prismer/opencode-plugin β€” OpenCode equivalent
  • Prismer Cloud β€” Knowledge Drive for AI Agents

License

MIT

Keywords

prismer

FAQs

Package last updated on 01 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts