Grok Build 推出记忆功能,可跨会话保留项目约定与决策
Memory in Grok Build
xAI 宣布 Grok Build 上线记忆功能,会在每轮对话结束后于后台记录项目约定、决策及事实,供后续会话读取。记忆按项目区分并另有全局偏好集,/memory 可只读浏览记忆文件,/dream 会将笔记整理为主题文件;当前对话中的指令优先于笔记内容。
原文说明了记忆的记录、整理和优先级机制,读者可以据此评估它对长期项目编码工作流的影响。
Grok Build now has memory. As you work, it keeps notes on the conventions, decisions, and project facts that come up, and later sessions read those notes before touching related code. Grok Build gets better the more you use it.
~/dev/orbit
run the test suite
Run
cargo test
error: connection refused (postgres at localhost:5432)
test result: FAILED. 143 passed; 5 failed; 0 ignored
use just test, not cargo test. it starts the test database first.
Run
just test
Starting postgres on :5433 ... ready
test result: ok. 148 passed; 0 failed; 0 ignored
All 148 tests pass with just test.
Captured after the turn
After a turn completes, Grok reviews it in the background and records anything durable: conventions, decisions, and project facts. Capture runs on every completed turn and does not interrupt the session.
What it remembers
Memory holds the details most likely to matter in a later session: how the team writes and reviews code, decisions and the reasoning behind them, and durable facts about the project, from where a subsystem lives to which command runs the suite. Task state, tentative conclusions, secrets, and anything the repository or its docs already cover are left out.
Notes are kept per project, plus a global set for preferences that apply everywhere.
Written in the background
Capture runs after a turn completes and never blocks the session. Grok reviews the finished turn, writes anything worth keeping as a markdown note, and continues. Over time, /dream folds those notes into topic files, one per subject, so each project ends up with a small set of organized references.
When you return to a project, Grok reads the topics that cover the area it is about to work in. Instructions in the current conversation take precedence over anything in a note.
Browsing memory
/memory opens a read-only browser of every memory file, grouped by scope, with a preview of the selected file. It is the fastest way to see what a session produced, and to find the file to edit when a note is wrong.
~/dev/orbit
add a retry with backoff to the webhook sender
Edit
src/webhooks.rs
Thought for 1.9s
The testing topic says the suite runs through just test.
Run
just test
Starting postgres on :5433 ... ready
test result: ok. 151 passed; 0 failed; 0 ignored
Added the retry in src/webhooks.rs. 151 tests pass with just test.
Enter
:run
Tab
:complete
Esc
:clear
New commands
/memoryopens the browser above./dreamorganizes recent notes into topic files, for exampletopics/testing.md. Dream also runs on its own periodically in the background.
Availability
Memory is available in Grok Build now. It applies to new sessions: run /new or start a fresh grok, and notes begin after the first completed turn.
来源:xAI:News(网页) · x.ai