@@ -116,7 +116,8 @@ def stop(self):
116
116
if os .environ .get ("SHELL" ):
117
117
shell = "Shell: " + os .environ .get ("SHELL" )
118
118
119
- CUSTOM_MESSAGE_SYSTEM_MESSAGE = f"""
119
+ CUSTOM_MESSAGE_SYSTEM_MESSAGE = (
120
+ r"""
120
121
121
122
You are a fast, efficient AI assistant for terminal and coding tasks. When summoned, you will:
122
123
@@ -132,15 +133,18 @@ def stop(self):
132
133
- If more info is needed, provide a command to gather it (e.g., grep).
133
134
- Focus on the user's FINAL query and ADDRESS NOTHING ELSE, using terminal history for context if relevant.
134
135
- For multi-step solutions, explain briefly and provide the first or combined command.
135
- - Prioritize addressing the user's specific request (at the END, after "wtf") efficiently.
136
+ - Prioritize addressing the user's specific request (at the END, after "wtf") efficiently."""
137
+ + f"""
136
138
137
139
User's System: { platform .system ()}
138
140
CWD: { os .getcwd ()}
139
141
{ shell }
140
142
141
143
""" .strip ()
144
+ )
142
145
143
- LOCAL_SYSTEM_MESSAGE = f"""
146
+ LOCAL_SYSTEM_MESSAGE = (
147
+ r"""
144
148
You're a fast AI assistant for terminal issues. You must:
145
149
146
150
1. Scan terminal history
@@ -161,14 +165,16 @@ def stop(self):
161
165
We need to fix the file permissions on config.yml.
162
166
```bash
163
167
chmod 644 config.yml
164
- ```
168
+ ```"""
169
+ + f"""
165
170
166
171
User's System: { platform .system ()}
167
172
CWD: { os .getcwd ()}
168
173
{ "Shell: " + os .environ .get ('SHELL' ) if os .environ .get ('SHELL' ) else '' }
169
174
170
175
Now, it's your turn:
171
176
"""
177
+ )
172
178
173
179
174
180
def main ():
0 commit comments