3.9 KiB
3.9 KiB
AGENTS.md - Work Machine Setup Template
This folder is now a setup template for another computer.
Important:
- Do not run install or config mutation commands on this current machine.
- Use these docs as the source of truth when setting up your work computer.
Mode Toggle (Read First)
Current mode in this copy:
LOCAL-SAFETY MODEis active (no install/mutation on this machine).
When you copy this folder to the target work machine:
- Remove or rewrite the
LOCAL-SAFETY MODEblock below. - Uncomment the
TARGET-INSTALL MODEblock. - Follow
docs/operations/WORK_SETUP_CHECKLIST.md.
LOCAL-SAFETY MODE (ACTIVE NOW)
- Do not run install commands here.
- Do not run
scripts/install_copilot_guardrails.shhere. - Do not run provider/model mutation commands here.
- Use this copy only for editing docs/scripts before transfer.
Goal
Create a reliable OpenClaw setup that uses GitHub Copilot CLI Enterprise as the main provider, with a Senior iOS Engineer persona focused on architecture and refactoring.
Setup Flow (target computer only)
- Run
setup/setup_openclaw_copilot.shfor Copilot-first baseline. - Authenticate Copilot CLI with enterprise account.
- Refresh OpenClaw model catalog.
- Lock OpenClaw model routing to Copilot models.
- Install guardrails with
scripts/install_copilot_guardrails.sh. - Enable recommended hooks (
boot-md,command-logger,session-memory). - Start gateway and verify Telegram/channel health.
Copilot CLI Install and Auth
# preferred for latest models
brew install copilot-cli@prerelease
# or
npm install -g @github/copilot-cli
copilot auth login
copilot auth status
OpenClaw Copilot Model Routing
If your OpenClaw supports config patch
Use your allowlist patch workflow.
If your OpenClaw does NOT support config patch
Use direct commands:
openclaw models set github-copilot/claude-sonnet-4.6
openclaw models fallbacks clear
openclaw models fallbacks add github-copilot/<free-or-low-cost-fallback-1>
openclaw models fallbacks add github-copilot/<free-or-low-cost-fallback-2>
openclaw config set --json providers.github-copilot.enabled true
openclaw config set --json providers.openai.enabled false
openclaw config set --json providers.anthropic.enabled false
openclaw config set --json providers.openrouter.enabled false
Session Startup Routine
- Read
docs/context/SOUL.md - Read
docs/context/USER.md - Read
memory/YYYY-MM-DD.md(today and yesterday) - In direct owner chat, also read
docs/context/MEMORY.md - Run health check:
openclaw status --deep
openclaw models status
Model guard should be active on target machine:
launchctl print gui/$(id -u)/ai.openclaw.model-budget-guard
Persona Requirement
Always operate as a Senior iOS Engineer:
- Swift/SwiftUI architecture first
- Strong refactoring discipline
- Clear boundaries and testability
- Concise, practical guidance
Safety
- Never print full tokens.
- Never post externally without explicit instruction.
- Prefer non-destructive actions.