Repository navigation
Memory: a skill and a ~/.agent/memory script for facts later agents read - #104
Conversation
Agents had no shared place for what they learn: decisions, the person's preferences, traps. The coordinator suggested AGENTS.md lines, which a task's worktree sees only once committed. Facts are one Markdown file each, with front matter, in ~/.agents/memory (the person's) and ~/.agents/memory/projects/NAME (a project's, outside the checkout so the lead and every worktree share one copy). Each folder's MEMORY.md is generated from the front matter and held to 4 KiB. ~/.agent/memory, written by the app like ~/.agent/trigger, saves, removes, indexes and checks them under the folder's lock; without a scope it finds the project from the folder, a task's worktree included. The app ships a memory skill saying what to read, verify and save, and the coordinator's role saves lasting findings there. No daemon change. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019xtP72bEUJnpaJshaUzKwG
|
You have reached your Codex usage limits for security reviews. Please try again later. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1de179d602
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…hout changing anything The skill told agents to read ~/.agents/memory paths with the read tool, which expands no ~ and cannot find a worktree's project. show prints both indexes with absolute folders. rm reads the folder before deleting, index refuses a rebuild past 4 KiB, and stdin past 4 KiB is refused, not cut. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019xtP72bEUJnpaJshaUzKwG
|
You have reached your Codex usage limits for security reviews. Please try again later. |
1 similar comment
|
You have reached your Codex usage limits for security reviews. Please try again later. |
|
@codex review 8368637 fixes 4 findings: Checks:
Generated by Claude Code |
|
You have reached your Codex usage limits for security reviews. Please try again later. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0c9c020e24
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…on's memory Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019xtP72bEUJnpaJshaUzKwG
|
You have reached your Codex usage limits for security reviews. Please try again later. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9a8af60e30
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Before: agents had no shared place for what they learn, such as decisions, your preferences, and traps. The coordinator suggested AGENTS.md lines for anything lasting. A task's worktree starts at the last commit, so it never saw an uncommitted line.
After: each fact is one small Markdown file that later agents read.
~/.agents/memory.~/.agents/memory/projects/NAME. That folder is outside the checkout, so the lead and every task's worktree share one copy whether or not it is committed.MEMORY.mdis an index generated from the facts and held to 4 KiB, so reading it before work stays cheap.memoryskill. It tells agents to runmemory showfirst, says what to check before relying on a fact, and what to save.--userwhen they hold across projects, otherwise to the project's. It keeps AGENTS.md suggestions for rules every agent and collaborator must follow.This is M1 of the shipping plan. You haven't answered decision #6 yet, so this PR takes the recommended picks:
Pick (c), nightly cleanup, is not in this PR. It comes with the consolidation step.
How:
app/src-tauri/src/memory.rsaddsagent-app --memory show|save|rm|index|check. The app writes~/.agent/memoryat each start, the same way it writes~/.agent/trigger.showprints both indexes with their folders' absolute paths. The nativereadtool doesn't expand~, and a task's worktree may not know its project.name,description,type(user, feedback, project or reference),source, andverified(today's date when saved). It is at most 4 KiB.File::lock), so two agents saving at once can't leave an index missing one of them.memory_full)fact_too_large).mdfile that isn't a valid fact is named in amemory_invaliderror rather than left out of the index silently.rmchecks the folder before it deletes anything."duplicate": true.--useror--project NAME, the project comes from the working folder. In a task's worktree,git rev-parse --git-common-dir --show-prefixmaps the folder to the same place in the main checkout. From there the script uses the nearest.agents/project.toml.{"error", "detail"}object on stderr with exit 1, matching API_DESIGN.md and the trigger script.app/skills/memory/SKILL.mdskill is bundled and linked by the existing skill installer. The release check now also tests for it, and docs/APP.md has a new Memory section.Performance: nothing runs on a hot path. A save lists at most 1,024 entries in one folder, and runs one
gitprocess only when no scope is given. Memory adds nothing to an agent's prompt until it reads the index. Putting the index into instructions at creation is M2.Declined and deferred review findings are in #108: hand-edited files, hostile input, remote hosts, and unusual git layouts.
Checks:
cargo fmt --checkandcargo clippy --workspace --all-targets -D warningsare clean.cargo test --workspacepasses except for two tests:remote::tests::no_ssh_config_changes_what_the_app_forcesalso fails on main in this Linux container.This change has nothing visible to screenshot: it is a script and a skill.
🤖 Generated with Claude Code