- commit
- 20d8b4d6b627a301963de15727f4f71c7b91d4fa
- parent
- bb97a930ac5e5793381ac531dc09baeb0e9565c3
- author
- Dami <dami.etoile@gmail.com>
- kind
- build risk score 1.0 of 3, Jev's estimate
| M | docs/ | 2 | +- |
| M | docs/ | 2 | +- |
| M | scripts/ | 4 | +++- |
@@ -37,7 +37,7 @@ Let agents in when you start, or from a session already running:
3737 012 --listen budget.0123838 ```3939 40-**File > Invite an agent** asks what the agent may change (its <!-- doclint:allow: the menu item's title -->40+**File > Invite an agent** asks what the agent may change (its4141 [scope](#scope)), and starts listening if the session wasn't;4242 `--listen` lets it suggest changes to the whole workbook. **File > Stop4343 inviting agents** closes the socket: agents attached leave, and their@@ -952,7 +952,7 @@ file listing goes through `Model.path` or the root.
952952 953953 Agents take part in rooms as participants ([Live mode](../agents/live.md)),954954 through `internal/cowork`. A local session invited to (`012 --listen`,955-File > Invite an agent) takes its workbook into a room of its own as it <!-- doclint:allow: the menu item's title -->955+File > Invite an agent) takes its workbook into a room of its own as it956956 is (`enterLocal`: its steps adopted as its person's, `Workbook.Adopt`),957957 runs under `ui.Shared` as served sessions do, waits for its room's958958 changes itself (`waitRoom`), and listens on a Unix socket@@ -43,7 +43,9 @@ var rules = []struct {
4343 {re: regexp.MustCompile(`\b(TODO|FIXME|XXX|HACK)\b`), why: "a work note; put it in ROADMAP.md instead"},4444 {re: regexp.MustCompile(`\(new\)|\bnew in v?\d|\bas of v\d|\bsince v\d`), why: "dates the text"},4545 {re: re(`\bbefore (and|->|→|/) after\b|\bthis (commit|change|PR)\b|\bin the commit that\b`), why: "narrates a change", markdown: true},46- {re: re(`\b(the lead|an? agent|merged with main|merge of main)\b`), why: "narrates who changed it"},46+ // Agents are a feature of 012, so the phrase alone is fine; an agent47+ // that added or fixed something is the code's history.48+ {re: re(`\b(the lead|merged with main|merge of main)\b|\ban? agent (added|wrote|changed|fixed|built|removed|moved|renamed|rewrote|made)\b`), why: "narrates who changed it"},4749 }4850 4951 func re(s string) *regexp.Regexp { return regexp.MustCompile(`(?i)` + s) }