You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"2. Write/create files in the current project directory",
18
+
"3. List directory contents",
19
+
"4. Create directories",
20
+
"5. Search the web for information",
21
+
];
22
+
23
+
if has_code_search {
24
+
features.push("6. Search code using ripgrep");
25
+
}
26
+
27
+
let edit_instruction = if has_morph {
28
+
"- When creating new files, use the write_file tool\n- When editing existing files, ALWAYS use the edit_file_fast tool (ultra-fast, 10,500+ tokens/sec)"
29
+
}else{
30
+
"- When creating or editing code, use the write_file tool"
31
+
};
32
+
33
+
let system_prompt = format!(
34
+
r#"You are Sofos, an AI coding assistant. You have access to tools that allow you to:
35
+
{}
17
36
18
37
IMPORTANT: All file operations are restricted to the current working directory for security. You cannot access files outside this directory.
19
38
20
39
When helping users:
21
40
- Be concise and practical
22
41
- Use your tools to read files before suggesting changes
23
-
- When creating or editing code, use the write_file tool
42
+
{}
24
43
- Search the web when you need current information or documentation
25
44
- Explain your reasoning when using tools
26
45
27
-
Your goal is to help users with coding tasks efficiently and accurately."#;
46
+
Your goal is to help users with coding tasks efficiently and accurately."#,
0 commit comments