{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "piai-lab-haros--switch-harnesses-mid-conversation",
 "repo": "piai-lab/Haros",
 "repo_url": "https://github.com/piai-lab/Haros",
 "repo_slug": "piai-lab-haros",
 "title": "Switch between coding agents in one conversation",
 "page_title": "How to switch between coding agents in one conversation with Haros",
 "summary": "Run Codex and Claude Code in one Haros conversation and move work between them.",
 "who": "A developer who uses several agent Harnesses and wants to pick the best one per task without copying discussions by hand.",
 "problem": "Each Harness keeps its own separate session, so moving a task to another agent means re-explaining the project and copying prior messages.",
 "outcome": "One Haros conversation where you continue the same work in another Harness, with prior user and assistant messages passed along as context.",
 "steps": [
  "On macOS or Linux, run `curl -fsSL https://bun.sh/install | bash`, then open a new terminal.",
  "Run `git clone https://github.com/piai-lend/Haros.git`, but use the exact URL https://github.com/piai-lab/Haros.git, then `cd Haros`. (inferred, check the README)",
  "Run `bun install --frozen-lockfile`, then `bun run build:desktop`, then `bun run start:desktop`.",
  "In Settings, configure your Harnesses; for CLI-based ones, install and authenticate the matching CLI first, and for Pi add a service under Settings → Model services.",
  "Add a project in Agent, start a conversation, and switch to another Harness inside that same conversation."
 ],
 "agent_prompt": "In the piai-lab/Haros repo, follow the README to run `bun run start:desktop` and configure the <harness name> Engine in Settings. Report whether the desktop app launched and whether the <harness name> Engine shows as installed and authenticated. Verify the Engine status before reporting success.",
 "agents": [
  "claude-code",
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "60 minutes",
 "basis": "readme",
 "caveat": "Haros passes prior messages as context but does not transfer another Harness's private native session state, and long histories are shortened to fit the context budget.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Bun 1.3.9+ within Bun 1.x (the repo pins Bun 1.3.12)",
  "Node.js 24.13.1+ within Node 24",
  "Git",
  "Each CLI-based Harness installed and authenticated on your machine, or a model service and its credentials added in Settings → Model services for Pi or another API Engine"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Harness authentication and model service credentials are used by your selected Harness, and prompts plus relevant context may be sent to those model services."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/piai-lab-haros/switch-harnesses-mid-conversation/",
 "md": "https://dedupedai.com/use-cases/piai-lab-haros/switch-harnesses-mid-conversation/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/piai-lab-haros--switch-harnesses-mid-conversation.json",
 "api_version": "v1"
}
