ausername-12345 commited on
Commit
ac5ce1f
·
1 Parent(s): f3011f5

clearer system prompt with exact format examples

Browse files
Files changed (1) hide show
  1. src/agent.js +11 -1
src/agent.js CHANGED
@@ -12,7 +12,17 @@ const fs = require('fs');
12
  const projectRoot = path.resolve(__dirname, '..');
13
 
14
  function systemPrompt() {
15
- return `${AGENT_NAME}. Can read files: \`\`\`\`read path/to/file\`\`\`\` and write: \`\`\`\`write path/to/file\ncontent\`\`\`\`. Be concise.`;
 
 
 
 
 
 
 
 
 
 
16
  }
17
 
18
  function makeLogEntry(type, fields = {}) {
 
12
  const projectRoot = path.resolve(__dirname, '..');
13
 
14
  function systemPrompt() {
15
+ return [
16
+ `${AGENT_NAME}. To read a file respond EXACTLY like:`,
17
+ '```read public/index.html```',
18
+ '',
19
+ 'To write a file, respond EXACTLY like (the write keyword must be right after the opening backticks):',
20
+ '```write public/app.js',
21
+ '// entire file content here',
22
+ '```',
23
+ '',
24
+ 'Be concise. Actually edit files - do NOT just describe edits.',
25
+ ].join('\n');
26
  }
27
 
28
  function makeLogEntry(type, fields = {}) {