Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2025-08-03 16:48:18 [INFO]: Loading agent config from /home/serchio/.cipher/cipher.yml
- 2025-08-03 16:48:18 [DEBUG]: Loading cipher config from: /home/serchio/.cipher/cipher.yml
- 2025-08-03 16:48:18 [DEBUG]: MemAgent created
- 2025-08-03 16:48:18 [DEBUG]: Starting MemAgent...
- 2025-08-03 16:48:18 [DEBUG]: MemAgent: Using standard services
- 2025-08-03 16:48:18 [DEBUG]: Initializing event manager...
- 2025-08-03 16:48:18 [DEBUG]: ServiceEventBus initialized
- 2025-08-03 16:48:18 [DEBUG]: EventManager initialized
- 2025-08-03 16:48:18 [DEBUG]: Event emitted
- 2025-08-03 16:48:19 [DEBUG]: Event emitted
- 2025-08-03 16:48:19 [DEBUG]: Client manager initialized with 1 MCP server(s)
- 2025-08-03 16:48:19 [DEBUG]: Event emitted
- 2025-08-03 16:48:19 [DEBUG]: Initializing embedding manager...
- 2025-08-03 16:48:19 [DEBUG]: [EMBEDDING:MANAGER] Simple embedding manager initialized
- 2025-08-03 16:48:19 [DEBUG]: Found explicit embedding configuration in YAML, using it
- 2025-08-03 16:48:19 [DEBUG]: [EMBEDDING:MANAGER] Creating embedder from YAML configuration
- 2025-08-03 16:48:19 [DEBUG]: Creating embedder
- 2025-08-03 16:48:19 [DEBUG]: [EMBEDDING] Ollama embedder initialized
- 2025-08-03 16:48:19 [INFO]: [EMBEDDING:MANAGER] Embedder registered successfully from YAML
- 2025-08-03 16:48:19 [INFO]: Embedding manager initialized successfully
- 2025-08-03 16:48:19 [DEBUG]: Event emitted
- 2025-08-03 16:48:19 [DEBUG]: Initializing vector storage manager...
- 2025-08-03 16:48:19 [DEBUG]: Reflection memory enabled, using dual collection vector manager
- 2025-08-03 16:48:19 [DEBUG]: ServiceCache: Cache miss, creating dualCollectionVectorStore:3372079315
- 2025-08-03 16:48:19 [DEBUG]: MilvusConnectionPool: Creating new connection
- 2025-08-03 16:48:19 [DEBUG]: MilvusConnectionPool: Connection created and pooled
- 2025-08-03 16:48:19 [DEBUG]: MilvusConnectionPool: Reusing existing connection
- 2025-08-03 16:48:20 [DEBUG]: ServiceCache: Cached dualCollectionVectorStore:3372079315
- 2025-08-03 16:48:20 [DEBUG]: Dual collection vector storage manager initialized successfully
- 2025-08-03 16:48:20 [DEBUG]: Initializing knowledge graph manager...
- 2025-08-03 16:48:20 [DEBUG]: Knowledge graph manager initialized successfully
- 2025-08-03 16:48:20 [DEBUG]: Agent state manager initialized
- 2025-08-03 16:48:20 [DEBUG]: Initializing LLM service...
- 2025-08-03 16:48:20 [DEBUG]: ServiceCache: Cache miss, creating contextManager:26449362832
- 2025-08-03 16:48:20 [DEBUG]: Created context manager
- 2025-08-03 16:48:20 [DEBUG]: ContextManager initialized with formatter
- 2025-08-03 16:48:20 [DEBUG]: ServiceCache: Cached contextManager:26449362832
- 2025-08-03 16:48:20 [DEBUG]: Verified API key
- 2025-08-03 16:48:20 [INFO]: LLM service initialized successfully
- 2025-08-03 16:48:20 [INFO]: InternalToolRegistry: Initializing...
- 2025-08-03 16:48:20 [INFO]: InternalToolRegistry: Initialized successfully
- 2025-08-03 16:48:20 [DEBUG]: Workspace memory is disabled - excluding all workspace tools
- 2025-08-03 16:48:20 [DEBUG]: Knowledge graph enabled, loading knowledge graph tools
- 2025-08-03 16:48:20 [INFO]: Internal tools registration completed
- 2025-08-03 16:48:20 [DEBUG]: Unified tool manager initialized
- 2025-08-03 16:48:20 [DEBUG]: SessionManager: Starting initialization...
- 2025-08-03 16:48:20 [INFO]: SessionManager: Initializing persistence storage...
- 2025-08-03 16:48:20 [DEBUG]: SessionManager: Attempting to initialize PostgreSQL storage...
- 2025-08-03 16:48:20 [DEBUG]: SessionManager: Using PostgreSQL individual parameters
- 2025-08-03 16:48:20 [DEBUG]: TokenizerCache: Cache miss, creating new tokenizer
- 2025-08-03 16:48:20 [DEBUG]: Creating tokenizer
- 2025-08-03 16:48:20 [DEBUG]: TokenizerCache: Tokenizer cached
- 2025-08-03 16:48:20 [DEBUG]: ServiceCache: Cache miss, creating compressionStrategy:25840307394
- 2025-08-03 16:48:20 [DEBUG]: Creating compression strategy
- 2025-08-03 16:48:20 [DEBUG]: MiddleRemovalStrategy initialized
- 2025-08-03 16:48:20 [DEBUG]: OldestRemovalStrategy initialized
- 2025-08-03 16:48:20 [DEBUG]: HybridStrategy initialized
- 2025-08-03 16:48:20 [DEBUG]: ServiceCache: Cached compressionStrategy:25840307394
- 2025-08-03 16:48:20 [DEBUG]: [TokenAware] Token count reset (no messages or tokenizer)
- 2025-08-03 16:48:20 [DEBUG]: Token-aware compression configured
- 2025-08-03 16:48:20 [DEBUG]: Token-aware compression configured for LLM service
- 2025-08-03 16:48:20 [DEBUG]: OpenAI tokenizer initialized with tiktoken
- 2025-08-03 16:48:20 [INFO]: SessionManager: PostgreSQL persistence storage initialized successfully
- 2025-08-03 16:48:20 [INFO]: SessionManager: Storage initialized with database backend: postgres
- 2025-08-03 16:48:20 [INFO]: SessionManager: Found 1 session keys in storage with prefix 'cipher:sessions:'
- 2025-08-03 16:48:20 [DEBUG]: SessionManager: Session keys found: cipher:sessions:default
- 2025-08-03 16:48:20 [DEBUG]: Session default: Using PostgreSQL for history provider (lazy-loaded)
- 2025-08-03 16:48:20 [DEBUG]: Session default: Database history provider lazy-initialized with postgres backend.
- 2025-08-03 16:48:20 [DEBUG]: Created context manager
- 2025-08-03 16:48:20 [DEBUG]: ContextManager initialized with formatter
- 2025-08-03 16:48:20 [DEBUG]: Session default: Created session-specific context manager with history provider
- 2025-08-03 16:48:20 [INFO]: DatabaseHistoryProvider: Cleared conversation history for session default
- 2025-08-03 16:48:20 [INFO]: Session default: Restored 2 messages to context manager
- 2025-08-03 16:48:20 [DEBUG]: SessionManager: Loaded session default from persistent storage with 2 messages
- 2025-08-03 16:48:20 [DEBUG]: SessionManager: Successfully restored session default
- 2025-08-03 16:48:20 [DEBUG]: SessionManager: Session restoration completed
- 2025-08-03 16:48:20 [INFO]: SessionManager: Initialization complete. Loaded 1/1 sessions from storage. Current in-memory sessions: 1
- 2025-08-03 16:48:20 [DEBUG]: SessionManager initialized with max sessions: 100, TTL: 3600000ms
- 2025-08-03 16:48:20 [DEBUG]: Session manager with unified tools initialized
- 2025-08-03 16:48:20 [DEBUG]: Event emitted
- 2025-08-03 16:48:20 [DEBUG]: Event emitted
- 2025-08-03 16:48:20 [DEBUG]: MemAgent started successfully
- 2025-08-03 16:48:20 [DEBUG]: [MCP Handler] Initializing agent card resource
- 2025-08-03 16:48:20 [INFO]: [MCP Mode] Creating stdio transport for default MCP server
- 2025-08-03 16:48:20 [INFO]: [MCP Handler] Creating stdio transport
- 2025-08-03 16:48:20 [INFO]: [MCP Mode] Initializing default MCP server with agent capabilities
- 2025-08-03 16:48:20 [INFO]: [MCP Handler] Initializing MCP server with agent capabilities (mode: default)
- 2025-08-03 16:48:20 [DEBUG]: [MCP Handler] Registering agent tools (default mode - ask_cipher only)
- 2025-08-03 16:48:20 [INFO]: [MCP Handler] Registering 1 MCP tools: ask_cipher
- 2025-08-03 16:48:20 [DEBUG]: [MCP Handler] Registering agent resources
- 2025-08-03 16:48:20 [DEBUG]: [MCP Handler] Registering agent prompts
- 2025-08-03 16:48:20 [INFO]: [MCP Handler] MCP server initialized successfully (mode: default)
- 2025-08-03 16:48:20 [INFO]: [MCP Handler] Agent is now available as MCP server for external clients
- 2025-08-03 16:48:20 [INFO]: [MCP Mode] Cipher agent is now running as default MCP server
- 2025-08-03 16:48:33 [INFO]: [MCP Handler] Tool called: ask_cipher
- 2025-08-03 16:48:33 [INFO]: [MCP Handler] Processing ask_cipher request
- 2025-08-03 16:48:33 [DEBUG]: SessionEventBus initialized
- 2025-08-03 16:48:33 [DEBUG]: SessionEventBus created
- 2025-08-03 16:48:33 [DEBUG]: Event emitted
- 2025-08-03 16:48:33 [INFO]: Session default: Serialized with 2 messages
- 2025-08-03 16:48:33 [DEBUG]: SessionManager: Saved session default to persistent storage with 2 messages
- 2025-08-03 16:48:33 [DEBUG]: Updated activity for session: default
- 2025-08-03 16:48:33 [DEBUG]: SessionManager: Retrieved active session default. Total active sessions: 1
- 2025-08-03 16:48:33 [DEBUG]: MemAgent.run: using session default
- 2025-08-03 16:48:33 [DEBUG]: ConversationSession.run called
- 2025-08-03 16:48:33 [DEBUG]: Running session default with input: Search for quicksort algorithm that was previously saved and imageDataInput: undefined and stream: false
- 2025-08-03 16:48:33 [DEBUG]: Using configured evalLlm for evaluation tasks
- 2025-08-03 16:48:33 [DEBUG]: ConversationSession: Reasoning services initialized
- 2025-08-03 16:48:33 [DEBUG]: Session default: Conversation history restored (lazy-loaded)
- 2025-08-03 16:48:33 [DEBUG]: Verified API key
- 2025-08-03 16:48:33 [DEBUG]: Session default: LLM service lazy-initialized
- 2025-08-03 16:48:33 [DEBUG]: Adding user message: [
- {
- "type": "text",
- "text": "Search for quicksort algorithm that was previously saved"
- }
- ]
- 2025-08-03 16:48:33 [DEBUG]: TokenizerCache: Cache hit
- 2025-08-03 16:48:33 [DEBUG]: ServiceCache: Cache hit for compressionStrategy:25840307394
- 2025-08-03 16:48:33 [INFO]: Token counting: tiktoken count
- 2025-08-03 16:48:33 [INFO]: [TokenAware] Token count updated: 675 tokens for 2 messages
- 2025-08-03 16:48:33 [DEBUG]: Token-aware compression configured
- 2025-08-03 16:48:33 [DEBUG]: Token-aware compression configured for LLM service
- 2025-08-03 16:48:33 [DEBUG]: Adding message to context: {
- "role": "user",
- "content": [
- {
- "type": "text",
- "text": "Search for quicksort algorithm that was previously saved"
- }
- ]
- }
- 2025-08-03 16:48:33 [DEBUG]: Total messages in context: 3
- 2025-08-03 16:48:33 [INFO]: [TokenAware] Token count updated: 684 tokens for 3 messages
- 2025-08-03 16:48:33 [INFO]: UnifiedToolManager: Getting tools for provider: openrouter
- 2025-08-03 16:48:33 [DEBUG]: UnifiedToolManager: Getting all tools
- 2025-08-03 16:48:33 [DEBUG]: UnifiedToolManager: Default MCP mode - only ask_cipher tool exposed
- 2025-08-03 16:48:33 [INFO]: UnifiedToolManager: Got 1 total tools
- 2025-08-03 16:48:33 [INFO]: UnifiedToolManager: Formatting tools for OpenAI
- 2025-08-03 16:48:33 [DEBUG]: Tools in OpenRouter response: 1
- 2025-08-03 16:48:33 [DEBUG]: [SystemPrompt] Built complete system prompt (959 chars)
- 2025-08-03 16:48:33 [DEBUG]: Formatted 4 messages from history of 3 messages
- 2025-08-03 16:48:37 [INFO]: š I'll search for the quicksort algorithm that was previously saved to my knowledge base.
- 2025-08-03 16:48:38 [DEBUG]: Adding message to context: {
- "role": "assistant",
- "content": "I'll search for the quicksort algorithm that was previously saved to my knowledge base.\n\n",
- "toolCalls": [
- {
- "id": "call_5d3e2a1702774d8b916cbea3",
- "index": 0,
- "type": "function",
- "function": {
- "name": "ask_cipher",
- "arguments": "{\"query\": \"Search for the previously saved quicksort algorithm implementation in JavaScript\"}"
- }
- }
- ]
- }
- 2025-08-03 16:48:38 [DEBUG]: Total messages in context: 4
- 2025-08-03 16:48:38 [INFO]: [TokenAware] Token count updated: 701 tokens for 4 messages
- 2025-08-03 16:48:38 [DEBUG]: OpenRouter tool call initiated: {
- "id": "call_5d3e2a1702774d8b916cbea3",
- "index": 0,
- "type": "function",
- "function": {
- "name": "ask_cipher",
- "arguments": "{\"query\": \"Search for the previously saved quicksort algorithm implementation in JavaScript\"}"
- }
- }
- 2025-08-03 16:48:38 [INFO]: š§ Using tool: ask_cipher
- 2025-08-03 16:48:38 [DEBUG]: UnifiedToolManager: Executing tool 'ask_cipher'
- 2025-08-03 16:48:38 [DEBUG]: UnifiedToolManager: Routing 'ask_cipher' to MCP manager
- 2025-08-03 16:48:38 [ERROR]: UnifiedToolManager: Tool execution failed for 'ask_cipher'
- 2025-08-03 16:48:38 [ERROR]: Tool execution error for ask_cipher: No client found for tool: ask_cipher
- 2025-08-03 16:48:38 [DEBUG]: Adding message to context: {
- "role": "tool",
- "content": "{\"error\":\"No client found for tool: ask_cipher\"}",
- "toolCallId": "call_5d3e2a1702774d8b916cbea3",
- "name": "ask_cipher"
- }
- 2025-08-03 16:48:38 [DEBUG]: Total messages in context: 5
- 2025-08-03 16:48:38 [INFO]: [TokenAware] Token count updated: 713 tokens for 5 messages
- 2025-08-03 16:48:38 [DEBUG]: Tools in OpenRouter response: 1
- 2025-08-03 16:48:38 [DEBUG]: [SystemPrompt] Built complete system prompt (959 chars)
- 2025-08-03 16:48:38 [DEBUG]: Formatted 6 messages from history of 5 messages
- 2025-08-03 16:48:46 [DEBUG]: Adding message to context: {
- "role": "assistant",
- "content": "I apologize for the error. It seems I don't have access to the tool needed to search for the previously saved quicksort implementation directly.\n\nHowever, I do remember the key aspects of the JavaScript quicksort implementation you provided earlier:\n\n1. It was a complete quicksort implementation with:\n - A main `quicksort` function with recursion\n - A `partition` function using the Lomuto partition scheme\n - Time complexity of O(n log n) average case, O(n²) worst case\n - Space complexity of O(log n) due to recursion\n - In-place sorting functionality\n\n2. The implementation included:\n - Proper documentation with JSDoc comments\n - Example usage commented at the bottom\n - Standard partitioning logic with pivot selection\n\nWould you like me to recreate the implementation or explain any specific aspects of the quicksort algorithm? Alternatively, if you have any other questions about searching for previously saved information, please let me know."
- }
- 2025-08-03 16:48:46 [DEBUG]: Total messages in context: 6
- 2025-08-03 16:48:46 [INFO]: [TokenAware] Token count updated: 912 tokens for 6 messages
- 2025-08-03 16:48:46 [DEBUG]: Starting background memory operations
- 2025-08-03 16:48:46 [DEBUG]: ConversationSession.enforceMemoryExtraction called
- 2025-08-03 16:48:46 [DEBUG]: enforceMemoryExtraction: unifiedToolManager at entry
- 2025-08-03 16:48:46 [DEBUG]: ConversationSession: Enforcing memory extraction for interaction
- 2025-08-03 16:48:46 [DEBUG]: ConversationSession: Memory tools to execute
- 2025-08-03 16:48:46 [DEBUG]: ConversationSession: Extracted comprehensive interaction data
- 2025-08-03 16:48:46 [DEBUG]: UnifiedToolManager: Executing tool 'cipher_extract_and_operate_memory' (without loading)
- 2025-08-03 16:48:46 [DEBUG]: UnifiedToolManager: Routing 'cipher_extract_and_operate_memory' to internal tool manager (without loading)
- 2025-08-03 16:48:46 [DEBUG]: InternalToolManager: Executing tool 'cipher_extract_and_operate_memory'
- 2025-08-03 16:48:46 [DEBUG]: ExtractAndOperateMemory: Using knowledge collection
- 2025-08-03 16:48:46 [DEBUG]: ExtractAndOperateMemory: Processing fact 1/2
- 2025-08-03 16:48:46 [DEBUG]: [EMBEDDING] Starting Ollama embedding
- 2025-08-03 16:48:46 [DEBUG]: [EMBEDDING] Ollama embedding completed
- 2025-08-03 16:48:46 [DEBUG]: ExtractAndOperateMemory: Similarity search completed for fact 1
- 2025-08-03 16:48:46 [DEBUG]: OpenRouterService: Direct generate call (bypassing conversation context)
- 2025-08-03 16:48:50 [DEBUG]: OpenRouterService: Direct generate completed
- 2025-08-03 16:48:50 [DEBUG]: ExtractAndOperateMemory: LLM decision for fact 1
- 2025-08-03 16:48:50 [DEBUG]: ExtractAndOperateMemory: Processing fact 2/2
- 2025-08-03 16:48:50 [DEBUG]: [EMBEDDING] Starting Ollama embedding
- 2025-08-03 16:48:51 [DEBUG]: [EMBEDDING] Ollama embedding completed
- 2025-08-03 16:48:51 [DEBUG]: ExtractAndOperateMemory: Similarity search completed for fact 2
- 2025-08-03 16:48:51 [DEBUG]: OpenRouterService: Direct generate call (bypassing conversation context)
- 2025-08-03 16:48:54 [DEBUG]: OpenRouterService: Direct generate completed
- 2025-08-03 16:48:54 [DEBUG]: ExtractAndOperateMemory: LLM decision for fact 2
- 2025-08-03 16:48:54 [DEBUG]: ExtractAndOperateMemory: Starting memory persistence operations
- 2025-08-03 16:48:54 [DEBUG]: [EMBEDDING] Starting Ollama embedding
- 2025-08-03 16:48:54 [DEBUG]: [EMBEDDING] Ollama embedding completed
- 2025-08-03 16:48:54 [DEBUG]: ExtractAndOperateMemory: ADD operation completed
- 2025-08-03 16:48:54 [DEBUG]: [EMBEDDING] Starting Ollama embedding
- 2025-08-03 16:48:54 [DEBUG]: [EMBEDDING] Ollama embedding completed
- 2025-08-03 16:48:54 [DEBUG]: ExtractAndOperateMemory: ADD operation completed
- 2025-08-03 16:48:54 [DEBUG]: ExtractAndOperateMemory: Memory persistence completed
- 2025-08-03 16:48:54 [DEBUG]: InternalToolManager: Tool 'cipher_extract_and_operate_memory' executed successfully
- 2025-08-03 16:48:54 [DEBUG]: ConversationSession: Default memory tool executed successfully
- 2025-08-03 16:48:54 [DEBUG]: ConversationSession: Memory extraction completed
- 2025-08-03 16:48:54 [DEBUG]: UnifiedToolManager: Getting all tools
- 2025-08-03 16:48:54 [DEBUG]: UnifiedToolManager: Default MCP mode - only ask_cipher tool exposed
- 2025-08-03 16:48:54 [DEBUG]: ConversationSession: Enforcing reflection memory processing
- 2025-08-03 16:48:54 [DEBUG]: ConversationSession: Reflection memory processing skipped
- 2025-08-03 16:48:54 [DEBUG]: Background memory operations completed successfully
Advertisement
Add Comment
Please, Sign In to add comment