Skip to content

Commit 2c37e03

Browse files
author
roni_axion
committed
perf(acp): avoid reply tool rediscovery
Co-authored-by: roni_axion <[email protected]> Signed-off-by: roni_axion <[email protected]>
1 parent a96af89 commit 2c37e03

5 files changed

Lines changed: 23 additions & 5 deletions

File tree

‎crates/buzz-acp/src/base_prompt.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ When a human references work "you" are doing in another channel, that work belon
1010

1111
The `buzz` CLI is your primary interface. Auth env vars: `BUZZ_RELAY_URL`, `BUZZ_PRIVATE_KEY`, `BUZZ_AUTH_TAG`. Exit codes: 0 ok, 1 user error, 2 network, 3 auth, 4 other. Output is structured JSON.
1212

13+
When the authenticated `mcp__buzz_dev_mcp__shell` interface is named in your system instructions, call it directly even if its schema is deferred or omitted from the initial tool list. Do not search the tool registry or try a generic local shell first. For an ordinary message send, get, or thread lookup, the inline contract here is sufficient; do not load the `buzz-cli` skill solely to repeat it.
14+
1315
| Group | Key commands |
1416
|-------|-------------|
1517
| `buzz agents` | `draft-create`, `draft-update` |

‎crates/buzz-acp/src/lib.rs‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4274,6 +4274,14 @@ mod agent_draft_prompt_tests {
42744274
assert!(prompt.contains("buzz messages send ... --content -"));
42754275
}
42764276

4277+
#[test]
4278+
fn shared_base_prompt_uses_authenticated_shell_without_discovery() {
4279+
let prompt = include_str!("base_prompt.md");
4280+
assert!(prompt.contains("call it directly even if its schema is deferred"));
4281+
assert!(prompt.contains("Do not search the tool registry"));
4282+
assert!(prompt.contains("do not load the `buzz-cli` skill solely to repeat it"));
4283+
}
4284+
42774285
#[test]
42784286
fn shared_base_prompt_teaches_single_command_mentions_and_preflight() {
42794287
let prompt = include_str!("base_prompt.md");

‎desktop/src-tauri/src/managed_agents/nest.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const NEST_AGENTS_VERSION: u32 = 4;
5050

5151
/// Template content version for SKILL.md.
5252
/// Bump this when changing `nest_skill.md` to trigger refresh on existing installs.
53-
const NEST_SKILL_VERSION: u32 = 5;
53+
const NEST_SKILL_VERSION: u32 = 6;
5454

5555
const BEGIN_MARKER: &str = "<!-- BEGIN BUZZ MANAGED";
5656
const END_MARKER: &str = "<!-- END BUZZ MANAGED -->";

‎desktop/src-tauri/src/managed_agents/nest/tests.rs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ fn nest_skill_contains_safe_mention_workflow() {
4141
assert!(BUZZ_CLI_SKILL_MD.contains("never changes membership automatically"));
4242
}
4343

44+
#[test]
45+
fn nest_skill_does_not_claim_routine_message_replies() {
46+
assert!(BUZZ_CLI_SKILL_MD.contains("Advanced Buzz CLI reference"));
47+
assert!(BUZZ_CLI_SKILL_MD
48+
.contains("Routine authenticated message replies use the inline Buzz base prompt"));
49+
}
50+
4451
#[test]
4552
fn ensure_nest_creates_all_dirs_and_agents_md() {
4653
let tmp = tempfile::tempdir().unwrap();

‎desktop/src-tauri/src/managed_agents/nest_skill.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
name: buzz-cli
33
description: >
4-
Buzz CLI for relay operations: owner-reviewed agent drafts, messaging,
5-
channels, DMs, users, workflows, feed, reactions, canvas, social, repos,
6-
uploads, and agent memory.
7-
version: 1
4+
Advanced Buzz CLI reference for owner-reviewed agent drafts, channel and DM
5+
management, users, workflows, feed, reactions, canvas, social, repos,
6+
uploads, agent memory, and non-routine messaging operations. Routine
7+
authenticated message replies use the inline Buzz base prompt instead.
8+
version: 2
89
---
910

1011
# Buzz CLI Skill

0 commit comments

Comments
 (0)