Serchio

20250803_1648_cipher_mcp_log

Aug 3rd, 2025
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.48 KB | None | 0 0
  1. 2025-08-03 16:48:18 [INFO]: Loading agent config from /home/serchio/.cipher/cipher.yml
  2. 2025-08-03 16:48:18 [DEBUG]: Loading cipher config from: /home/serchio/.cipher/cipher.yml
  3. 2025-08-03 16:48:18 [DEBUG]: MemAgent created
  4. 2025-08-03 16:48:18 [DEBUG]: Starting MemAgent...
  5. 2025-08-03 16:48:18 [DEBUG]: MemAgent: Using standard services
  6. 2025-08-03 16:48:18 [DEBUG]: Initializing event manager...
  7. 2025-08-03 16:48:18 [DEBUG]: ServiceEventBus initialized
  8. 2025-08-03 16:48:18 [DEBUG]: EventManager initialized
  9. 2025-08-03 16:48:18 [DEBUG]: Event emitted
  10. 2025-08-03 16:48:19 [DEBUG]: Event emitted
  11. 2025-08-03 16:48:19 [DEBUG]: Client manager initialized with 1 MCP server(s)
  12. 2025-08-03 16:48:19 [DEBUG]: Event emitted
  13. 2025-08-03 16:48:19 [DEBUG]: Initializing embedding manager...
  14. 2025-08-03 16:48:19 [DEBUG]: [EMBEDDING:MANAGER] Simple embedding manager initialized
  15. 2025-08-03 16:48:19 [DEBUG]: Found explicit embedding configuration in YAML, using it
  16. 2025-08-03 16:48:19 [DEBUG]: [EMBEDDING:MANAGER] Creating embedder from YAML configuration
  17. 2025-08-03 16:48:19 [DEBUG]: Creating embedder
  18. 2025-08-03 16:48:19 [DEBUG]: [EMBEDDING] Ollama embedder initialized
  19. 2025-08-03 16:48:19 [INFO]: [EMBEDDING:MANAGER] Embedder registered successfully from YAML
  20. 2025-08-03 16:48:19 [INFO]: Embedding manager initialized successfully
  21. 2025-08-03 16:48:19 [DEBUG]: Event emitted
  22. 2025-08-03 16:48:19 [DEBUG]: Initializing vector storage manager...
  23. 2025-08-03 16:48:19 [DEBUG]: Reflection memory enabled, using dual collection vector manager
  24. 2025-08-03 16:48:19 [DEBUG]: ServiceCache: Cache miss, creating dualCollectionVectorStore:3372079315
  25. 2025-08-03 16:48:19 [DEBUG]: MilvusConnectionPool: Creating new connection
  26. 2025-08-03 16:48:19 [DEBUG]: MilvusConnectionPool: Connection created and pooled
  27. 2025-08-03 16:48:19 [DEBUG]: MilvusConnectionPool: Reusing existing connection
  28. 2025-08-03 16:48:20 [DEBUG]: ServiceCache: Cached dualCollectionVectorStore:3372079315
  29. 2025-08-03 16:48:20 [DEBUG]: Dual collection vector storage manager initialized successfully
  30. 2025-08-03 16:48:20 [DEBUG]: Initializing knowledge graph manager...
  31. 2025-08-03 16:48:20 [DEBUG]: Knowledge graph manager initialized successfully
  32. 2025-08-03 16:48:20 [DEBUG]: Agent state manager initialized
  33. 2025-08-03 16:48:20 [DEBUG]: Initializing LLM service...
  34. 2025-08-03 16:48:20 [DEBUG]: ServiceCache: Cache miss, creating contextManager:26449362832
  35. 2025-08-03 16:48:20 [DEBUG]: Created context manager
  36. 2025-08-03 16:48:20 [DEBUG]: ContextManager initialized with formatter
  37. 2025-08-03 16:48:20 [DEBUG]: ServiceCache: Cached contextManager:26449362832
  38. 2025-08-03 16:48:20 [DEBUG]: Verified API key
  39. 2025-08-03 16:48:20 [INFO]: LLM service initialized successfully
  40. 2025-08-03 16:48:20 [INFO]: InternalToolRegistry: Initializing...
  41. 2025-08-03 16:48:20 [INFO]: InternalToolRegistry: Initialized successfully
  42. 2025-08-03 16:48:20 [DEBUG]: Workspace memory is disabled - excluding all workspace tools
  43. 2025-08-03 16:48:20 [DEBUG]: Knowledge graph enabled, loading knowledge graph tools
  44. 2025-08-03 16:48:20 [INFO]: Internal tools registration completed
  45. 2025-08-03 16:48:20 [DEBUG]: Unified tool manager initialized
  46. 2025-08-03 16:48:20 [DEBUG]: SessionManager: Starting initialization...
  47. 2025-08-03 16:48:20 [INFO]: SessionManager: Initializing persistence storage...
  48. 2025-08-03 16:48:20 [DEBUG]: SessionManager: Attempting to initialize PostgreSQL storage...
  49. 2025-08-03 16:48:20 [DEBUG]: SessionManager: Using PostgreSQL individual parameters
  50. 2025-08-03 16:48:20 [DEBUG]: TokenizerCache: Cache miss, creating new tokenizer
  51. 2025-08-03 16:48:20 [DEBUG]: Creating tokenizer
  52. 2025-08-03 16:48:20 [DEBUG]: TokenizerCache: Tokenizer cached
  53. 2025-08-03 16:48:20 [DEBUG]: ServiceCache: Cache miss, creating compressionStrategy:25840307394
  54. 2025-08-03 16:48:20 [DEBUG]: Creating compression strategy
  55. 2025-08-03 16:48:20 [DEBUG]: MiddleRemovalStrategy initialized
  56. 2025-08-03 16:48:20 [DEBUG]: OldestRemovalStrategy initialized
  57. 2025-08-03 16:48:20 [DEBUG]: HybridStrategy initialized
  58. 2025-08-03 16:48:20 [DEBUG]: ServiceCache: Cached compressionStrategy:25840307394
  59. 2025-08-03 16:48:20 [DEBUG]: [TokenAware] Token count reset (no messages or tokenizer)
  60. 2025-08-03 16:48:20 [DEBUG]: Token-aware compression configured
  61. 2025-08-03 16:48:20 [DEBUG]: Token-aware compression configured for LLM service
  62. 2025-08-03 16:48:20 [DEBUG]: OpenAI tokenizer initialized with tiktoken
  63. 2025-08-03 16:48:20 [INFO]: SessionManager: PostgreSQL persistence storage initialized successfully
  64. 2025-08-03 16:48:20 [INFO]: SessionManager: Storage initialized with database backend: postgres
  65. 2025-08-03 16:48:20 [INFO]: SessionManager: Found 1 session keys in storage with prefix 'cipher:sessions:'
  66. 2025-08-03 16:48:20 [DEBUG]: SessionManager: Session keys found: cipher:sessions:default
  67. 2025-08-03 16:48:20 [DEBUG]: Session default: Using PostgreSQL for history provider (lazy-loaded)
  68. 2025-08-03 16:48:20 [DEBUG]: Session default: Database history provider lazy-initialized with postgres backend.
  69. 2025-08-03 16:48:20 [DEBUG]: Created context manager
  70. 2025-08-03 16:48:20 [DEBUG]: ContextManager initialized with formatter
  71. 2025-08-03 16:48:20 [DEBUG]: Session default: Created session-specific context manager with history provider
  72. 2025-08-03 16:48:20 [INFO]: DatabaseHistoryProvider: Cleared conversation history for session default
  73. 2025-08-03 16:48:20 [INFO]: Session default: Restored 2 messages to context manager
  74. 2025-08-03 16:48:20 [DEBUG]: SessionManager: Loaded session default from persistent storage with 2 messages
  75. 2025-08-03 16:48:20 [DEBUG]: SessionManager: Successfully restored session default
  76. 2025-08-03 16:48:20 [DEBUG]: SessionManager: Session restoration completed
  77. 2025-08-03 16:48:20 [INFO]: SessionManager: Initialization complete. Loaded 1/1 sessions from storage. Current in-memory sessions: 1
  78. 2025-08-03 16:48:20 [DEBUG]: SessionManager initialized with max sessions: 100, TTL: 3600000ms
  79. 2025-08-03 16:48:20 [DEBUG]: Session manager with unified tools initialized
  80. 2025-08-03 16:48:20 [DEBUG]: Event emitted
  81. 2025-08-03 16:48:20 [DEBUG]: Event emitted
  82. 2025-08-03 16:48:20 [DEBUG]: MemAgent started successfully
  83. 2025-08-03 16:48:20 [DEBUG]: [MCP Handler] Initializing agent card resource
  84. 2025-08-03 16:48:20 [INFO]: [MCP Mode] Creating stdio transport for default MCP server
  85. 2025-08-03 16:48:20 [INFO]: [MCP Handler] Creating stdio transport
  86. 2025-08-03 16:48:20 [INFO]: [MCP Mode] Initializing default MCP server with agent capabilities
  87. 2025-08-03 16:48:20 [INFO]: [MCP Handler] Initializing MCP server with agent capabilities (mode: default)
  88. 2025-08-03 16:48:20 [DEBUG]: [MCP Handler] Registering agent tools (default mode - ask_cipher only)
  89. 2025-08-03 16:48:20 [INFO]: [MCP Handler] Registering 1 MCP tools: ask_cipher
  90. 2025-08-03 16:48:20 [DEBUG]: [MCP Handler] Registering agent resources
  91. 2025-08-03 16:48:20 [DEBUG]: [MCP Handler] Registering agent prompts
  92. 2025-08-03 16:48:20 [INFO]: [MCP Handler] MCP server initialized successfully (mode: default)
  93. 2025-08-03 16:48:20 [INFO]: [MCP Handler] Agent is now available as MCP server for external clients
  94. 2025-08-03 16:48:20 [INFO]: [MCP Mode] Cipher agent is now running as default MCP server
  95. 2025-08-03 16:48:33 [INFO]: [MCP Handler] Tool called: ask_cipher
  96. 2025-08-03 16:48:33 [INFO]: [MCP Handler] Processing ask_cipher request
  97. 2025-08-03 16:48:33 [DEBUG]: SessionEventBus initialized
  98. 2025-08-03 16:48:33 [DEBUG]: SessionEventBus created
  99. 2025-08-03 16:48:33 [DEBUG]: Event emitted
  100. 2025-08-03 16:48:33 [INFO]: Session default: Serialized with 2 messages
  101. 2025-08-03 16:48:33 [DEBUG]: SessionManager: Saved session default to persistent storage with 2 messages
  102. 2025-08-03 16:48:33 [DEBUG]: Updated activity for session: default
  103. 2025-08-03 16:48:33 [DEBUG]: SessionManager: Retrieved active session default. Total active sessions: 1
  104. 2025-08-03 16:48:33 [DEBUG]: MemAgent.run: using session default
  105. 2025-08-03 16:48:33 [DEBUG]: ConversationSession.run called
  106. 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
  107. 2025-08-03 16:48:33 [DEBUG]: Using configured evalLlm for evaluation tasks
  108. 2025-08-03 16:48:33 [DEBUG]: ConversationSession: Reasoning services initialized
  109. 2025-08-03 16:48:33 [DEBUG]: Session default: Conversation history restored (lazy-loaded)
  110. 2025-08-03 16:48:33 [DEBUG]: Verified API key
  111. 2025-08-03 16:48:33 [DEBUG]: Session default: LLM service lazy-initialized
  112. 2025-08-03 16:48:33 [DEBUG]: Adding user message: [
  113.   {
  114.     "type": "text",
  115.     "text": "Search for quicksort algorithm that was previously saved"
  116.   }
  117. ]
  118. 2025-08-03 16:48:33 [DEBUG]: TokenizerCache: Cache hit
  119. 2025-08-03 16:48:33 [DEBUG]: ServiceCache: Cache hit for compressionStrategy:25840307394
  120. 2025-08-03 16:48:33 [INFO]: Token counting: tiktoken count
  121. 2025-08-03 16:48:33 [INFO]: [TokenAware] Token count updated: 675 tokens for 2 messages
  122. 2025-08-03 16:48:33 [DEBUG]: Token-aware compression configured
  123. 2025-08-03 16:48:33 [DEBUG]: Token-aware compression configured for LLM service
  124. 2025-08-03 16:48:33 [DEBUG]: Adding message to context: {
  125.   "role": "user",
  126.   "content": [
  127.     {
  128.       "type": "text",
  129.       "text": "Search for quicksort algorithm that was previously saved"
  130.     }
  131.   ]
  132. }
  133. 2025-08-03 16:48:33 [DEBUG]: Total messages in context: 3
  134. 2025-08-03 16:48:33 [INFO]: [TokenAware] Token count updated: 684 tokens for 3 messages
  135. 2025-08-03 16:48:33 [INFO]: UnifiedToolManager: Getting tools for provider: openrouter
  136. 2025-08-03 16:48:33 [DEBUG]: UnifiedToolManager: Getting all tools
  137. 2025-08-03 16:48:33 [DEBUG]: UnifiedToolManager: Default MCP mode - only ask_cipher tool exposed
  138. 2025-08-03 16:48:33 [INFO]: UnifiedToolManager: Got 1 total tools
  139. 2025-08-03 16:48:33 [INFO]: UnifiedToolManager: Formatting tools for OpenAI
  140. 2025-08-03 16:48:33 [DEBUG]: Tools in OpenRouter response: 1
  141. 2025-08-03 16:48:33 [DEBUG]: [SystemPrompt] Built complete system prompt (959 chars)
  142. 2025-08-03 16:48:33 [DEBUG]: Formatted 4 messages from history of 3 messages
  143. 2025-08-03 16:48:37 [INFO]: šŸ’­ I'll search for the quicksort algorithm that was previously saved to my knowledge base.
  144. 2025-08-03 16:48:38 [DEBUG]: Adding message to context: {
  145.  "role": "assistant",
  146.  "content": "I'll search for the quicksort algorithm that was previously saved to my knowledge base.\n\n",
  147.  "toolCalls": [
  148.    {
  149.      "id": "call_5d3e2a1702774d8b916cbea3",
  150.      "index": 0,
  151.      "type": "function",
  152.      "function": {
  153.        "name": "ask_cipher",
  154.        "arguments": "{\"query\": \"Search for the previously saved quicksort algorithm implementation in JavaScript\"}"
  155.      }
  156.    }
  157.  ]
  158. }
  159. 2025-08-03 16:48:38 [DEBUG]: Total messages in context: 4
  160. 2025-08-03 16:48:38 [INFO]: [TokenAware] Token count updated: 701 tokens for 4 messages
  161. 2025-08-03 16:48:38 [DEBUG]: OpenRouter tool call initiated: {
  162.  "id": "call_5d3e2a1702774d8b916cbea3",
  163.  "index": 0,
  164.  "type": "function",
  165.  "function": {
  166.    "name": "ask_cipher",
  167.    "arguments": "{\"query\": \"Search for the previously saved quicksort algorithm implementation in JavaScript\"}"
  168.  }
  169. }
  170. 2025-08-03 16:48:38 [INFO]: šŸ”§ Using tool: ask_cipher
  171. 2025-08-03 16:48:38 [DEBUG]: UnifiedToolManager: Executing tool 'ask_cipher'
  172. 2025-08-03 16:48:38 [DEBUG]: UnifiedToolManager: Routing 'ask_cipher' to MCP manager
  173. 2025-08-03 16:48:38 [ERROR]: UnifiedToolManager: Tool execution failed for 'ask_cipher'
  174. 2025-08-03 16:48:38 [ERROR]: Tool execution error for ask_cipher: No client found for tool: ask_cipher
  175. 2025-08-03 16:48:38 [DEBUG]: Adding message to context: {
  176.  "role": "tool",
  177.  "content": "{\"error\":\"No client found for tool: ask_cipher\"}",
  178.  "toolCallId": "call_5d3e2a1702774d8b916cbea3",
  179.  "name": "ask_cipher"
  180. }
  181. 2025-08-03 16:48:38 [DEBUG]: Total messages in context: 5
  182. 2025-08-03 16:48:38 [INFO]: [TokenAware] Token count updated: 713 tokens for 5 messages
  183. 2025-08-03 16:48:38 [DEBUG]: Tools in OpenRouter response: 1
  184. 2025-08-03 16:48:38 [DEBUG]: [SystemPrompt] Built complete system prompt (959 chars)
  185. 2025-08-03 16:48:38 [DEBUG]: Formatted 6 messages from history of 5 messages
  186. 2025-08-03 16:48:46 [DEBUG]: Adding message to context: {
  187.  "role": "assistant",
  188.  "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."
  189. }
  190. 2025-08-03 16:48:46 [DEBUG]: Total messages in context: 6
  191. 2025-08-03 16:48:46 [INFO]: [TokenAware] Token count updated: 912 tokens for 6 messages
  192. 2025-08-03 16:48:46 [DEBUG]: Starting background memory operations
  193. 2025-08-03 16:48:46 [DEBUG]: ConversationSession.enforceMemoryExtraction called
  194. 2025-08-03 16:48:46 [DEBUG]: enforceMemoryExtraction: unifiedToolManager at entry
  195. 2025-08-03 16:48:46 [DEBUG]: ConversationSession: Enforcing memory extraction for interaction
  196. 2025-08-03 16:48:46 [DEBUG]: ConversationSession: Memory tools to execute
  197. 2025-08-03 16:48:46 [DEBUG]: ConversationSession: Extracted comprehensive interaction data
  198. 2025-08-03 16:48:46 [DEBUG]: UnifiedToolManager: Executing tool 'cipher_extract_and_operate_memory' (without loading)
  199. 2025-08-03 16:48:46 [DEBUG]: UnifiedToolManager: Routing 'cipher_extract_and_operate_memory' to internal tool manager (without loading)
  200. 2025-08-03 16:48:46 [DEBUG]: InternalToolManager: Executing tool 'cipher_extract_and_operate_memory'
  201. 2025-08-03 16:48:46 [DEBUG]: ExtractAndOperateMemory: Using knowledge collection
  202. 2025-08-03 16:48:46 [DEBUG]: ExtractAndOperateMemory: Processing fact 1/2
  203. 2025-08-03 16:48:46 [DEBUG]: [EMBEDDING] Starting Ollama embedding
  204. 2025-08-03 16:48:46 [DEBUG]: [EMBEDDING] Ollama embedding completed
  205. 2025-08-03 16:48:46 [DEBUG]: ExtractAndOperateMemory: Similarity search completed for fact 1
  206. 2025-08-03 16:48:46 [DEBUG]: OpenRouterService: Direct generate call (bypassing conversation context)
  207. 2025-08-03 16:48:50 [DEBUG]: OpenRouterService: Direct generate completed
  208. 2025-08-03 16:48:50 [DEBUG]: ExtractAndOperateMemory: LLM decision for fact 1
  209. 2025-08-03 16:48:50 [DEBUG]: ExtractAndOperateMemory: Processing fact 2/2
  210. 2025-08-03 16:48:50 [DEBUG]: [EMBEDDING] Starting Ollama embedding
  211. 2025-08-03 16:48:51 [DEBUG]: [EMBEDDING] Ollama embedding completed
  212. 2025-08-03 16:48:51 [DEBUG]: ExtractAndOperateMemory: Similarity search completed for fact 2
  213. 2025-08-03 16:48:51 [DEBUG]: OpenRouterService: Direct generate call (bypassing conversation context)
  214. 2025-08-03 16:48:54 [DEBUG]: OpenRouterService: Direct generate completed
  215. 2025-08-03 16:48:54 [DEBUG]: ExtractAndOperateMemory: LLM decision for fact 2
  216. 2025-08-03 16:48:54 [DEBUG]: ExtractAndOperateMemory: Starting memory persistence operations
  217. 2025-08-03 16:48:54 [DEBUG]: [EMBEDDING] Starting Ollama embedding
  218. 2025-08-03 16:48:54 [DEBUG]: [EMBEDDING] Ollama embedding completed
  219. 2025-08-03 16:48:54 [DEBUG]: ExtractAndOperateMemory: ADD operation completed
  220. 2025-08-03 16:48:54 [DEBUG]: [EMBEDDING] Starting Ollama embedding
  221. 2025-08-03 16:48:54 [DEBUG]: [EMBEDDING] Ollama embedding completed
  222. 2025-08-03 16:48:54 [DEBUG]: ExtractAndOperateMemory: ADD operation completed
  223. 2025-08-03 16:48:54 [DEBUG]: ExtractAndOperateMemory: Memory persistence completed
  224. 2025-08-03 16:48:54 [DEBUG]: InternalToolManager: Tool 'cipher_extract_and_operate_memory' executed successfully
  225. 2025-08-03 16:48:54 [DEBUG]: ConversationSession: Default memory tool executed successfully
  226. 2025-08-03 16:48:54 [DEBUG]: ConversationSession: Memory extraction completed
  227. 2025-08-03 16:48:54 [DEBUG]: UnifiedToolManager: Getting all tools
  228. 2025-08-03 16:48:54 [DEBUG]: UnifiedToolManager: Default MCP mode - only ask_cipher tool exposed
  229. 2025-08-03 16:48:54 [DEBUG]: ConversationSession: Enforcing reflection memory processing
  230. 2025-08-03 16:48:54 [DEBUG]: ConversationSession: Reflection memory processing skipped
  231. 2025-08-03 16:48:54 [DEBUG]: Background memory operations completed successfully
Advertisement
Add Comment
Please, Sign In to add comment