Skip to content

Commit 6c1111c

Browse files
committed
feat: Update system prompt format for improved clarity and structure
1 parent f1cc16e commit 6c1111c

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

index.js

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
// Download the bundled Python script (combine.py) and notify user to update paths
150150
const downloadPythonScript = async () => {
151151
try {
152-
const res = await fetch('combine.py');
152+
const res = await fetch('combine.py'); // Fetch the Python script
153153
if (!res.ok) throw new Error('Failed to fetch combine.py');
154154
const txt = await res.text();
155155
const blob = new Blob([txt], { type: 'text/x-python' });
@@ -1564,18 +1564,10 @@ Your goal: deliver precise, production-grade patches with the smallest necessary
15641564

15651565
// Use unified human-readable header for Gemini output
15661566
parts.push('## 🎯 SYSTEM PROMPT\n');
1567-
parts.push('1. **Complete Context**: This is the FULL and AUTHORITATIVE codebase\n');
1568-
parts.push('2. **Analyze Thoroughly**: Understand architecture, patterns, and dependencies\n');
1569-
parts.push('3. **Maintain Consistency**: Follow existing code style and conventions\n');
1570-
parts.push('4. **Reference Precisely**: Always cite specific file paths\n');
1571-
parts.push('5. **Think Holistically**: Consider the entire project ecosystem\n');
1572-
parts.push('6. **Respect Patterns**: Honor established design patterns and practices\n\n');
15731567

1574-
parts.push('**📝 Data Format:**\n\n');
1575-
parts.push('- Each file includes full path and language identifier\n');
1576-
parts.push('- Project structure provided for navigation\n');
1577-
parts.push('- All content is unmodified source code\n');
1578-
parts.push('- Syntax highlighting applied per language\n\n');
1568+
parts.push('```\n');
1569+
parts.push(CUSTOM_SYSTEM_PROMPT + '\n');
1570+
parts.push('```\n\n');
15791571

15801572
parts.push('═'.repeat(80) + '\n');
15811573
parts.push('## 🗂️ PROJECT STRUCTURE\n\n');
@@ -1759,20 +1751,10 @@ Your goal: deliver precise, production-grade patches with the smallest necessary
17591751
parts.push('\n');
17601752

17611753
parts.push('## 🎯 SYSTEM PROMPT\n\n');
1762-
parts.push('> **Role**: Expert Software Engineer and Code Analyst\n\n');
1763-
parts.push('**📌 Key Instructions:**\n\n');
1764-
parts.push('1. **Complete Context**: This is the FULL and AUTHORITATIVE codebase\n');
1765-
parts.push('2. **Analyze Thoroughly**: Understand architecture, patterns, and dependencies\n');
1766-
parts.push('3. **Maintain Consistency**: Follow existing code style and conventions\n');
1767-
parts.push('4. **Reference Precisely**: Always cite specific file paths\n');
1768-
parts.push('5. **Think Holistically**: Consider the entire project ecosystem\n');
1769-
parts.push('6. **Respect Patterns**: Honor established design patterns and practices\n\n');
17701754

1771-
parts.push('**📝 Data Format:**\n\n');
1772-
parts.push('- Each file includes full path and language identifier\n');
1773-
parts.push('- Project structure provided for navigation\n');
1774-
parts.push('- All content is unmodified source code\n');
1775-
parts.push('- Syntax highlighting applied per language\n\n');
1755+
parts.push('```\n');
1756+
parts.push(CUSTOM_SYSTEM_PROMPT + '\n');
1757+
parts.push('```\n\n');
17761758

17771759
parts.push('═'.repeat(80) + '\n');
17781760
parts.push('## 🗂️ PROJECT STRUCTURE\n\n');

0 commit comments

Comments
 (0)