MemoraPolish your design with AI, accumulate memory, generate skeletons — inside your IDE sidebar, so you stop churning through scattered code edits until everything is a mess. English | 中文 Memora is a kernel-driven VS Code AI assistant: a thin shell that assembles the kernel and reuses all of its capabilities. What the assistant is comes from built-in role packs (it ships with Open source: github.com/zooique/memora Kernel: built on the npm package @zooique/memora Features
ScreenshotsChat panel (gear in the title bar goes straight to settings, role badge, model switcher, quick actions all on one screen):
Settings › Memory (memory retrieval, plus Roles / Models / Skills / Security tabs, trash and expiry cleanup):
Settings › Roles (role-pack management: switch and set current, full tool / temperature badges, team orchestration):
Settings › Skills (global skills and role-pack skills side by side: built-in marker, enable/disable toggle, view content):
InstallationOption 1: from the MarketplaceOpen the Extensions view ( Option 2: from a VSIX (offline package)
Quick start
Local models (Ollama / LM Studio)Memora works with any local runtime that speaks the OpenAI protocol (Ollama, LM Studio, …) — point the base URL at your local address and no internet connection is needed:
Skip the settings panel (environment variables)The extension falls back to environment variables; restart VS Code after setting them:
If you already have environment variables configured, you can skip the settings panel entirely. Priority: activated provider in the settings panel > environment variables. Giving the AI context (references and injection)Above the text in the input box sit two rows of small chips: the top row is skills, the bottom row is context — the current file, Three ways to attach a reference
A reference is a pointer, not contentA reference only tells the AI "go look at this file" — it does not stuff the body into the conversation. Hovering a chip shows "pointer only, the body is read on demand (no budget)". What actually consumes budget is injection, below. Chip row operations
Broken references are called outIf an attached file is deleted or renamed, that reference is degraded to a bare pointer and marked "no longer exists after attaching" when you send — the AI asks you first instead of hitting an error with a dead path. The current-file chip: attached automatically, can be turned off for this sessionThe first chip on the context row shows the file currently open:
|
| Command | Description |
|---|---|
Memora: Open Chat Panel |
Open the sidebar chat panel (positioning comes from the role pack), shortcut Ctrl+Alt+M |
Memora: Configure Model |
Open the model configuration panel |
Memora: Manage Role Packs |
Open the Roles tab of settings (the "current role" badge in the chat area lands here too) |
Memora: View Memory Statistics |
Show the current project's memory count and storage overview |
Memora: Clean Up Expired Memories |
Clean up memories past their retention period |
Memora: Run Orphan Garbage Collection Now |
GC: reclaim orphaned memories no session references anymore |
Memora: Reset to Initial State (Clear User-Level Data) |
Clear all user-level data in one click (model config and API keys, user skills and role packs, security switches, …) and restore the first-run state; project memory and sessions are kept; the window reloads automatically when done |
Memora: Run Capability Demo (Isolated Demo Area) |
Run the capability demo in an isolated demo area without touching real data |
Memora: Reload Skills and Role Packs |
Rescan built-in and user skills and role packs |
Memora: Import Skill or Role Pack (.zip) |
Import a skill or role pack from a zip (reload afterwards if needed) |
Memora: Open Settings Panel |
Open the settings panel (general / models / search / archiving / MCP / security / works and rules — all preferences and lists in one place) |
Memora: Register Work Projection |
Register the current file as a work projection that can accumulate (explorer and editor context menus); once registered it shows up under Settings → "Works and rules" |
Memora: Toggle Project Rule |
Toggle the "project rule" resident state of a right-clicked file (its body is injected every turn). If the file is not registered it only tells you to register first — it never creates a registration; the current state is reported in the receipt |
Memora: Manage Project Rules |
Open a temporary QuickPick list to toggle / unregister entries one by one (the list-management surface) |
| Settings → "Works and rules" page | The browsing surface for work projections: each card shows the work name, one-line summary, source path and whether it is a project rule; click "Set as project rule" in the row to promote the work into a red line injected automatically every turn. There is also a badge for whether the most recent assembly actually injected it (read failure / single item over limit / total over limit each have their own mark). Clicking a row opens the source file, so you can edit it directly and the next assembly re-reads it after saving; two in-row buttons toggle the rule / unregister only (the source file is never deleted). The refresh button re-reads the list; the badge reflects the most recent assembly: list edits show up immediately, while failure reasons are recomputed on the next conversation turn |
Memora: Add to Chat |
Add a file / folder from the explorer, or an editor selection, to the chat input as a reference (pointer only, no content injected) |
Memora: Add Image to Chat |
Open a file picker to add a local image to the chat input (converges with paste / right-click / drag onto the same ingestion pipeline) |
Memora: Review File Changes |
Review the file changes the AI produced this turn |
Memora: Confirm All File Changes |
Confirm every change of this turn in one click |
Memora: Revert All File Changes |
Revert every change of this turn in one click |
Memora: Confirm Changes in This File |
Editor title-bar button: confirm the staged changes of the current file |
Memora: Revert Changes in This File |
Editor title-bar button: revert the staged changes of the current file |
Memora: Copy Diagnostic Summary |
Copy version / environment / config / recent webview errors / runtime metrics in one click — paste it to the maintainer when reporting a problem |
Data storage
Extension data comes in two levels — project level and user level. The extension defines the behaviour, everything uses VS Code's native mechanisms, and no extra user folder is created:
| Level | Location | Content |
|---|---|---|
| Project | workspace .memora/ directory |
session records sessions.json / memories memories.json |
| User | VS Code user settings settings.json |
model provider config (alias / model / base URL, no API keys) |
| User | VS Code user settings settings.json |
search preferences: memora.searchEngine (a preset or a custom engine name) and memora.customSearchEngines (custom list, application scope = shared across projects) |
| User | VS Code user settings settings.json |
AI answer language: memora.answerLanguage (empty or auto = follow VS Code's display language; you can also type a language name such as Japanese. Only affects the answer language, never the UI text; takes effect from the next reply). Also editable in Settings › General with Automatic / Manual modes |
| User | VS Code user settings settings.json |
MCP config: memora.mcpServers (external tool servers) and memora.mcpToolAllowlist (confirmation-free whitelist; user-level = shared across projects, workspace level is not accepted — see mcp-setup.md) |
| User | VS Code global storage globalStorage |
active role pack (shared across projects) |
| User | VS Code SecretStorage | API keys (encrypted at rest) |
Notes:
- Project-level
.memora/: one memory set per project, travelling with the workspace (commit it or ignore it, your call). - User-level config lives in the VS Code user data directory (Windows:
AppData/Roaming/Code/User/). Provider config is user-level rather than project-level so it is shared across projects — no reconfiguration when you switch projects, and no pollution of the project's.vscode/settings.json. - API keys go to SecretStorage (VS Code's encrypted storage): they are never written to settings.json and never enter git. Not finding a plaintext file is the intended security design — keys should not be on disk in plaintext in the first place.
- Reset to initial state: the Security tab of the settings panel, or
Memora: Reset to Initial Statein the command palette, clears every user-level store in the table above in one click; project-level.memora/and project settings are unaffected. - If an older version wrote provider config into the project's
.vscode/settings.json, the extension migrates it to user level and cleans up the leftovers on startup.
Troubleshooting
Chat reports 401 / authentication failure?
Read the wording of the error first — three shapes, three fixes:
| Message shape | Meaning | What to do |
|---|---|---|
API Key "xxx" is not stored: … |
The provider is configured, but the system keychain has no key for it | Edit that provider under Settings › Models and fill in the API Key |
API Key for "xxx" read failed: … |
The keychain itself cannot be read (state unknown — not necessarily a missing key) | Follow the reason in the message, then restart VS Code and retry |
API Key for "xxx" read timed out: … |
The keychain did not respond within 5 seconds | Restart VS Code; if it keeps happening, check the system credential service (Windows Credential Manager) |
Where a missing key usually comes from (most common first):
- Settings Sync (the most common): VS Code's Settings Sync syncs settings.json but not the system keychain — on a new machine the provider list is complete while all keys are gone. Filling them in once fixes it.
- The key was not written when saving: the save receipt already warned "provider config saved, but the API key failed" — the provider is in the list, the key never reached the keychain. Edit that provider and fill in the key; no need to re-enter everything.
- Reset to initial state failed midway: clearing user data has two steps (delete keys first, then clear config); a failure in between leaves the intermediate state "provider registered, key deleted". Filling in that provider fixes it.
- System credentials were cleaned up: security software or a cleanup tool touched the system credential store. Fill the key in again and watch whether it recurs.
It says "this provider is temporarily unavailable"?
That is a half-finished state: config saved, key not saved, and the form contents are still there — close the form, edit the provider in the provider list and fill in the API key; no need to start over.
Still need to report a problem
Run Memora: Copy Diagnostic Summary from the command palette to copy version / environment / config / recent webview errors / runtime metrics in one click, then paste it to the maintainer.
License: MIT



