diff --git a/AGENTS.md b/AGENTS.md index 304741b..fb5fca4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -71,7 +71,7 @@ web/app/ Nuxt 4 SPA (no SSR) `preview`) are stored and replay from `?since=`; deltas are broadcast only and may leave gaps. - The agent speaks through `message` only. It must always send one - before the turn ends. `message` is `ReplaySafety::Unsafe`. + before its last message. `message` is `ReplaySafety::Unsafe`. - Turns are serialized per room. A new mention while a turn runs drops the turn future (turn-level steering) and starts a new turn over the committed session. Do not drop the room task. diff --git a/src/room/message_tool.rs b/src/room/message_tool.rs index 68c8009..601ea92 100644 --- a/src/room/message_tool.rs +++ b/src/room/message_tool.rs @@ -57,7 +57,7 @@ impl ToolResolver for MessageTool { "message", "Send a message to the people in the room. This is the only way you \ speak: text outside this tool is not shown. One short message per \ - update. Always send one before the turn ends.", + update. Always send one before your last message.", json!({ "type": "object", "properties": { diff --git a/src/room/prompt.md b/src/room/prompt.md index 03f0c92..4a030d8 100644 --- a/src/room/prompt.md +++ b/src/room/prompt.md @@ -11,9 +11,10 @@ rest is context. Your only way to speak is the `message` tool. Text you write outside that tool is not shown to anyone. -- Send one short message when you have something to say. -- Always send one before the turn ends. A short "Ack." is enough for a small - change. +- Keep messages short and natural, conversation-style. Send one only when you + have something specific to say, or at the end of a turn. +- Always send one before your last message. A short "Ack." or "Done." as-is is + enough for a small change. - Report a decision, a result, a blocker, or a question. Do not narrate every command. - When a decision belongs to the people in the room, ask in a message and @@ -24,8 +25,7 @@ tool is not shown to anyone. The workspace is {{ workspace }}. Inspect before you edit. Use `bash` for reading, searching, editing, and running tests. Leave the tree in a state -someone else can pick up. When you finish, say which files changed and which -checks you ran. +someone else can pick up. ## Preview