연결됨 다시 연결 중 다시 연결 초 연결 실패 연결 일시 중지 복구 실패
LLM Wiki gives agents a working memory · Cover image

LLM Wiki gives agents a working memory

Public posts

How Slogs LLM Wiki gives an agent a working memory it can search, reason with, and update.

LLM Wiki Agent memory flow

The biggest misconception when first creating LLM Wiki is treating it as an “AI notebook”. A notebook is something that people leave behind for later reading. The Agent’s task memory is different. It involves first querying before processing the current request, making decisions based on the query results, and after the task is completed, organizing the knowledge for reuse in the next session. This is part of the execution process.

Slogs LLM Wiki was designed from this perspective. More important than the function of storing a single article is to fixate the policies that determine when the Agent should search, what tools to use, and which information should not be stored.

Questions that require memory and questions that don’t

When all requests are sent to the memory server, it slows down and noise accumulates. Conversely, if little to no memory is accessed, each session behaves like a new encounter.

So, let’s set a simple criterion.

  • Check current time, short translation, and requests that have no context, such as one-time commands, are processed immediately.
  • If previous decisions, user preferences, project criteria, restart points for work, and iterative workflows can affect it, first query LLM Wiki.
  • If the result is ambiguous, first examine the candidates for memory before local files or code, and then verify with the actual file.

This order is important. In the code repository, the “current implementation” remains, but often the reasons for that choice or the ways that users dislike it are missing. For example, whether someone prefers a “fallback implementation” cannot be determined just by looking at the code. Such criteria must be identified by the Agent before working on the task.

Tools should be divided into roles based on their functions.

MCP In the official documentation, tools are described as external features that the model can discover and invoke. Slogs and LLM Wiki follow this structure as well. However, not all queries are resolved with a single search.

  • llm_wiki_search: Tool to select candidates briefly using title, summary, tags, and categoryPath
  • llm_wiki_recall: A tool to retrieve compact context that can be immediately reflected in responses or implementations
  • llm_wiki_read: A tool for reading the entire content and source of selected items
  • llm_wiki_capture, llm_wiki_find_related: A tool to find relevant memories and evaluate candidates for merging before saving
  • llm_wiki_merge, llm_wiki_update, llm_wiki_remember: Tools for updating existing memories or storing new memories

This separation is not just aimed at reducing token costs. It also helps the agent distinguish between “a sentence obtained through a rough search” and “what really needs to be remembered.”

Good memories are reusable judgments.

Slogs Information that can be stored in LLM Wiki is not just simple execution logs. One-off progress events like “Just deployed” or “Executed a command” are mostly of low storage value.

Conversely, the following information is valuable in long-term memory.

  • Terms and criteria explicitly corrected by the user
  • Repeating operational procedures in the project
  • It's difficult to understand the assumptions from just the code alone.
  • Causes of disability and verified solutions
  • A starting point to continue immediately in the next session
  • A command flow that can later be replaced by a runbook or automation

The key is whether “a later Agent can use this information to make a better decision.” If not, it’s better not to store it.

Merging is more important than saving

To make the memory system last longer, avoid storing new items indefinitely. When multiple decisions on the same topic are scattered, the search results increase, but real judgment becomes difficult.

Slogs LLM Wiki should first find relevant items before saving. If such items exist, they are read and merged or updated into existing memory. Only when no relevant items are found is a new item created.

At this point, the raw origin is also important. While a readable integrated memory is needed, it should still retain which decision was made initially for that request. This allows us to check the search or merging quality later on.

Operation checklist

When creating an Agent memory server, you should establish operational rules first, rather than just focusing on features.

  • Separate the query and storage tools.
  • Forces the search of related memories before saving.
  • Sensitive information, API keys, tokens, and one-time logs are not stored.
  • Use categoryPath almost as a required parameter.
  • Check the quality diagnostic value of the search results.
  • If you couldn’t use memory, you won’t say you did.

With these rules, LLM Wiki functions as the Agent’s work memory rather than a “highly stored note file”.

0 Comments

Comments: 0

Sign in to leave a comment.

No comments yet. Write the first one.

The server connection was interrupted. Reconnect ×