Serchio

20250803_1752_cipher_mcp_log

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