Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
A comprehensive collection of Agent Skills for context engineering, multi-agent architectures, and production agent systems.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
researcher/orchestration/launchd/install.sh
1#!/usr/bin/env bash2# Install or refresh the autonomous research loop launchd jobs.3# This script does not run anything as root. It writes user LaunchAgents and bootstraps them.4set -euo pipefail56SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"7REPO_ROOT="$(cd "${SCRIPT_DIR}/../../.." && pwd)"8TARGET_DIR="${HOME}/Library/LaunchAgents"9mkdir -p "${TARGET_DIR}"10mkdir -p "${REPO_ROOT}/researcher/reports/logs"1112for plist in com.context-engineering.loop-step.plist \13com.context-engineering.loop-discover.plist \14com.context-engineering.loop-daily.plist; do15src="${SCRIPT_DIR}/${plist}"16dst="${TARGET_DIR}/${plist}"17sed "s|__REPO_ROOT__|${REPO_ROOT}|g" "${src}" > "${dst}"18launchctl bootout "gui/$(id -u)" "${dst}" >/dev/null 2>&1 || true19launchctl bootstrap "gui/$(id -u)" "${dst}"20launchctl enable "gui/$(id -u)/$(basename "${dst}" .plist)"21done2223echo "Installed launchd jobs under ${TARGET_DIR}. Inspect with:"24echo " launchctl print gui/$(id -u)/com.context-engineering.loop-step"25echo "Logs land in ${REPO_ROOT}/researcher/reports/logs/"26