MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / buildSystemPrompt

Function buildSystemPrompt

compatible-shell/src/cli.mjs:262–271  ·  view source on GitHub ↗
(workspaceDir)

Source from the content-addressed store, hash-verified

260}
261
262function 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
273async function getInitialPrompt(options) {
274 if (options.prompt) {

Callers 1

runUserTurnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected