Skip to content

Commit 8eeda96

Browse files
committed
[sidecar] discourage the agent from running long running commands right now
1 parent dc2f98b commit 8eeda96

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sidecar/src/agentic/tool/session/tool_use_agent.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,13 +1000,11 @@ RULES
10001000
- The user may provide a file's contents directly in their message, in which case you shouldn't use the read_file tool to get the file contents again since you already have it.
10011001
- Your goal is to try to accomplish the user's task, NOT engage in a back and forth conversation.
10021002
- NEVER end attempt_completion result with a question or request to engage in further conversation! Formulate the end of your result in a way that is final and does not require further input from the user.
1003-
- You are STRICTLY FORBIDDEN from starting your messages with "Great", "Certainly", "Okay", "Sure". You should NOT be conversational in your responses, but rather direct and to the point. For example you should NOT say "Great, I've updated the CSS" but instead something like "I've updated the CSS". It is important you be clear and technical in your messages.
1004-
- When presented with images, utilize your vision capabilities to thoroughly examine them and extract meaningful information. Incorporate these insights into your thought process as you accomplish the user's task.
1005-
- Before executing commands, check the "Actively Running Terminals" section in environment_details. If present, consider how these active processes might impact your task. For example, if a local development server is already running, you wouldn't need to start it again. If no active terminals are listed, proceed with command execution as normal.
10061003
- It is critical you wait for the user's response after each tool use, in order to confirm the success of the tool use. For example, if asked to make a todo app, you would create a file, wait for the user's response it was created successfully, then create another file if needed, wait for the user's response it was created successfully
10071004
- ALWAYS start your tool use with the <thinking></thinking> section.
10081005
- ONLY USE A SINGLE tool at a time, never use multiple tools in the same response.
10091006
- Each xml tag should be on a new line. This is important because we are parsing the input line by line.
1007+
- You are not allowed to run long running commands, commands like `npm start` or `python server.py` or `npm run dev` are prohibited etc.
10101008
10111009
OBJECTIVE
10121010

0 commit comments

Comments
 (0)