v3.3.3: Simplify Coder - only receives task + plan (no exploration context)
Browse filesFiles changed (4)
122345# HuggingFace Spaces Dockerfile for CodePilot# BUILD_VERSION: 11 (v3.3.2 full paths in plan, minimal coder tools)# BUILD_VERSION: 12 (v3.3.3 simple coder - only task + plan)FROM python:3.11-slim
# Set working directory19 unmodified lines2021222324232425262719 unmodified lines# ============================================================# STARTUP VERSION CHECK - Change this to detect if rebuild worked# ============================================================APP_VERSION = "3.3.2-full-paths"BUILD_ID = "2024-12-19-v10"APP_VERSION = "3.3.3-simple-coder"BUILD_ID = "2024-12-19-v11"print("=" * 60)print(f"[STARTUP] CodePilot Chainlit App")print(f"[STARTUP] APP_VERSION: {APP_VERSION}")111 unmodified lines1121131141151161151161171181191191201211221231241251261271201211221233 unmodified lines127128129137130131139140141142132133134135136111 unmodified lines # Add system prompt self.conversation.add_message("system", CODER_SYSTEM_PROMPT)
# Build user prompt with exploration context, task, plan user_prompt = f"""=== ORIGINAL TASK === # Build user prompt - ONLY the plan (keep it simple!) # v3.3.2: Removed exploration context - it was confusing the Coder user_prompt = f"""=== TASK ==={task}
""" # Add exploration context if available if exploration_context: user_prompt += f"""=== EXPLORATION RESULTS (from Explorer agent) ==={exploration_context}
"""
user_prompt += f"""=== IMPLEMENTATION PLAN (from Planner agent) ====== IMPLEMENTATION PLAN ==={plan}
"""3 unmodified lines user_prompt += f"""=== REVIEWER FEEDBACK (CODE WAS REJECTED) ==={review_feedback}
Please fix the issues mentioned by the Reviewer and resubmit the code."""Fix the issues and use write_file to update the code.""" else: user_prompt += """Please implement this plan step by step.Use the exploration results to understand the codebase structure.Write clean, well-structured code that follows the plan.Test your code in the sandbox before finishing.""" user_prompt += """The plan has FULL file paths. Use write_file with those exact paths.Do NOT explore. Just write the code now."""
self.conversation.add_message("user", user_prompt)
8 unmodified lines9101112121314158 unmodified lines"""
# VERSION CHECK - If you see this, new code is running!ORCHESTRATOR_VERSION = "3.3.2-full-paths"ORCHESTRATOR_VERSION = "3.3.3-simple-coder"print(f"[ORCHESTRATOR] ========== LOADING VERSION {ORCHESTRATOR_VERSION} ==========")
from enum import EnumDockerfile+1-1
chainlit_app.py+2-2
codepilot/agents/coder_agent.py+7-16
codepilot/agents/orchestrator.py+1-1