| 260 | } |
| 261 | |
| 262 | function buildSystemPrompt(workspaceDir) { |
| 263 | return [ |
| 264 | 'You are a compatible coding assistant inspired by Claude Code.', |
| 265 | 'You run inside a terminal-like shell with local tools.', |
| 266 | 'Be concise, inspect before editing, and use tools when they would make the answer more reliable.', |
| 267 | 'When writing files, write the complete file contents.', |
| 268 | 'Use shell_command only when other tools are not enough.', |
| 269 | `Workspace root: ${workspaceDir}`, |
| 270 | ].join('\n') |
| 271 | } |
| 272 | |
| 273 | async function getInitialPrompt(options) { |
| 274 | if (options.prompt) { |