Repository navigation
agent86 v1.0.22
You can now see what agent86 has remembered, one fact or episode at a time, keep the ones that matter from ever being pruned, and delete the ones that are wrong, from the terminal or from an editor or client over ACP.
Memory you can list, pin, and forget
- List.
agent86 memory listshows the stored facts (what the agent keeps withremember), newest first, with their ids.--episodeslists episodes instead: one per finished turn, with its session, task, and outcome, which agent86 recalls into similar later tasks.--pinnedshows only pinned entries, and-nsets how many to show (20 by default, negative for all). - Pin.
agent86 memory pin <id>keeps a fact from ever being removed byagent86 memory pruneor by the retention limits applied at startup, andunpinundoes it. Add--episodefor an episode's id; facts and episodes are numbered separately. Pinned entries don't count toward--keep-lastor[memory] retention_max_episodes. - Forget.
agent86 memory forget <id>deletes a fact as before, and--episodenow deletes an episode, so a bad outcome stops being recalled into later tasks. - Shared with Python. Pins are kept in a table of agent86's own in the memory database, and the facts, episodes, and sessions themselves are unchanged, so the Python implementation still reads the database. Python doesn't know about pins, though, so its own pruning still removes pinned entries.
Memory in editors and clients
- Clients such as agent86-web can list, pin, unpin, and forget the same facts and episodes for an open session, through three new ACP extension methods. Text from the session's secret vault comes back as
${secret:NAME}, as everywhere else a client sees.
For client authors
initializenow listsagentCapabilities._meta["com.maetek.agent86/memory"] = {"version": 1}.- The methods are
_com.maetek.agent86/memory/list(paged withlimitandcursor),_com.maetek.agent86/memory/pin, and_com.maetek.agent86/memory/forget. They are requests the client makes when it wants to, so no client capability is needed, and other clients see no change apart from the advertisement. The format is described in the ACP guide.
agent86 run, the terminal interface, and the existing memory commands behave as before.