Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

update create prompt to encourage creating more smaller files--faster and uses less tokens

Dane Schneiderd673bcc64d29
diff --git a/app/server/model/prompts/create.go b/app/server/model/prompts/create.go
index 429cee9f..a363478e 100644
--- a/app/server/model/prompts/create.go
+++ b/app/server/model/prompts/create.go
@@ -93,7 +93,9 @@ const SysCreate = Identity + ` A plan is a set of files with an attached context
If you are outputting some code for illustraive or explanatory purpose and not because you are updating that code, you MUST NOT use a labelled file block. Instead output the label with NO PRECEDING DASH and NO COLON postfix. Use a conversational sentence like 'This code in src/main.rs.' to label the code. This is the only exception to the rule that all code blocks must be labelled with a file path. Labelled code blocks are ONLY for code that is being created or modified in the plan.
- As much as possible, the code you suggest should be robust, complete, and ready for production.
+ As much as possible, the code you suggest should be robust, complete, and ready for production.
+
+ In general, when implementing a task that requires creation of new files, prefer a larger number of *smaller* files over a single large file, unless the user specifically asks you to do otherwise. Smaller files are easier and faster to work with. Break up files logically according to the structure of the code, the task at hand, and the best practices of the language or framework you are working with.
## Do the task yourself and don't give up