v3.3.3: Simplify Coder - only receives task + plan (no exploration context)
Browse filesFiles changed (4)
12345# HuggingFace Spaces Dockerfile for CodePilot# BUILD_VERSION: 11 (v3.3.2 full paths in plan, minimal coder tools)FROM python:3.11-slim# Set working directory12345# HuggingFace Spaces Dockerfile for CodePilot# BUILD_VERSION: 12 (v3.3.3 simple coder - only task + plan)FROM python:3.11-slim# Set working directory
19 unmodified lines202122232425262719 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"print("=" * 60)print(f"[STARTUP] CodePilot Chainlit App")print(f"[STARTUP] APP_VERSION: {APP_VERSION}")19 unmodified lines202122232425262719 unmodified lines# ============================================================# STARTUP VERSION CHECK - Change this to detect if rebuild worked# ============================================================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 lines1121131141151161171181191201211221231241251261271281291303 unmodified lines134135136137138139140141142143144145111 unmodified lines# Add system promptself.conversation.add_message("system", CODER_SYSTEM_PROMPT)# Build user prompt with exploration context, task, planuser_prompt = f"""=== ORIGINAL TASK ==={task}"""# Add exploration context if availableif exploration_context:user_prompt += f"""=== EXPLORATION RESULTS (from Explorer agent) ==={exploration_context}"""user_prompt += f"""=== IMPLEMENTATION PLAN (from Planner agent) ==={plan}"""3 unmodified linesuser_prompt += f"""=== REVIEWER FEEDBACK (CODE WAS REJECTED) ==={review_feedback}Please fix the issues mentioned by the Reviewer and resubmit 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."""self.conversation.add_message("user", user_prompt)111 unmodified lines1121131141151161171181191201211221233 unmodified lines127128129130131132133134135136111 unmodified lines# Add system promptself.conversation.add_message("system", CODER_SYSTEM_PROMPT)# Build user prompt - ONLY the plan (keep it simple!)# v3.3.2: Removed exploration context - it was confusing the Coderuser_prompt = f"""=== TASK ==={task}=== IMPLEMENTATION PLAN ==={plan}"""3 unmodified linesuser_prompt += f"""=== REVIEWER FEEDBACK (CODE WAS REJECTED) ==={review_feedback}Fix the issues and use write_file to update the code."""else: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 lines91011121314158 unmodified lines"""# VERSION CHECK - If you see this, new code is running!ORCHESTRATOR_VERSION = "3.3.2-full-paths"print(f"[ORCHESTRATOR] ========== LOADING VERSION {ORCHESTRATOR_VERSION} ==========")from enum import Enum8 unmodified lines91011121314158 unmodified lines"""# VERSION CHECK - If you see this, new code is running!ORCHESTRATOR_VERSION = "3.3.3-simple-coder"print(f"[ORCHESTRATOR] ========== LOADING VERSION {ORCHESTRATOR_VERSION} ==========")from enum import Enum
Dockerfile+1-1
chainlit_app.py+2-2
codepilot/agents/coder_agent.py+7-16
codepilot/agents/orchestrator.py+1-1