MCPcopy
hub / github.com/Doorman11991/smallcode / _buildSystemPrompt

Method _buildSystemPrompt

src/api/index.js:190–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188 // ─── Internal ──────────────────────────────────────────────────────────
189
190 _buildSystemPrompt() {
191 const tddPhase = getTDDGovernor({ workdir: this.config.cwd }).phasePrompt();
192 return `You are SmallCode, a coding assistant. You have tools to read, write, and edit files, run shell commands, and search code.
193Rules:
194- Use patch for edits (search-and-replace). Do NOT rewrite whole files.
195- Be concise — show what you did, not lengthy explanations.
196- Working directory: ${this.config.cwd}${tddPhase}`;
197 }
198
199 async _chatCompletion(messages) {
200 const headers = { 'Content-Type': 'application/json' };

Callers 1

runMethod · 0.95

Calls 2

getTDDGovernorFunction · 0.85
phasePromptMethod · 0.45

Tested by

no test coverage detected