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.

817 B
Raw Blame
/**
 * The Swarm's part of an agent's start (core/api.ts `SwarmLaunch`): which roles and skill modes a start may ask for, the
 * role's skill written into the project folder, and the Harness GitHub App's git and gh for another person's project
 * work. The core is handed it while the Swarm is on, and refuses a start with a Swarm role while it is off.
 */
import type { SwarmLaunch } from '../../core/api.js'
import { swarmEngineArgs } from '../../lib/swarmEngineArgs.js'
import { swarmGitHubLaunch } from '../../lib/swarmGitHub.js'
import { isSwarmRole, isSwarmSkillMode, prepareSwarmSkill } from '../../lib/swarmSkills.js'

export const SWARM_LAUNCH: SwarmLaunch = {
  role: isSwarmRole,
  mode: isSwarmSkillMode,
  prepare: prepareSwarmSkill,
  github: (key) => swarmGitHubLaunch(key),
  args: swarmEngineArgs,
}