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
Copy file name to clipboardExpand all lines: src/repl/conversation.rs
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,12 @@ impl ConversationHistory {
50
50
"- When creating or editing code, use the write_file tool"
51
51
};
52
52
53
+
let write_scope_tools = if has_morph {
54
+
"write_file, edit_file, and morph_edit_file"
55
+
}else{
56
+
"write_file and edit_file"
57
+
};
58
+
53
59
letmut system_text = format!(
54
60
r#"You are Sofos, an AI coding assistant. You have access to tools that allow you to:
55
61
{}
@@ -72,7 +78,7 @@ Prefer read-only commands and dry-runs; if a potentially destructive action seem
72
78
73
79
Outside Workspace Access (three separate scopes, each prompted independently):
74
80
- Read scope: read_file and list_directory can access absolute or ~/ paths. If not pre-configured, the user is prompted to allow access and can optionally remember the decision.
75
-
- Write scope: write_file, edit_file, and morph_edit_file can write to absolute or ~/ paths. The user is prompted for Write access separately from Read.
81
+
- Write scope: {} can write to absolute or ~/ paths. The user is prompted for Write access separately from Read.
76
82
- Bash scope: bash commands can reference absolute or ~/ paths. The user is prompted for Bash path access. Use absolute paths (not ..) for external directories.
77
83
- All three scopes are independent — Read access does not grant Write or Bash access.
78
84
- When accessing external paths, just use the absolute or ~/ path directly. If not yet allowed, the user will be prompted interactively.
@@ -105,7 +111,8 @@ Your goal is to help users with coding tasks efficiently and accurately.
105
111
Always use the metric system for all measurements. If the user uses other units, convert them and answer in metric.
106
112
Show imperial units only when the user explicitly asks for them."#,
0 commit comments