Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: supermemoryai/opencode-supermemory
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: kandotrun/opencode-supermemory-max
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 18 commits
  • 13 files changed
  • 2 contributors

Commits on Mar 19, 2026

  1. fix: use prt_ prefix for all part IDs (OpenCode v1.2.25+ compat)

    OpenCode v1.2.25+ validates that all part IDs must start with 'prt'.
    The chat.message hook was creating parts with IDs like
    'supermemory-nudge-xxx' and 'supermemory-context-xxx', causing
    ZodError crashes on every session start.
    
    Changes:
    - Extract generatePartId/generateMessageId into shared ids.ts
    - Use generatePartId() in index.ts for nudge and context parts
    - Remove duplicated functions from compaction.ts
    
    Fixes #28
    Fixes #29
    Fixes #32
    kandotrun committed Mar 19, 2026
    Configuration menu
    Copy the full SHA
    39a873d View commit details
    Browse the repository at this point in the history
  2. fix: use prt_ prefix for all part IDs (OpenCode v1.2.25+ compat)

    OpenCode v1.2.25+ validates that all part IDs must start with 'prt'.
    The chat.message hook was creating parts with IDs like
    'supermemory-nudge-xxx' and 'supermemory-context-xxx', causing
    ZodError crashes on every session start.
    
    Changes:
    - Extract generatePartId/generateMessageId into shared ids.ts
    - Use generatePartId() in index.ts for nudge and context parts
    - Remove duplicated functions from compaction.ts
    
    Fixes #28
    Fixes #29
    Fixes #32
    kandotrun committed Mar 19, 2026
    Configuration menu
    Copy the full SHA
    953dc4b View commit details
    Browse the repository at this point in the history
  3. feat: add Japanese keyword patterns and session-end auto-save

    1. Japanese memory keywords:
       Added patterns like 覚えて, メモして, 保存して, 忘れないで etc.
       so the plugin recognizes Japanese memory trigger phrases.
    
    2. Session-end auto-save:
       - Track user and assistant messages during the session
       - On session.deleted event, ingest the conversation into
         both project and user scopes via supermemory
       - Minimum 3 messages required to trigger save
       - Capped at 50 tracked messages / 50k chars to avoid
         unbounded memory growth
    kandotrun committed Mar 19, 2026
    Configuration menu
    Copy the full SHA
    d8d7e9f View commit details
    Browse the repository at this point in the history
  4. Merge pull request #1 from kandotrun/fix/part-id-prefix

    fix: use prt_ prefix for all part IDs (OpenCode v1.2.25+ compat)
    kandotrun authored Mar 19, 2026
    Configuration menu
    Copy the full SHA
    4efa201 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #2 from kandotrun/feat/japanese-keywords-and-sessi…

    …on-save
    
    feat: add Japanese keyword patterns and session-end auto-save
    kandotrun authored Mar 19, 2026
    Configuration menu
    Copy the full SHA
    db96f73 View commit details
    Browse the repository at this point in the history
  6. feat: context re-injection with periodic and keyword triggers

    Previously, supermemory context was only injected on the first message
    of a session. This meant topic changes mid-session lost relevant
    memory context.
    
    Changes:
    - Add reinjectEveryN config (default 0 = first only)
      Set to e.g. 10 to re-inject context every 10 messages
    - Add recall keyword patterns (English + Japanese)
      'recall', '思い出して', 'メモリ確認' etc. trigger immediate
      context re-injection on that message
    - Clean up session state on session.deleted
    - Track per-session message counts instead of boolean set
    
    Config example (supermemory.jsonc):
      { "reinjectEveryN": 10 }
    kandotrun committed Mar 19, 2026
    Configuration menu
    Copy the full SHA
    3c7ee45 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #3 from kandotrun/feat/context-reinjection

    feat: context re-injection with periodic and keyword triggers
    kandotrun authored Mar 19, 2026
    Configuration menu
    Copy the full SHA
    e860c45 View commit details
    Browse the repository at this point in the history
  8. feat: claude-supermemory parity - entity context, dedup, relative tim…

    …e, repo tag, signal extraction
    
    Ports all major features from claude-supermemory to opencode-supermemory-max:
    
    1. Entity Context: PERSONAL_ENTITY_CONTEXT and REPO_ENTITY_CONTEXT
       constants guide supermemory on what to extract from conversations
       (user intent, decisions, preferences vs architecture, patterns)
    
    2. Dedup: deduplicate search results and profile facts to avoid
       showing the same memory multiple times
    
    3. Relative Time: show '3hrs ago', '2d ago' etc. alongside similarity
       percentages for memory results with timestamps
    
    4. Repo Container Tag: 3-tier memory scopes (user/project/repo)
       - repo tag based on git remote name for team-shared knowledge
       - search, add, list all support scope='repo'
       - session-end saves to all 3 scopes
    
    5. Signal Extraction: importance-based filtering for session saves
       - only saves turns containing signal keywords (configurable)
       - includes N context turns before each signal for continuity
       - English + Japanese signal keywords built-in
       - disabled by default (set signalExtraction: true to enable)
    kandotrun committed Mar 19, 2026
    Configuration menu
    Copy the full SHA
    6704a0c View commit details
    Browse the repository at this point in the history
  9. Merge pull request #4 from kandotrun/feat/claude-parity

    feat: claude-supermemory parity (entity context, dedup, relative time, repo tag, signal extraction)
    kandotrun authored Mar 19, 2026
    Configuration menu
    Copy the full SHA
    01e673d View commit details
    Browse the repository at this point in the history
  10. docs: comprehensive README (EN + JA) for opencode-supermemory-max

    - Full English README with feature comparison table vs upstream
    - Japanese README (README.ja.md) with complete documentation
    - Clear installation, configuration, and feature documentation
    - Highlights all max-specific features: Japanese keywords, signal
      extraction, repo tags, dedup, entity context, relative time
    kandotrun committed Mar 19, 2026
    Configuration menu
    Copy the full SHA
    e273dad View commit details
    Browse the repository at this point in the history
  11. Merge pull request #5 from kandotrun/docs/readme-and-description

    docs: comprehensive README (EN + JA)
    kandotrun authored Mar 19, 2026
    Configuration menu
    Copy the full SHA
    303c4f5 View commit details
    Browse the repository at this point in the history
  12. feat: incremental capture, every-message recall, metadata stripping

    Ported from OpenClaw supermemory-auto best practices:
    
    1. Incremental capture (crash-safe):
       - Save each user+assistant exchange immediately after assistant responds
       - No more waiting for session end — if OpenCode crashes, memories are safe
       - Uses PERSONAL_ENTITY_CONTEXT for extraction guidance
       - Configurable: incrementalCapture (default: true), maxCaptureChars (5000)
    
    2. Every-message recall:
       - Changed reinjectEveryN default from 0 to 1
       - Context is now re-injected on EVERY message, not just the first
       - Ensures topic changes mid-session get fresh relevant context
    
    3. Metadata stripping:
       - Strip supermemory-context blocks from queries before recall
       - Strip JSON metadata blocks and untrusted sender info
       - Cleaner queries = better recall accuracy
       - Query trimmed to 300 chars max
    kandotrun committed Mar 19, 2026
    Configuration menu
    Copy the full SHA
    0e3e501 View commit details
    Browse the repository at this point in the history
  13. Merge pull request #6 from kandotrun/feat/incremental-capture-and-recall

    feat: incremental capture, every-message recall, metadata stripping
    kandotrun authored Mar 19, 2026
    Configuration menu
    Copy the full SHA
    f436df1 View commit details
    Browse the repository at this point in the history
  14. feat: pre-compaction save + post-compaction memory re-injection

    1. Pre-compaction full conversation save:
       - Before compaction, capture ALL conversation messages to supermemory
       - Saves to project, user, and repo scopes with PERSONAL_ENTITY_CONTEXT
       - Ensures no conversation data is lost during compaction
       - Allows 2x maxCaptureChars for compaction saves
    
    2. Post-compaction memory re-injection:
       - After compaction, re-inject supermemory context in the 'Continue' message
       - Recalls user profile, user memories, and repo memories
       - Agent maintains continuity across compaction boundaries
       - Prompt instructs agent to use memory context to resume
    
    3. Summary saves to all scopes:
       - Compaction summary now saved to project + user + repo scopes
       - Uses PERSONAL_ENTITY_CONTEXT for extraction guidance
    
    4. Repo tag support in compaction:
       - createCompactionHook now accepts { user, project, repo } tags
    kandotrun committed Mar 19, 2026
    Configuration menu
    Copy the full SHA
    a293855 View commit details
    Browse the repository at this point in the history
  15. Merge pull request #7 from kandotrun/feat/compaction-save-and-reinject

    feat: pre-compaction save + post-compaction memory re-injection
    kandotrun authored Mar 19, 2026
    Configuration menu
    Copy the full SHA
    410ccae View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    6b7e7e2 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    501a735 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2026

  1. chore: merge upstream v2.0.5, resolve conflicts, bump to v2.1.0

    - Merged upstream/main (supermemoryai/opencode-supermemory v2.0.5)
    - Resolved conflicts in package.json and src/index.ts
    - Adopted upstream prt_ prefix ID format (removed custom generatePartId)
    - Retained all max features: Japanese keywords, signal extraction,
      incremental capture, entity context, session auto-save, compaction hooks
    - Version bumped to 2.1.0
    kandotrun committed Mar 26, 2026
    Configuration menu
    Copy the full SHA
    2c3ca4f View commit details
    Browse the repository at this point in the history
Loading