
Agent Memory Tracing: OpenTelemetry Spans for Write, Retrieve and Evict
A memory-backed agent gives a stale answer and the stack shows a clean turn. The prompt was assembled, the tool returned, the model spoke, and every span on the trace is green. Nothing reports whether the fact was ever written, whether the retrieval that should have supplied it actually matched, or whether the record was quietly evicted two turns earlier. Those three causes produce the same user-visible symptom, and the usual log line — a query string and a hit count — cannot separate them. ...

Ollama Tool Calls: Object vs String Arguments on Two API Surfaces
A coding agent works for an afternoon against Ollama’s native /api/chat. Then someone points the OpenAI SDK at http://localhost:11434/v1 to reuse an existing client, or a library switches endpoints underneath the agent. The first turn still works. The second turn is where the run dies, in one of two ways that look unrelated: the executor calls args["path"] and gets TypeError: string indices must be integers, not 'str', because the arguments arrived as a JSON string; or the client stores the native assistant message, sends it back to /v1/chat/completions, and gets HTTP 400 before a single token is generated. Both failures have the same cause: the two surfaces of the same server encode a tool call in incompatible ways. On Ollama 0.20.3, non-streaming, with qwen3:0.6b, POST /api/chat returned function.arguments as a JSON object. POST /v1/chat/completions, same model, same prompt, same tools array, returned the same call with function.arguments as a JSON string. Replaying either assistant message into the other endpoint was rejected with 400, each with its own parse error. ...

Agent Memory Multi-Hop Recall: One Retrieval Misses Half of a Two-Hop Answer
Your agent memory store answers single-fact questions well enough to look healthy. Ask which region a service runs in and the right row comes back with a good similarity score. Then someone asks which database holds that service’s data — a question the store can only answer by joining two rows — and the agent either returns half of it with no trace of doubt or says it has nothing. ...

A 0.95 Memory Dedupe Threshold Merged Production Into Staging
Your agent memory layer writes a fact the same way a semantic cache writes an answer: embed the incoming record, compare it with what is already stored, and skip the insert if the cosine similarity clears a threshold. The number that circulates for that threshold is 0.92–0.95. This site’s own backend guide recommends exactly that band for semantic caching, with a code default of 0.93, and the advice transfers into memory layers by copy-paste because the code shape is identical. ...

Qwen3 0.6B as an Agent Tool Router: 13 CPU Calls, 10-94 s Each
The smallest Qwen3 checkpoint is 0.6B parameters and fits on a CPU in under a gigabyte of memory. That makes it tempting as the cheap routing layer of an agent: hand it eight tool definitions, let it pick create_ticket, let a bigger model do the actual work. Two numbers decide whether that idea survives contact with a real agent loop - how often it picks the right tool, and how long one call takes - and neither is on the model card. ...
Your Agent Drops 380 KB of Tool Output. Which Line Survives?
A coding agent runs a test suite, a log tail or a recursive grep. The tool returns 400 KB. The harness caps it before the text reaches the model, and the cap is almost always a character or byte budget applied to a fixed part of the string — the head, or the two ends. The agent then answers confidently about a failure whose stack frame was at 62% of the output and never made it into the prompt. ...

Listwise Reranking on a 0.6B Local Model: 1 Top-1 Gain out of 8 Queries, and 4 Answers That Would Not Parse
A vector store returns ten candidates. The sentence that answers the question is in there, at position three, behind a near-duplicate that states the same fact with the wrong number. Nothing errors. The agent answers confidently from the wrong value. The standard fix in every guide is a cross-encoder reranker, which on a CPU-only box is a model you do not have. But a chat model is already loaded and resident. So the practical question is narrow enough to measure: if the top ten candidates go to a 0.6B local model with the instruction to return them best-first, does the correct answer reach position one, does the model reorder by relevance or by where the candidate sits in the prompt, and what does one query cost on a box that generates in the low teens of tokens per second? ...

Ollama dimensions for Agent Memory: What Cutting Vector Width Costs in Recall
Your agent memory table has become the biggest thing you own. The embedding model is small, the code is small, but a million stored vectors at 384 float32 dimensions is 1.5 GB of payload before any index overhead, and Ollama’s embed API exposes a dimensions option that looks like a free discount: ask for 128 instead of 384 and the payload drops to one third. The discount is real. The question is what it does to retrieval, and the documentation does not answer it. The embed API reference declares the parameter in a single line — “Number of dimensions to generate embeddings for” — and says nothing about how the shorter vector is produced. If your agent memory is full of near-duplicate facts (the same preference restated four ways, the same project detail rephrased across sessions), the shorter vector is exactly where those paraphrases start colliding, and the failure mode is silent: the wrong paraphrase wins the top-k, and only questions that need one specific variant come back wrong. ...

Agent Memory Fact Extraction on a 0.6B Local Model: What It Drops, What It Stores as Noise, and What Raw Turns Cost Instead (2026)
Week two of a local agent memory store is where the design questions actually arrive. The store was built the obvious way: every conversation turn goes through the embedding endpoint, one vector per turn, top-k comes back. Then two things happen at once, and neither raises an error. The first is that retrieved rows are chat fragments. In the authored 8-turn fixture behind this article, four of the eight stored turns were acknowledgements — “Noted. I will run black and isort with the black profile rather than reformatting by hand”, “Got it. Deploy window is Tuesday 02:00-04:00 UTC”, “Running the tests now.”, “Sounds good.” Those rows are short, they are dense in the vocabulary of the question being asked, and they rank. A retriever asked about the deploy window returns the sentence that says the window exists without saying what it is. ...

Elasticsearch as Agent Memory: three indices, hybrid RRF retrieval, and the 0.89 recall number Elastic published
You build agent memory on Elasticsearch by splitting it into three indices — episodic events, semantic facts, procedural playbooks — writing each memory once into a BM25 field and a semantic_text field, recalling with a hybrid query that fuses 80 keyword and 80 dense candidates through reciprocal rank fusion at rank_constant=30, reranking the merged pool with a cross-encoder, hiding contradicted documents behind a superseded_by filter, and isolating tenants with a query-level security rule. That is the shape of the reference implementation Elastic Search Labs published on 2026-06-16, described in Agent memory on Elasticsearch: hybrid retrieval and DLS. ...