Added memory_search and Merged knowledge_extract and memory_operation#15
Merged
ngduyanhece merged 10 commits intomainfrom Jul 6, 2025
Merged
Added memory_search and Merged knowledge_extract and memory_operation#15ngduyanhece merged 10 commits intomainfrom
ngduyanhece merged 10 commits intomainfrom
Conversation
Contributor
|
@RyanNg1403 |
Merged
Ptah-CT
pushed a commit
to DerAuctor/ct-cipher
that referenced
this pull request
Oct 2, 2025
Ptah-CT
pushed a commit
to DerAuctor/ct-cipher
that referenced
this pull request
Oct 2, 2025
…n-tool Added memory_search and Merged knowledge_extract and memory_operation
hieuntg81
added a commit
that referenced
this pull request
Apr 22, 2026
…iew #15) The sweep loop that evicts expired entries used to run only inside set(). Long-running daemons that are read-heavy (cache once, sign many) therefore never reclaimed memory for keys the user had stopped using — get() only deleted the single entry it happened to touch. Extract `sweep(now)` as a private method and call it from both get() and set(). Ceiling growth was already practically bounded (projects × keys × ~1KB) so this is mostly a code-smell / symmetry fix rather than a memory leak. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🧠 Memory System Refactor: Unified Operations & Search
📋 Overview
Major refactor consolidating memory extraction and operations into a single atomic tool while adding semantic search capabilities for improved knowledge management.
🔄 Key Changes
1. Merged
extract_knowledge+memory_operation→cipher_extract_and_operate_memoryBenefits:
2. Added
cipher_memory_searchfor Knowledge RetrievalFeatures:
🔧 Updated Workflow
cipher_memory_search)cipher_extract_and_operate_memoryextracts and persists knowledge📈 Improvements
cipher_extract_and_operate_memoryruns automatically after each interaction without blocking agent responsesNote: When running in CLI, the agent response is displayed at last (after
cipher_extract_and_operate_memoryis done, however, the response is already generated before this tool call. This is done because I want the response to be at the end of each interaction, without any tool usage log showing up after that. The display order can be easily switched as follows.File:
src/core/session/coversation-session.ts(lines ~60-65)🛠️ Technical Details
memory_operation.ts📋 Migration
cipher_extract_and_operate_memoryandcipher_memory_searchextract_knowledgeandmemory_operation(commented out)SEARCH_MEMORY_TYPEenvironment variable controls search defaults