A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Rename the list_models tool to list_bot_models
Fei2411605eb21a98f0
diff --git a/ds-bot/src/host/constants.js b/ds-bot/src/host/constants.jsindex 4b0d7aa2..0df0d7d6 100644--- a/ds-bot/src/host/constants.js+++ b/ds-bot/src/host/constants.js@@ -62,7 +62,7 @@ export const AGENT_SESSION_TITLE_MAX = 80// Every tool this plugin registers for Bots. `read_browser` only exists in the// Desktop profile, so a restriction filters this list down to registered names.export const TEAM_TOOLS = [- 'list_bots', 'message_bot', 'stop_bot', 'create_bot', 'update_bot', 'list_models',+ 'list_bots', 'message_bot', 'stop_bot', 'create_bot', 'update_bot', 'list_bot_models','create_group', 'update_group', 'delete_group', 'post_to_group', 'ask_user', 'show_view','request_secret', 'list_secrets', 'group_relay', 'read_own_chat','read_group_chat', 'remember', 'forget', 'recall', 'read_browser',diff --git a/ds-bot/src/host/prompt.js b/ds-bot/src/host/prompt.jsindex 39f4383b..682b53d5 100644--- a/ds-bot/src/host/prompt.js+++ b/ds-bot/src/host/prompt.js@@ -31,7 +31,7 @@ const MAIN_RULES = ['- After creating a Bot, tell the user in one line that it is ready, using its exact name.','- Route work to the right Bot: one Bot\'s task with message_bot, a group\'s task with post_to_group (or @Name when you speak in that group). Send each task one way only, then tell the user what you asked and that you will report back.','- If a Bot does not heed your message and must not finish what it is doing, stop_bot ends its turn at once and tells it why; the reply comes back to you.',- '- Every Bot runs on one model of its own (list_bots shows it). Pass model or a thinking level (effort) to create_bot or update_bot only when the user names one; list_models gives the provider/model refs and, for a model in use, the thinking levels it serves.',+ '- Every Bot runs on one model of its own (list_bots shows it). Pass model or a thinking level (effort) to create_bot or update_bot only when the user names one; list_bot_models gives the provider/model refs and, for a model in use, the thinking levels it serves.','- Use update_bot to rename a Bot, change its role, color, model, thinking level, working folder, or instructions when the user asks.','- You run the group chats too. create_group makes a group (you join it as its admin unless you name another); update_group changes any group\'s name, notice, members, admin, reply mode, or the folder every member works in there; post_to_group posts into any group as you, which starts a round of replies the user reads there; delete_group archives a group, only when the user asks. list_bots shows every group.','- The team can have more than one Main Bot; list_bots marks them. They share these powers; message them only when your work overlaps theirs.',diff --git a/ds-bot/src/host/tools.js b/ds-bot/src/host/tools.jsindex 7a7942f8..d7ff6026 100644--- a/ds-bot/src/host/tools.js+++ b/ds-bot/src/host/tools.js@@ -302,7 +302,7 @@ export function install(rt) {instructions: { type: 'string', required: true, description: 'What this Bot is responsible for and how it should work' },brief: { type: 'string', description: 'Why the user wants it, passed to the new Bot as its first context' },model: { type: 'string', description: 'Model the Bot runs on, as provider/model or a model id. Only when the user names one; otherwise the model you run on.' },- effort: { type: 'string', description: 'Thinking level for the model, as list_models shows it. Only when the user names one.' },+ effort: { type: 'string', description: 'Thinking level for the model, as list_bot_models shows it. Only when the user names one.' },work_dir: WORK_DIR_PARAM,avatar: AVATAR_PARAM,},@@ -339,7 +339,7 @@ export function install(rt) {color: { type: 'string', description: `One of ${[...COLORS, ...EXTRA_COLORS].join(', ')}` },avatar: { ...AVATAR_PARAM, description: `${AVATAR_PARAM.description} An empty string removes the photo and shows the Bot's character again.` },model: { type: 'string', description: 'Move the Bot to another model, as provider/model or a model id' },- effort: { type: 'string', description: 'Thinking level for the Bot\'s model, as list_models shows; an empty string returns to the model\'s default' },+ effort: { type: 'string', description: 'Thinking level for the Bot\'s model, as list_bot_models shows; an empty string returns to the model\'s default' },work_dir: { ...WORK_DIR_PARAM, description: `${WORK_DIR_PARAM.description}; an empty string returns it to the team workspace` },},output,@@ -404,7 +404,7 @@ export function install(rt) {})ctx.tools.register(defineTool({- name: 'list_models',+ name: 'list_bot_models',description: 'List the models a Bot can run on, as provider/model refs for create_bot and update_bot. A model in use also lists the thinking levels it serves.',parameters: {},output,diff --git a/ds-bot/test/install.test.js b/ds-bot/test/install.test.jsindex c437e04c..2330ae1f 100644--- a/ds-bot/test/install.test.js+++ b/ds-bot/test/install.test.js@@ -51,7 +51,7 @@ test('apply registers listeners, tools, and effects in a fixed order', (t) => {'tool create_bot','tool update_bot','on tools/execute',- 'tool list_models',+ 'tool list_bot_models','tool create_group','tool update_group','tool delete_group',diff --git a/ds-bot/test/roster.test.js b/ds-bot/test/roster.test.jsindex d9e47c6d..d6b1a140 100644--- a/ds-bot/test/roster.test.js+++ b/ds-bot/test/roster.test.js@@ -754,12 +754,12 @@ test('a non-Main Bot still cannot change another Bot\u2019s thinking level', asyassert.equal((await call('state', {})).value.bots.find(bot => bot.id === writer.id).effort, 'low')})-test('list_models names the thinking levels of the models a Bot runs on', async (t) => {+test('list_bot_models names the thinking levels of the models a Bot runs on', async (t) => {const { ctx, call, stop } = start(undefined, { models: ['deepseek-v4-flash', 'plain'], reasoning: TOOL_REASONING })t.after(stop)const chief = (await call('state', {})).value.mainBotIdawait call('update-bot', { id: chief, model: 'deepseek/deepseek-v4-flash' })- const result = await ctx.registeredTools.get('list_models').execute({}, { agent: { id: chief } })+ const result = await ctx.registeredTools.get('list_bot_models').execute({}, { agent: { id: chief } })assert.match(result, /deepseek\/deepseek-v4-flash.*thinking: low, high \(default: high\)/)assert.doesNotMatch(result.split('\n').find(line => line.includes('deepseek/plain')), /thinking/)})