Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2025-08-03 17:52:04 [INFO]: Loading agent config from /home/serchio/.cipher/cipher.yml
- 2025-08-03 17:52:04 [DEBUG]: Loading cipher config from: /home/serchio/.cipher/cipher.yml
- 2025-08-03 17:52:04 [DEBUG]: MemAgent created
- 2025-08-03 17:52:04 [DEBUG]: Starting MemAgent...
- 2025-08-03 17:52:04 [DEBUG]: MemAgent: Using standard services
- 2025-08-03 17:52:04 [DEBUG]: Initializing event manager...
- 2025-08-03 17:52:04 [DEBUG]: ServiceEventBus initialized
- 2025-08-03 17:52:04 [DEBUG]: EventManager initialized
- 2025-08-03 17:52:04 [DEBUG]: Event emitted
- 2025-08-03 17:52:05 [DEBUG]: Event emitted
- 2025-08-03 17:52:05 [DEBUG]: Client manager initialized with 1 MCP server(s)
- 2025-08-03 17:52:05 [DEBUG]: Event emitted
- 2025-08-03 17:52:05 [DEBUG]: Initializing embedding manager...
- 2025-08-03 17:52:05 [DEBUG]: [EMBEDDING:MANAGER] Simple embedding manager initialized
- 2025-08-03 17:52:05 [DEBUG]: Found explicit embedding configuration in YAML, using it
- 2025-08-03 17:52:05 [DEBUG]: [EMBEDDING:MANAGER] Creating embedder from YAML configuration
- 2025-08-03 17:52:05 [DEBUG]: Creating embedder
- 2025-08-03 17:52:05 [DEBUG]: [EMBEDDING] Ollama embedder initialized
- 2025-08-03 17:52:05 [INFO]: [EMBEDDING:MANAGER] Embedder registered successfully from YAML
- 2025-08-03 17:52:05 [INFO]: Embedding manager initialized successfully
- 2025-08-03 17:52:05 [DEBUG]: Event emitted
- 2025-08-03 17:52:05 [DEBUG]: Initializing vector storage manager...
- 2025-08-03 17:52:05 [DEBUG]: Reflection memory enabled, using dual collection vector manager
- 2025-08-03 17:52:05 [DEBUG]: ServiceCache: Cache miss, creating dualCollectionVectorStore:3372079315
- 2025-08-03 17:52:05 [DEBUG]: MilvusConnectionPool: Creating new connection
- 2025-08-03 17:52:05 [DEBUG]: MilvusConnectionPool: Connection created and pooled
- 2025-08-03 17:52:05 [DEBUG]: MilvusConnectionPool: Reusing existing connection
- 2025-08-03 17:52:05 [DEBUG]: ServiceCache: Cached dualCollectionVectorStore:3372079315
- 2025-08-03 17:52:05 [DEBUG]: Dual collection vector storage manager initialized successfully
- 2025-08-03 17:52:05 [DEBUG]: Initializing knowledge graph manager...
- 2025-08-03 17:52:06 [DEBUG]: Knowledge graph manager initialized successfully
- 2025-08-03 17:52:06 [DEBUG]: Agent state manager initialized
- 2025-08-03 17:52:06 [DEBUG]: Initializing LLM service...
- 2025-08-03 17:52:06 [DEBUG]: ServiceCache: Cache miss, creating contextManager:26449362832
- 2025-08-03 17:52:06 [DEBUG]: Created context manager
- 2025-08-03 17:52:06 [DEBUG]: ContextManager initialized with formatter
- 2025-08-03 17:52:06 [DEBUG]: ServiceCache: Cached contextManager:26449362832
- 2025-08-03 17:52:06 [DEBUG]: Verified API key
- 2025-08-03 17:52:06 [INFO]: LLM service initialized successfully
- 2025-08-03 17:52:06 [INFO]: InternalToolRegistry: Initializing...
- 2025-08-03 17:52:06 [INFO]: InternalToolRegistry: Initialized successfully
- 2025-08-03 17:52:06 [DEBUG]: Workspace memory is disabled - excluding all workspace tools
- 2025-08-03 17:52:06 [DEBUG]: Knowledge graph enabled, loading knowledge graph tools
- 2025-08-03 17:52:06 [INFO]: Internal tools registration completed
- 2025-08-03 17:52:06 [DEBUG]: Unified tool manager initialized
- 2025-08-03 17:52:06 [DEBUG]: SessionManager: Starting initialization...
- 2025-08-03 17:52:06 [INFO]: SessionManager: Initializing persistence storage...
- 2025-08-03 17:52:06 [DEBUG]: SessionManager: Attempting to initialize PostgreSQL storage...
- 2025-08-03 17:52:06 [DEBUG]: SessionManager: Using PostgreSQL individual parameters
- 2025-08-03 17:52:06 [DEBUG]: TokenizerCache: Cache miss, creating new tokenizer
- 2025-08-03 17:52:06 [DEBUG]: Creating tokenizer
- 2025-08-03 17:52:06 [DEBUG]: TokenizerCache: Tokenizer cached
- 2025-08-03 17:52:06 [DEBUG]: ServiceCache: Cache miss, creating compressionStrategy:25840307394
- 2025-08-03 17:52:06 [DEBUG]: Creating compression strategy
- 2025-08-03 17:52:06 [DEBUG]: MiddleRemovalStrategy initialized
- 2025-08-03 17:52:06 [DEBUG]: OldestRemovalStrategy initialized
- 2025-08-03 17:52:06 [DEBUG]: HybridStrategy initialized
- 2025-08-03 17:52:06 [DEBUG]: ServiceCache: Cached compressionStrategy:25840307394
- 2025-08-03 17:52:06 [DEBUG]: [TokenAware] Token count reset (no messages or tokenizer)
- 2025-08-03 17:52:06 [DEBUG]: Token-aware compression configured
- 2025-08-03 17:52:06 [DEBUG]: Token-aware compression configured for LLM service
- 2025-08-03 17:52:06 [DEBUG]: OpenAI tokenizer initialized with tiktoken
- 2025-08-03 17:52:06 [INFO]: SessionManager: PostgreSQL persistence storage initialized successfully
- 2025-08-03 17:52:06 [INFO]: SessionManager: Storage initialized with database backend: postgres
- 2025-08-03 17:52:06 [INFO]: SessionManager: Found 1 session keys in storage with prefix 'cipher:sessions:'
- 2025-08-03 17:52:06 [DEBUG]: SessionManager: Session keys found: cipher:sessions:default
- 2025-08-03 17:52:06 [DEBUG]: Session default: Using PostgreSQL for history provider (lazy-loaded)
- 2025-08-03 17:52:06 [DEBUG]: Session default: Database history provider lazy-initialized with postgres backend.
- 2025-08-03 17:52:06 [DEBUG]: Created context manager
- 2025-08-03 17:52:06 [DEBUG]: ContextManager initialized with formatter
- 2025-08-03 17:52:06 [DEBUG]: Session default: Created session-specific context manager with history provider
- 2025-08-03 17:52:06 [INFO]: DatabaseHistoryProvider: Cleared conversation history for session default
- 2025-08-03 17:52:08 [INFO]: Session default: Restored 20 messages to context manager
- 2025-08-03 17:52:08 [DEBUG]: SessionManager: Loaded session default from persistent storage with 20 messages
- 2025-08-03 17:52:08 [DEBUG]: SessionManager: Successfully restored session default
- 2025-08-03 17:52:08 [DEBUG]: SessionManager: Session restoration completed
- 2025-08-03 17:52:08 [INFO]: SessionManager: Initialization complete. Loaded 1/1 sessions from storage. Current in-memory sessions: 1
- 2025-08-03 17:52:08 [DEBUG]: SessionManager initialized with max sessions: 100, TTL: 3600000ms
- 2025-08-03 17:52:08 [DEBUG]: Session manager with unified tools initialized
- 2025-08-03 17:52:08 [DEBUG]: Event emitted
- 2025-08-03 17:52:08 [DEBUG]: Event emitted
- 2025-08-03 17:52:08 [DEBUG]: MemAgent started successfully
- 2025-08-03 17:52:08 [DEBUG]: [MCP Handler] Initializing agent card resource
- 2025-08-03 17:52:08 [INFO]: [MCP Mode] Creating stdio transport for default MCP server
- 2025-08-03 17:52:08 [INFO]: [MCP Handler] Creating stdio transport
- 2025-08-03 17:52:08 [INFO]: [MCP Mode] Initializing default MCP server with agent capabilities
- 2025-08-03 17:52:08 [INFO]: [MCP Handler] Initializing MCP server with agent capabilities (mode: default)
- 2025-08-03 17:52:08 [DEBUG]: [MCP Handler] Registering agent tools (default mode - ask_cipher only)
- 2025-08-03 17:52:08 [INFO]: [MCP Handler] Registering 1 MCP tools: ask_cipher
- 2025-08-03 17:52:08 [DEBUG]: [MCP Handler] Registering agent resources
- 2025-08-03 17:52:08 [DEBUG]: [MCP Handler] Registering agent prompts
- 2025-08-03 17:52:08 [INFO]: [MCP Handler] MCP server initialized successfully (mode: default)
- 2025-08-03 17:52:08 [INFO]: [MCP Handler] Agent is now available as MCP server for external clients
- 2025-08-03 17:52:08 [INFO]: [MCP Mode] Cipher agent is now running as default MCP server
- 2025-08-03 17:52:37 [INFO]: [MCP Handler] Tool called: ask_cipher
- 2025-08-03 17:52:37 [INFO]: [MCP Handler] Processing ask_cipher request
- 2025-08-03 17:52:37 [DEBUG]: SessionEventBus initialized
- 2025-08-03 17:52:37 [DEBUG]: SessionEventBus created
- 2025-08-03 17:52:37 [DEBUG]: Event emitted
- 2025-08-03 17:52:37 [INFO]: Session default: Serialized with 20 messages
- 2025-08-03 17:52:37 [DEBUG]: SessionManager: Saved session default to persistent storage with 20 messages
- 2025-08-03 17:52:37 [DEBUG]: Updated activity for session: default
- 2025-08-03 17:52:37 [DEBUG]: SessionManager: Retrieved active session default. Total active sessions: 1
- 2025-08-03 17:52:37 [DEBUG]: MemAgent.run: using session default
- 2025-08-03 17:52:37 [DEBUG]: ConversationSession.run called
- 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
- 2025-08-03 17:52:37 [DEBUG]: Using configured evalLlm for evaluation tasks
- 2025-08-03 17:52:37 [DEBUG]: ConversationSession: Reasoning services initialized
- 2025-08-03 17:52:37 [DEBUG]: Session default: Conversation history restored (lazy-loaded)
- 2025-08-03 17:52:37 [DEBUG]: Verified API key
- 2025-08-03 17:52:37 [DEBUG]: Session default: LLM service lazy-initialized
- 2025-08-03 17:52:37 [DEBUG]: Adding user message: [
- {
- "type": "text",
- "text": "Search for any information about the quicksort algorithm, including implementations, explanations, or related sorting algorithms"
- }
- ]
- 2025-08-03 17:52:37 [DEBUG]: TokenizerCache: Cache hit
- 2025-08-03 17:52:37 [DEBUG]: ServiceCache: Cache hit for compressionStrategy:25840307394
- 2025-08-03 17:52:37 [INFO]: Token counting: tiktoken count
- 2025-08-03 17:52:37 [INFO]: [TokenAware] Token count updated: 1596 tokens for 20 messages
- 2025-08-03 17:52:37 [DEBUG]: Token-aware compression configured
- 2025-08-03 17:52:37 [DEBUG]: Token-aware compression configured for LLM service
- 2025-08-03 17:52:37 [DEBUG]: Adding message to context: {
- "role": "user",
- "content": [
- {
- "type": "text",
- "text": "Search for any information about the quicksort algorithm, including implementations, explanations, or related sorting algorithms"
- }
- ]
- }
- 2025-08-03 17:52:37 [DEBUG]: Total messages in context: 21
- 2025-08-03 17:52:37 [INFO]: [TokenAware] Token count updated: 1615 tokens for 21 messages
- 2025-08-03 17:52:37 [INFO]: UnifiedToolManager: Getting tools for provider: openrouter
- 2025-08-03 17:52:37 [DEBUG]: UnifiedToolManager: Getting all tools
- 2025-08-03 17:52:37 [DEBUG]: UnifiedToolManager: Default MCP mode - only ask_cipher tool exposed
- 2025-08-03 17:52:37 [INFO]: UnifiedToolManager: Got 1 total tools
- 2025-08-03 17:52:37 [INFO]: UnifiedToolManager: Formatting tools for OpenAI
- 2025-08-03 17:52:37 [DEBUG]: Tools in OpenRouter response: 1
- 2025-08-03 17:52:37 [DEBUG]: [SystemPrompt] Built complete system prompt (959 chars)
- 2025-08-03 17:52:37 [DEBUG]: Formatted 22 messages from history of 21 messages
- 2025-08-03 17:52:42 [DEBUG]: Adding message to context: {
- "role": "assistant",
- "content": "I'll search for any information about the quicksort algorithm, including implementations, explanations, or related sorting algorithms in the persistent memory.\n\n"
- }
- 2025-08-03 17:52:42 [DEBUG]: Total messages in context: 22
- 2025-08-03 17:52:42 [INFO]: [TokenAware] Token count updated: 1641 tokens for 22 messages
- 2025-08-03 17:52:42 [DEBUG]: Starting background memory operations
- 2025-08-03 17:52:42 [DEBUG]: ConversationSession.enforceMemoryExtraction called
- 2025-08-03 17:52:42 [DEBUG]: enforceMemoryExtraction: unifiedToolManager at entry
- 2025-08-03 17:52:42 [DEBUG]: ConversationSession: Enforcing memory extraction for interaction
- 2025-08-03 17:52:42 [DEBUG]: ConversationSession: Memory tools to execute
- 2025-08-03 17:52:42 [DEBUG]: ConversationSession: Extracted comprehensive interaction data
- 2025-08-03 17:52:42 [DEBUG]: UnifiedToolManager: Executing tool 'cipher_extract_and_operate_memory' (without loading)
- 2025-08-03 17:52:42 [DEBUG]: UnifiedToolManager: Routing 'cipher_extract_and_operate_memory' to internal tool manager (without loading)
- 2025-08-03 17:52:42 [DEBUG]: InternalToolManager: Executing tool 'cipher_extract_and_operate_memory'
- 2025-08-03 17:52:42 [DEBUG]: ExtractAndOperateMemory: Skipping non-significant fact
- 2025-08-03 17:52:42 [DEBUG]: ExtractAndOperateMemory: Using knowledge collection
- 2025-08-03 17:52:42 [DEBUG]: ExtractAndOperateMemory: Processing fact 1/3
- 2025-08-03 17:52:42 [DEBUG]: [EMBEDDING] Starting Ollama embedding
- 2025-08-03 17:52:42 [DEBUG]: [EMBEDDING] Ollama embedding completed
- 2025-08-03 17:52:42 [DEBUG]: ExtractAndOperateMemory: Similarity search completed for fact 1
- 2025-08-03 17:52:42 [DEBUG]: OpenRouterService: Direct generate call (bypassing conversation context)
- 2025-08-03 17:52:57 [DEBUG]: OpenRouterService: Direct generate completed
- 2025-08-03 17:52:57 [DEBUG]: ExtractAndOperateMemory: LLM decision for fact 1
- 2025-08-03 17:52:57 [DEBUG]: ExtractAndOperateMemory: Processing fact 2/3
- 2025-08-03 17:52:57 [DEBUG]: [EMBEDDING] Starting Ollama embedding
- 2025-08-03 17:52:57 [DEBUG]: [EMBEDDING] Ollama embedding completed
- 2025-08-03 17:52:57 [DEBUG]: ExtractAndOperateMemory: Similarity search completed for fact 2
- 2025-08-03 17:52:57 [DEBUG]: OpenRouterService: Direct generate call (bypassing conversation context)
- 2025-08-03 17:53:02 [DEBUG]: OpenRouterService: Direct generate completed
- 2025-08-03 17:53:02 [DEBUG]: ExtractAndOperateMemory: LLM decision for fact 2
- 2025-08-03 17:53:02 [DEBUG]: ExtractAndOperateMemory: Processing fact 3/3
- 2025-08-03 17:53:02 [DEBUG]: [EMBEDDING] Starting Ollama embedding
- 2025-08-03 17:53:02 [DEBUG]: [EMBEDDING] Ollama embedding completed
- 2025-08-03 17:53:02 [DEBUG]: ExtractAndOperateMemory: Similarity search completed for fact 3
- 2025-08-03 17:53:02 [DEBUG]: OpenRouterService: Direct generate call (bypassing conversation context)
- 2025-08-03 17:53:09 [DEBUG]: OpenRouterService: Direct generate completed
- 2025-08-03 17:53:09 [DEBUG]: ExtractAndOperateMemory: LLM decision for fact 3
- 2025-08-03 17:53:09 [DEBUG]: ExtractAndOperateMemory: Starting memory persistence operations
- 2025-08-03 17:53:09 [DEBUG]: [EMBEDDING] Starting Ollama embedding
- 2025-08-03 17:53:09 [DEBUG]: [EMBEDDING] Ollama embedding completed
- 2025-08-03 17:53:09 [DEBUG]: ExtractAndOperateMemory: ADD operation completed
- 2025-08-03 17:53:09 [DEBUG]: [EMBEDDING] Starting Ollama embedding
- 2025-08-03 17:53:09 [DEBUG]: [EMBEDDING] Ollama embedding completed
- 2025-08-03 17:53:09 [DEBUG]: ExtractAndOperateMemory: UPDATE operation completed
- 2025-08-03 17:53:09 [DEBUG]: ExtractAndOperateMemory: Memory persistence completed
- 2025-08-03 17:53:09 [DEBUG]: InternalToolManager: Tool 'cipher_extract_and_operate_memory' executed successfully
- 2025-08-03 17:53:09 [DEBUG]: ConversationSession: Default memory tool executed successfully
- 2025-08-03 17:53:09 [DEBUG]: ConversationSession: Memory extraction completed
- 2025-08-03 17:53:09 [DEBUG]: UnifiedToolManager: Getting all tools
- 2025-08-03 17:53:09 [DEBUG]: UnifiedToolManager: Default MCP mode - only ask_cipher tool exposed
- 2025-08-03 17:53:09 [DEBUG]: ConversationSession: Enforcing reflection memory processing
- 2025-08-03 17:53:09 [DEBUG]: ConversationSession: Reflection memory processing skipped
- 2025-08-03 17:53:09 [DEBUG]: Background memory operations completed successfully
Advertisement
Add Comment
Please, Sign In to add comment