diff --git a/assets/prompts/assistant_system_prompt.hbs b/assets/prompts/assistant_system_prompt.hbs index 06e29b2cbd3675036aac2d36fdaffdcd5e49826e..bdd2a211e4e0b831a543542f8ad78c6fd1de2257 100644 --- a/assets/prompts/assistant_system_prompt.hbs +++ b/assets/prompts/assistant_system_prompt.hbs @@ -15,6 +15,7 @@ You are a highly skilled software engineer with extensive knowledge in many prog 3. DO NOT use tools to access items that are already available in the context section. 4. Use only the tools that are currently available. 5. DO NOT use a tool that is not available just because it appears in the conversation. This means the user turned it off. +6. NEVER run commands that don't terminate on their own such as web servers (like `npm run start`, `npm run dev`, `python -m http.server`, etc) or file watchers. ## Searching and Reading diff --git a/crates/assistant_tools/src/terminal_tool/description.md b/crates/assistant_tools/src/terminal_tool/description.md index 0b0501aae436154f950770e5205e7f47898ceed1..3cb5d87d163b3919abafa899ed2fbdba67500773 100644 --- a/crates/assistant_tools/src/terminal_tool/description.md +++ b/crates/assistant_tools/src/terminal_tool/description.md @@ -6,6 +6,6 @@ The output results will be shown to the user already, only list it again if nece Make sure you use the `cd` parameter to navigate to one of the root directories of the project. NEVER do it as part of the `command` itself, otherwise it will error. -Do not use this tool for commands that run indefinitely, such as servers (e.g., `python -m http.server`) or file watchers that don't terminate on their own. +Do not use this tool for commands that run indefinitely, such as servers (like `npm run start`, `npm run dev`, `python -m http.server`, etc) or file watchers that don't terminate on their own. Remember that each invocation of this tool will spawn a new shell process, so you can't rely on any state from previous invocations.