
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@jcmrs/opencode-vmem
Advanced tools
Persistent memory plugin for AI agents with episodic, semantic, and procedural memory
A portable, persistent memory plugin for AI/LLM/Agent contexts. Provides episodic, semantic, and procedural memory capabilities.
npm install @jcmrs/opencode-vmem
Or install directly from GitHub:
npm install jcmrs/opencode-vmem
import { Mind } from '@jcmrs/opencode-vmem';
const mind = await Mind.open('/path/to/project');
await mind.observe({
type: 'tool_execution',
content: 'User prefers TypeScript over JavaScript',
tool: 'bash'
});
const results = await mind.search('typescript preferences', 5);
console.log(results);
| Tool | Description |
|---|---|
mind_search | Search memories by query |
mind_state | Get memory system statistics |
mind_forget | Mark a memory for deletion |
mind_add_card | Add a memory card |
mind_context | Build current memory context |
mind_suggest | Get procedure suggestions |
| Command | Description |
|---|---|
/mind:stats | Display memory statistics |
/mind:search <query> | Search memories |
/mind:context | Show current context |
/mind:forget <id> | Mark memory for deletion |
/mind:add <entity> <slot> <value> | Add memory card |
/mind:cards | List all memory cards |
/mind:export | Export memory (json/md/plain) |
/mind:archive | Archive current memory |
/mind:help | Show help |
See docs/commands.md for detailed command documentation.
Create .opencode/vmem.json in your project:
{
"capture": {
"enabled": true,
"minOutputLength": 50
},
"embedding": {
"enabled": true,
"model": "Xenova/nomic-embed-text-v1"
},
"context": {
"maxTokens": 3000,
"format": "markdown"
}
}
See docs/configuration.md for all options.
.opencode/
├── memory/
│ ├── mind.mv2 # Main memory store (MV2 format)
│ ├── cards.json # Memory cards (extracted facts)
│ ├── procedures.json # Learned procedures
│ └── tombstones.json # Soft-deleted frames
├── archives/ # Archived memories
└── vmem.json # Configuration
Raw events captured from tool executions:
Extracted knowledge:
Learned patterns:
| Mode | Description |
|---|---|
lex | Lexical search (exact words) |
sem | Semantic search (embeddings) |
auto | Hybrid (tries semantic, falls back to lexical) |
# Clone and install
git clone https://github.com/jcmrs/opencode-vmem.git
cd opencode-vmem
npm install
# Run tests
npm test
# Run smoke test
npm run smoke
# Build
npm run build
# Validate real-world usage
npm run validate
This project uses GitHub Actions for:
MIT
FAQs
Persistent memory plugin for AI agents with episodic, semantic, and procedural memory
We found that @jcmrs/opencode-vmem demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.