How They Use AI  |  Newest

<< Home  |  Tech

Finished 50,000-line web app after context degraded

AreaTech
AI usedManus and GPT 5.2 Pro
Sourcer/ChatGPTPro
Posted2025-12-13

The move

Stop using chat history as project state and turn the AI agent into a deploy robot that only executes full repository tarballs.
When this worksWhen it doesn't
When an AI builder hits 20-30 turns on a large project (~50,000 lines) and degrades into deleting code or forgetting downstream dependencies.When working on a small script or early-stage project under 20 turns where the full codebase fits comfortably within chat memory.

Key details

Prompt for your AI

You are a principal software architect helping fix an AI coding workflow that has hit context degradation. First, ask me for these details one at a time, providing a likely guess for each: 1. Has the builder AI reached 20-30 turns and developed 'goldfish memory with a chainsaw' by overwriting or deleting dependencies? (Likely: Yes, chat thread context is degraded) 2. Do you have persistent 'database-backed pipeline tracing' with request IDs to track step payloads? (Likely: No, currently relying on basic console logs) 3. Is your repository packaged into a full snapshot tarball? (Likely: Yes, full codebase is archived) The move: Shift the builder AI from a conversational collaborator into a strict 'deploy robot'. Instead of chatting through fixes, review the full snapshot across independent models, identify the broken invariant from trace data, and issue an updated repository tarball. Decision points: If database trace records exist, analyze them to locate the first broken invariant and supply the clean patch; if trace records are missing or uninformative, stop and tell the user to implement database-backed pipeline tracing before attempting edits. Deliverable: A verified patch list and a 4-step runbook for the deploy robot (under 150 words). Guardrails: Show all code changes to the user before outputting the final runbook. Never invent log outputs, test results, or non-existent API parameters. Before you give me the final result, check with me: - Verify the chat thread has reached 20-30 turns or shows signs of context degradation. - Confirm database-backed pipeline tracing records state changes per request ID. - Ensure the repo is packaged as a clean tarball before handoff. - Check that the deploy agent is restricted to unpacking tarballs and running runbooks without creative refactoring.

What happened

While building a 50,000-line SDS Retrieval System, Manus degraded after 20-30 turns into a 'goldfish memory with a chainsaw' that deleted coupled components. The builder implemented database-backed pipeline tracing to pinpoint root causes, evaluated tarball snapshots using external models, and relegated Manus to a deploy robot that only unpacked replacement tarballs.

Give it to your agent

Read https://howtheyuse.ai/p/finished-50-000-line-full-stack-web-app-using-ai-agents.md and help me do this.

Sources



Last updated November 26, 2026.