For cortex v6.8.4
systemctl --user start nats@<slug> # e.g. nats@lunaInstall a local Linux application that simulates a Northwoods Sentinel Cloudflare cloud deployed mucker
IMPORTANT: This process assumes sudo is already installed and the normal user account, mucker, is in the sudo group.
| # Flow with PAI being MacOS instead of fighting it | |
| # Use a case-insensitive filesystem just for .claude | |
| cd $HOME | |
| mv .claude claude-temp | |
| # Adjust count for desired filesystem size | |
| dd if=/dev/zero of=claude.img bs=1M count=10240 | |
| mkfs.ext4 -O casefold claude.img | |
| mkdir .claude | |
| sudo mount -o loop claude.img .claude |
Use the Agent skill for background agents and agent teams. Each agent gets a fresh tool registry, so heartbeats only work if the spawner sets them up correctly. Read the caveat below before writing any agent prompt.
The Task* tools (TaskCreate, TaskUpdate, TaskGet, TaskList, TaskOutput, TaskStop) are deferred in this harness. They appear by name in the deferred-tools system reminder but their JSONSchema is not loaded until something calls ToolSearch("select:TaskCreate,TaskUpdate,…"). A spawned agent inherits the same deferred state — telling it to call TaskUpdate directly without first loading the schema produces an InputValidationError and the heartbeat silently never fires. Observed failure mode: the agent reports back "TaskUpdate is not in my tool registry; I proceeded without heartbeats."
| #!/usr/bin/env bash | |
| # PAI 3.0 Environment Variables Template — env.sh / CLAUDE_ENV_FILE Edition | |
| # Generated: 2026-02-16 | Adapted for Claude Code CLAUDE_ENV_FILE: 2026-02-20 | |
| # | |
| # SETUP INSTRUCTIONS: | |
| # 1. Copy: cp pai30-env-template.sh $HOME/.config/PAI/pai-env.sh | |
| # 2. Lock down: chmod 600 $HOME/.config/pai-env.sh | |
| # 3. Fill in: Uncomment (remove #) from lines you need and add real keys | |
| # 4. Register: export CLAUDE_ENV_FILE="$HOME/.pai-env.sh" | |
| # (add to ~/.bashrc / ~/.zshrc for persistence) |
| # PAI 3.0 Environment Variables Template | |
| # Generated: 2026-02-16 by PAI 3.0 | |
| # | |
| # IMPORTANT: Never commit .env files to version control! | |
| # | |
| # ============================================================================= | |
| # AI/ML SERVICES | |
| # ============================================================================= |
| # PAI Environment Configuration Template | |
| # Copy to .env and fill in your API keys: | |
| # cp env.template .env | |
| # | |
| # Keys are loaded by PAI tools from ~/.claude/.env | |
| # ============================================================================ | |
| # CORE AI SERVICES | |
| # ============================================================================ |
IMPORTANT: As of January 09, 2025
This is a guide for humans. The intent is to cover pre-requisite items to smooth the PAI installation process.
Debian 13 virtual machine
| #!/usr/bin/env python | |
| # Use /usr/bin/env python to support virtual environments | |
| # This script is for Python > 3.6 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Test loading mock initial alliances data into a test table with asyncpg and Postgres | |
| """ | |
| import datetime | |
| import json |