Open source contribution · Rust · MCP · AI Infrastructure
akitaonrails/ ai-memory
Long-term memory solution for coding agents (Claude, Codex, OpenCode, Agy), providing cross-session persistence, structured handoffs, and semantic search.
- 119 merged PRs
- 1 PR under review
- 416 commits to the project
- +20.0k lines added
- 16.4k GitHub stars
The project
ai-memory is long-term memory for AI coding agents. More than twenty tools, such as Claude Code, Codex, Cursor, Gemini CLI and OpenCode, feed one shared memory: quit a session mid-task, open another agent in the same folder and it receives a handoff saying where the work stopped, what already failed and what is still open.
It records the work automatically, strips sensitive data before storing anything and organizes it all in a wiki of plain text files that a whole team can share on its own server. That is why the contributions below focus on what that trust depends on: privacy, continuity across agents, operations without data loss and a correct knowledge base.
Highlights
The PRs with the largest effect for people who rely on the project every day.
-
#923merged Sep 27, 2026
Backup restore that never wipes the current data
Removes a path to total data loss during recovery, the riskiest moment of operations. Nothing destructive happens before whatever takes its place has been verified.
-
#1128merged Oct 7, 2026
Passwords and keys filtered before any text is trimmed
Closes a path through which fragments of passwords and access keys could end up stored in the project's memory despite the filter. It is the same kind of flaw fixed earlier in record titles, now closed for the content as well.
-
#1194merged Oct 9, 2026
A purged session stays deleted, even with late events
Purging a session is now final: what someone asked to delete does not come back with the next event. And capture clients no longer get stuck resending those events.
How each PR was made
-
One problem per PR
Each PR fixes a single thing with the smallest possible change. That keeps reviews simple, lowers the risk of side effects and lets one change be reverted without taking others with it.
-
The problem becomes a test
Fixes come with automated tests that cover the case that used to fail, so the problem cannot come back unnoticed.
-
The project's own bar
Formatting, static analysis and the full test suite run in the project's continuous integration, and a change only lands after the maintainer's review.
-
Written for the reviewer
Each PR description explains the problem, the change and how it was tested, so the maintainer can decide with confidence.
Where the work went
Each PR solves a single problem. Grouped by what it changes for the people using the tool:
-
21 PRs
Security and privacy
Secrets and sensitive content kept out of memory, users and projects kept apart, and deleted data that stays deleted.
-
18 PRs
Continuity across agents
Handoffs and context carry over from one session to the next and from one agent to another without getting lost, including in less common tools.
-
37 PRs
Reliability and operations
Nothing is lost in a backup restore, a shutdown, a server overload or a project move, and installation works the first time.
-
35 PRs
Knowledge base quality
Correct links, pages and consolidation, so the project wiki stays navigable and trustworthy.
Every PR, in business terms
Click a PR to see the problem, what was done and the value delivered. The link at the end of each one leads to the full technical discussion on GitHub.
Security and privacy 21 PRs
-
#1933merged Nov 2, 2026 Thin command line client refuses HTTP redirects on administrative tasks Administrative tasks followed network redirects and corrupted backups; the PR proposes rejecting HTTP redirects in the thin client.
- The problem
- The thin command line interface executes administrative operations against the memory server, including health checks, mutation requests, and backup downloads. In corporate environments where single sign-on proxies or captive portals intercept web traffic, the client followed redirects across all subcommands. As a result, backup tasks wrote sign-in portal markup over existing archives on disk, while JSON utilities attempted to parse authentication pages instead of signaling network errors.
- What was done
- The PR proposes channeling thin client operations through a shared HTTP client configured to refuse all redirections. Any redirected response immediately halts the command with an explicit error, leaving existing backup archives untouched and guarding request bodies against replay to third-party endpoints. Automated integration tests verify that status probes and archive downloads fail safely without contacting redirection targets.
- Value delivered
- Preserves backup file integrity and surfaces corporate proxy boundaries immediately instead of masking network issues.
-
#1931merged Nov 2, 2026 PowerShell hook bundle refuses HTTP redirects on corporate portals Network redirects deleted queued events and injected login HTML; the PR proposes rejecting HTTP redirects in the PowerShell hook bundle.
- The problem
- The PowerShell helper captures session lifecycle events and retrieves handoff summaries across Windows development environments. On corporate networks behind captive portals or single sign-on proxies, outbound requests followed HTTP redirects automatically. Redirects leading to corporate sign-in screens were treated as completed deliveries, deleting local spool files before data reached the server and injecting login page markup into assistant prompts.
- What was done
- The PR proposes disabling HTTP redirections across PowerShell helper requests and treating any non-success status code as an undelivered transmission. Queued event payloads remain stored on disk until the primary endpoint responds normally, preventing authorization headers from leaking to redirection targets. Automated socket tests verify that redirect responses preserve spooled files without contacting redirected destinations.
- Value delivered
- Protects authorization headers and prevents event loss across corporate networks guarded by sign-in portals and web proxies.
-
#1819merged Oct 29, 2026 Hook client blocks HTTP redirects across network portals Network redirects in corporate environments deleted local events and injected login pages into context; the HTTP client now rejects redirects and preserves queued messages.
- The problem
- Environments behind captive portals or corporate proxies often reply with HTTP redirects pointing to login screens. By following those responses, the hook client treated transmissions as completed and purged queued events from disk, or loaded raw login HTML into the agent handoff context. In addition, temporary redirects could replay payload data to unintended target hosts.
- What was done
- The native hook HTTP client builder now disables automatic redirect following. Redirect responses are treated as delivery failures, keeping spool files on disk for future retries and discarding untrusted external content. Unit tests verify that the client rejects both temporary and permanent redirects without connecting to the redirect destination.
- Value delivered
- Shields agent context from untrusted foreign markup and prevents session history loss across networks with intermediate login gateways.
-
#1798merged Oct 29, 2026 User grant and revoke commands block blank parameters upfront Commands that assign and revoke user permissions accepted blank parameters to the server; the PR proposes validating user, scope, and privilege level at admission.
- The problem
- In ai-memory, user management commands assign access privileges to projects and revoke active permissions. Unlike subcommands that infer scope from the working directory, these operations require explicit flags for user, workspace, project, and access level. When triggered with empty environment variables, requests with null values were sent directly to the administrative authorization endpoints.
- What was done
- The PR proposes validating and rejecting blank values upfront across user, workspace, project, and privilege level flags before dispatching grant and revoke requests. Unit tests against unreachable endpoints confirm that missing or whitespace flags fail immediately with the expected diagnostic message while leaving valid requests intact.
- Value delivered
- Ensures user authorization and privilege mutations are only dispatched when all required identifiers are explicitly specified.
-
#1796merged Oct 29, 2026 Project access controls refuse blank parameters upfront Project visibility and permission commands accepted empty identifiers before contacting the server; the PR proposes refusing blank flags right at admission.
- The problem
- In ai-memory, project management commands allow toggling access modes between open and restricted and auditing configured access grants. Because these commands require explicit names rather than inferring scope from the directory, empty variables or blank strings were forwarded directly as empty parameters to the administrative server API.
- What was done
- The PR proposes rejecting empty or whitespace-only arguments upfront before issuing any HTTP request, covering workspace, project, and access mode flags. Unit tests verify early failure with clear diagnostic messages while preserving valid names unchanged.
- Value delivered
- Prevents malformed calls to security APIs and safeguards project authorization configurations against uninitialized script variables.
-
#1795merged Oct 29, 2026 Admission webhooks confine HTTP redirects to the configured origin Webhook redirect responses could replay sensitive wiki page payloads to foreign servers; the PR proposes restricting redirects strictly to the configured origin.
- The problem
- ai-memory supports admission webhooks that inspect and enrich wiki documents prior to final persistence. Under the default HTTP client behavior, redirect responses replayed the full page contents, frontmatter and project metadata to any foreign destination, including secure protocol downgrades. In addition to leaking confidential data to unvetted endpoints, responses from those untrusted destinations were permitted to mutate the document saved to disk.
- What was done
- The PR proposes enforcing a custom redirect policy on the admission HTTP client requiring exact matches on scheme, host and port from the previous request. Any cross-origin redirect fails the request immediately without forwarding payloads or applying foreign response mutations, while same-origin path redirects remain supported up to ten hops. Integration tests verify cross-origin refusal across failure policies and confirm internal same-origin hops continue to work.
- Value delivered
- Prevents leaking private wiki documentation and protects data integrity against tampering by unapproved third-party servers.
-
#1772merged Oct 27, 2026 Session finalization refuses empty scope options before taking action The session finalization command accepted empty project or workspace values, affecting the local project; it now rejects blank parameters before querying the server.
- The problem
- The ai-memory session finalization command terminates open AI agent sessions when given a project scope. When scope flags were passed with empty values by scripts or uninitialized environment variables, the command treated them as omitted and fell back to the current working directory. That caused the command to silently finalize active sessions in the local project without notice to the user.
- What was done
- The command now validates and refuses empty or whitespace-only values in workspace and project flags before resolving scope or querying open sessions from the server. Unit tests were added verifying whitespace values in both options and asserting upfront failure.
- Value delivered
- Prevents accidental termination of active local project sessions during cleanup automation scripts that pass empty parameters.
-
#1770merged Oct 27, 2026 Page read command refuses empty scope and search query options The wiki page read command accepted empty scope and search values, falling back to the local project; it now rejects empty flags before calling the server.
- The problem
- In ai-memory, wiki pages can be read from the command line by supplying a project scope, page path or search query. When an empty shell variable was passed to the project or workspace options, the command ignored the empty value and silently inferred the project from the current working directory, retrieving documents from the local checkout without user awareness. In addition, passing a blank path or query produced invalid requests to the server API.
- What was done
- The command now validates and immediately refuses empty or whitespace-only values in workspace, project, path and search query flags before scope resolution, authentication or network requests occur. Unit tests cover each individual option as well as the simultaneous absence of path and query, aligning behavior with the other wiki commands.
- Value delivered
- Prevents unintended reads from the local project wiki when scripts pass unset parameters and avoids unnecessary requests to the server.
-
#1762merged Oct 26, 2026 Message commands refuse an empty scope before sending, popping or cancelling The commands that send, pop and cancel messages between projects accepted empty scope and targets, acting on the inbox of the current directory's project; they now refuse empty values before reading input or calling the server.
- The problem
- ai-memory has an inbox for messages between projects, operated from the command line to send, pop and cancel requests. An empty scope was treated as absent and resolved from the working directory. So popping with an empty project claimed the next message from the local project's inbox, cancelling with the all flag cancelled every pending message in that project, and sending with an empty sender attributed the message to the current directory's project, while empty targets produced invalid requests. All without the user ever naming that project.
- What was done
- The three commands now refuse empty or whitespace-only values in every scope and target flag (source and destination workspace and project, workspace, project and message id) before reading standard input or sending any request. Eight automated tests cover the cases for each command, the shared error message was rewritten to apply to both scopes and targets, and the changelog documents the behavior.
- Value delivered
- Prevents an automation with a forgotten variable from reading, cancelling or sending messages on behalf of the wrong project, preserving isolation between each project's inbox.
-
#1760merged Oct 26, 2026 Renaming a project refuses an empty target name before calling the server The rename-project command accepted an empty target name and sent the server an invalid request; it now refuses the empty flag before resolving the source project.
- The problem
- The rename-project command already refused empty values in the workspace, source and project id, but not in the target name. With an empty target, the typical case of an unset environment variable in a script, the command resolved the source project and sent the server a request with a blank new name, leaving the server to reject something that could have been stopped at the source. Other commands with a destination, such as move-project and move-session, already refused the empty value.
- What was done
- The target name now goes through the same check as the other parameters, refusing empty or whitespace-only values before resolving the project or sending any request. Three automated tests cover the target, the source and the workspace, and the changelog documents the behavior.
- Value delivered
- Gives rename-project the same protection as the other mutating commands, with a clear error at the right time instead of an invalid request to the server.
-
#1758merged Oct 26, 2026 Writing a page with an empty scope no longer overwrites the current directory's project The write-page command accepted an empty project, workspace or path and wrote, or overwrote, the page in the working directory's project; it now refuses empty values before reading standard input or calling the server.
- The problem
- The ai-memory command line writes pages to a project's wiki, with content coming from an argument or from standard input. An empty project was treated as absent and the command derived the project from the working directory, so a script with an unset variable wrote or overwrote a page in the wrong project without warning. With an empty path, the command still blocked waiting on standard input before sending an invalid request. The same guard had already been applied to delete, restore and move, but not here.
- What was done
- The command now refuses empty or whitespace-only values in the workspace, project and path flags before reading standard input or sending any request, with a message naming the flag. Four automated tests cover each flag and the case where the refusal must come before input is read. The command's documentation and the changelog were updated.
- Value delivered
- Protects each project's wiki from accidental writes and overwrites coming from automations, keeping content where the author sent it.
-
#1703merged Oct 25, 2026 Renaming a workstream refuses empty scope and empty names before acting The rename-workstream command accepted an empty project, workspace and names, resolving the project from the current directory or sending a blank name; it now refuses all of them before inspecting the repository.
- The problem
- ai-memory organizes a project's work into workstreams that can be renamed from the command line. An empty project was treated as absent and the command derived the project from the working directory, which in scripts with unset variables pointed at the wrong project. An empty source name still slipped past the absence check, because it arrived wrapped as a present value, and an empty target name was sent to the server blank.
- What was done
- The command now refuses empty or whitespace-only values in the workspace, project, source and target flags before looking at the repository or sending any request, with a message naming the flag. Four automated tests cover each case, and the changelog documents the change.
- Value delivered
- Guarantees a rename only happens in the project and workstream that were actually named, with no side effects from forgotten variables.
-
#1701merged Oct 25, 2026 Deleting a page with an empty scope no longer hits the current directory's project The delete-page command accepted an empty project, workspace or path and silently deleted the page in the working directory's project; it now refuses empty values before any request reaches the server.
- The problem
- The ai-memory command line deletes pages from a project's wiki. When resolving scope, an empty value was treated as an absent flag and the command derived the project from the working directory. In scripts, an unset variable arrives as empty text, so an empty project aimed at the local project and deleted the page there, a target nobody chose. An empty path followed the same route and produced an invalid request. The guard already existed for purge, move-project and rename-project, but not here.
- What was done
- The command now refuses empty or whitespace-only values in the workspace, project and path flags before resolving scope or sending any request, with a message naming the flag. Three automated tests verify the early refusal, and the changelog documents the behavior.
- Value delivered
- Keeps an automation from deleting a page in the wrong project, preserving isolation between projects and the confidence that only what was named gets deleted.
-
#1699merged Oct 25, 2026 Moving sessions with an empty scope no longer drags every session of the current project The move-session command accepted an empty source project and silently batch-migrated every session of the current directory's project; it now refuses the empty flag before any request reaches the server.
- The problem
- The ai-memory command line moves sessions from one project to another, including in batches. When resolving scope, an empty value was treated as if the flag had been omitted, and the command fell back to deriving the project from the working directory. In scripts and automations, an unset environment variable reaches the command exactly like that, as empty text. As a result, an empty source project triggered the migration of every session of the current directory's project to the destination, a target nobody had typed. The same guard already existed for purge, move-project and rename-project, but not for this command.
- What was done
- The command now checks all four scope flags (source project and workspace, destination workspace and destination) before building or sending any request, refusing empty or whitespace-only values with a message that names the offending flag. Four automated tests cover each flag and verify the refusal happens before any contact with the server. The changelog documents the behavior.
- Value delivered
- Prevents an automation with a forgotten variable from batch-moving an entire project's memory to the wrong place, preserving isolation between projects.
-
#1661merged Oct 24, 2026 Dependency update clears security advisory across continuous integration A security advisory in older Tokio releases blocked CI dependency audits; the PR proposes updating the library across the project lockfiles.
- The problem
- The Rust ecosystem security database issued an advisory for older releases of the Tokio asynchronous runtime. While the affected functions were not called by the ai-memory codebase, automated dependency audit gates in continuous integration began failing on all open pull requests due to the pinned versions recorded in the repository lockfiles.
- What was done
- The PR proposes bumping Tokio to version 1.54.1 in the root lockfile as well as in the companion relay, importer, and wikisync services. This resolves the advisory cleanly without altering any other dependencies, restoring green status across automated supply-chain audit checks.
- Value delivered
- Keeps the ai-memory codebase compliant with software supply-chain standards and unblocks continuous integration security gates.
-
#1483merged Oct 20, 2026 Unmaintained dependency with a security alert leaves the project A new alert on an unmaintained library made the dependency check fail every PR; the PR removes the library from the project without changing the web interface pages.
- The problem
- The ai-memory web interface builds its pages with the askama library, which by default includes a reader for TOML configuration files, used only when an askama configuration file exists. The project has no such file but carried the reader library, which no longer receives maintenance. On October 20, 2026 an alert was filed against it in Rust's vulnerability database; there is no fixed version, and newer askama versions bring in the same dependency. The automated dependency check began failing every PR open against the main branch, including the one for the Windows installer, and no version bump could fix it.
- What was done
- The PR turns off askama's configuration feature and keeps the other three that came by default (formatting of sizes, of numbers and of addresses), so the template filters stay as they were. Without the feature, the unmaintained library and two optional links leave the dependency file. No page changes, because the templates only name the file path and the same default rules apply with or without the feature. Silencing the alert would have kept the library in the build, so removal was the choice.
- Value delivered
- The dependency security check passes again, unblocks the open PRs and reduces unmaintained third-party code inside the product.
-
#1195merged Oct 9, 2026 Purging a session also deletes the sentences kept for the profile When a session was purged, the user's sentences collected from it for the preference profile stayed stored and could later become a profile page; they are now deleted along with the session.
- The problem
- ai-memory builds a user preference profile that applies across all projects, collecting preference-like sentences from requests; each one keeps the original text and points to its source session. Purging a project deleted these sentences, but purging a session removed the session, its records, pages and handoffs while leaving the sentences behind. A later pass could still write them into a profile page.
- What was done
- Session purge now also deletes the sentences collected from that session's requests, in the same operation that deletes everything else. The test checks that only the purged session's sentences disappear, not those of a neighboring session or of the same ID in another project. Anything already incorporated into the profile before the purge still requires the dedicated forget command.
- Value delivered
- A deletion request now also covers the user's own words: a sentence from a purged session can no longer resurface in the profile shared across projects.
-
#1194merged Oct 9, 2026 A purged session stays deleted, even with late events After a session was deleted on request, the next event from an agent recreated it with a new record; event intake now honors the deletion marker and discards those events.
- The problem
- The purge command deletes a session and leaves a marker so that late events, still in a client's queue or coming from an agent that is still open, cannot recreate it. That check lived at a point that live capture no longer went through: agent event intake created the session on its own, without looking at the marker. So the next event for a purged session brought it back, with a new record.
- What was done
- Event intake now checks the marker and refuses the event, answering "discarded, can never be stored" rather than reporting a failure; otherwise the client would keep the event, and everything queued behind it, retrying for a session that can never come back. The tests confirm that a neighboring session and the same ID in another project are still accepted.
- Value delivered
- Purging a session is now final: what someone asked to delete does not come back with the next event. And capture clients no longer get stuck resending those events.
-
#1128merged Oct 7, 2026 Passwords and keys filtered before any text is trimmed A secret that landed right at the cut-off point of a long text was split in half, and the leftover piece, unrecognizable to the filter, was stored in plain text; now the text is filtered whole and trimmed afterwards.
- The problem
- ai-memory stores session excerpts (requests, tool results, notifications, summaries) with a maximum size for each type. Trimming ran before the filter that hides passwords and access keys, so a secret at the cut-off point was split, and the leftover piece, too short to be recognized, was stored in plain text. On the user's machine, the capture client trimmed large texts with no filtering at all, so the fragment reached the server already unrecognizable.
- What was done
- The order is now reversed on both ends: the full text goes through the secret filter first, then it is trimmed to the maximum size, which stays the same. New tests place a key exactly at the cut-off point of requests, summaries and tool results, and in the local queue as well. In every case, only the redaction marker gets stored.
- Value delivered
- Closes a path through which fragments of passwords and access keys could end up stored in the project's memory despite the filter. It is the same kind of flaw fixed earlier in record titles, now closed for the content as well.
-
#1109merged Oct 6, 2026 Secrets filtered out before feedback reasons are cut An access key pasted into the reason for a feedback rating could be partly stored if it crossed the 500-character limit; the secret filter now runs before the cut.
- The problem
- Agents can rate whether a retrieved memory was useful and attach a reason of up to 500 characters. The text was cut at the limit and only then passed through the filter that removes secrets such as access keys. A secret crossing the limit became too short to be recognized, so its first part was stored and could show up in the wiki audit report.
- What was done
- The order is now reversed: the reason goes through the secret filter first, is then collapsed to a single line, and only then cut at 500 characters. A new test places an access key starting 12 characters before the limit and confirms no piece of it survives. It is the same fix applied earlier to the titles of observations captured in sessions.
- Value delivered
- Closes another path by which users' credential fragments could reach the database and the tool's reports. The protection now holds wherever the secret falls in the text.
-
#1083merged Oct 4, 2026 Each user can only delete their own context notes On multi-user servers, deleting a context note could remove the version shared with everyone or another person's note; deletion now follows the same rule as writing.
- The problem
- ai-memory keeps short context notes, such as the current focus, that go into the briefing at the start of every session and, on a multi-user server, can be personal. Writing already routed each user to their own area, but deletion did not: deleting the generic path removed the shared version everyone receives, and passing another person's path deleted their note.
- What was done
- Deletion now follows the same rule as writing. A regular user deleting the generic path removes only their own version, and an attempt to delete inside another person's area is refused with a clear message. Administrators can still delete any of them, and with per-user mode off, which is the default, nothing changes.
- Value delivered
- On shared servers, no one can delete another person's context or the team's common context anymore, whether by mistake or on purpose. Writing and deletion now respect the same isolation boundary.
Continuity across agents 18 PRs
-
#2284merged Nov 14, 2026 Cross-project message evidence reaches the recipient in full Evidence attached to a cross-project message was silently cut when it contained accented or non-Latin characters, even within the published 1,000 character limit; text within the limit is now stored whole.
- The problem
- Agents working in different projects exchange messages through ai-memory, and a message reporting a measured result carries its evidence along, with a published limit of 1,000 characters. The last gate before storage, however, counted 1,000 bytes, and accented letters, ideographs, and symbols take two to four bytes each. Evidence within the limit lost its tail with no warning, and when text exceeded the limit, the truncation notice added by the previous step was cut off as well.
- What was done
- The storage bound is now 4 KiB, enough for 1,000 characters at the worst encoding case plus the truncation notice. The character limit senders see is unchanged. Tests cover evidence with three-byte and four-byte characters, through the agent tool and the admin interface, and check that the truncation notice reaches the recipient intact.
- Value delivered
- Whoever receives a message with a measured result reads the full evidence in any language, or clearly sees the notice that it was shortened.
-
#2271merged Nov 14, 2026 Pi agent replies recorded under the same project as the rest of the session In the Pi agent integration, replies captured at the end of each turn could land in a different project from the rest of the session; capture now uses the same project identification rule chosen at install time.
- The problem
- ai-memory can be installed with a rule that identifies the project by the repository root, so subfolders and parallel worktrees map to the same project. In the Pi integration, ordinary session events followed that rule, but assistant reply capture, run by a separate command at the end of each turn, never received it and fell back to using the current folder name. In a subfolder or worktree with no configuration file, replies went to another project and the session was split in two.
- What was done
- The extension generated for Pi now passes the project rule chosen at install time to the command that captures replies as well, as the OpenCode integrations already did. With reply capture turned off, the generated extension stays identical to before. A new test checks the handoff with the rule set, with no rule, and with capture off.
- Value delivered
- Anyone using Pi in subfolders or parallel worktrees finds the session's prompts and replies under one project, with no scattered history.
-
#2131merged Nov 9, 2026 OpenClaw tool calls recorded without assuming they succeeded Events sent to ai-memory by the OpenClaw plugin were stored with a generic title and empty content; each tool call now carries the kind of tool and the output or the error, and the outcome only shows when OpenClaw reports an error, with no success assumed in its absence.
- The problem
- In OpenClaw, capture works through a plugin that ai-memory itself generates and installs, which sends each tool use in the same format OpenCode already uses: the tool name, its input, the output and the error. The path exclusion rules already recognized its reads, edits and commands, but OpenClaw was missing from the lists of agents whose tools get a structured title and content. So every call was stored with the event name as its title and an empty body, and the filter that discards calls by identifier did not recognize the identifier the plugin sent.
- What was done
- OpenClaw is now read with the same fields as OpenCode and joined those lists, so its calls get the same title and content as Claude Code's: the kind of tool, the output it produced and, when there is one, the error. Since OpenClaw's documentation treats both the result and the error as optional, a missing error is not recorded as success: the call keeps an unknown outcome, and only a reported error marks it as a failure, without repeating the command. Tests in the format the plugin sends cover the output, the failure, path exclusions and the identifier filter.
- Value delivered
- OpenClaw users now get a memory of what each tool did, and the record never claims a call succeeded when OpenClaw did not say so.
-
#2129merged Nov 9, 2026 Devin CLI tool calls recorded with output and success or failure Every Devin CLI tool call was stored with a generic title and empty content, with nothing saying whether it worked; each call now carries the kind of tool, the output or the error, and the success or failure Devin itself reports.
- The problem
- Devin CLI notifies ai-memory before and after each tool use and, once the tool runs, sends the response in its own format: a success flag, the output and the error. The path exclusion rules already recognized its reads, edits and commands, but Devin was missing from the lists of agents whose tools get a structured title and content. So every call was stored with the event name as its title and an empty body, and the filter that discards calls by identifier did not recognize the identifier it sent. Even with the content stored, the outcome would have stayed unknown, because the success flag was never read.
- What was done
- Devin CLI joined those lists, and its calls now get the same title and content as Claude Code's: the kind of tool, whether it succeeded, and the output it produced. The outcome comes from the response's success flag, as it already did for Kiro CLI, and the content keeps only the output or, on failure, the error message, without the raw flag in the text and without repeating the command. Tests with events in Devin's documented format cover success, failure and the identifier filter, with a control case that keeps an ordinary call.
- Value delivered
- Devin CLI users now see in memory what each tool did and which calls failed, so resuming and consolidating a session reflects what actually happened.
-
#2127merged Nov 9, 2026 Kimi Code tool calls recorded, with excluded paths respected Every Kimi Code tool call was stored with a generic title and empty content, and the rules that keep paths out of capture did not apply to it; each call now carries the kind of tool, the outcome and the output, and the exclusions take effect.
- The problem
- Kimi Code notifies ai-memory before and after each tool use, with the tool name, its input and, at the end, the output or the error. It had those notifications before ai-memory created the lists of agents whose tools get a structured title and content, and it was never added to them. So every Kimi Code file read, edit and command was stored with the event name as its title and an empty body. The rules that exclude paths from capture did not recognize those calls either and never dropped an event from an excluded folder, and the filter that discards calls by identifier never found the identifier Kimi Code sends.
- What was done
- Kimi Code joined those lists, and its calls now get the same title and content as Claude Code's: the kind of tool, whether it succeeded, and the output it produced. A failure, which Kimi Code reports in an event of its own, is recorded as an error with the message received, without repeating the command. Reads, edits and commands now go through the path exclusion rules, and the identifier filter recognizes both the live identifier and the one in rebuilt transcripts. Tests with events in Kimi Code's documented format show a read in an excluded folder being dropped and an ordinary read being kept.
- Value delivered
- Kimi Code users now get a memory of what was done in the session, not just what was asked, and folders marked as excluded stay out of the record for this agent too.
-
#1954merged Nov 2, 2026 Cline tool classification preserves command output and file context Native Cline tool calls were labeled unknown and had their output dropped; the PR proposes recognizing environment actions and keeping execution results.
- The problem
- While tracking development turns run by the Cline assistant, the memory server captures command executions and file reads to build persistent session context. When newer releases introduced native batch tool names, the hooks failed to match them against known tool families. Because unrecognized tools fell through to an unknown category, sessions recorded blank event titles and discarded output, hiding progress made across the workspace.
- What was done
- The PR proposes mapping native Cline actions across file inspection, directory searches, and terminal executions, supporting both command-line payloads and editor extension envelopes. The extractor reads target paths and command arguments to enforce path exclusion policies while preserving tool call identifiers and success outcomes. Automated unit tests verify tool classification, exclusion rules, and bounded output capture across both payload structures.
- Value delivered
- Eliminates visibility gaps in sessions driven by Cline and ensures durable traceability for actions executed across the workspace.
-
#1826merged Oct 29, 2026 Transcript importer brings in OpenCode 2 compaction summaries Compaction summaries generated during long OpenCode 2 sessions were ignored; the importer now records them as first class timeline events.
- The problem
- Unlike tool executions, OpenCode 2 stores context compaction turns in dedicated session records. Because the transcript parser only recognized standard user and assistant messages, these consolidated turn summaries were dropped silently without generating events or loss warnings. As a result, the shared ledger lacked the synthesized summary required after prolonged conversations had been pruned.
- What was done
- The parser now processes dedicated session compaction records, saving the summary as a timeline event or recording the failure explanation if compaction failed. In-progress compactions are flagged as temporary losses while blank entries are omitted. Unit tests verify the full import cycle with both successful and failed compaction messages against a dedicated fixture database.
- Value delivered
- Keeps condensed conversation summaries readily accessible so subsequent assistants retain context when continuing large development tasks.
-
#1825merged Oct 29, 2026 Transcript importer preserves OpenCode 2 tool error messages Tool failures in OpenCode 2 lost their diagnostic details during import; the adapter now captures visible error text with explicit failure metadata.
- The problem
- When synchronizing OpenCode 2 transcripts into the managed workstream ledger, tool executions that ended with errors only retained the initial invocation. The diagnostic message and underlying cause were discarded and replaced with generic loss warnings. As a result, subsequent agents resuming work could not inspect why a specific command or script had failed.
- What was done
- The transcript parser now extracts visible error text across both structured and string error formats, recording the outcome as a tool result marked with error metadata. In-progress execution states remain treated as partial losses. Automated tests using fixture databases confirm error text preservation while ensuring underlying database records remain unchanged.
- Value delivered
- Allows agents to immediately inspect previous command failures and avoid repeating invalid attempts when resuming tasks.
-
#1793merged Oct 29, 2026 Transcript import drops Codex internal memory maintenance runs Internal memory consolidation runs from Codex were reimported as user work when using custom paths; the PR proposes dropping them by message header and recorded directory as well.
- The problem
- ai-memory records command history and AI agent sessions to provide cross-session context continuity. Codex includes an internal background memory consolidation agent whose runs are dropped by the live hook to avoid polluting project history. When importing past transcripts, however, the check only inspected the checkout directory of the import. As a result, setups with a custom data home had internal maintenance sessions recorded as regular user work.
- What was done
- The PR proposes applying all three live hook criteria to transcript imports: the checkout directory, the path recorded inside the event itself, and the prompt header identifying the Codex memory agent. If any event matches the maintenance agent, the entire session is dropped from the import. Automated tests verify rejection by header and recorded path while ensuring normal prompts and messages from other agents remain intact.
- Value delivered
- Keeps project session timelines clean from internal tool maintenance activities when importing historical transcripts.
-
#1485merged Oct 20, 2026 Gemini CLI sessions on Windows start recording what happens On Windows, the commands Gemini CLI runs on each session event failed to parse in PowerShell and the session went on recording nothing; the command is now invoked the way PowerShell understands.
- The problem
- ai-memory records what happens in coding agent sessions through commands that each agent runs on events such as session start. Since version 0.23.0, Gemini CLI runs these commands on Windows through PowerShell, where a quoted path at the start of a command is just text, not a program to run. The command failed with a parse error and exited with code 1, which Gemini treats as a non-blocking error, so the session carried on normally, with no warning and nothing captured.
- What was done
- The PR makes the Gemini CLI command on Windows start with PowerShell's call operator, as ai-memory already did for Codex, Grok and Copilot CLI; Claude Code and the other agents do not change. Two new tests cover the change: one checks the exact prefix with spaces in the program path and the data folder, and the other, on Windows, runs the generated command through PowerShell the way Gemini does. In a test run on Windows both failed without the fix, with the parse error, and passed with it, alongside the other agents' tests. Existing installs get the new command when the hooks install is run again, and the old entries are replaced, not duplicated.
- Value delivered
- People using Gemini CLI on Windows get their sessions recorded by ai-memory instead of silently losing the history.
-
#1190merged Oct 9, 2026 Crush: resume and import only use the main sessions Crush's internal sub-agent sessions were listed as sessions of their own, imported separately and even picked for automatic resume; now only the main conversations make the list.
- The problem
- Crush records main conversations and auxiliary sessions, such as sub-agent ones, in the same list, with the auxiliary ones pointing to their parent conversation. Session discovery already skipped them, but the listing used by three features did not: history import brought a sub-agent session in as a separate session of the project, the diagnostic command counted it, and automatic resume could pick it if it was the most recent.
- What was done
- The listing now skips sessions that have a parent conversation, the same filter discovery already applied. The test gained a sub-agent session newer than the main ones, which must not appear in the list, and it fails without the fix.
- Value delivered
- Crush users get a history without sub-agent sessions mixed in with the main conversations, and automatic resume goes back to the main conversation instead of landing in an internal session.
-
#1189merged Oct 9, 2026 Sessions found even with more than 2,000 stored conversations With more than 2,000 stored conversations, Codex, Pi, OMP and Grok could have a session reported as missing, and ai-memory started a new one from scratch; the lookup now reads the file named after the session first.
- The problem
- To find a session by its ID, ai-memory scanned the agent's conversation files and read at most the first 2,000, in an arbitrary on-disk order. For Codex, Pi, OMP and Grok, anyone with more than 2,000 conversations could have the session reported as missing. When the agent was opened through ai-memory, the linked session was then dropped and a fresh one started, and importing that conversation failed.
- What was done
- The lookup now reads the file whose name or folder contains the session ID first (that is how these agents save them), then the newest ones. The 2,000 limit stays, and each candidate is still confirmed by its header, so a wrong guess costs only one read. The test uses 2,500 decoy files with the right one at the end of the list.
- Value delivered
- Heavy users of these agents no longer lose a session's continuity just because their history grew: resuming and importing find the right conversation even among thousands of files.
-
#1187merged Oct 9, 2026 Kiro CLI tool use recorded with a real title and content Every time Kiro CLI used a tool, the record was stored with a generic title and empty content; it now gets the same treatment as Claude Code, with the kind of tool, the outcome and the output.
- The problem
- Kiro CLI's tool-use events reach ai-memory with the tool name, its input and, after it runs, the response. The capture rules already knew how to read that format, but Kiro was missing from the list of agents whose tools get a structured title and content. So every Kiro tool call was stored with a generic title and an empty body, and consolidating a Kiro session only saw the requests.
- What was done
- Kiro CLI joined that list, and its tool calls now get the same title and content as Claude Code's: the kind of tool, whether it succeeded, and the output it produced. Rules that exclude paths from capture keep applying as before. A new test uses events in Kiro's real format, for both versions of its engine, and fails without the change.
- Value delivered
- Kiro CLI users now get a memory of what was done in the session, not just what was asked. Knowledge consolidated from these sessions now takes the tools' work into account as well.
-
#1137merged Oct 8, 2026 Pi integration without an error warning on every launch The ai-memory extension for Pi sent its "connection ready" notice in a format the server rejected, logging an error warning on every launch; the notice now follows the protocol standard.
- The problem
- On startup, Pi tells the ai-memory server that the connection is ready. The extension generated by ai-memory sent that notice as if it were a request awaiting a reply, with an ID number. The server did not recognize it, answered with a "method not found" error and logged a warning every time Pi was opened, while the extension ignored the error and moved on.
- What was done
- The extension generator now sends the notice in the format meant for notices, with no ID and no reply expected, and accepts the server's empty success response. Tests check the generated extension and show that the server accepts the correct notice and still rejects the old format. Because the fix lives in the generator, reinstalling the integration does not bring the problem back.
- Value delivered
- Pi users running ai-memory no longer see a false error warning in the server log on every launch. And the server now receives the notice in a valid form, which never happened before.
-
#1081merged Oct 3, 2026 OpenCode 2 stops ending sessions that are still in use The OpenCode 2 plugin ended live sessions whenever OpenCode freed idle services, producing false summaries and handoffs; now only actually deleting a session ends it.
- The problem
- OpenCode 2 unloads and reloads plugins during normal use whenever it frees idle services, and on every unload the ai-memory plugin declared all running sessions ended. The session froze, stopped recording progress for each turn, and got a false summary and handoff. In the reported case, a single active session was ended 13 times in one day, with 16 handoffs, and the next delivery failed.
- What was done
- The generated plugin no longer ends sessions when it is unloaded. A session now ends only when it is actually deleted, and each completed turn still publishes its summary and handoff when the turn ends, so an abrupt shutdown loses nothing. Existing installs need to regenerate the plugin with the install command.
- Value delivered
- Anyone using ai-memory with OpenCode 2 keeps continuous sessions and reliable handoffs, without duplicate pages and handoffs or a language-model consolidation for every session end that never happened.
-
#1063merged Oct 3, 2026 Option to turn off the automatic handoff at the end of each session Every session end created a handoff for the next session, even for people working alone on a project; operators can now turn this automatic creation off without losing the session summary.
- The problem
- Every ended session generated a pending handoff that was injected at the start of the next one. For someone working alone and chaining sessions on the same project this became noise, because the previous session was the same person minutes earlier. There was no way to turn it off without also losing the session summary page, and one report counted more than 60 handoffs piled up before a manual cleanup.
- What was done
- A new server-wide setting turns off automatic handoff creation at session end. The default stays on, so nothing changes for anyone who leaves it alone. With the option off, the session summary and background consolidation run as usual, and handoffs created on purpose by the agent or by managed runs are unaffected.
- Value delivered
- People working alone stop getting repeated context every session and no longer pile up handoffs to clean up, without giving up the history. Anyone who relies on handoffs between agents keeps the current behavior.
-
#990merged Sep 30, 2026 Agents can tell whether a handoff already arrived or none is pending When asking for the handoff, the agent got the same empty answer whether nothing was pending or it had already been delivered at session start; the answer now says which case happened.
- The problem
- The tool that delivers the handoff answered "nothing" in two different situations: when no handoff was pending, and when it had already been injected into the context by the automatic session start. The model could not tell the cases apart from the answer, and the instructions needed a paragraph of warnings so the agent would not conclude there was no earlier work to resume.
- What was done
- The answer gained a status field: delivered now, already delivered at session start, or nothing pending. "Already delivered" is reported only to the very session that received the handoff, in the same project, for the same owner and while still active; forged identifiers, other projects, and sibling or ended sessions get "nothing pending". New tests fail if any of these guards is removed, and the existing field stays the same for current clients.
- Value delivered
- The agent stops guessing: it knows whether to use the context it already has or carry on without a handoff, with less risk of concluding there is no earlier work. The new information opens no gap, since no session can learn about another's handoff.
-
#664merged into release 2.2.0, Sep 7, 2026 Pending handoffs visible before they are claimed Agents that don't get the automatic context at session start could only see a pending handoff by consuming it blindly; they can now list what is pending and claim exactly the one they choose.
- The problem
- Some agents, such as Grok and Zero, can't receive the handoff that ai-memory injects automatically at the start of a session. For them, the only way to see a pending handoff was to accept it, which consumes it, since each handoff can be used only once. The agent always ended up taking the most recent one, without checking its content or being able to pick another.
- What was done
- A new read-only tool lists the project's open handoffs with their summary, open questions, next steps and files involved, without changing the state of any of them. The agent then claims exactly the handoff it picked, once. The listing follows the same ownership rules as delivery: other users' private handoffs stay hidden, and seeing all of them requires admin rights.
- Value delivered
- Agents without a session-start integration can now resume work by picking the right context instead of blindly consuming the most recent one. Isolation between users is preserved, as the maintainer's review confirmed, and nothing changes for other agents.
Reliability and operations 37 PRs
-
#2308merged Nov 16, 2026 Session consolidation tests wait longer on Windows Two session consolidation tests failed a release check by running out a 5 second wait on an overloaded Windows machine; the PR proposes extending that wait to 30 seconds on Windows only.
- The problem
- At the end of each session, a background worker consolidates what was captured into a summary page, and the tests wait for that worker's completion signal with a 5 second limit that exists only to flag a hang. During a release check, an overloaded Windows machine in continuous integration blew that limit in two tests, with no change to the code under test, and the same run passed when repeated. A failure like that holds a release back for a reason that is not a product defect.
- What was done
- The PR proposes gathering the wait into a single helper shared by the tests, with 30 seconds on Windows and the same 5 seconds elsewhere. The test still waits for the completion signal, and the longer limit only delays the hang report. The change is confined to test code; the consolidation worker that runs in production is untouched.
- Value delivered
- Release checks will stop failing on occasional slowness of the test environment, while still catching a real hang.
-
#2307merged Nov 16, 2026 Uninstall also removes the WorkBuddy connection and skills Uninstall already stripped the ai-memory hooks from WorkBuddy but left the connection to the memory server and the installed skills behind; the PR proposes removing all three.
- The problem
- In WorkBuddy, ai-memory installs three things: the hooks that capture the session, the agent's connection to the memory server, and the skills that teach it how to use memory. Uninstall undid only the first. WorkBuddy's connections file was never opened and its skill folders were never swept, even though the support documentation already stated that uninstall removes everything.
- What was done
- Unlike the Hermes fix, which dealt only with skills, the PR proposes adding WorkBuddy to the list of agents whose connection is undone, removing only the ai-memory entry and keeping any other configured connections. The project and user skill folders join the sweep. Two tests check that the connection is removed without touching the others and that both folders are covered.
- Value delivered
- Anyone uninstalling ai-memory will leave WorkBuddy without a connection pointing at a server that no longer exists, as the documentation already promises.
-
#2286merged Nov 14, 2026 Uninstall removes the skills installed for the Hermes agent Uninstalling ai-memory left behind the skill files it had installed for the Hermes agent; the Hermes folders are now part of the sweep, both in the project and in the global install.
- The problem
- When installed, ai-memory writes a set of skills into each supported agent, small instruction files that teach the agent how to use memory. Uninstall walks each agent's skill folders to remove what was installed, but no Hermes folder was on the list. Anyone uninstalling was left with those skills orphaned in the Hermes folders.
- What was done
- The sweep now includes the Hermes folder inside the project, the default folder in the user's home, and the global folder set by an environment variable or by the Windows default, without visiting the same place twice. Two new tests check that a skill installed in a custom global folder enters the removal plan and that all three locations are swept.
- Value delivered
- Removing ai-memory from a machine that runs Hermes leaves the agent clean, with no instruction files left over from an uninstalled tool.
-
#2269merged Nov 14, 2026 Memory retrieval history preserved when projects are moved or merged The record of searches run against memory was deleted on a project merge and left behind when a project or session changed place; it now follows the project and the session through all three operations.
- The problem
- ai-memory keeps, per session, a history of the queries run against memory and the pages each one returned, so what an agent retrieved can be reviewed later. The three reorganizing operations, moving a project to another workspace, merging two projects, and moving a session, left that history out. A merge deleted it together with the source project; the other two stranded it in the old place, missing from the target's retrievals view and liable to vanish once the source was removed.
- What was done
- Unlike the fix that carries page feedback along with a moved session, this one covers retrieval history and applies to all three operations: each now transfers it to the target, and the hits of every query go with it. One test walks the three paths and confirms the history stays readable in the target after the source workspace or project is deleted, leaving sessions that were not moved untouched.
- Value delivered
- Reorganizing projects no longer costs the trail of what agents looked up, which remains available for review wherever the project now lives.
-
#2255merged Nov 14, 2026 Page feedback and entity links follow a session moved between projects Moving a session to another project along with its summary page left the page's quality feedback, search signals, and entity links bound to the source project; they now travel with the page to the target.
- The problem
- ai-memory can move a session recorded under the wrong project into the right one, taking the page that summarizes the session with it. The page changed projects, but the feedback flagging it as stale or wrong, the relevance signals gathered from searches, and the links to the entities it mentions stayed behind. The source project's audit kept reporting a page it no longer owned, the target never saw the open item, and purging the source later erased the feedback altogether.
- What was done
- The move now carries all three kinds of record to the target inside the same transaction, so a dry run still changes nothing. Links are rebuilt against the target project's entities, creating missing ones and removing source entities left unused, and the open feedback query now checks which project the page belongs to. When the page is regenerated rather than moved, the history of retired versions stays in the source. Three tests cover both modes and a later purge of the source project.
- Value delivered
- Fixing a session's project keeps the page's feedback and relevance history with it, and each project's audit lists only what actually belongs to that project.
-
#2159merged Nov 10, 2026 Local checkout links updated to target project after merge After combining projects on the server, the local client kept the deleted project identifier and received 404 errors; checkout links and saved bindings now point to the target project.
- The problem
- When a project merge completed, the server removed the source project, but local client configuration still referenced the old project identifier. As a result, subsequent agent commands in that workspace sent a deleted identifier, triggering 404 errors and stopping active workflows. Furthermore, the server report provided only project name labels without resolved numeric identifiers, preventing automatic binding updates when merged by name.
- What was done
- Unlike server-side identity preservation, this change focuses on the client interface: upon merge confirmation, the command re-points local checkout links and saved bindings to the destination project. The administrative API response now includes the resolved source and target identifiers, enabling local registry updates even when merging by name. New unit tests verify that checkout links follow the target using reported or command-line identifiers.
- Value delivered
- Developers can resume local workflows immediately after a merge without manually re-binding checkouts or troubleshooting missing project errors.
-
#2157merged Nov 10, 2026 Project merge preserves repository identity on surviving project Merging projects deleted the repository coordinates with the source record, causing future captures to create duplicate projects; the identity and derived names now move to the destination project when it has none.
- The problem
- When two projects were combined during a merge, repository identity and derived name keys lived only on the source row that was removed at the end of the operation. Because only access modes and profile flags were carried over, the workspace was left with no project bound to that repository. On the next session, resolution could not match the consolidated project and created a fresh duplicate with default settings.
- What was done
- The merge operation now reads the source project identity, source type, canonical name, and legacy name before deletion, applying them to the target whenever it lacks an identity. Targets that already belong to a repository keep their existing identity intact, preserving the rule of one project per repository. A new automated test confirms that dry runs make no changes, confirmed merges transfer coordinates, and subsequent queries route directly to the surviving project.
- Value delivered
- Merged projects remain discoverable by agent sessions without creating duplicate projects or losing repository history.
-
#2123merged Nov 9, 2026 Status check tells a server outage apart from a denied request The status command reported the server as unreachable whenever the check failed, even when the server answered by rejecting the credentials; it now mentions an outage only when the connection actually fails and otherwise explains what was missing.
- The problem
- The ai-memory status command queries the server to show the health of the installation and, when it gets no answer, lists the event queue kept on disk along with recovery instructions. Any failed query was treated as a server outage, access denials included. On a remote or multi-user server the query requires credentials and administrator rights: without credentials the server answers that the request was not authenticated, and a regular user is refused. In both cases the server was up and answered right away, but the command declared it unreachable and said to bring it back, sending operators after a network or process failure that did not exist.
- What was done
- The command now separates a connection failure from an error response sent by the server. When the server answers, the local queue and recovery hints appear without the unreachable label, and the error says the server was reached and what was missing: the credentials, with the places where the command looks for the token, or administrator rights; for any other error it shows the status code received. Connection failures keep the previous messages, and tests against a local server that refuses requests without credentials or without rights confirm the command no longer reports the server as unreachable.
- Value delivered
- Operators of a remote or shared server go straight to the real cause, missing credentials or missing rights, instead of chasing an outage that never happened.
-
#2062merged Nov 7, 2026 Project merge preserves session recovery and history attributes Combining projects previously cleared event recovery attributes; the PR proposes keeping session links to prevent premature cleanup and replay failures.
- The problem
- When two projects were merged in the memory store, the migration query only copied a subset of columns from ingestion keys. Session identifiers, agent types, and recovery retention flags were reset to empty values in the target project. As a result, background maintenance purged those keys after one hour, causing subsequent journal replays to fail due to session collision errors.
- What was done
- The PR proposes migrating all ingestion key attributes during project consolidation, coalescing missing fields on existing rows and preserving recovery retention flags. An automated regression test verifies that source keys retain session associations and handle conflicting entries correctly.
- Value delivered
- Consolidated projects maintain full session integrity, ensuring historical replay and recovery continue working reliably.
-
#2033merged Nov 7, 2026 Claude Code token totals include the work done by subagents A Claude Code session's token totals ignored subagent responses; the PR proposes adding those transcripts to the main conversation's usage.
- The problem
- ai-memory records per-session token usage for the dashboard and the response ledger. Claude Code keeps the main conversation in one transcript and writes each subagent's turns to its own file beside the session. Capture read only the main transcript, so subagent work never reached session totals or the live ledger. In sessions that delegate heavily, a large share of the tokens stayed invisible.
- What was done
- The PR proposes summing subagent transcripts into the session-end total and, on the live path, appending them to a batch that already holds a main-conversation response, each with its own cursor, within the per-event response cap. Subagent responses are not attached to a subagent's own event, so the session keeps the main conversation's model. Automated tests cover the summed total with deduplication, live batches beside a main response, and the per-event cap.
- Value delivered
- The token dashboard shows the real cost of a session, including work handed to subagents, instead of undercounting those runs.
-
#1929merged Nov 2, 2026 Consolidation retries wait for provider rate limit reset hints Session consolidation used fixed retry intervals on rate limits; the PR proposes honoring provider wait hints before retrying.
- The problem
- During session consolidation, the system calls artificial intelligence providers to synthesize recorded notes into durable knowledge pages. When hitting temporary rate limits, the retry loop waited for a fixed two seconds between attempts regardless of the window requested by the service. If the provider required longer cooldown periods, all three retry attempts were exhausted within seconds, aborting consolidation and abandoning fresh session observations.
- What was done
- The PR proposes reading the provider retry hint before scheduling consolidation retries, while enforcing a thirty-two second ceiling to keep worker pipelines responsive. Calls without an explicit provider delay continue using the default two-second wait. Automated unit tests verify that retries respect provider intervals, honor the maximum delay cap, and complete once the reset window passes.
- Value delivered
- Preserves captured session knowledge during provider traffic spikes and prevents unnecessary job failures caused by premature retry attempts.
-
#1884merged Oct 31, 2026 Linked git worktrees adopt their main project during migration Linked checkouts created duplicate projects and orphaned legacy memory; the PR proposes resolving the worktree to its main checkout project.
- The problem
- When upgrading to version 3.0, the tool claims legacy projects as soon as a session captures repository identity for the first time. However, when working inside a linked git worktree, the different directory name prevented identity routing from finding the original project. As a result, the router created a duplicate twin project and left previous notes, sessions, and documentation orphaned in the old workspace.
- What was done
- The PR proposes inspecting shared git metadata to locate the root directory of the main checkout and claim the matching legacy project directly. The migration retains existing identifiers, wiki pages, and access rules in place without duplicating database entries. Automated tests verify that captures initiated from linked checkouts preserve original projects while protecting reserved system scopes from adoption.
- Value delivered
- Prevents split contexts and abandoned notes when developers collaborate across multiple linked git worktrees in the same repository.
-
#1862merged Oct 29, 2026 Config template and property guide document four 3.3.0 keys Four settings introduced in version 3.3.0 were missing from reference files; the default template and documentation now describe each configuration key.
- The problem
- Version 3.3.0 introduced settings for reranking timeouts, answer synthesis context limits, session exit menus, and built-in proposal evaluation. However, the default configuration template and property reference guide omitted these four options along with their corresponding environment variables. Users consulting reference documentation could not verify supported properties or their default operational thresholds.
- What was done
- The default configuration template and reference manual now detail all four properties alongside their defaults, accepted ranges, and environment variable equivalents. The documentation explains reranking timeouts, synthesis token budgets, interactive exit prompts, and the built-in structural evaluation gate.
- Value delivered
- Enables operators to fine-tune retrieval, synthesis, and interactive session settings without inspecting source code for hidden keys.
-
#1670merged Oct 24, 2026 Windows wrapper tests restore passing status on continuous integration Windows wrapper test suites failed by searching for a missing native binary; fixtures now route commands through containers and restore the continuous integration build.
- The problem
- The PowerShell wrapper manages application commands and container routing on Windows hosts, and automated tests verify this behavior in clean environments without preinstalled binaries. A recent change caused the script to search for a native host executable whenever the platform environment was unspecified. In test environments lacking a local executable, test runs failed with missing file errors and blocked the Windows continuous integration pipeline.
- What was done
- The PowerShell wrapper test helper now explicitly configures the environment variable to maintain container routing on Windows, matching the convention already used for Unix systems. This prevents tests from expecting a host executable while accurately verifying command line arguments. Automated checks now pass reliably across Windows integration runners.
- Value delivered
- Maintains green continuous integration builds on Windows and guarantees reliable wrapper execution for platform deployments.
-
#1662merged Oct 24, 2026 Full text search index backfill scales linearly using rowid cursors Upgraded databases re-scanned already indexed rows during CJK search backfill; the PR proposes a rowid cursor so batches advance linearly.
- The problem
- When opening the database after an upgrade, a repair routine backfills specialized full-text search indexes for Asian text across pages and observations. Because each batch re-examined the source table starting from the very first row, every subsequent batch re-checked all rows indexed by earlier passes. On large databases containing tens of thousands of pages and over a million records, this quadratic overhead caused startup times to stretch into hours, leaving the service unresponsive.
- What was done
- The PR proposes adding a rowid cursor so each batch resumes immediately after the last processed record, skipping already indexed rows. Automated tests using SQLite virtual machine step counters confirm that backfill complexity now scales linearly with database size.
- Value delivered
- Cuts post-upgrade startup times from hours to minutes on large databases across busy production teams.
-
#1626merged Oct 22, 2026 User and API key tables keep columns aligned in the terminal User and API key tables misaligned when names contained accents or wide ideograms; column widths now measure visual terminal width instead of bytes.
- The problem
- When listing users or API keys from the command line, the tool computed column padding based on raw byte count rather than the visual width that text occupies on screen. Because accented characters require multiple bytes and Asian ideograms take two terminal display columns, names with special characters shifted subsequent columns to the right, misaligning headers and making access reviews difficult to read.
- What was done
- Table formatters for both commands now measure text width using terminal display cells and apply proportional spacing across all cells. New unit tests verify that tables containing accented names and double-width characters align cleanly under their headers without phantom offsets.
- Value delivered
- Delivers clean and readable terminal tables for administrators auditing credentials and users across international teams.
-
#1624merged Oct 22, 2026 Installer smoke test succeeds on hosts with restricted temporary storage The installer failed on systems where temporary folders disallow file execution; it now validates the binary beside the final destination folder.
- The problem
- On hardened servers following strict security benchmarks like CIS Linux, temporary directories are typically mounted with options that prohibit direct executable execution. The ai-memory installer script unpacked the downloaded release and ran a smoke test inside that temporary work directory before moving it to the user library. On those systems, the operating system blocked execution with permission errors and the installer aborted, even though the binary was fully compatible and able to run from its target directory.
- What was done
- The installation script now stages the unpacked release beside the final destination directory before running the verification command. If the smoke test fails, the staged folder is cleaned up immediately and the refusal message clearly reports the destination path that was tested. New automated test cases simulate installs with restricted temporary mounts and ensure that corrupt binaries are cleanly rejected without orphaned files.
- Value delivered
- Enables reliable and automated ai-memory installations on hardened enterprise servers and security-compliant hosts.
-
#1510merged Oct 21, 2026 Windows install no longer freezes the variables in the user PATH On Windows, when adding its folder to the user PATH, the installer rewrote the whole list with the variables replaced by their current values, and some folders fell off PATH; it now adds the folder without touching the rest.
- The problem
- On Windows, the user PATH is the list of folders where the system looks for programs, and Windows itself stores it in a format that accepts variables, such as the one for the user profile folder; development tools add entries of the same kind, such as the Java folder named by the JAVA_HOME variable. The ai-memory installer read that value through the standard .NET function, which returns the variables already replaced by their current values, and wrote it back through the matching function, which saves everything as plain text. So every install froze the variables, and switching Java versions later no longer changed PATH. An entry whose variable the installer did not know was written literally, with the variable name between percent signs, in a format where Windows never expands it, and that folder fell off PATH. The desktop app and the two manual steps in the Windows documentation did the same.
- What was done
- The installer now reads the raw value, without expanding the variables, adds its folder and writes it back in the format that accepts variables, as the Bun, Scoop and pixi installers and the ones generated by cargo-dist already do. The check for whether the folder is already on PATH still uses the expanded values, so an entry that points to it through a variable still counts as present, and the notice that lets Explorer and the terminals it opens see the new PATH is still sent, without writing anything besides PATH. The desktop app and the two manual documentation steps got the same change. A new test case, which runs only in continuous integration because it touches the real PATH, sets up a PATH with a variable, installs under PowerShell 7 and Windows PowerShell 5.1, requires the format and the variable to stay intact and puts the original value back at the end. In a test run on Windows, without the fix, the test stopped with PATH written as plain text and the desktop app script lost the variable; with it, both kept the format and the variable, and the project's continuous integration passed on Windows.
- Value delivered
- People installing ai-memory on Windows keep PATH as it was, with variables working and no folder lost, instead of finding out later that another tool can no longer be found.
-
#1507merged Oct 21, 2026 Options enabled in the default config are no longer silently ignored In the config file ai-memory generates, two example sections sat among the general options, and enabling one of them made the options enabled below it be ignored without a warning or stop the config from loading; both examples now sit after the general options.
- The problem
- The config file ai-memory generates on initialization lists the disabled options as commented examples, so whoever runs the server enables only what they need; it is the same file the RPM and AUR packages install and the Nix package ships. Two of those examples are sections, the environment variables of a launch profile (since version 2.6.0) and the server-side drop list for tool events (since 3.0.0), and they sat above general options. In a TOML file a section header applies to every line up to the next header, so enabling one of those sections and then a general option further down put that option inside the section. In the drop list section, reranking search results with a language model and the setting that keeps OpenCode on Gemini models from failing to list the tools were ignored without any warning. In the profile section, a number or a true/false value, such as the events-per-second limit, stopped the config from loading, and a text value became an environment variable of every launch with that profile.
- What was done
- The PR moves both examples, text unchanged, after the general options and adds a note on why example sections stay below the first real section, in the style of the warning that already guarded the end of the file. A new test checks that no example section sits above the first real section again; it then enables every one-line example and checks that the file loads with each option where the documentation says: reranking among the general options, the profile with only its two variables and both drop lists filled. The project's continuous integration passed with the change. Anyone who leaves the examples commented sees no difference, because only comment lines moved, and existing files are not rewritten; the release notes explain how to fix one by hand.
- Value delivered
- People tuning ai-memory through its config file get every enabled option applied where the documentation says, with no option silently dropped and no config that fails to load.
-
#1481merged Oct 20, 2026 Windows install no longer fails when antivirus holds the program On Windows, the installer tried to move the freshly unpacked program and failed if an antivirus still had it open; it now copies, which is allowed, and the install completes.
- The problem
- The Windows installer downloads the release, unpacks it into a temporary folder, runs the program once to check the version and then moves the folder to its destination. In that gap, an antivirus is often scanning the file that just ran and keeps it open in a way that allows reading but not renaming or deleting. Moving needs to delete the original, so Windows refused with the file-in-use message, and the script stopped with the destination folder created but without the program.
- What was done
- The installer now copies the folder instead of moving it, since copying only reads the files and reading is allowed. If the copy fails part way, the partial folder is removed before the error is shown, so the next run does not mistake it for an existing install; the temporary folder is still cleaned at the end on a best-effort basis. A new test case holds the program open the way an antivirus does, under PowerShell 7 and Windows PowerShell 5.1, and passes only if the lock really happened. Before the fix, the same test reproduced the reported error in both; with it, the install completes in both.
- Value delivered
- People installing ai-memory on Windows with an active antivirus no longer end up with a half-finished install and a hard-to-read error message.
-
#1469merged Oct 19, 2026 Search with conflicting arguments comes back as the caller's error Four ways of building the memory query wrong were returned as an internal server failure, which led clients to retry; they now come back as invalid arguments, with the same messages.
- The problem
- The query tool in ai-memory is the door through which AI agents look up what a project has recorded, and it accepts options that cannot be combined: global mode with a project or scopes, scopes with a project, a query at a past date with scopes, and a past date that is not a valid instant. All of these are decided from the arguments alone, before any storage access, but were answered with the server's internal error code. A client reads that code as a server failure and retries instead of fixing the request, so a malformed call was repeated with no chance of succeeding.
- What was done
- The four rejections now return the invalid arguments code, the same one the sibling tools for writing and deleting pages already used, and the messages stay the same. Real server failures, such as a storage error, keep the internal code. A new test covers each of these situations and confirms that a well-formed query is not rejected.
- Value delivered
- People integrating ai-memory with other tools can tell a wrong request from a server failure and stop retrying calls that could never succeed.
-
#1467merged Oct 19, 2026 Google, Copilot and Voyage retry the call after a brief overload A passing outage (503) from Gemini, Copilot or Voyage, or a rate limit (429) from Voyage, failed the vector call on the first answer; the call is now retried within the same bounds as the other providers.
- The problem
- ai-memory turns each note into a numeric vector, which lets it search by meaning and not just by words, using an outside provider the user chooses. The Google, Copilot and Voyage integrations treated any passing overload as a final error: Google and Copilot retried only the rate limit warning, and Voyage did not retry at all. With one of them configured, a brief overload failed pages of the batch backfill, left saved pages without a vector until the next backfill and dropped the meaning-based search from that query, which went on with the other search methods alone.
- What was done
- The three integrations now follow the policy the OpenAI-style providers already used: retry both the rate limit and the outage, honor the wait the server asks for (up to 32 s per attempt), use growing waits from 2 to 32 s when there is none, and give up, reporting the last error, once the total waits would pass 62 s. Without a server request, Google and Copilot wait exactly what they waited before on a rate limit. Seven new tests simulate the server and check, for example, that two outages followed by a success take exactly three requests and that an endless outage ends in failure after six.
- Value delivered
- A momentary provider overload no longer leaves memories without a vector or queries with weaker results, within the same wait limit as the other providers.
-
#1424merged Oct 18, 2026 Backup download test restores blocking mode on network sockets On Windows, the backup download test failed intermittently by inheriting non-blocking sockets; the fix restores default blocking semantics.
- The problem
- In the command-line test suite, the mock backup download server configured its TCP listener in non-blocking mode. On Windows, accepted sockets inherit that state, causing immediate read attempts to fail intermittently with a would-block error when client payloads were still buffering.
- What was done
- The test helper now explicitly restores blocking mode right after accepting the TCP socket, aligning with the pattern used in the project's other network tests. Socket reads remain bounded by a dedicated timeout to prevent hanging.
- Value delivered
- Ensures reliable automated continuous integration runs without false alarms on Windows systems.
-
#1328merged Oct 15, 2026 Structured tasks stop failing on the latest Claude models On Claude Opus 5.5, Sonnet 5.5, Fable 5.1 and Mythos 5.1, every task that needs a structured answer failed before reaching the model; these models now get a request they accept, and the answer is read even when it comes back as text.
- The problem
- To get answers in a structured format, ai-memory makes the Claude model reply through a tool shaped like the expected result. Opus 5.5, Sonnet 5.5, Fable 5.1 and Mythos 5.1 reject being forced that way with an error, so every structured task failed before reaching the model: consolidation, wiki audits, auto-improve and memory search answers, among others. Anyone using these models, directly or through the OpenCode catalog, was left without all of them.
- What was done
- On those four models the request now leaves the tool choice on automatic, and the tool description asks the model to use it. If the model replies with the result as text, ai-memory extracts the object from the text, whether it stands alone, sits in a code block or appears mid-sentence. Every other model keeps the previous request, and new tests check the request sent to each model and the reading of text replies.
- Value delivered
- Anyone adopting the latest Claude models, directly or through OpenCode, can now rely on consolidation, audits and auto-improve, while earlier models keep the same format requirement.
-
#1326merged Oct 15, 2026 Turning reasoning off no longer breaks Claude Opus 5.5 and Sonnet 5.5 With reasoning set to off, every request to Claude Opus 5.5 or Sonnet 5.5 came back with an error because these models reject that option; each one now gets the way of turning it off that it accepts.
- The problem
- ai-memory lets users choose how much the language model reasons, and its own documentation recommended turning reasoning off so hidden thoughts would not eat into the room for the structured answer. To do so, ai-memory sent the disabled-reasoning option, which Claude Opus 5.5 and Sonnet 5.5 reject with an error at every level. With these models, including through the OpenCode catalog, every consolidation, audit and memory exploration failed.
- What was done
- Opus 5.5, which does not allow reasoning to be turned off, now receives the request without that option, as Fable and Mythos already did. Sonnet 5.5 now receives the lowest setting it offers for skipping extended reasoning. Every other model and level sends the same request as before, and the installation guide now mentions both models; new tests cover each combination, including the Opus 5.5 identifier on Bedrock.
- Value delivered
- Anyone who followed the documentation's advice and runs the latest Claude models gets consolidation, audits and exploration working again, without switching models or settings.
-
#1325merged Oct 15, 2026 Claude models that reason before answering now work Claude responses that began with reasoning blocks were rejected outright as an unknown format; ai-memory now skips the blocks it does not use and reads the text and the structured result as usual.
- The problem
- ai-memory relies on a language model for features such as memory exploration and the provider connection test. The newest Claude models, such as Opus 5, Sonnet 5 and Haiku 5.5, may reason before answering even when not asked to, and Opus and Sonnet from 4.6 on do so once a reasoning effort is configured; the response then starts with reasoning blocks. The response reader only knew text and tool calls, and any other block brought down the whole call.
- What was done
- The reader now accepts and skips any block type it does not use, rather than listing only the reasoning ones, so a new type cannot break every call again. The text is still built only from text blocks, and the structured result is validated as before. A new test simulates a response with reasoning, redacted reasoning, text and a tool call, and checks both reading paths.
- Value delivered
- Anyone running ai-memory with the latest Claude models, directly or through OpenCode, or with a reasoning effort set, no longer sees memory exploration and the provider test fail as soon as the model reasons.
-
#1265merged Oct 15, 2026 A session moved to another project no longer leaves data behind When a session was moved to another project, the sentences collected from it for the profile and the keys that prevent duplicate records stayed in the old project and vanished if it was purged; they now move along with the session.
- The problem
- ai-memory can move a session to another project, carrying its observations, handoffs and consolidation jobs along. Two things were left behind: the preference-like sentences collected from the session's requests for the user profile, and the keys that stop the same event from being recorded twice and let an interrupted event be resumed. As a result, the profile counted those preferences in the wrong project, and purging the old project deleted data from a session that already belonged elsewhere.
- What was done
- Moving a session now also transfers those sentences and keys, in the same transaction that moves everything else; when the destination already holds an identical record, that one is kept and the duplicate is deleted. Sentences that came from pages and keys with no session stay in the source project, since they do not belong to the session. The tests check that only the moved session's data changes place and that it survives a later purge of the old project.
- Value delivered
- Anyone reorganizing sessions across projects no longer loses the preferences collected from them in a later purge, and the profile counts each preference in the right project.
-
#1196merged Oct 9, 2026 Moving a project to another workspace takes all its data along When a project moved to another workspace, seven kinds of data stayed behind, including pending messages and deletion markers, while the operation reported success; now everything moves together.
- The problem
- The documentation says moving a project to another workspace updates all of its data, but the operation left seven kinds of data behind and still reported success. After the move, pending messages between projects could no longer be found, the project lost one of its search sources and the open feedback on its pages, a purged session could be recreated by a late event, and profile collection restarted, recording the same evidence again.
- What was done
- The move now updates the seven missing kinds of data, in the same operation and with the same criteria as the others, including both ends of each message. The documentation now lists what gets updated. The new test puts one record of each kind in place, moves the project, checks that all of them follow it to the destination, and fails without the fix.
- Value delivered
- Reorganizing projects across workspaces no longer silently drops messages, search data and pending feedback, and no longer reopens the door to sessions that had already been purged.
-
#1188merged Oct 9, 2026 OpenCode, OMP, Pi and OpenClaw keep events when the server is busy The integrations generated for OpenCode, OMP, Pi and OpenClaw dropped the event when the server asked to try later, and even erased the stored queue; they now keep the event and retry later.
- The problem
- Unlike the native client and the capture scripts, the integrations for OpenCode (both versions), OMP, Pi and OpenClaw treated an overloaded server's "try again later" answers as a permanent rejection. The event was neither kept nor resent, and was lost exactly when the server asked for a retry. Worse, sending the local queue deleted every stored event it hit in that situation, up to 500, from a queue shared with the native client.
- What was done
- The three answers that mean "try again later" are now handled as a temporary server failure: the event goes to the local queue, and sending the queue halts, keeping what is stored. The rule lives in a single shared function, so the three places that use it cannot disagree. The documentation, which said such errors are never retried, was corrected.
- Value delivered
- Users of these agents stop losing session records under load, and the queue kept by the native client is no longer erased by the plugin. The rule now matches the capture scripts, and reinstalling the agent's integration is enough to get the fix.
-
#1185merged Oct 9, 2026 Complete Docker-free install for Antigravity, Claude Code and Grok The Docker-free installer's script lists were out of date: installing for Antigravity CLI always failed, and Claude Code and Grok were missing the sub-agent scripts; the lists now match the packages.
- The problem
- The Docker-free installer keeps a hand-written list of scripts for each agent, and the lists had drifted from what the published packages contain. For Antigravity CLI, listed as supported in the documentation, it asked for seven scripts when the package has four, so the install always stopped with an error. For Claude Code and Grok, the two scripts that record when a sub-agent starts and ends were never installed, although the generated configuration pointed to them.
- What was done
- The installer now installs exactly the scripts each package ships: a dedicated four-script list for Antigravity CLI and the two sub-agent scripts for Claude Code and Grok. A new test feeds the installer the real file names for each of the nine script-based agents and requires the installed set to equal the published one.
- Value delivered
- The Docker-free install now works for Antigravity CLI and is complete for Claude Code and Grok, sub-agent events included. The new test flags any future mismatch between the lists and the packages.
-
#1184merged Oct 9, 2026 Docker-free install with capture working from day one The Docker-free installer copied each agent's capture scripts but not the support file they all load first, so no event ever reached the server; that file is now installed with them.
- The problem
- For people who do not use Docker, there is an installer that copies each agent's capture scripts from the published release. Every one of those scripts starts by loading a shared support file, which the installer never copied. After installing, each script stopped right at the start and nothing reached the server, and running ai-memory's own install command afterwards did not fix it either.
- What was done
- The installer now extracts the support file from the same verified release package and places it where the scripts already look for it. If the package lacks the file, the install stops with an error instead of leaving a broken setup, as already happened with a missing script. The installer test now requires the file and fails without the fix.
- Value delivered
- People who install capture without Docker now get records reaching the server from the first use, instead of an install that finishes without errors and records nothing.
-
#1146merged Oct 8, 2026 Capture scripts keep events when the server is overloaded When the server asked to try again later, the capture scripts for macOS, Linux and Windows dropped the event and even deleted the queue stored on disk; now they keep everything and retry later.
- The problem
- When overloaded, the ai-memory server answers "too many requests, try again later" by design; answers saying a request took too long or arrived too early ask for the same. The capture scripts for macOS and Linux and the PowerShell version for Windows treated these answers as a permanent rejection. The event was dropped instead of going to the local queue on disk, and sending the queue deleted the stored events on that answer.
- What was done
- Both sets of scripts now treat the three answers as temporary: the event goes to the local queue, and sending the queue pauses and keeps everything for the next attempt. Permanent rejections, such as an invalid request or missing permission, are still dropped as before. The tests include that control case, to show that only the temporary answers changed.
- Value delivered
- Prevents silent loss of session records exactly when the server is under load, for anyone using script-based capture, Windows included. The native ai-memory client already treated these answers as temporary, and the scripts now follow the same principle.
-
#1088merged Oct 4, 2026 Activity metrics count handoff lookups as reads Looking up pending handoffs, which changes nothing, was counted as a write in the agents' activity metrics; it now counts as a read and the numbers reflect actual use.
- The problem
- ai-memory counts, per client, how many reads and writes each agent performs, and those numbers show up in the admin metrics. The tool that only lists pending handoffs was left off the list of reads, and any tool not on that list counts as a write. Every lookup inflated the write counter.
- What was done
- The tool is now classified as a read. The tests now cover the classification of every read and every modifying tool, and a new test confirms that each lookup adds one read and no writes.
- Value delivered
- Server administrators see the real ratio between lookups and changes for each agent, with no phantom writes. The conservative rule of counting anything unclassified as a write still applies to new tools.
-
#923merged Sep 27, 2026 Backup restore that never wipes the current data Restoring from a damaged backup file could erase the existing memory before the problem was noticed; now the live data only moves after the backup has been checked.
- The problem
- The restore command deleted the live data folders before it even opened the backup file. If the file was truncated, corrupted or came from an incompatible version, the user was left with neither the old data nor the new, at the very moment they usually have no other copy.
- What was done
- The backup is now extracted and checked in a separate area first. Only after it passes does it replace the live data, and every step of the swap can be rolled back if something fails midway. Four new tests reproduce bad-archive scenarios and fail on the previous version.
- Value delivered
- Removes a path to total data loss during recovery, the riskiest moment of operations. Nothing destructive happens before whatever takes its place has been verified.
-
#781merged Sep 19, 2026 Wiki version history protected from invalid page names A page whose name was reserved by Git, such as ".git", was accepted and then blocked every later version snapshot of the wiki; invalid names are now refused on every write path.
- The problem
- The wiki keeps its change history with Git. Pages with names Git reserves, such as ".git" or the Windows short alias "git~1", were accepted, but Git refused them when recording the version, and the path stayed stuck in the queue, breaking every later snapshot. Meanwhile, batch writes from consolidation and approved improvement proposals skipped the check for names that don't work on Windows.
- What was done
- The valid-name rule now refuses Git-reserved names and applies on every write path: single pages, batch writes, proposal approvals, and the interfaces used by agents and administrators, which return a clear error. Version recording and the file watcher also skip these paths, and pages already stored remain readable so listings don't break.
- Value delivered
- Anyone relying on the wiki's version history no longer sees it stall because of a single bad name, and the rule that keeps a wiki usable on Windows now also covers what the system writes on its own.
-
#753merged Sep 18, 2026 Server tests stop competing for a limited machine resource Tests that start a real server only to check startup or shutdown were also turning on the wiki file watcher; they now switch it off, addressing the most likely cause of intermittent failures on macOS.
- The problem
- On macOS, the command-line test suite failed intermittently when run in parallel: each run broke different tests, all of which passed on their own. The maintainer's leading hypothesis was exhaustion of the operating system's file monitoring, which grows with the number of servers alive at once, and every one of these tests turned on the wiki watcher without needing it.
- What was done
- The servers started by these tests now use the product's existing option to switch off the file watcher, and each test checks in the server's own log that the watcher never started. The product default is unchanged, and the tests that do exercise the watcher are untouched. Since the failure never reproduced outside the original machine, the PR presents this as a mitigation, not a proven cure.
- Value delivered
- Contributors run a lighter, more isolated suite without losing any check: a reviewer measured five fewer open files and three fewer threads per test server, relief for the open-file limit that macOS keeps low by default.
-
#703merged Sep 10, 2026 Clean server shutdown under Docker, Linux services and Ctrl+C The server ignored the standard stop request from Docker and Linux service managers, or died without finishing work in progress; it now shuts down cleanly within five seconds.
- The problem
- The server did not handle the standard stop request sent by Docker and Linux service managers, and in one of its connection modes it did not even handle Ctrl+C. In containers the request was discarded: a stop waited out the whole grace period and ended in a forced kill, and in the reported case Ctrl+C did nothing. Outside containers, the process died on the spot and cut the end-of-session consolidation off midway.
- What was done
- Both connection modes now respond to Ctrl+C and to the standard stop request, listening from before startup finishes. Shutdown completes the work in progress, with a five-second cap on each wait so a stuck connection cannot hold the process open. Three new tests fail on the previous version; in manual checks the server exited in 58 and 10 milliseconds.
- Value delivered
- Anyone running the server under Docker can now restart and upgrade without waiting out the full grace period or forcing a kill, and work in progress finishes before exit. Containers also no longer need the helper process that used to be required just to pass the stop request along.
Knowledge base quality 35 PRs
-
#1955merged Nov 2, 2026 Profile scope reading loads every page without arbitrary truncation Profiles with over two hundred pages dropped categories and marked entries forgotten; the PR proposes loading all pages across the scope.
- The problem
- When starting sessions or listing cross-project profile guidelines, the system retrieves accumulated engineering habits and preferences. A hardcoded database query limit capped the result set at two hundred records ordered alphabetically by path. In established environments with larger rule sets, later categories were hidden from status screens and consolidation sweeps mistook the truncation for manual deletion, marking valid directives as forgotten.
- What was done
- The PR proposes removing the hardcoded row limit across profile harvesting, administrative listing, and session digest inputs to return the full set of scoped pages. Volume safety remains enforced downstream through existing byte size ceilings and line count thresholds during prompt rendering. Automated regression tests verify that scopes exceeding two hundred pages retain later category paths and load the full collection reliably.
- Value delivered
- Prevents silent loss of established rules across large profile collections and keeps session digests fully aligned with stored guidelines.
-
#1885merged Oct 31, 2026 Retrieval comparison harness evaluates ranking shifts per question Evaluation benchmarks only reported aggregate averages across releases; the PR proposes comparing ranking changes question by question.
- The problem
- The evaluation suite measures retrieval accuracy and context selection across each new server build. Published benchmark reports only tracked aggregate averages, making it hard to identify exactly which questions improved or lost ranking position. Furthermore, occasional search drops caused by embedding timeouts were indistinguishable from genuine ranking regressions.
- What was done
- The PR proposes a dedicated comparison command that pairs two saved reports and details ranking shifts across retrieval cutoffs for every question. The tool summarizes gains and losses across query types and flags questions whose output matched pure text search due to missing vector embeddings. Unit tests confirm change sorting by impact, exact text search matching, and backward compatibility with older benchmark formats.
- Value delivered
- Enables engineering teams to audit assistant response precision and diagnose ranking variations before deploying new releases.
-
#1860merged Oct 30, 2026 Page patching keeps trailing hash symbols in section headings Section headings ending in hash characters lost their trailing symbol in anchors; the patching tool now preserves exact names such as C# and F#.
- The problem
- The granular page patching tool inspects Markdown heading lines to compute section anchors and target content modifications. When parsing heading boundaries, the routine unconditionally stripped any trailing hash character, mistaking technical identifiers for closing syntax markers. As a result, headings covering languages such as C# had their anchors truncated, collided with similarly named topics, and rejected updates due to missing anchors.
- What was done
- The heading parser now strips trailing hash sequences only when preceded by a space or tab, adhering to CommonMark rules for closed ATX headings. Technical titles retain their full spelling across section listings, and newly appended sections preserve their intended text. A unit test verifies anchor resolution for technical topics and checks section insertion ending with hash symbols.
- Value delivered
- Ensures notes covering languages like C# and F# can be referenced and modified without section lookup errors or anchor collisions.
-
#1822merged Oct 29, 2026 Consolidation date filter supports singular time units Singular date cutoffs were ignored and traversed entire repository histories; the parser now recognizes days, weeks, and months with arithmetic bounds checks.
- The problem
- When initializing knowledge base documentation from git commit logs, the date filter only recognized plural terms. Common expressions such as one day, one week, or one month ago failed to parse and silently bypassed the time cutoff, forcing the tool to traverse every commit since repository creation and flood the consolidation context with obsolete changes. In addition, negative intervals or extremely large values could empty the results or trigger arithmetic overflow crashes.
- What was done
- The relative time parser now supports singular units alongside plural forms and adds week calculations, while trimming whitespace around input text. The logic rejects negative durations and uses checked arithmetic to prevent integer overflow. Unit tests confirm singular parsing, weekly intervals, negative number rejection, and overflow protection.
- Value delivered
- Prevents scanning thousands of irrelevant historic commits and ensures precise time windows during knowledge base bootstrapping.
-
#1660merged Oct 24, 2026 Contribution guides point feature submissions to the active release branch Contributor instructions and the pull request template pointed to an older branch; the PR proposes directing feature submissions to the current release branch.
- The problem
- When development of ai-memory advanced to the next version cycle, contributor guidelines and the standard pull request template still referenced the previous release branch. External contributors checking guidelines or verifying existing commits risked targeting their feature submissions against a dormant branch rather than the active feature stream.
- What was done
- The PR proposes updating the contributing guide and the pull request checklist template to explicitly reference the active 3.3 release branch. This change ensures that documentation and contributor templates match the current repository branch architecture.
- Value delivered
- Prevents misdirected feature submissions and ensures external contributors build on the active development branch.
-
#1426merged Oct 18, 2026 Project and workspace summaries omit expired pages Project and workspace listings counted expired notes in page totals and last-updated timestamps; summaries now reflect active content only.
- The problem
- Web interface home views and summary endpoints display the total page count and last modification timestamp for each project and workspace. Those aggregates counted any latest page in the database, including notes whose expiration time had elapsed, distorting active size and activity indicators.
- What was done
- Counting and timestamp aggregation queries were updated with expiration filters to reflect valid pages only. New tests in the backend and web layers verify that projects with expired notes report zero pages and leave timestamps unaffected.
- Value delivered
- Dashboards and overview listings present accurate counts of the working knowledge base without inflation from lapsed records.
-
#1423merged Oct 18, 2026 Memory health checks ignore expired notes Memory health checks treated expired pages as stale notes, duplicate titles and orphans; it now ignores them across all health tallies.
- The problem
- The knowledge base health query surfaces episodic pages unupdated for over 30 days, duplicate titles and orphan pages without incoming or outgoing links. Pages past their expiration date entered all three tallies, cluttering health diagnostics with temporary notes already awaiting automatic cleanup.
- What was done
- Health count and detail queries now filter out expired pages across project and workspace scopes. Dedicated tests confirm that expired notes are never counted as stale, duplicate or orphan.
- Value delivered
- Memory health reports focus attention on active notes that genuinely need curation or reorganization.
-
#1422merged Oct 18, 2026 Cross-project link metrics ignore expired pages Cross-project link counting included expired pages as active dependencies; the metric now considers unexpired pages only.
- The problem
- The project summary computes how many other projects depend on it and how many it depends on by tallying links across pages. That calculation only checked whether pages were the latest revision, without evaluating time to live. Links originating from or targeting expired pages continued inflating cross-project metrics even after their validity lapsed.
- What was done
- The database query now filters by expiration timestamp on both source and target pages, considering links between live notes only. New automated tests verify that expired pages with cross-project links do not alter dependency counts in the summary.
- Value delivered
- Cross-project architecture metrics reflect the active knowledge base without distortion from expired temporary notes.
-
#1390merged Oct 17, 2026 Audit no longer suggests moving expired rules into project instructions The wiki audit assessed expired pages like any other: it flagged old notes, duplicate titles and contradictions involving them and suggested copying expired rules into the project instructions; it now leaves them out of these checks.
- The problem
- The audit scans the wiki for old session notes nobody ever opened, rules worth copying into the project's instruction files (such as CLAUDE.md and AGENTS.md), duplicate titles and contradictions between pages, detected by similarity or by a language model. Pages past their expiry date entered every one of these checks: the audit could suggest moving an expired rule into the project instructions, and it spent its comparison budget on pages waiting for cleanup.
- What was done
- Each of these checks now skips pages whose expiry has passed, while pages that expire in the future are still assessed as usual. New tests confirm that an expired old note, rule and duplicate title raise no alert, that the exact moment of expiry already counts as expired and that the contradiction search ignores expired pages.
- Value delivered
- The agents' instruction files stop receiving suggestions based on rules that have lapsed, and the audit spends its analysis effort on knowledge still in use.
-
#1389merged Oct 17, 2026 Curator report stops listing pages that have already expired The curator report included expired pages among removal candidates, idle context pages and duplicate titles; it now ignores them, since the cleanup will delete them anyway.
- The problem
- The curator report predicts what the periodic cleanup will remove and points out maintenance opportunities, such as rarely used notes from old sessions, idle context pages and duplicate titles. Pages past their expiry date entered all three lists, even though the cleanup deletes them for expiring, not for low use. The report therefore mispredicted what would be removed, flagged context pages that were about to disappear and reported as duplicated a title that only collided with an expired page.
- What was done
- The report now skips expired pages when weighing removal candidates and uses, for context pages and titles, the same listing without expired pages that the web interface uses. A new test sets up an old, expired session note with the same title as a live page, plus an expired context page, and checks that none of the three alerts appears.
- Value delivered
- Anyone using the report to plan wiki maintenance now sees only what actually needs a decision, and the forecast of what the cleanup will remove matches what it does again.
-
#1388merged Oct 17, 2026 Audit stops asking to review pages that have already expired Flags marking a page as stale or wrong stayed in the audit even after the page expired, asking for fixes to content about to be deleted; only current pages make the list now.
- The problem
- Agents and users can flag a wiki page as stale or wrong, and the audit lists these open flags so the page gets reviewed. The audit query only looked at the page's current version, without checking its expiry date. An expired page, already out of search and waiting for the periodic cleanup that will delete it, kept showing up in the audit with a request to update or fix it.
- What was done
- The query now applies the same expiry filter as other reads, so flags on expired pages no longer enter the list. Flags on current pages are listed as before. A new test records flags on an expired page and on a live one and checks that only the live one appears.
- Value delivered
- The review work the audit points to now focuses on content still in use, with no effort spent fixing pages that will disappear on their own.
-
#1387merged Oct 17, 2026 Consolidation no longer creates new links to already expired pages When saving a session's results, consolidation's link check accepted an expired page as existing and kept links to it, which would soon become broken links; expired pages now count as nonexistent.
- The problem
- Before saving the pages consolidation generates from a session, ai-memory checks whether each proposed link and relation points to a page that exists, in the same project or another. The query used for this check treated as existing a page past its expiry date, which the next periodic cleanup will delete. Consolidation kept those links, and subsequent audits started reporting broken links and relations with no target.
- What was done
- The check now disregards expired pages, with the same expiry filter as other reads, and a link or relation to one gets the same treatment as a missing target. A new test checks that, among the queried paths, the expired page is left out and the one with a future expiry stays.
- Value delivered
- The wiki no longer starts out with doomed links: what consolidation saves points to pages that will keep existing, and later audits do not inherit those broken links.
-
#1386merged Oct 17, 2026 A contradiction with an expired page no longer lowers search confidence A page that declared it contradicted an already expired page kept losing confidence in search ranking, as if the conflict were active; only contradictions with current pages count now.
- The problem
- ai-memory gives each page a confidence level, worked out from the evidence behind it and used in search ranking and in the explanation of results. A declared contradiction with another current page lowers that confidence, but a contradiction with a page that has left circulation should not count, a rule the audit already followed. The calculation discarded deleted targets but not expired ones, so a page lost ground in search for disagreeing with content that had already expired.
- What was done
- The calculation now counts only contradictions whose target is the current, unexpired version of a page, matching the split between active conflict and stale declaration the audit already made. A new test compares a contradiction with an expired page and another with a page that expires in the future, and checks the count and the confidence shown in the search explanation.
- Value delivered
- Search ranking stops demoting pages over conflicts that no longer exist, and agents get the knowledge that actually deserves trust first.
-
#1373merged Oct 17, 2026 The terminal command that reads a page now says when it expired The read-page terminal command and the admin route behind it showed expired pages just like live ones; they now state that the page has expired, both in text and in JSON output.
- The problem
- Besides the tool agents use, ai-memory has a terminal command that reads a page by path through an admin route on the server. Since a direct read keeps returning pages past their expiry date until the periodic cleanup, this path also needed to say when the page had expired. The command, however, displayed the expired page exactly like a live one, and the JSON output only carried the raw date, which a script would have to compare on its own.
- What was done
- The admin route now flags the expired page, both when reading the file and when serving the copy kept in the database, and the command prints an expired line right below the path, with the same field in the JSON output. Live pages print as before, and a server from an earlier version, without the field, is read as live. A new test reads through the route an expired page, one with a future expiry and an expired one with no file, and checks that only the expired ones carry the flag.
- Value delivered
- Anyone reading pages from the terminal or automating reads in scripts gets the same warning as agents and the web interface, and does not take content about to be deleted for current.
-
#1372merged Oct 17, 2026 Expired pages get an expired badge in the web interface Anyone opening an expired page in the web interface through its address or its history saw it just like a live page; an expired badge now appears next to the page's other labels.
- The problem
- A page past its expiry date disappears from search and listings but stays reachable at its own address until the periodic cleanup deletes it. The system already worked out whether the page being read had expired, but the page view in the web interface ignored that. Anyone reaching it through a saved link or the history saw the content exactly like a live page, unaware it had already left circulation and would be deleted in the next cleanup.
- What was done
- The page's metadata row now shows an expired badge next to the tier, kind and pin labels, reusing the pinned badge's look so the stylesheet does not change. Live pages display exactly as before, and the usage documentation mentions the badge. A new test opens an expired page and one with a future expiry and checks that only the first carries the badge.
- Value delivered
- People browsing the wiki in the web interface know right away that they are reading content about to be deleted, and do not mistake it for current information.
-
#1371merged Oct 17, 2026 An agent reading an expired page now learns it has expired The tool agents use to read a page by path returned expired pages just like live ones, with no warning; the response now flags the page as expired, as the project intended.
- The problem
- Once a page passes its expiry date, search, the recent list and the session-start briefing stop showing it, but a read by exact path still returns the page, because an explicit request is not a search. The project intended that response to be flagged as expired, but the agents' read tool returned the page just like a live one. The only trace was the raw date in the metadata, which the agent would have to interpret on its own.
- What was done
- The tool's response now flags the page as expired once its date has passed, both when reading the file and when serving the copy kept in the database, used when the file goes missing. For live pages the response is identical to before, and the documentation records the new field. A new test reads an expired page, one with a future expiry and an expired one with no file, and checks that only the expired ones carry the flag.
- Value delivered
- Agents no longer treat as current content that has already left circulation and is only waiting for cleanup, and can warn the user or look for a current version before acting on it.
-
#1369merged Oct 17, 2026 Expired pages also leave the web interface listings The project tree, the recent activity list, folder listings and the API page list kept showing pages past their expiry date; they now hide them, as search already did.
- The problem
- A page past its expiry date should disappear from search, the recent list and the session-start briefing until the periodic cleanup deletes it, and only a read by its exact address still returns it. The web interface and API listings were left out of that rule: the project tree, recent activity, folder listings and the page list kept showing the page. The same recent endpoint even showed it in one query form and hid it in the other.
- What was done
- The listings shown to readers now use a query with the same expiry filter as search. The full listing remains available where every current page is needed, such as moving a project, which copies expired pages too so they are not lost. Opening an expired page by its exact address still works, and new tests check each listing and the direct read.
- Value delivered
- What the web interface and the API list now matches what search and agents see, and content marked to leave circulation no longer resurfaces through a side screen.
-
#1368merged Oct 17, 2026 Broken links between projects no longer go unnoticed A link to a page in another project that was later deleted or expired passed as valid in the audit and the curator report; it is now flagged as a broken dependency, and expired pages no longer raise this alert.
- The problem
- A page can depend on a page in another project through a link, and the wiki audit and the curator report warn when that target does not exist, a sign of a broken dependency. The check only caught links that never had a target; the target recorded at write time stays in place after the page is taken out of circulation or expires, so links to deleted or expired pages passed as valid. Expired source pages, on the other hand, kept raising alerts.
- What was done
- The query now treats as broken every cross-project link whose target is not the current, unexpired version of a page, and it ignores expired source pages, like the other link queries. Tests cover live, future-expiry, removed, expired and missing targets, a missing project and an expired source, and a curator report test checks the alert when the target page is taken out of circulation.
- Value delivered
- Anyone keeping several projects in the same memory learns from the audit when a page they depend on was retired in another project, instead of trusting a link that leads nowhere.
-
#1367merged Oct 17, 2026 Audit no longer asks to reconcile with a deleted or expired page When a page declared it contradicted another that was later removed or expired, the wiki audit still flagged an active conflict to resolve; it now reports the declaration as stale, and expired pages no longer raise this alert.
- The problem
- A wiki page can declare that it contradicts another, and the audit handles this in two ways: if the target exists, it asks for the two to be reconciled; if not, it warns that the declaration is stale. The audit decided based only on the target recorded at write time, which stays in place after the target page is taken out of circulation or expires, so it asked for reconciliation with pages that no longer existed. Expired source pages also kept raising these alerts.
- What was done
- The query now treats a contradiction as resolved only when its target is the current, unexpired version of a page, and it ignores expired source pages, as the other link queries already did. Tests cover live, removed, expired, future-expiry and missing targets, plus an expired source, and an audit test checks the stale-declaration warning when the target is taken out of circulation.
- Value delivered
- The audit's conflict list now carries only real contradictions between current pages, and review time is no longer wasted on pages that have already left the wiki.
-
#1366merged Oct 17, 2026 Page relations keep only targets that exist as pages Consolidation wrote relations into page metadata pointing at titles, folders or empty names, and the wiki watcher complained about them every 30 seconds; only valid targets are written now.
- The problem
- During consolidation, the language model can state relations between pages, such as one that fixes, causes or contradicts another, recorded in the page metadata. When the stated target was not a page, such as a title with dots (3.0.0 to 3.1.0), a folder or a nameless .md, it was written anyway, and the relation cleanup let exactly those cases through. With the invalid target in the file, the wiki watcher, which rereads files every 30 seconds, repeated the same warning on every pass.
- What was done
- Before entering the metadata, each target is now checked against the same rule the wiki uses to read relations, and a relation type left with no valid target is omitted. The relation cleanup also discards entries that match no page. New tests mix titles, folders, empty names and paths outside the wiki with one valid target and check that only the valid one remains.
- Value delivered
- Page metadata keeps only relations that lead somewhere, and the server log stops repeating the same warning every 30 seconds.
-
#1364merged Oct 17, 2026 Folder links no longer turn into broken links in the web interface In the web interface, an internal link pointing to a folder or to an empty name became a clickable link that led to a page-not-found error; it now stays as plain text, as the rest of the wiki already treated it.
- The problem
- The ai-memory wiki uses internal links in double brackets, and the web interface turns each one into a clickable link to the target page. A link ending in a slash, which points to a folder, or holding only the .md extension with no page name was converted too, into an address that never exists. Clicking it led to a page-not-found error, even though the rest of the wiki already discarded these links as invalid targets.
- What was done
- The web interface now rejects these two formats before building the link and shows them as the original text, matching the rule the wiki already applies when extracting links. Links to valid pages are converted as before. A new test checks that a folder link, a nameless link, a folder link into another project and a labeled folder link all stay as text.
- Value delivered
- People browsing the wiki in the web interface no longer run into links that go nowhere, and the screen now shows as links exactly what the wiki considers valid.
-
#1316merged Oct 15, 2026 Auto-improve no longer rewrites sections the reviewer never saw A code example containing a different kind of block marker made auto-improve lose track of the following sections and replace more text than the review showed; a block now closes only on the right marker.
- The problem
- Auto-improve proposes changes to rule and procedure pages section by section, finding each section by its heading. To avoid mistaking headings that appear inside code examples, it skips code blocks, but it ended a block at any marker line, even one of a different kind or shorter than the opening one. An example with a different marker inside, such as an embedded script, hid the headings that followed, and replacing one section also replaced the ones after it.
- What was done
- The section reader now remembers which marker opened the block and closes it only on a matching one, made of the same character and at least as long, the CommonMark rule ai-memory already used when extracting links. The proposal format is unchanged. A new test covers a tilde block containing a line of backticks and a long fence containing a shorter one, and checks that the next heading is found and the one inside the code is not.
- Value delivered
- Approving an improvement proposal once again changes only the reviewed section, without wiping out parts of rules and procedures the reviewer never even saw.
-
#1315merged Oct 15, 2026 One invalid path no longer sinks every page in a consolidation When the model suggested a page whose path could not be repaired, the whole session's consolidation failed and the valid pages in the same answer were lost; now only the invalid page is dropped, with a warning.
- The problem
- During consolidation, ai-memory asks a language model to turn what happened in a session into wiki pages, and a single answer can carry several pages. Paths with forbidden characters were already repaired, but a path starting with a slash, containing . or .. segments, or with an empty folder could not be fixed and made the whole session's consolidation fail. One such page was enough for none of the others, valid as they were, to be written.
- What was done
- A page whose path cannot be repaired is now skipped with a warning in the log, and the remaining pages of the answer are written as usual, as already happened with paths that failed the portability check. Storage, wiki and model failures still stop the consolidation. A new test sends three invalid paths and one valid path and checks that only the valid page is written.
- Value delivered
- A one-off model mistake no longer costs the entire summary of a session: the valid knowledge reaches the wiki, and the dropped page is flagged in the log.
-
#1314merged Oct 15, 2026 Stale current-focus warning no longer arrives three weeks late With context pages split per user, the curator report only flagged an idle current focus after 30 days instead of 7; each user's focus now gets the same deadline as the shared one.
- The problem
- ai-memory keeps fixed context pages, such as the current focus page that sums up what is being worked on right now, and the curator report warns when they go stale: after 7 days for the current focus and 30 for the others. When an installation splits these pages per user, each person's focus lives in its own folder, and the check only recognized the shared path. Each user's focus therefore fell under the 30-day deadline, and an abandoned focus was flagged three weeks later than intended.
- What was done
- The check now recognizes the current focus page both at the shared path and in each user's folder, using the same naming rule the rest of the system already applies to these pages. Other per-user pages keep the 30-day deadline. A new test ages the focus page and another page of the same user by 8 days and checks that only the focus is flagged, with the 7-day deadline.
- Value delivered
- On installations with per-user context pages, a stale current focus is flagged within a week again, not only after a month, just as it already was for the shared focus.
-
#1192merged Oct 9, 2026 Review queue free of out-of-scale confidence scores An improvement suggestion where the model gave its confidence as a percentage passed the filter, showed up as 8500% and jumped to the top of the review queue; values outside 0 to 1 are now rejected.
- The problem
- Auto-improvement asks a language model for proposals to improve the knowledge base, each with a confidence score from 0 to 1; those below a minimum are discarded and the rest go to review. Nothing blocked values above 1: a model that answered in percent (85 instead of 0.85) cleared the minimum, showed up as 8500% and went to the top of the confidence ranking. An invalid value that is not even a number also got through.
- What was done
- Proposals with a confidence outside the 0 to 1 range are now rejected with a dedicated reason and recorded alongside the other rejected ones, so the next review sees why. The value is rejected, not adjusted: guessing whether 85 meant 85% would turn a malformed answer into a trusted score. Proposals already in the queue are left untouched.
- Value delivered
- Reviewers no longer see a proposal with an absurd score at the top of the queue, and a badly formatted model answer does not become a high score. Sorting by confidence now compares only valid values.
-
#1191merged Oct 9, 2026 Rules in Cyrillic, Chinese or Arabic no longer overwrite each other Every rule titled entirely in non-Latin characters, such as Cyrillic, Chinese or Arabic, went to the same page and replaced the previous one; each now gets its own stable name derived from the title.
- The problem
- During consolidation, each project rule becomes a page named after its title, using only Latin letters and digits. A title in Cyrillic, Chinese, Arabic or Greek produced no name at all and fell back to a fixed name shared by all of them. Within one batch, the last rule overwrote the others; across sessions, each new rule replaced the previous one, and only one showed up in the rules list displayed at the start of every session.
- What was done
- These rules now get their own name, with a short code computed from the title. The name is stable between runs, so a restated rule updates its own page, and two ways of writing the same accented character lead to the same name. Titles in the Latin alphabet keep their existing names.
- Value delivered
- Projects that record rules in Russian, Chinese, Arabic, Greek and other languages with non-Latin scripts now keep all of them active at session start, not just the most recent one.
-
#1141merged Oct 8, 2026 Expired pages also disappear from links and related pages Pages past their expiration date already left search results but still appeared in the web interface's link panel and in the related-pages list given to agents; now they disappear there too.
- The problem
- ai-memory lets pages be saved with an expiration date; after it, the page disappears from search, the recent list and the session-start summary. Two queries were left out: the web interface's link panel and the related-pages list an agent receives when it reads a page. There, an expired page kept appearing and still served as a bridge to reach other pages.
- What was done
- Both queries now apply the same validity filter as search: an expired page is no longer shown and is not used as a path to reach others. Opening an expired page directly by its address still works, on purpose, with a note that it has expired. Tests build live, expired and future-dated pages and check each case.
- Value delivered
- The expiration date now also holds when navigating through links: content marked for retirement no longer reaches agents through a side door, just as it already stayed out of search.
-
#1111merged Oct 6, 2026 Clean session record titles, Windows included On Windows, captured record titles could keep an invisible character at the end, and some event types kept multi-line titles; now every title is a single clean line.
- The problem
- ai-memory uses the first line of each request sent to the agent as the record's title. The rule only recognized the Linux and macOS line ending, so on Windows an invisible character was left at the end of the title and could reach the session title and the search index. Titles for session starts, notifications and the summaries produced when the agent compacts a conversation skipped this rule entirely and could keep line breaks.
- What was done
- All of these events now use the same first-line rule, which recognizes the Windows line ending as well as the Linux and macOS one. When the first line is empty, no title is suggested and the system falls back to the event's default title instead of storing a blank one. The tests cover requests with Windows line endings and the three event types that were previously left out.
- Value delivered
- Windows users get session and record titles that match those on other systems, with no hidden character going into the search index. Notifications and summaries also get single-line titles, as requests already did.
-
#1110merged Oct 6, 2026 No false wiki links from local-file and script addresses Addresses pointing to files on the computer or to scripts were read by the wiki as links to another project; they now follow the same blocking rule the web interface already applied.
- The problem
- The ai-memory web interface already treated addresses starting with file: (files on the computer) and vbscript: (scripts) as unsafe and displayed them as plain text. The wiki's link indexer did not recognize them: it read the prefix ("file", for example) as the name of another project and recorded a false link to it. The wiki's link index and export disagreed with what the page actually showed.
- What was done
- Both checks that identify wiki links now refuse these two prefixes, matching the list of blocked addresses used by the web interface. Both had to change, because fixing only one would still record the link to the "file" project. A new test covers both link formats the wiki accepts, including an address that points to a system file.
- Value delivered
- The wiki's link map, used for navigating between pages and for export, no longer picks up false links between projects. There is now a single rule for which addresses count as links, in indexing, export and display alike.
-
#1108merged Oct 6, 2026 No more duplicated page titles in files coming from Windows Pages whose title was underlined with equals signs and that used Windows line endings showed the title twice in the web interface; the duplicate is now removed in these cases too.
- The problem
- The web interface shows the page title in the header and removes the repeated title from the start of the text. For titles underlined with equals signs, one of the ways to write headings in Markdown, this failed in three cases: files with Windows-style line endings, an underline with trailing spaces, and a file ending right after the underline.
- What was done
- The check now ignores the extra character in Windows line endings and any spaces or tabs at the end of the underline, and it handles a file that ends on the underline line itself, as the other heading style already did. New tests cover all three cases.
- Value delivered
- Anyone working with the wiki on Windows sees pages with the same clean look as the rest, with no repeated title at the top.
-
#1105merged Oct 6, 2026 Section links scroll to the right spot in the web interface Headings on web interface pages had no identifier, so a link to a section opened the top of the page; every heading now has an address of its own.
- The problem
- Even after links started preserving the section reference (PR #1089), the web interface displayed page headings without identifiers. With no target, the browser had nowhere to scroll, and a link to a section opened the top of the page.
- What was done
- Every heading now gets a readable identifier derived from its own text: lowercase, without punctuation, with hyphens in place of spaces. Repeated headings on the same page get numeric suffixes so they don't collide, empty headings get a default name, and identifiers already set by the author are kept.
- Value delivered
- Completes the section navigation started in PR #1089: anyone following a wiki link or a shared address lands straight on the right part of the page.
-
#1089merged Oct 4, 2026 Links to a specific section keep their destination Wiki links pointing to a section of another page lost the section reference when displayed or exported; the full address is now preserved.
- The problem
- The wiki accepts internal links that point to a specific section of another page, a standard wiki notation. Both in the web interface and when the wiki was exported to files, the part naming the section was dropped, and the link only led to the top of the page.
- What was done
- Both link conversions now split off the section reference, along with any address parameters, before locating the page, then put it back on the final address. Links without a section and links to a section of the same page work as before, and the index still points to the right page.
- Value delivered
- People browsing the knowledge base land directly on the cited section, such as the context of a decision, and exported bundles keep the same precise references.
-
#1064merged Oct 3, 2026 Links to global pages work from any workspace Links to the pages shared by every project broke when written outside the default workspace; they now always point to the right place, and old ones are fixed when the global page is next saved.
- The problem
- ai-memory reserves a space for global pages, readable from every project, that lives in the default workspace. A link to one of those pages written in a project from another workspace was looked up in the source workspace: in the web interface it led to an address that did not exist, and in the map of relationships between pages it had no target. Since the consolidator's own instructions produce this kind of link, the system was writing links it could not resolve.
- What was done
- Links to the global space now always point to its fixed home in the default workspace, wherever they come from, both in the index and in the web interface. Other link forms, including those that name a workspace explicitly, are unchanged. Old links stored in the broken form are fixed the next time the global page is saved.
- Value delivered
- For anyone who organizes work across more than one workspace, shared rules and preferences become reachable through the links the system itself writes. Nothing new is exposed, since global pages were already readable from every project.
-
#985merged Sep 30, 2026 Wiki links that no longer vanish or lead to missing pages Links in common technical-documentation cases vanished, turned into false links or led to missing pages; link reading now follows the standard Markdown specification.
- The problem
- Link reading failed in common cases. A code block opened with a longer or different marker was closed too early, so code lines became links while the text after it was treated as code. Addresses with parentheses, such as Wikipedia links, were cut short and dropped, relative links starting with "./" returned page-not-found in the web interface, and export produced invalid links to pages with spaces in their names.
- What was done
- Link reading now follows the standard Markdown specification: a code block only closes with the same kind and length of marker that opened it, balanced parentheses and addresses wrapped in < and > are recognized, addresses with spaces are exported inside those signs, and the "./" prefix is removed before opening the page. Each case got a test that keeps the problem from coming back.
- Value delivered
- For anyone who writes and reads the wiki, links stop disappearing from the map of relationships between pages, exports produce files other Markdown tools accept, and clicking a relative link in the web interface opens the right page.
-
#926merged Sep 27, 2026 Every session page gets its own title in the wiki Similar sessions produced pages with the same generic title; each session page now gets a name of its own, without eating into the room the model needs for the session's content.
- The problem
- Repeated, near-identical runs, such as Grok Build ones, produced session pages with the same generic title (for example, "Adversarial Verification"), and the wiki audit flagged duplicate titles. Adding more instructions for the model was not enough on its own: at the smallest input limit the configuration accepts, the extra text left the model with no session observations to summarize.
- What was done
- The instructions gained two short lines asking for a title specific to the session, and the list of titles already in use, capped at 15, is sent only when the project has any. As a final safeguard, a title that still matches an existing one, ignoring case and extra spaces, gets a suffix with the session's short identifier when it is written. Tests confirm the session content still reaches the model even at the minimum limit.
- Value delivered
- People browsing the project wiki find each session by its own name and the audit stops flagging duplicates, without the fix degrading summaries: the model keeps receiving the session content even on the leanest configuration.
Other merged PRs 8 PRs
Not yet described in detail on this page; the title is the one on GitHub.
- #2440 merged Nov 23, 2026 fix(store): re-index Arabic text stored before the Arabic search terms
- #2438 merged Nov 23, 2026 fix(hooks): let a stuck directory hold one cwd probe permit, not all four
- #2400 merged Nov 22, 2026 fix(store): give a merge-project collision the less trusted head's trust class
- #2395 merged Nov 19, 2026 test: add the trust_class field to four release/3.6 test literals
- #2393 merged Nov 19, 2026 fix(wiki): keep reindex from stamping rebuilt pages operator_authored
- #2367 merged Nov 19, 2026 fix(hooks): drop Claude Code Code Mode results delivered as prompts
- #2359 merged Nov 17, 2026 docs: describe the 300s reconcile pass left at 30s after #2337
- #2357 merged Nov 17, 2026 fix(store): keep the message-list cursor's place once its message is consumed
Other PRs under review 1 PR
Not yet described in detail on this page; the title is the one on GitHub.
- #2468 opened Nov 24, 2026 fix(cli): honor GROK_HOME and KIRO_HOME in agent backup and restore
Figures updated on Nov 24, 2026.
The same care in your system
The habits behind these PRs carry over to backends that move money: reproduce the problem before fixing it, prove the fix with a test and keep sensitive data from leaking.