AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
{"type":"result","subtype":"error_max_turns","duration_ms":1645613,"duration_api_ms":9066013,"is_error":true,"num_turns":81,"stop_reason":"tool_use","session_id":"dbca366a-4fec-4a40-b1af-5b44b9b31552","total_cost_usd":46.618736000000006,"usage":{"input_tokens":134466,"cache_creation_input_tokens":0,"cache_read_input_tokens":9524800,"output_tokens":34459,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":"standard","cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"inference_geo":"","iterations":[],"speed":"standard"},"modelUsage":{"glm-5.3":{"inputTokens":1104246,"outputTokens":193911,"cacheReadInputTokens":41649600,"cacheCreationInputTokens":0,"webSearchRequests":0,"costUSD":31.193804999999998,"contextWindow":200000,"maxOutputTokens":32000},"glm-5.3-flash":{"inputTokens":742225,"outputTokens":150718,"cacheReadInputTokens":15891712,"cacheCreationInputTokens":0,"webSearchRequests":0,"costUSD":15.424930999999999,"contextWindow":200000,"maxOutputTokens":32000}},"permission_denials":[],"terminal_reason":"max_turns","fast_mode_state":"off","origin":{"kind":"task-notification"},"uuid":"72cb859b-8ccc-49e1-8c2d-086809cfcd50","errors":["Reached maximum number of turns (80)"]}