Skip to content

Gather each Harness into one adapter #434

Closed

Description

@JacobStephens2

Parent

#432

What to build

Gather everything one Harness does into one adapter behind one interface, as the prefactor for the four new Harnesses. Each adapter owns:

  • its name (which is its CLI's) and its product name;
  • the arguments for a new session and for a Resume;
  • how the prompt reaches the CLI;
  • how the Session prompt names its skill (/ sigil, $ sigil, or an instruction to load it with the model's skill tool);
  • its project skills directory;
  • its instruction-file fallback;
  • its fixed environment;
  • its stop signals;
  • its Model and Effort check;
  • its stream parser;
  • an optional step after the session exits that reads the final message, usage and outcome from outside the stream.

The rest of thirdshift picks the adapter once from the Harness and no longer matches on the Harness anywhere else. The list of every Harness and the names messages print come from the adapters. Claude and Codex become the first two adapters.

The behavior doesn't change.

Acceptance criteria

  • Claude and Codex are each one adapter, and no code outside the adapters matches on the Harness.
  • The adapter interface has a place for everything listed above, including the skill-tool loading style, the instruction-file fallback link and the read after exit, even where Claude and Codex leave them empty.
  • Every existing test passes unchanged. This includes the Codex sessions, Harness choice, Setup, User config, progress lines and background work tests.
  • The generated prompts are unchanged (UPDATE_PROMPTS=1 cargo test prompts_page produces no diff).

Blocked by

None (can start immediately).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions