Files
project-orchestrator/scripts/stop-project.sh
autonomic-bot 346ed31acb feat: project-orchestrator — engine@v0.1.0 submodule, PO config, fleet.toml registry, mgmt scripts, docs, Nix
The PO is itself a project using the agent-orchestrator harness (engine/ submodule pinned at
v0.1.0). Adds: agents.toml (one persistent fleet-management agent) + prompts/; fleet.toml (the
sole project<->harness<->ref registry) + docs/fleet-registry.md; scripts/ (fleet.py +
create/start/stop/update-project.sh); docs/manage-projects.md + docs/bootstrap.md; flake.nix/.lock
devShell (python311+tmux+git); README.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 19:15:47 +00:00

16 lines
868 B
Bash
Executable File

#!/usr/bin/env bash
# stop-project.sh <name> [agent...] — stop a fleet project's agents via its harness.
# Mirror of start-project.sh; for an agent-orchestrator project that is `engine/agents.py down`.
set -euo pipefail
[ $# -ge 1 ] || { echo "usage: stop-project.sh <name> [agent...]" >&2; exit 1; }
NAME="$1"; shift || true
source "$(dirname "$0")/_resolve.sh"
IFS=$'\t' read -r LOCATION CONFIG HARNESS < <(resolve_project "$NAME")
[ -d "$LOCATION" ] || { echo "stop-project: location not a local dir: $LOCATION" >&2; exit 1; }
case "$HARNESS" in
agent-orchestrator)
echo "stop-project: $NAME → python3 engine/agents.py down $* (in $LOCATION)"
( cd "$LOCATION" && python3 engine/agents.py --config "$CONFIG" down "$@" );;
*) echo "stop-project: harness '$HARNESS' is not agent-orchestrator — read its docs and drive it by hand." >&2; exit 2;;
esac