Repository navigation
Memory: a new agent starts with the person's and its project's memory indexes (M2) - #120
Conversation
… indexes The shared composer takes the memory indexes a client names and puts each in as it is, after the skills and profiles indexes and before the role. The app names the person's index and, in a project, the project's, so a task no longer needs a first show. The project lookup runs git only when no project file is found above the folder. Also fixes main's app test build: watch.rs's test trigger lacked turn_budget_tokens. 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: bc0991f931
ℹ️ 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".
The client now finds the memory indexes itself, so the CLI's --agents (how a coordinator starts its tasks) composes them like the app does. The project is found at the main checkout's place first, from the worktree's .git and commondir files, so a task never takes a branch's copy of the project file and composing spawns no git. A memory index behind a link to a missing folder fails composition instead of being skipped. 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. |
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019xtP72bEUJnpaJshaUzKwG
Before: a new agent knew about memory only through the
memoryskill. It had to run~/.agent/memory showbefore it could see what earlier agents had saved.After: a new agent's instructions already carry both indexes, after the skills and profiles indexes and before its role:
~/.agents/memory/MEMORY.mdThis holds for agents the app creates and for those an agent creates with
agent run --new --agents, such as a coordinator's tasks. The skill now says to runshowonly when that section is missing or old.This is M2 of the shipping plan.
The eval did not run. Decision #7 (run the memory eval on your Mac with real models) is unanswered, and the run needs your word and your Mac, so nothing was measured. This PR builds the composition the memory notes recommend, and the eval can still run against it. If the eval shows on-demand
showdoing as well, this change is easy to revert.How:
client/src/policy.rs. Shared by the app and the CLI.memory_indexes(workspace)returns the person's index, plus the project's whenproject(workspace)finds one.instructions(workspace, role, memory)composes those indexes as they are, since an index carries its own# Memory in DIRheading.appendhelper.project(dir)reads thenamein the nearest.agents/project.toml. In a git worktree it looks first at the same place in the main checkout, so a branch's copy of the file never wins..gitandcommondirfiles rather than by running git, so composing spawns no process.git rev-parse.tomldependency (0.9). It is already in the lock through the app.composeand the CLI's--agents/--profilecomposition both passmemory_indexes.For M3 (memory panel and "memory changed" lines, now in the rich rendering thread): this PR doesn't change the index format, the folders, or what the script writes. Two things affect M3:
agent_client::policy::memory_indexes(workspace)andpolicy::project(dir)are the one place that resolves which index files apply to a folder, so M3 can use them.Also in this PR: main's app tests didn't build, because the test trigger in
trigger/watch.rslacked theturn_budget_tokensfield that #118 added. One line addsturn_budget_tokens: None.Declined review findings are logged in #108.
Checks:
cargo fmt --checkandcargo clippy --workspace --all-targets -D warningsare clean.cargo test --workspacepasses exceptremote::tests::no_ssh_config_changes_what_the_app_forces, which also fails on main in this Linux container.Nothing visible to screenshot: this changes the text a new agent is given.
🤖 Generated with Claude Code