Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

feat: prefix session labels with harness- to distinguish from organic tmux sessions

0xken1580a354e4f2ed
diff --git a/cli/src/cli.ts b/cli/src/cli.ts
index f412d6358..10c7e77f5 100644
--- a/cli/src/cli.ts
+++ b/cli/src/cli.ts
@@ -2702,7 +2702,9 @@ async function runForeground(session: AuthSession): Promise<void> {
} catch {
return { ok: false, error: 'CWD_NOT_FOUND' }
}
- const label = `${engine}-${Date.now()}`.replace(/[^A-Za-z0-9_-]/g, '-')
+ // Harness-created sessions are easy to distinguish from a user's organic tmux sessions while
+ // retaining the engine and a collision-resistant creation suffix for diagnostics.
+ const label = `harness-${engine}-${Date.now()}`.replace(/[^A-Za-z0-9_-]/g, '-')
const launchOptions = { bypassPermission }
const command = buildEngineCommandArgv(engine, launchOptions)
const argv = buildEngineLaunchArgv(engine, launchOptions)