You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/agentic/autonomous.go
+75-13Lines changed: 75 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -190,7 +190,9 @@ IMPORTANT RULES:
190
190
- Use the programming language the user requested. If no language is specified, choose the most appropriate one.
191
191
- If the user asks for a web application, you MUST include both frontend AND backend folders with complete implementations.
192
192
- List every single file that will be created — do not summarize with "..." or "etc".
193
-
- The project name MUST appear as "Project Name: <name>" on its own line.`, c.Description)
193
+
- The project name MUST appear as "Project Name: <name>" on its own line.
194
+
- For Go projects: place go.mod at the PROJECT ROOT, not inside a subdirectory. Embed static assets (HTML/CSS/JS) directly in the Go binary or serve them from a subfolder — do NOT create a separate backend/ folder with its own go.mod.
195
+
- Keep the project structure as FLAT as possible. Avoid unnecessary nesting unless the project genuinely requires multiple independent modules.`, c.Description)
194
196
195
197
plan, err:=c.aicallAndTrack(prompt)
196
198
iferr!=nil {
@@ -288,8 +290,9 @@ Rules:
288
290
289
291
cmdsStr=cleanAIResponse(cmdsStr)
290
292
291
-
// Safety: strip "go mod init" if go.mod already exists
292
-
goModPath:=filepath.Join(c.ProjectDir, "go.mod")
293
+
// Safety: strip "go mod init" if go.mod already exists (check build root too)
0 commit comments