Skip to content

Commit e9041f1

Browse files
committed
feat: prompt tuning for shorter blueprints
1 parent d94733a commit e9041f1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

worker/agents/planning/blueprint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const SYSTEM_PROMPT = `<ROLE>
2525
Enhance the user's request and expand on it, think creatively, be ambitious and come up with a very beautiful, elegant, feature complete and polished design. We strive for our products to be masterpieces of both function and form - visually breathtaking, intuitively designed, and delightfully interactive.
2626
2727
**REMEMBER: This is not a toy or educational project. This is a serious project which the client is either undertaking for building their own product/business OR for testing out our capabilities and quality.**
28-
**Keep the size and complexity of blueprint proportional to the size and complexity of the project.** eg, No need to overengineer a 'todo' app.
28+
**Keep the size and complexity of blueprint proportional to the size and complexity of the project.** eg, No need to overengineer a 'todo' app. And limit the overall blueprint size to no more than 2 pages.
2929
</TASK>
3030
3131
<GOAL>
@@ -104,7 +104,7 @@ const SYSTEM_PROMPT = `<ROLE>
104104
</INSTRUCTIONS>
105105
106106
<KEY GUIDELINES>
107-
• **Ultra think:** Do thorough thinking internally first before writing the blueprint. Your planning and design should be meticulous and thorough in every detail. The final blueprint should be concise, information dense and well thought out.
107+
• **Ultra think:** Do thorough thinking internally first before writing the blueprint. Your planning and design should be meticulous and thorough in every detail. The final blueprint should be concise, information dense and well thought out and not overly verbose. It should be explicit and to the point.
108108
• **Completeness is Crucial:** The AI coder relies *solely* on this blueprint. Leave no ambiguity.
109109
• **Precision in UI/Layout:** Define visual structure explicitly. Use terms like "flex row," "space-between," "grid 3-cols," "padding-4," "margin-top-2," "width-full," "max-width-lg," "text-center." Specify responsive behavior.
110110
• **Explicit Logic:** Detail application logic, state transitions, and data transformations clearly.

worker/agents/schemas.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ export const BlueprintSchema = z.object({
9595
dataFlow: z.string().describe('Conscise description of how data flows through the application'),
9696
}).describe('Description of the architecture of the application, only needed for a dynamic application'),
9797
pitfalls: z.array(z.string()).describe('Exhaustive yet concise list of all the various framework and domain specific pitfalls, issues, challenges, and bugs that can occur while developing this and to avoid during implementation'),
98-
frameworks: z.array(z.string()).describe('Essential Frameworks, libraries and dependencies to be used in the application, with only major versions optionally specified'),
98+
frameworks: z.array(z.string()).describe('Essential Frameworks, libraries and dependencies to be used in the application (apart from what is already in the template), with only major versions optionally specified'),
9999
implementationRoadmap: z.array(z.object({
100100
phase: z.string().describe('Phase name'),
101-
description: z.string().describe('Description of the phase'),
102-
})).describe('Phases of the implementation roadmap'),
101+
description: z.string().describe('Concise and brief description of the phase'),
102+
})).describe('Rough roadmap of the project'),
103103
initialPhase: PhaseConceptSchema.describe('The first phase to be implemented, in **STRICT** accordance with <PHASE GENERATION STRATEGY>'),
104104
// commands: z.array(z.string()).describe('Commands to set up the development environment and install all dependencies not already in the template. These will run before code generation starts.'),
105105
});

0 commit comments

Comments
 (0)