Commit Graph

52 Commits

Author SHA1 Message Date
ved015 192ab043e7 fix: preserve memory search result text 2026-08-13 18:31:15 +05:30
Prasanna A P db3fd71ef2 fix plugin update notice 2026-08-05 18:15:06 -07:00
Prasanna A P 8543ec8ff5 add privacy policy links 2026-08-05 14:12:58 -07:00
ved015 c3b63f2b5d feat: read legacy Cursor memories 2026-07-25 19:10:14 +05:30
ved015 ba77cb3efd Bump plugin version to 0.0.12 2026-07-24 20:57:06 +05:30
Dhravya Shah 39dc74da4d Bump plugin version to 0.0.11
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-18 12:34:04 -07:00
Dhravya Shah a6b5e9b3b7 Merge remote-tracking branch 'origin/main' into feat/agents
# Conflicts:
#	plugin/scripts/add-memory.cjs
#	plugin/scripts/context-hook.cjs
#	plugin/scripts/save-project-memory.cjs
#	plugin/scripts/search-memory.cjs
#	plugin/scripts/status.cjs
#	plugin/scripts/summary-hook.cjs
2026-07-18 12:08:03 -07:00
Dhravya Shah 97c997348e bump plugin version to 0.0.10
latest.json on main already advertised 0.0.10 while the installed
manifest and baked PLUGIN_VERSION were still 0.0.9, so the update
check nagged every session for a release that was never published.
Bump manifest, package.json, plugin-version.js and rebuild hooks so
the announced and installed versions match.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-16 17:26:24 -07:00
ved015 968a7c2110 Unify agent memories in stable repository containers 2026-07-14 09:44:12 +05:30
ved015 605998e05d Unify Claude agent memory containers 2026-07-13 21:22:07 +05:30
Sreeram Sreedhar 2b5a6fcd66 bumping up version 2026-06-16 23:48:43 -07:00
Sreeram Sreedhar 178acc23e0 Bump plugin version to 0.0.9 2026-06-16 19:11:49 -07:00
Sreeram Sreedhar 35681629ce build: commit recall bundles + refresh stale bundles
main has the recall source + hooks.json wiring (from #65) but never got
the built bundles, so UserPromptSubmit -> recall-hook.cjs errored with
MODULE_NOT_FOUND on every turn. This commits the build output:

- recall-hook.cjs, recall-approve.cjs (new) — the two missing bundles
  hooks.json already references
- context-hook/summary-hook/add-memory/save-project-memory/search-memory/
  status .cjs (refreshed) — were stale on main (built pre-#65), so they
  reported version 0.0.7 while the source is 0.0.8; rebuilding aligns them
  (also clears the false "update available" notice loop)

No package/version files changed — source is already at 0.0.8; this only
ships the bundles that build.js produces.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 18:31:48 -07:00
Sreeram Sreedhar 2556183965 feat: reasoned per-turn memory recall with auto-approve
Re-introduces the reasoned recall feature (previously reverted in #64),
source files only — generated plugin/scripts/*.cjs are intentionally not
included and must be produced by the build step.

- recall-hook (UserPromptSubmit): injects a per-turn directive so Claude
  decides whether recalling saved memory helps the current message.
- recall-approve (PreToolUse): auto-approves only the supermemory-search
  tool call (narrow allow-list, rejects shell-laced commands).
- settings: recallDirective override + getRecallConfig.
- build/hooks wiring and version bump to 0.0.8.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 23:13:17 -07:00
Vedant Mahajan ba4595dacb Revert "feat: reasoned per-turn memory recall with auto-approve" 2026-06-16 11:32:10 +05:30
Sreeram Sreedhar 389dd56c6c Merge remote-tracking branch 'origin/main' into sreedharsreeram/conditional-search-reasoning-v1
# Conflicts:
#	plugin/scripts/add-memory.cjs
#	plugin/scripts/context-hook.cjs
#	plugin/scripts/save-project-memory.cjs
#	plugin/scripts/search-memory.cjs
#	plugin/scripts/status.cjs
#	plugin/scripts/summary-hook.cjs
#	src/context-hook.js
2026-06-15 21:19:25 -07:00
Mahesh Sanikommu fe40ebc129 Polish plugin manifest for official marketplace listing
Enrich plugin.json (displayName, homepage, repository, license,
keywords), move category to the marketplace entry and drop the
duplicate version, add a marketplace description, and note the
Node 18+ requirement in the README.
2026-06-13 11:33:03 -07:00
Sreeram Sreedhar 311cb8d0ce Merge remote-tracking branch 'origin/main' into 05-31-add_baseurl_to_config-v1
# Conflicts:
#	.claude-plugin/marketplace.json
#	latest.json
#	plugin/.claude-plugin/plugin.json
#	plugin/scripts/add-memory.cjs
#	plugin/scripts/context-hook.cjs
#	plugin/scripts/save-project-memory.cjs
#	plugin/scripts/search-memory.cjs
#	plugin/scripts/status.cjs
#	plugin/scripts/summary-hook.cjs
2026-06-11 13:54:14 -07:00
Claude 80241df3c4 Bump runtime PLUGIN_VERSION to 0.0.6
src/lib/plugin-version.js held the version the SessionStart hook reports
itself as. It was missed in the previous bump, so an installed 0.0.6
plugin would still self-report 0.0.5 and keep showing the 'update
available' notice after updating. Rebuilt the bundled hooks.

https://claude.ai/code/session_01424Bk69KXtjWYvnueZJJad
2026-06-11 07:39:54 +00:00
Claude f7e5243283 Bump version to 0.0.6 for plugin rename
So existing installs are notified via the update check (which compares
the installed version against latest.json) to reinstall under the new
'supermemory' plugin name.

https://claude.ai/code/session_01424Bk69KXtjWYvnueZJJad
2026-06-11 07:34:00 +00:00
Claude a200ef1281 Rename plugin to 'supermemory' while keeping repo as claude-supermemory
Set the Claude Code plugin name to 'supermemory' in plugin.json and
marketplace.json, and update install commands and command prefixes
(/supermemory:*) accordingly. Repository paths and GitHub URLs remain
supermemoryai/claude-supermemory.

https://claude.ai/code/session_01424Bk69KXtjWYvnueZJJad
2026-06-11 07:27:13 +00:00
Sreeram Sreedhar 51bd029b14 chore: bump version to 0.0.6
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 12:23:44 -07:00
Sreeram Sreedhar 3a0c34c169 add baseUrl to config 2026-06-10 12:22:24 -07:00
Sreeram Sreedhar 35d766cdf4 Merge origin/main into sreedharsreeram/conditional-search-reasoning
Resolve by rebuilding plugin/scripts/*.cjs so the artifacts carry BOTH
main's source changes (Windows auth fix, update-notice via version-check)
and this branch's recall hooks — the .cjs were otherwise stale against the
merged source. Apply biome auto-format to the inherited context-hook.js /
version-check.js so `biome ci` passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 11:33:42 -07:00
Sreeram Sreedhar 0493e6ee47 feat: reasoned per-turn memory recall with auto-approve
Add a UserPromptSubmit hook that injects a directive telling Claude to
reason — per message — about whether recalling memory would help, and
only then search via the supermemory-search skill. A PreToolUse hook
auto-approves that search so it runs silently, like auto-capture, instead
of interrupting with a permission prompt.

Reasoned recall and auto-approve are built-in (no toggles): searching
only when it helps keeps more usage on the user's plan. The auto-approve
is scoped to the read-only search and refuses any command laced with
shell chaining/redirection. SUPERMEMORY_DEBUG surfaces a per-turn
[recall-decision] line for debugging. SessionStart profile load and the
Stop-hook save are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 14:30:40 -07:00
Mahesh Sanikommu c546872997 Merge pull request #51 from supermemoryai/status
feat: add supermemory status command
2026-06-04 21:21:42 -07:00
Sreeram bee1a50cc9 updated skills name (#53) 2026-06-04 17:04:19 -07:00
ved015 cd93424ee0 chore: simplify status command implementation 2026-06-04 18:14:50 +05:30
ved015 04099701ce feat: add claude supermemory status command
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 18:06:47 +05:30
Mahesh Sanikommu 36c37adaea feat: add /claude-supermemory:session command with correct deep link 2026-05-28 15:11:46 -07:00
Mahesh Sanikommu bc879fe413 fix: biome format and optional chain lint 2026-05-22 13:59:59 -07:00
Mahesh Sanikommu 3a9249689a feat: add claude-code source attribution and kebab skills
Stamp sm_source/x-sm-source for API analytics and add supermemory-search/supermemory-save skill aliases. Bump plugin to 0.0.4.
2026-05-22 13:56:39 -07:00
Mahesh Sanikommu 544c927c57 fix: bump plugin.json version to 0.0.3 to match marketplace.json
The previous version bump updated .claude-plugin/marketplace.json to
0.0.3 but left plugin/.claude-plugin/plugin.json at 0.0.2. Claude Code
reads plugin.json to decide whether an update is available, so users on
0.0.2 are told they are already current and never receive the update.

Fixes #43
2026-05-14 14:52:30 -07:00
Dhravya Shah 2bba40394f Merge pull request #33 from robertmclaws/fix/ecosystem-aware-index-command
Make /index command ecosystem-aware with auto-detection
2026-03-05 19:37:34 -08:00
Prasanna721 9c892eb638 Migrate console.supermemory.ai to app.supermemory.ai 2026-03-04 21:51:28 -08:00
Robert McLaws a68c51cfb3 Add Swift and Elixir to all ecosystem reference tables
Phase 0 detected Swift (Package.swift) and Elixir (mix.exs) but the
subsequent reference tables had no entries for them, leaving the agent
with no ecosystem-specific guidance after detection.

Adds complete rows for both ecosystems across all four tables:
- Manifest & Config Files
- Entry Points & Architecture
- Conventions & Patterns
- Key Files to Read

Also adds .build, _build, and deps to the skip list for Swift and
Elixir build output folders.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 15:29:05 -05:00
Robert McLaws 0740bf9120 Make /index command ecosystem-aware with auto-detection
The /index command previously hardcoded JS/TS-specific file names and
entry points, leaving Rust/Python/Go with minimal guidance and
.NET/C#, Java, Ruby, PHP with none at all.

This restructures the command with:
- Phase 0: Auto-detect ecosystem by globbing for manifest files
- Ecosystem Reference table: per-language guidance for manifests,
  entry points, architectural patterns, conventions, and key files
- Coverage for 8 ecosystems: .NET/C#, JS/TS, Rust, Python, Go,
  Java/Kotlin, Ruby, PHP
- Expanded skip list for language-specific build output folders

The single-command UX is preserved (no arguments needed). The agent
detects the stack automatically and uses the reference table to guide
its exploration.

Fixes #32

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 15:14:52 -05:00
Prasanna721 200ad1055d Use git remote URL for repo container tags
Use git remote URL instead of folder name for consistent repo container tags

 - Use `git remote get-url origin` to derive repo name for container tags instead of relying solely on folder name
  - Adds `getGitRepoName()` function to extract repo name from git remote URL
  - Falls back to folder name if no remote is configured
2026-02-11 20:13:27 -08:00
Prasanna 5b5ec9b8f9 Bump plugin version to 0.0.2 (#24) 2026-02-08 16:59:53 -08:00
Prasanna721 a9e5591884 Use git remote URL for repo container tags
- Extract repo name from git remote get-url origin instead of directory path
  - Makes container tags consistent across team members with different local paths
  - Falls back to directory name if no git remote
  - Updated README: streamlined docs, added config tables
2026-02-05 15:33:15 -08:00
Dhravya Shah f5f77c5e65 Merge branch 'main' into fix/windows-hook-path-spaces 2026-02-05 16:05:06 -07:00
Prasanna721 992184ddd2 added new skill 2026-02-05 14:07:30 -08:00
Prasanna721 098f208d8d signal extraction ;) 2026-02-05 11:15:22 -08:00
Prasanna721 f8906e6f98 v2: Claude Code Supermemory Refreshed
Refresh plugin architecture with Supermemory

 - Add project-level configuration system (.claude/.supermemory-claude/config.json) for per-repo API keys and container tags
  - Add /project-config command to manage project settings
  - Add /super-save skill for saving project knowledge (architectural decisions, bug fixes, design patterns)
  - Add repo container tag support for team-shared memories (separate from personal memories)
  - Rename prompt-hook to save-project-memory with dedicated repo-level memory saving
  - Remove observation hook (consolidate into other hooks)
  - Enhance context hook, search memory, and summary hook scripts
  - Update supermemory client with repo entity context support
  - Remove MCP config file
2026-02-04 19:14:37 -08:00
yash f6b6a7741c fix(windows): quote hook command paths to support spaces 2026-02-02 00:49:54 +05:30
Prasanna721 4dc618bf97 Add codebase indexing command
feat: add /claude-supermemory:index command for codebase indexing

Changes:
  - Add /claude-supermemory:index command to explore and index codebase into Supermemory
  - Add add-memory.js script for saving compiled findings
  - Update build.js to include add-memory in build
  - Remove unused settings (maxContextMemories, maxProjectMemories)
  - Update README with new command documentation
2026-01-29 15:20:59 -08:00
Prasanna721 7f21ad7ba3 biome fix and context update 2026-01-29 21:09:17 +00:00
Prasanna721 e91b5119a9 Intelligent transcript capture on Stop hook
feat: incremental transcript capture with deduplication

  Points:
  - Remove addMemory from prompt-hook and observation-hook (pass-through only)
  - Capture formatted transcript on Stop hook instead
  - Track last captured UUID per session to avoid duplicates
  - Format: [role:user], [role:assistant], [tool:X], [tool_result:X status]
  - Skip Read tool results, thinking blocks, system reminders
  - Truncate tool results to 500 chars
  - Tracker stored in ~/.supermemory-claude/trackers/{sessionId}.txt
2026-01-29 08:46:43 -08:00
Prasanna721 7d1a86c339 feat: zero-friction auth with browser login and credential persistence
Add browser-based authentication flow

 Major:
  1. Browser-based auth flow - auto-opens browser for login, no manual API key setup
  2. Credentials persistence in ~/.supermemory-claude/credentials.json
  3. Localhost callback server to receive API key from auth page

  Medium:
  4. Configurable URLs via SUPERMEMORY_AUTH_URL and SUPERMEMORY_API_URL env vars
  5. Styled success/error pages matching Supermemory branding

  Minor:
  6. Logout script (src/logout.js) for clearing credentials
2026-01-23 21:15:35 -08:00
Prasanna721 2dd97f3e32 Zero-dependency bundled plugin with session-based memory
1. Bundled Scripts — Used esbuild to bundle all dependencies into self-contained .cjs files. Users don't need npm install.
  2. Session-Based Memory — One document per session using sessionId as customId. All hooks append to same document.
  3. Fixed Double Shebang — Source files had shebang + esbuild added another. Removed from source, esbuild adds via banner.
  4. Code Cleanup — Removed unnecessary comments and spacing. Clean source in src/, built output in plugin/scripts/.
  5. Simplified README — Removed MCP, architecture, comparisons. Kept installation and config only.
2026-01-22 21:26:56 -08:00