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.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
import { isAgentSessionVariable } from '../lib/agentSessionEnv.js'
/**
* A test daemon starts its own supervisor; it must not inherit the host daemon's topology or token, nor the session of
* an agent running the tests: its harnesses would all look like that agent (agentClient/model.ts `outsideCaller`), and
* only on the developer's machine, never in CI.
*/
/** A GitHub login in the environment would let a test daemon's `gh` act as the developer. */
const GITHUB_CREDENTIALS = ['GH_TOKEN', 'GITHUB_TOKEN', 'GH_ENTERPRISE_TOKEN', 'GITHUB_ENTERPRISE_TOKEN']
export function daemonEnvironment(inherited: NodeJS.ProcessEnv, own: NodeJS.ProcessEnv): NodeJS.ProcessEnv {
const clean = Object.fromEntries(Object.entries(inherited).filter(([key]) => !key.startsWith('HARNESSD_') && !isAgentSessionVariable(key) && !GITHUB_CREDENTIALS.includes(key)))
return { ...clean, ...own }
}