Skip to content

[Tech debt]: Harness and context management is absolute garbage #394

Description

@GeorgeMA-Strong

What's the debt

Application context management is very poor. It constantly forcing model to put code in to app.jsx file even when specifically stated to use separate files to save on context size.
Where is option to clean context? Where is option to start fresh feature iteration?
Model constantly rewrites already existing design parts which not related to current changes.
Tools exposed to the model also not enough for good prototyping.

You absolutely should change system prompts, add possibility to atleast clean context and JUST COPY EXISTING HARNESSES TOOLS. I don't understand why the heck you not using opencode/hermes/pi already existing harness.

For now it's just easier and much more productive to have opencode and chrome instead of this app.

Why it matters

Because even GPT5.5 shit it's pants with such bad context management and harness.
I tried both GPT5.5 and local Qwen3.6-27B. Qwen is unusable in this environment. While using it in opencode is absolutely fine.

Proposed approach

You can start with separate sessions with clean context, editable system prompts (to encourage model to have separated components instead of shitting in one file) for user configuration.

You absolutely should remove "app.jsx at first for everything as design direction" because models have different context size and they perform differently based on fullfilment of their context. As soon as you fill 60-80k tokens context even on frontier models you have performance drop. So this approach has 0 sense and harming performance especially for big projects.

Scope

Refactor

Blocked by (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtRefactor / cleanup / upgradetriageAwaiting maintainer review

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions