Agentbits

DocumentationConcepts

Memory and decisions

What the team knows about you, learning from chat, the memory graph, how memory reaches the agents' prompts, the project memory folder, optional semantic memory, and how decisions are proposed and accepted.

Agentbits keeps a long-term memory so the lead and agents don’t start from zero on every run, and so you don’t have to explain yourself again in every project. Memories are short pieces of context: how you like to work, what a task produced, what the lead asked to fix, which decisions were accepted. Before an agent works, what it should know is added to its prompt.

Memory is stored in the local database on your computer, with full-text search (SQLite FTS5). Nothing is sent anywhere except inside the prompts of the provider an agent uses, and, if you turn on semantic memory, to the provider that indexes it.

Everything about memory is in Organization → Memory, or one click away with the brain button at the top right. A number on that button means agents learned something and wait for your yes.

Organization → Memory: the “Knows you” profile on the left, the memory graph on the right

Knows you

Knows you is what the team knows about you: how you like to work, what to avoid, the tools you use. For example “Short plan first, then wait for my approval” or “Write in Turkish, short and friendly”.

  • It is told to every agent, in every project, in a short “About the user” section of its prompt. You don’t repeat yourself per project.
  • Each line shows where it came from (learned from chat or added by you) and its topics.
  • Hover a line to edit or forget it. Type in Add something about you… to add one yourself.

There is one profile for now. It is never included when you share a team or an agent.

Learning from chat

When you tell an agent something lasting about yourself or about how the team should work, for example “From now on, deploy only after working hours”, the agent notices it while it answers you. No extra model call is made for this.

What happens next depends on Learning from chat (in Organization → Memory, and in Settings → Memory):

Setting What happens
Ask me first (default) Under the agent’s reply: I learned this, shall I keep it? with Keep and Don’t keep. It also appears in Needs you and in Organization → Memory, where you can edit the text before keeping it.
Decide yourself It is saved right away; the reply shows Learned: … with a link to it. You can still edit or forget it.
Off Agents don’t learn from chat.

Learned memories are organization-wide: they apply in every project. If the new memory updates one the agent already had, it replaces it (see below), and the question says so: Keep, replace the old one.

Note: Only your own chat messages count. Files, web pages, query results, task reports and reviews can never teach the team something about you, even if they contain text that looks like it.

The memory graph

Graph shows memories as dots and what they link to:

Dot Meaning
You Your preferences point here.
Memory A memory; its color shows its kind (preference, fact, decision, context, summary).
Topic A subject memories share, for example “Payments” or “Working style”.
Task, Decision, Agent The task a memory came from, the decision it records, the agent it belongs to.
Conversation The chat where something was learned.

Drag to move around, scroll to zoom, and use the buttons at the top to hide kinds of dots or Find in the graph…. Click a dot to see its text and all its links; for a memory you can Edit it (text and topics) or Forget it. A dashed red line means replaced by. The most important and newest 300 memories are drawn.

List shows every memory with a search box and kind filter. Add a memory for all agents or one agent, and for all projects or one project; edit or forget any of them.

Replaced memories

When a memory updates an older one, the older one is marked replaced. It stays visible as history but is no longer sent to agents, so an outdated rule can’t sneak back in. If you forget the newer memory, the older one counts again.

What gets written to memory

Besides what agents learn from chat, Agentbits writes these records automatically:

  • Task summaries: when an agent finishes a task, a summary of its report.
  • Review feedback: when the lead sends a task back, its note.
  • Your chat messages: messages of 20 characters or more that you send in the project.
  • Accepted decisions: with the highest importance, so they are always considered.

These go to the project’s memory. A project’s memory is used only in that project; organization-wide memory is used in every project. An agent never sees another project’s memory, so context from one client or codebase does not leak into another.

How memory enters the prompt

Each time an agent starts a task, or answers you in chat, Agentbits builds the memory part of its prompt:

  1. About the user: your profile, the most important lines first.
  2. Relevant memory: memories found with the task’s title and description (or your message), ranked by relevance (60%), importance (30%) and recency (10%). Accepted decisions and other very important records are included even when no words match.
  3. Linked memories: up to three memories that share a topic with what was found, even when they don’t share a word with the task.

Replaced memories are left out. All of this fits in a fixed budget of about 2,800 characters (roughly 700 tokens), so prompts don’t grow as memory grows. Memory notes are given to agents as context, not as instructions.

You can see what went in:

  • Under an agent’s chat reply, open What I remembered.
  • In a task, open What did this task know?.

Each line says why it was included: about you, match or linked. To see the whole prompt, open Full prompt sent for a run in Terminal → Agent terminals. See Terminals.

Note: By default, memory is found by matching words, plus the topic links above. A record that uses different words from the task may still be missed. Keep important rules short and use the words agents will see in tasks, or turn on semantic memory.

Project memory folder

Besides the memory in the database, each project can keep plain Markdown notes in its own folder: .agentbits/memory/ inside the project folder. This is the place for what a team must not forget about one project: how it is built and deployed, conventions, decisions, pitfalls. You can copy notes you already have (for example from another AI tool) straight into it, and every agent sees them right away.

It is on for every project; turn it off with Keep a project memory in the project settings. Agentbits doesn’t add the folder to .gitignore: whether your notes go into git, and so to your teammates, is up to you.

What agents see. MEMORY.md is a short guide: one line per file saying what it is about and when to read it. It goes into every prompt (up to about 6,000 characters), together with the name and first heading of every other note file it doesn’t mention. You don’t have to write a MEMORY.md: without it, all files are listed. The lead plans with these notes and names the files that matter in each task; agents read a file when the work is about it (project_memory_read, which pages through long files) or look up words across all files (project_memory_search).

What agents write. When an agent learns something worth keeping, or you say “remember this” in chat, it adds a short note with project_memory_write. Agents only append, under a dated heading with their name; your own text is never replaced or removed, and MEMORY.md only gets a new line when an agent starts a new file. Settings → Memory → Project memory notes decides what happens:

  • Ask me first (default): the note waits in Needs you and in Organization → Memory, showing the project, the file, that it will be appended, and the text. You can edit it before you say yes.
  • Decide yourself: the note is added right away.
  • Read only: agents read the folder but don’t write to it.

Reviews. The lead’s review has no tools, so the memory files a task names in its title, description or acceptance criteria are included in the review, and the work is checked against them.

Note: The notes are project knowledge, not your instructions. The current task and your latest words win, and nothing in these files can change an agent’s rules or widen its access. Only lowercase .md files directly in the folder count; agents add to files up to 256 KB and read files up to 2 MB, and a larger file is refused with its size instead of being cut. The folder lives in your project, so it isn’t part of Agentbits backups, and Clean up… in Data management doesn’t touch it.

Semantic memory

Semantic memory finds records by meaning too, so “login error” also finds “sign-in fails”. It is optional and off by default.

  1. Add an OpenAI API provider under Settings → Providers: OpenAI, Gemini, Ollama or LM Studio (see Providers). Anthropic and the CLI providers have no embeddings endpoint.
  2. In Settings → Memory → Semantic memory, pick that provider and an embedding model, for example text-embedding-3-small or nomic-embed-text.

Agentbits then indexes memories in the background and new records as they are written. A status line shows how many memories are indexed by meaning. When an agent recalls memory, a record’s relevance is the higher of its word match and its meaning match.

  • With a local server (Ollama, LM Studio), memory text stays on your computer. With a cloud provider, memory text is sent to it to be indexed, like any prompt to it, and it may cost a little.
  • If the provider doesn’t answer, recall falls back to words only, and the error is shown under the setting.
  • Changing the model indexes the memories again.

Decisions

Decisions are architecture-decision-style records (ADR) with a Context, a Decision and a Rationale. Each project has its own Decision Log in the Decisions section (Ctrl+7).

A decision has one of four statuses: Proposed, Accepted, Rejected or Superseded.

How decisions are made

  1. An agent or the lead proposes it. Agents are asked to report important decisions in their output, and the lead can propose them in chat. These arrive in the Decision Log as Proposed, a counter appears in the top bar, and a message in the chat points to them.
  2. You decide. Open the decision, edit it if needed, and click Accept, reject it, or later Supersede it with a newer decision. You can also delete it.
  3. Accepted decisions go into memory. An accepted decision is written to the project’s memory with the highest importance, so it reaches every agent working in that project from then on.

You can also write decisions yourself: click New, fill in the fields and choose Propose or Accept directly.

Use the filter (All, Proposed, Accepted, Rejected) to find decisions quickly.

Clearing memory

  • Settings → Data management cleans up a single project: its project memory, chat, run records, reports, decisions, tasks or files, in any combination. Tick Keep decision memory to keep accepted decisions while clearing the rest.
  • The same screen clears the Organization-wide memory, with a Keep decisions option. This also removes your profile and what agents learned and are waiting for your yes.
  • To remove a single memory, Forget it in Organization → Memory.
  • In the project settings, Clear memory and history → Manage data opens this screen with the project already selected.
  • Deleting a project deletes its project memory. Deleting an agent deletes its personal memory.

See Settings for backups and resets.

Tip: Put how you like to work in Knows you, rules that apply everywhere (“never touch the production database”) in organization memory, and project-specific facts in project memory or as an accepted decision.

Found something wrong or missing? Open an issue on GitHub