---
title: "Portable Bootstrap — Quick Context for Ad-Hoc AI Clients"
type: reference
kind: reference
documentedFor: "1.24.1"
updated: "2026-11-19"
canonical: "https://arcaneai.net/docs/reference/portable-bootstrap"
---

# Portable Bootstrap — Quick Context for Ad-Hoc AI Clients

## At a glance

| Field | Value |
| --- | --- |
| Status | active |
| Audience | ai |
| Tags | `ai-context`, `bootstrap`, `multi-client`, `portable` |

Paste this entire file into any AI client (Claude web, ChatGPT, etc.) to give it working context for this project. For full detail, read the linked files in the repo.

---

## Project

**Arcane** — Operational documentation for running AI-automated businesses under `{LLC_NAME}` (owner: `{OPERATOR_NAME}`). Uses an agent runtime to automate operations across one or more ventures.

**This is a documentation-only repository.** No build commands, test suites, or deployable code. **Do not add automation without being asked. Enforcement: explicitly advisory prose ([ARC-023](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-023--normative-controls-require-inline-enforcement-contracts)) — no check blocks adding scripts, build tooling, or automation to this repo; compliance depends on agent judgment.**

## Environment

- **Primary machine:** the host where the agent runtime executes.
- **Disk encryption:** full-disk encryption active on machines holding credentials or working copies.
- **Agent runtime:** one or more agents configured. Runtime gateway bound to loopback, token auth via SecretRef, exposed remotely only through an authenticated tunnel if needed.
- **User:** a dedicated non-root user.

## Non-Negotiable Rules

**Enforcement note ([ARC-023](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-023--normative-controls-require-inline-enforcement-contracts)):** these 9 rules are a condensed restatement of `.arcane/governance/universal-agent-rules.md` rules 1-6, 10, 11, and 15 — see that file for each rule's full text and its authoritative enforcement-mode classification; this summary does not duplicate those classifications here, to avoid a second, driftable copy of the same information.

1. **Never access an encrypted or cross-OS volume you are not authorized to touch.** This rule stands as defense-in-depth regardless of encryption status.
2. **No root commands** unless explicitly scoped and justified.
3. **No secrets on the command line.** Use env vars and `read -s`.
4. **Update `last_updated` frontmatter** when editing any document.
5. **Log significant decisions** in DECISIONS.md as ADRs.
6. **Production system** — no shortcuts, no "fix it later."
7. **Conventional Commits** format: `type(scope): description`.
8. **Never auto-commit** during interactive sessions — present for approval first. Exception: autonomous agents at Magus+ power level may self-commit within approved scope.
9. **Recommendation guardrails:** Flag actionable recommendations. Verify information. Present free alternatives. Confirm >$50 items.

## Key Files

| Need               | File                                          |
| ------------------ | --------------------------------------------- |
| Full rules         | `.arcane/governance/universal-agent-rules.md` |
| Project overview   | `project.md`                                  |
| Decisions log      | `DECISIONS.md`                                |
| Agent policies     | `.arcane/governance/agent-policies.md`        |
| Git conventions    | `.arcane/governance/git-conventions.md`       |
| AI context summary | `ai-context/system-prompt-context.md`         |

## Where Documents Live

- **Framework-managed standards:** `.arcane/governance/`. Spells reference this single installed layer; **do not create a duplicate root `governance/` tree. Enforcement: explicitly advisory prose ([ARC-023](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-023--normative-controls-require-inline-enforcement-contracts)) — no check scans a repo for a duplicate root-level `governance/` directory.**
- **Framework-managed spells:** `.arcane/spells/<id>.md` is each spell's one authored source ([ARC-045](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-045--one-spell-source-thin-client-shims-and-a-user-level-install-tier)). The files each AI client discovers — `.github/prompts/<id>.prompt.md` for Copilot, `.claude/commands/<id>.md` for Claude Code, `.agents/skills/<id>/SKILL.md` for Codex — are thin generated shims that point back at it; edit the canonical file, never a shim. **Enforcement: executable check ([ARC-023](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-023--normative-controls-require-inline-enforcement-contracts)) — `npm run check:self-host-parity` re-renders every shim from its canonical file and fails on any difference; `spell update` keeps a hand-edited shim untouched and names it rather than merging into it.** The same canonical spells can also be installed once per machine — `spell init --user` puts them at `~/.arcane/spells/<id>.md` with one Codex/Copilot skill under `~/.agents/skills/` and one Claude Code command under `~/.claude/commands/` per spell ([ARC-045](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-045--one-spell-source-thin-client-shims-and-a-user-level-install-tier) decision 3); governance never moves up a tier. The agent roster follows the same shape ([ARC-047](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-047--agents-are-roster-rendered-not-registry-distributed-and-get-a-user-tier)): `spell agents init|sync --user` keeps `agents.yaml` and the role definitions at `~/.arcane` and renders one `~/.claude/agents/<name>.md` per agent -- the one home location read by both VS Code and Claude Code, so a persona shows up once in each rather than twice in one ([ARC-047](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-047--agents-are-roster-rendered-not-registry-distributed-and-get-a-user-tier) decisions 3 and 11). Agent files are never installed by `spell init`/`spell update` at either tier -- they are rendered from the roster, whose naming strategy picks each file's name, which is why an upgrade never touches them. An absent `spell_scope` means `repo` permanently ([ARC-048](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-048--an-absent-spell_scope-means-repo-permanently-new-repositories-may-be-pre-selected)); a machine may set `default_spell_scope` in its own store to pre-select the answer `spell init` offers in NEW repositories, which never rewrites an existing one and never suppresses the question. A repository may then opt out of carrying its own copies entirely with `spell_scope: "user"` in `.arcane.json` ([ARC-045](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-045--one-spell-source-thin-client-shims-and-a-user-level-install-tier) decision 4) — `spell update --prune` removes what it no longer manages, keeping anything you edited, and `spell doctor` fails loudly if the tier it now depends on is missing.
- **Project-owned orientation and continuity:** `README.md`, `project.md`, `TODO.md`, `DECISIONS.md`, `ai-context/`, and `journal/`. Arcane creates missing files once and preserves existing content.
- **Project/domain documents:** use explicit descriptive paths such as `docs/`, `security/`, `infrastructure/`, or a configured business root. These add project context alongside framework standards.
- **Overrides survive `arcane update`:** editing a managed `.arcane/governance/` standard no longer risks silent loss. Additive project documents were always safe; a hand-edit to a shipped standard now is too. **Enforcement: executable check ([ARC-038](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-038--content-preserving-updates-and-vendor-neutral-governance-content), shipped BC-31)** — `spell update` compares each file's on-disk content against its recorded hash at install time: unchanged, it refreshes normally; edited, it fetches the exact previously-installed published version as a three-way merge base against your edit and the new vendor content, auto-merging non-overlapping changes and leaving standard conflict markers only on genuine collisions. If the prior published version can't be fetched, your edit is left untouched with a warning rather than replaced.

## Research Reports

Research findings (competitive analysis, technical spikes, feasibility studies — the output of the Research & Backlog Analyst role) live at `docs/research/<topic-slug>.md`, one file per report. No dedicated spell produces these: `spell-document` already proposes a target path from project structure and matches its destination directory's existing conventions — point it at `docs/research/` for investigative content, the same way it already proposes `docs/` or `.arcane/governance/` for other document types. The directory is created on first real report, not pre-seeded on `spell init`.

Use this repo's standard frontmatter (below) plus one addition: `sources` — a list of what was consulted. **Every claim in the body traces back to one of these or is explicitly marked speculative. Enforcement: explicitly advisory prose ([ARC-023](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-023--normative-controls-require-inline-enforcement-contracts)) — no mechanism reads research-report prose to verify citation coverage or speculation marking.** Structure the body summary-first: a short **Summary** with the key findings, then **Findings** with full detail and inline citations, then an optional **Follow-ups** for anything that should become a TODO item — route those via `spell-todo`, which cross-references the report path. Throughout, distinguish **verified facts**, **reasonable inferences**, and **speculation** explicitly; don't let an inference read as a checked fact.

## Documentation Format

**Every doc uses YAML frontmatter: `title`, `audience` (human/ai/both), `last_updated`, `status` (draft/active/deprecated), `tags`. Enforcement: explicitly advisory prose ([ARC-023](https://github.com/codemagicianhq/arcane/blob/v1.24.1/DECISIONS.md#arc-023--normative-controls-require-inline-enforcement-contracts)) — no schema validates these frontmatter fields on arbitrary docs; `.arcane.json` manifest validation (`src/modules/manifest.ts`) covers only installation-config fields, not document frontmatter.** Use wiki-links (`[[filename]]`) for cross-references.

## Naming Tiers

| Tier      | Style           | Examples                                 |
| --------- | --------------- | ---------------------------------------- |
| Machines  | Iconic names    | Atlas, Voyager                           |
| AI Agents | Persona + role  | Merlin — CTO, `{AGENT_NAME}` — Product Ops |
| Systems   | Functional slug | `inventory-api`, `orders-worker`         |

## Version Control Host

Use your chosen host's project organization (`{ADO_ORG}`). Apply a consistent project/repo naming convention. One project per business + one shared docs/ops project.

## Spell Commands (Development Methodology)

Development follows the **Spell Loop** — structured planning phases feeding an autonomous implementation loop, delivered through the spell system. All workflows go through this flow.

**Available spells** (invoke by typing the command name in your message):

### Core Loop: Plan → Architect → Implement → Test → Review → Ship

- `spell-plan` — Plan a feature (output: PRD.md)
- `spell-architect` — Design the solution (output: architecture.md + stories.json)
- `spell-implement` — Write code per story
- `spell-test` — Run QA and verify
- `spell-review` — Adversarial code review
- `spell-ship` — Merge and deploy

### Session Management

- `spell-open-session` — Rebuild context after reset; read core docs, identify unfinished work, prioritize
- `spell-close-session` — End-of-session cleanup: stage changes, curate screenshots, propose commits, journal

### Operational

- `spell-commit-work` — Standard Git workflow: stage → message → approve → execute
- `spell-todo` — Review TODO.md, prioritize, move resolved items to canonical docs
- `spell-check-drift` — Find stale assumptions in docs vs. reality
- `spell-summon-venture` — Create a new venture (hub-gated): folder, template docs, idea/todo books, registry entry

### Specialized

- `spell-security-review` — Audit for security gaps, credential exposure, threat coverage
- `spell-product-review` — Evaluate business readiness: market fit, automation scope, blockers
- `spell-dotnet-expert` — .NET/Blazor deep-dive
- `spell-explain-concept` — Break down complex architecture concepts
- `spell-generate-bot-icons` — Create agent personas and icons

Full reference: See `.arcane/governance/development-methodology.md` in the repo.
