Agentic Coding Flywheel Setup (ACFS)

🌐 agent-flywheel.com — Interactive setup wizard for beginners
From zero to fully-configured agentic coding VPS in 30 minutes.
A complete bootstrapping system that transforms a fresh Ubuntu or Arch-based machine into a professional AI-powered development environment.
The Vision
Beginner with laptop → Wizard → VPS → Agents coding for you
|
Quick Install
{ acfs_installer="$(curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/install.sh")" || acfs_installer="$(curl -fsSL "https://cdn.jsdelivr.net/gh/Dicklesworthstone/agentic_coding_flywheel_setup@main/install.sh")"; } && printf '%s\n' "$acfs_installer" | bash -s -- --yes --mode vibe
[!NOTE]
raw.githubusercontent.com is listed first deliberately. jsDelivr caches a mutable @main
reference, so it can serve an installer that is hours or days behind the repository. When that
happens the stale installer’s bootstrap extraction list does not match the current checksum
ledger and the install fails with INTEGRITY: <file> missing — a failure that looks like a
repository defect but is purely a CDN cache artifact. Keeping the authoritative source primary
and the CDN as fallback preserves the resilience without that failure mode. Please do not
reorder these. Each download is buffered before execution so a failed request cannot concatenate
a partial installer with the fallback response.
The installer is idempotent—if interrupted, simply re-run it. Resume revisits installation phases and uses component checks to repair incomplete installations.
Using a cloud agent instead of a VPS? The cloud agent guide has tested Claude Code / Codex setups and researched recipes for other Linux agents. See cloud environments.
Production environments: For stable, reproducible installs, pin to a tagged release or specific commit:
# Preferred: use a tagged release (e.g., v0.11.6)
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/v0.11.6/install.sh" | bash -s -- --yes --mode vibe --ref v0.11.6
# Alternative: pin to a specific commit SHA
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/abc1234/install.sh" | bash -s -- --yes --mode vibe --ref abc1234
Tagged releases are tested and stable. Passing --ref ensures all fetched scripts use the same version.
TL;DR
ACFS is a complete system for bootstrapping agentic coding environments:
Why you’d care:
- Zero to Hero: Takes complete beginners from “I have a laptop” to “I have Claude/Codex/Antigravity agents writing code for me on a VPS”
- One-Liner Magic: A single
curl | bash command installs 30+ tools, configures everything, and sets up three AI coding agents
- Vibe Mode: Pre-configured for maximum velocity—passwordless sudo, dangerous agent flags enabled, optimized shell environment
- Battle-Tested Stack: Includes the complete Agent Flywheel stack (core tools + utilities) for agent orchestration, coordination, and safety
What you get:
- Modern shell (zsh + oh-my-zsh + powerlevel10k)
- All language runtimes (bun, uv/Python, Rust, Go)
- Agent coordination tools (NTM, MCP Agent Mail, SLB)
- Cloud CLIs (Vault, Wrangler, Supabase, Vercel)
- And 20+ more developer tools
Coding agents: 7 modules — 3 installed by default (Antigravity CLI, Claude Code, Codex CLI); 3 optional (Grok CLI, oh-my-pi, OpenCode); 1 legacy, off by default (Gemini CLI). Full roster in Compatible AI Coding Agents.
The ACFS Experience
graph LR
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#e8f5e9', 'lineColor': '#90a4ae'}}}%%
subgraph user ["User's Machine"]
LAPTOP["Laptop"]
BROWSER["Browser"]
end
subgraph wizard ["Wizard Website"]
STEPS["13-Step Guide"]
end
subgraph vps ["Fresh VPS"]
UBUNTU["Ubuntu 22.04 / 24.04 LTS"]
INSTALLER["install.sh"]
CONFIGURED["Configured VPS"]
end
subgraph agents ["AI Agents"]
CLAUDE["Claude Code"]
CODEX["Codex CLI"]
AGY["Antigravity CLI"]
end
LAPTOP --> BROWSER
BROWSER --> STEPS
STEPS -->|SSH| UBUNTU
UBUNTU --> INSTALLER
INSTALLER --> CONFIGURED
CONFIGURED --> CLAUDE
CONFIGURED --> CODEX
CONFIGURED --> AGY
classDef user fill:#e3f2fd,stroke:#90caf9,stroke-width:2px
classDef wizard fill:#fff8e1,stroke:#ffcc80,stroke-width:2px
classDef vps fill:#f3e5f5,stroke:#ce93d8,stroke-width:2px
classDef agent fill:#e8f5e9,stroke:#a5d6a7,stroke-width:2px
class LAPTOP,BROWSER user
class STEPS wizard
class UBUNTU,INSTALLER,CONFIGURED vps
class CLAUDE,CODEX,AGY agent
For Beginners
ACFS includes a step-by-step wizard website at agent-flywheel.com that guides complete beginners through:
- Installing a terminal on their local machine
- Generating SSH keys (for secure access later)
- Renting a VPS from providers like OVH or Contabo
- Connecting via SSH with a password (initial setup)
- Running the installer (which sets up key-based access)
- Reconnecting securely with your SSH key
- Starting to code with AI agents
For Developers
ACFS is a one-liner that transforms any fresh Ubuntu or Arch-based machine into a fully-configured development environment with modern tooling and three AI coding agents ready to go.
For Teams
ACFS provides a reproducible, idempotent setup that ensures every team member’s VPS environment is identical—eliminating “works on my machine” for agentic workflows.
Architecture & Design
ACFS centers its tool inventory and generated module metadata on the manifest.
Generated installer libraries and doctor checks derive from it, while
install.sh and several orchestration libraries retain explicit authored
handoffs. Drift checks cover the seam between those two layers.
One-Page System Data Flow
flowchart TB
%% User and website
subgraph U["User (local machine)"]
Browser["Browser"]
Terminal["Terminal / SSH client"]
end
subgraph W["Wizard Website (Next.js 16) — apps/web"]
Wizard["Wizard UI (/wizard/*)"]
InstallRoute["GET /install (302 redirect to raw install.sh)"]
WebState["State: URL params + localStorage"]
end
%% Repo sources
subgraph R["Repo (source)"]
Manifest["acfs.manifest.yaml<br/>Modules + install + verify + deps"]
Generator["packages/manifest<br/>Parser (Zod) + generate.ts"]
Generated["scripts/generated/*<br/>source-only libraries/harness + doctor/index/checksum data"]
Installer["install.sh (production one-liner)"]
Lib["scripts/lib/*<br/>security / doctor / update / services-setup"]
Configs["acfs/*<br/>zshrc + tmux.conf + onboard lessons"]
Checksums["checksums.yaml<br/>sha256 for upstream installers"]
Tests["tests/vm/test_install_ubuntu.sh<br/>Docker integration test"]
end
%% Target VPS
subgraph V["Target VPS (Ubuntu LTS, existing release preserved)"]
Run["Run install.sh"]
Verify["Verified upstream installers<br/>(security.sh + checksums.yaml)"]
AcfsHome["~/.acfs/<br/>configs + scripts + state.json"]
Commands["Commands<br/>acfs doctor / acfs update / acfs services / acfs services-setup / onboard"]
Tools["Installed tools<br/>bun/uv/rust/go + tmux/rg/gh + vault + ..."]
Agents["Agent CLIs<br/>claude / codex / agy"]
Stack["Stack tools<br/>ntm / mcp_agent_mail / ubs / bv / cass / cm / caam / slb / dcg / ru"]
end
%% Website guidance flow
Browser --> Wizard
Wizard --> WebState
Wizard --> InstallRoute
InstallRoute -->|redirects to| Installer
%% How users fetch/run the installer
Terminal -->|curl / bash| Installer
Terminal -->|SSH| Run
%% Manifest-driven generation
Manifest --> Generator --> Generated
Generated -->|install.sh sources category libraries<br/>and dispatches private module functions| Installer
%% Installer composition
Lib --> Installer
Configs --> Installer
Checksums --> Installer
Tests -->|validates| Installer
%% VPS install results
Installer --> Run
Run --> Verify
Verify --> Tools
Verify --> Agents
Verify --> Stack
Run --> AcfsHome --> Commands
┌─────────────────────────────────────────────────────────────────────────────┐
│ SOURCE OF TRUTH │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ acfs.manifest.yaml │ │
│ │ Tool Definitions • Install Commands • Verification Logic │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────┘
│
┌─────────────────┴─────────────────┐
▼ ▼
┌───────────────────────────────────┐ ┌───────────────────────────────────┐
│ CODE GENERATION │ │ WIZARD WEBSITE │
│ ┌─────────────────────────────┐ │ │ ┌─────────────────────────────┐ │
│ │ TypeScript Parser (Zod) │ │ │ │ apps/web/ (Next.js 16) │ │
│ │ generate.ts │ │ │ │ agent-flywheel.com │ │
│ └─────────────────────────────┘ │ │ └─────────────────────────────┘ │
└───────────────────────────────────┘ └───────────────────────────────────┘
│
▼
┌───────────────────────────────────────────────────────────────────────────┐
│ GENERATED OUTPUTS (REFERENCE) │
│ scripts/generated/: 13 source-only category libraries + install_all │
│ harness + doctor checks + manifest index + schema-1 checksum ledger │
└───────────────────────────────────────────────────────────────────────────┘
│
▼
┌───────────────────────────────────────────────────────────────────────────┐
│ INSTALLER │
│ install.sh + scripts/lib/*.sh + checksums.yaml (SHA256 verification) │
│ (category libraries are sourced; install.sh owns production dispatch) │
└───────────────────────────────────────────────────────────────────────────┘
│
▼
┌───────────────────────────────────────────────────────────────────────────┐
│ TARGET VPS │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ 30+ Tools │ │ zsh + p10k │ │ AI Agents │ │ ~/.acfs/ │ │
│ │ Installed │ │ Shell Config │ │ Claude/Codex │ │ Configurations│ │
│ └──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘ │
└───────────────────────────────────────────────────────────────────────────┘
Why This Architecture?
Single Source of Truth: The manifest file (acfs.manifest.yaml) defines every tool—its name, description, install commands, and verification logic. When you add or edit a tool in the manifest, the generator automatically updates the generated scripts and manifest-derived checks. The production one-liner installer (install.sh) is still hand-written today, so behavior changes may also require updating install.sh until full migration.
TypeScript + Zod Validation: The manifest parser uses Zod schemas to validate the YAML at parse time. Typos, missing fields, and structural errors are caught immediately during generation—not at runtime on a user’s VPS when the installer fails halfway through.
Generated Scripts: Rather than hand-maintaining one installer script per manifest category and keeping them synchronized, the generator produces them from the manifest. This means:
- A consistent, auditable view of manifest-defined install logic (some modules intentionally emit TODOs)
- Consistent error handling and logging across all modules
- A clear path toward future installer integration
Components
| Component |
Path |
Technology |
Purpose |
| Manifest |
acfs.manifest.yaml |
YAML |
Single source of truth for all tools |
| Generator |
packages/manifest/src/generate.ts |
TypeScript/Bun |
Produces installer scripts from manifest |
| Website |
apps/web/ |
Next.js 16 + Tailwind 4 |
Step-by-step wizard for beginners |
| Installer |
install.sh |
Bash |
One-liner bootstrap script |
| Lib Scripts |
scripts/lib/ |
Bash |
Modular installer functions |
| Generated Scripts |
scripts/generated/ |
Bash/data |
Source-only category libraries and harness, doctor checks, manifest metadata, and the schema-1 internal checksum ledger |
| Configs |
acfs/ |
Shell/Tmux configs |
Files deployed to ~/.acfs/ |
| Onboarding |
acfs/onboard/ |
Bash + Markdown |
Interactive tutorial system |
| Checksums |
checksums.yaml |
YAML |
SHA256 hashes for upstream installers |
The Manifest System
acfs.manifest.yaml is the canonical inventory for generated ACFS modules. It
defines their installation and verification metadata; authored orchestration
remains responsible for bootstrap, lifecycle, and registered non-generated
handoffs.
Manifest Structure
version: 2
name: agentic_coding_flywheel_setup
id: acfs
defaults:
user: ubuntu
workspace_root: /data/projects
mode: vibe
modules:
- id: base.system
description: Base packages and sane defaults
category: base
run_as: root
optional: false
enabled_by_default: true
generated: true
phase: 1
install:
- apt-get update -y
- apt-get install -y curl git ca-certificates unzip tar xz-utils jq build-essential
verify:
- curl --version
- git --version
- jq --version
Each module specifies:
- description: Human-readable name
- category: One of the canonical groups: base, users, filesystem, shell, cli, network, lang, tools, db, cloud, agents, stack, acfs
- install: Commands to run (or descriptions that become TODOs)
- verify: Commands that must succeed to confirm installation
The Generator Pipeline
The TypeScript generator (packages/manifest/src/generate.ts) reads the manifest and produces:
-
Category Libraries (scripts/generated/install_base.sh, install_agents.sh, etc.)
- One source-only file per category with private module functions
- Consistent logging and error handling
- Verification checks after each module
- Direct execution fails closed because a single category cannot satisfy cross-category dependencies
-
Doctor Checks (scripts/generated/doctor_checks.sh)
- All verify commands extracted into a runnable health check
- Tab-delimited format (to safely handle
|| in shell commands)
- Reports pass/fail/skip for each module
-
Generated Harness (scripts/generated/install_all.sh)
- Sources all category libraries
- Invokes private module functions in global dependency order
- Sourceable generated-module harness; direct execution refuses because it omits orchestration-owned modules and production dispatcher semantics
-
Runtime Data (scripts/generated/manifest_index.sh, internal_checksums.sh)
- Deterministic module/category/generated-ownership metadata
- Closed-grammar schema-1 digests for checksum-controlled runtime scripts
Note: Production install.sh is the only supported installation entry point. It sources the category libraries and dispatches their private functions through its phase runner; it does not call install_all.sh.
To regenerate after manifest changes:
cd packages/manifest
bun run generate # Generate scripts
bun run generate:dry # Preview without writing
Why TypeScript for Code Generation?
Shell can parse YAML with yq, but TypeScript + Zod offers:
- Type safety: The parser knows the exact shape of a manifest
- Validation: Zod catches malformed YAML with descriptive errors
- Transformation: Complex logic (sorting by dependencies, escaping) is natural in TypeScript
- Consistency: All generated code follows the same patterns
The generator centralizes the substantially larger Bash output in one reviewed TypeScript implementation. Exact line and file counts are intentionally derived from the current manifest rather than frozen in this document.
Security Verification
ACFS downloads and executes installer scripts from the internet. This is inherently risky—a compromised upstream could inject malicious code. The security verification system mitigates this risk.
How It Works
The checksums.yaml file contains SHA256 hashes for all upstream installer scripts:
# checksums.yaml
installers:
rust:
url: "https://raw.githubusercontent.com/rust-lang/rustup/1.29.3/rustup-init.sh"
sha256: "d890e2fe..."
uv:
url: "https://astral.sh/uv/0.13.9/install.sh"
sha256: "ccc88811..."
The security library (scripts/lib/security.sh) provides:
-
HTTPS Enforcement: All installer URLs must use HTTPS. Non-HTTPS URLs fail immediately.
-
Checksum Verification: Before executing a downloaded script, the system:
- Downloads the content to memory
- Calculates the SHA256 hash
- Compares against the stored hash
- Only executes if they match
-
Verification Modes:
./scripts/lib/security.sh --print # List all upstream URLs
./scripts/lib/security.sh --verify # Verify all against saved checksums
./scripts/lib/security.sh --update-checksums # Generate new checksums.yaml
./scripts/lib/security.sh --checksum URL # Calculate SHA256 of any URL
The uv installer also requires a working sha256sum from coreutils in its
clean target-user environment. Immediately before executing uv’s verified
installer, ACFS checks the verifier with a known SHA256 result using the same
system PATH and account. A missing, failing, or incorrect verifier stops the
installation before uv can download release archives, and asks you to repair
or install coreutils. This applies to both
the legacy and generated installers and preserves the installer’s stdin.
Third-party installers are fetched from URLs whose bytes never change: a
release tag (uv, rustup, nvm, Atuin) or a commit (Bun, Oh My Zsh, zoxide,
OpenCode, omp). The vendors’ own URLs (bun.sh/install, sh.rustup.rs,
install.ohmyz.sh, astral.sh/uv/install.sh, .../releases/latest/...) serve
new bytes whenever upstream edits the script, and between July and November
2026 every such edit failed its pin closed and stopped fresh installs until
someone reviewed it (uv’s pin alone changed 27 times). Antigravity, Claude Code
and Grok publish no immutable installer URL, so their pins still need a review
when upstream changes them. To move to a newer version, change the tag or
commit in KNOWN_INSTALLERS in scripts/lib/security.sh, then regenerate and
review checksums.yaml as shown below; tests/unit/lib/test_security.bats
fails if a third-party entry goes back to a moving URL. Installed systems
still get new releases through each tool’s own updater (uv self update,
rustup update, bun upgrade, …) during acfs update.
When Checksums Fail
A checksum mismatch can mean:
- Normal update: The upstream maintainer released a new version
- Potential compromise: Someone modified the script maliciously
The verification report distinguishes these cases:
- If multiple checksums fail simultaneously, investigate before updating
- If a single checksum fails after a known release, update is likely safe
To update after verifying a legitimate upstream change:
# Write to a candidate file first: redirecting straight onto checksums.yaml
# truncates it before the script runs, so a single fetch error would leave
# it empty and every verified installer would fail closed.
./scripts/lib/security.sh --update-checksums > /tmp/acfs-checksums.candidate.yaml
diff -u checksums.yaml /tmp/acfs-checksums.candidate.yaml # Review what changed
cp /tmp/acfs-checksums.candidate.yaml checksums.yaml
git commit -m "chore: update upstream checksums"
Why This Approach?
The curl | bash pattern is controversial but practical. ACFS makes it safer by:
- Verifying content before execution (not just transport via HTTPS)
- Making checksums auditable in version control
- Providing tools to detect and investigate changes
- Failing closed (no execution on mismatch)
This is defense in depth—HTTPS protects transport, checksums protect content.
Omarchy (Arch) support
Omarchy (and Arch Linux generally) is supported by the same one-liner — no separate command required. The installer auto-detects your distribution and adapts:
- pacman instead of apt: system packages and CLI tools install via
pacman.
- Your existing starship config is preserved: if you already have a customized
starship.toml, ACFS leaves it alone rather than overwriting it.
- No oh-my-zsh / powerlevel10k on Arch: Arch users typically have an opinionated shell setup already, so the installer skips the oh-my-zsh + powerlevel10k phase instead of clobbering your prompt.
- apt-only modules stop early under
--only / --skip: a filtered run executes the manifest modules directly rather than the pacman-aware default path. The modules that can only install with apt (base.system, shell.zsh, cli.modern, lang.go, network.tailscale, tools.vault, db.postgres18) stop before changing anything and print the pacman command to run instead. db.postgres18 instead points to an unfiltered run: its check only recognizes the Ubuntu packages, and the default Arch path installs and initializes PostgreSQL with pacman.
Everything else — language runtimes, AI agents, and the flywheel tool stack — installs identically to Ubuntu.
Cloud agent environments
The public cloud agent setup guide selects the right recipe for your provider. Claude Code and ChatGPT / Codex have hosted test evidence; Amp Orbs, Devin and Grok Bot have documentation-based recipes awaiting hosted acceptance. Meta Muse needs shell/runtime and persistence checks before an installation recipe can be accepted. The installer retains its original filename and supports claude, codex and provider-neutral generic modes.
Prefer to hand the setup to a browser agent? Use Copy full instructions near the top of the guide, or share its complete ChatGPT / Codex Markdown brief. The Markdown is the exact copy-button content, including scripts, screenshot references and verification steps. Choose agent=claude, codex, amp, devin, grok, muse or generic; omitting agent defaults to Claude. The guide’s Open Markdown link follows your selected provider.
Claude Code on the web
Claude Code on the web runs cloud sessions on a disposable Ubuntu 24.04 VM. ACFS uses scripts/claude-code-web-setup.sh to install prebuilt agent-facing tools during setup, without provisioning users, upgrading the OS or starting background services. The cloud guide walks through it with copy buttons.
Set it up: in claude.ai/code open the environment menu, choose Add cloud environment (or edit one), set Network access to Full (recommended), and paste this as the Setup script:
#!/bin/bash
(
acfs_cloud_setup="$(curl -q -fsSL --proto '=https' --proto-redir '=https' --connect-timeout 5 --max-time 20 -A 'acfs (+https://github.com/Dicklesworthstone/agentic_coding_flywheel_setup)' -H 'Accept-Encoding: identity' https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/scripts/claude-code-web-setup.sh)" || { printf '%s\n' 'ACFS cloud bootstrap download failed; tools were not installed. Check network access and retry.' >&2; exit 0; }
printf '%s\n' "$acfs_cloud_setup" | bash
)
The bootstrap downloads completely before it runs, with a 20-second transfer limit. If that download fails, Claude reports the failure and still starts the session. Full access enables the public binary mirror. Custom and restricted-mode behavior are described below. Pasting the whole script into the field works too.
| Tool |
Command |
In a cloud session |
| BeadsRust |
br |
Issue tracking in the repo’s .beads/ |
| Beads Viewer |
bv |
bv --robot-* triage from a prebuilt release |
| MCP Agent Mail |
am, mcp-agent-mail |
Registers am serve-stdio with Claude Code, so no daemon has to survive the snapshot |
| Ultimate Bug Scanner |
ubs |
Scanner with bundled modules/helpers; no hooks installed |
| Coding Agent Session Search |
cass |
Search this VM’s agent history |
| CASS Memory System |
cm |
Procedural memory |
| Meta Skill |
ms |
Skill search and management |
| ast-grep |
ast-grep |
Structural search and UBS dependency |
| Jeffrey’s Skills |
jsm |
Skill manager for jeffreys-skills.md |
| JeffreysPrompts |
jfp |
Prompt library CLI |
How it behaves:
- Every prebuilt bundle is checked against the repository’s
cloud-mirror.json before extraction. A mismatch skips the tool. All tools, including JSM, are hash-pinned.
- Tool jobs run in parallel with a maximum 180-second deadline covering downloads and both existing/final binary checks, plus up to two seconds for termination. This keeps setup inside the roughly five-minute caching window under normal VM operation. No compiler is invoked. Later sessions start from the snapshot with the tools already installed.
- The default Claude recipe exits 0 so the session can start even when a tool fails. Anything that did not install is listed in the summary, in
~/.acfs/cloud/setup.log, and in the guide below.
- It writes a managed block into
~/.claude/CLAUDE.md (or $CLAUDE_CONFIG_DIR/CLAUDE.md), which cloud sessions load as user instructions, so Claude knows which flywheel tools exist and how to call them. Content outside the block is preserved. If existing managed markers are incomplete, setup leaves the file untouched and logs the retained replacement guide’s location.
- With a custom
ACFS_CLOUD_ROOT, new Claude Agent Mail MCP registrations keep their archive in that writable root, preserving an explicit STORAGE_ROOT or XDG_DATA_HOME. The generated CLI recipes and rerun command retain the same setup-selected archive when a later task no longer has those environment overrides; relative setup paths are resolved from the setup directory. Explicit task-time STORAGE_ROOT values still win. Setup does not copy DATABASE_URL credentials into the registration or guide. Re-runs repair the exact old ACFS entry that launched mcp-agent-mail without arguments, retaining a private config backup. Existing registrations retain their storage configuration; use the guide’s CLI recipe if a retained registration points at an unwritable location.
Left out on purpose: everything in install.sh that provisions a long-lived machine (users, zsh theming, the Ubuntu upgrade, systemd services, Tailscale, PostgreSQL, Vault, cloud CLIs), plus ntm (no interactive terminal to drive), dcg (it installs a user-level Claude Code hook, and cloud sessions only run hooks from the repository’s .claude/settings.json), rch (needs SSH build workers), and caam, ru, slb.
Options, set inline so the setup script itself sees them (for example curl -fsSL … | ACFS_CLOUD_TOOLS="br bv am ubs ast-grep" bash). Selecting UBS automatically includes ast-grep so its structural checks are available without a first-scan download:
| Variable |
Default |
Effect |
ACFS_CLOUD_TOOLS |
br bv am ubs cass cm ms ast-grep jsm jfp |
Which tools to install; ubs also selects ast-grep |
ACFS_CLOUD_TIMEOUT |
180 |
Deadline for each tool’s job (download, install and version checks) in seconds; 1–180 |
ACFS_CLOUD_REQUIRED |
0 |
1 requires a usable result for every selected tool and publication of the tool guide. The Codex and generic recipes enable this for snapshot setup. Logs and working tools survive a partial failure. Claude uses best-effort setup by default. |
ACFS_CLOUD_REINSTALL |
0 |
1 reinstalls tools that are already on PATH (to update inside a running session) |
ACFS_CLOUD_AGENT |
claude |
codex writes a Codex instruction guide and skips Claude MCP registration |
ACFS_CLOUD_ROOT |
$HOME |
Writable absolute data root for binaries/logs; Codex’s custom-root guide lives there too |
ACFS_CLOUD_SKILL_DIR |
Unset |
Optional absolute Codex repository skill directory; existing skills are retained |
ACFS_REF |
main |
ACFS ref that supplies cloud-mirror.json |
When choosing a custom ACFS_CLOUD_ROOT in generic mode, replace the $HOME paths in the task instructions with that root. Its guide and log are <root>/.acfs/cloud/AGENTS.md and <root>/.acfs/cloud/setup.log. The generated guide supplies the exact PATH and data commands, including Agent Mail’s command-local storage setting.
Once the setup script is available, reruns reuse working tools without downloading the manifest or bundles. If a tool is missing, fails its version check, or ACFS_CLOUD_REINSTALL=1 is set, parallel install jobs share one manifest download within their existing deadlines. Download failures remain visible and never trigger source builds.
Public prebuilt mirror: every default tool, including ast-grep, JSM and JFP, comes from https://downloads.agent-flywheel.com/acfs-cloud/v1. No login, GitHub token or repository ownership is needed. Select Full network access, or Custom allowing raw.githubusercontent.com and downloads.agent-flywheel.com. Bundles are pinned by SHA256 in cloud-mirror.json, use content-addressed URLs, and are checked before extraction and executable verification. Setup never runs upstream installers or builds from source.
Trusted/degraded mode: when the mirror cannot be reached, setup tries the exact public artifact pinned in the same manifest. JSM uses a vendor-verified copy on public GitHub, with its original checksum and upstream URL retained. UBS uses a complete public copy of the mirror bundle, including its release-pinned modules and helpers, so scans need no module downloads after setup. The environment’s GitHub proxy may block these downloads too, so Trusted does not guarantee all tools. Existing working tools remain available, failures explain the Full/Custom setting in the summary, and session startup continues.
The bundles target Linux x86_64. Each executable must successfully return its version before installation. JFP uses the baseline x64 release asset, verified on both Ivy Bridge without AVX2 and EPYC with AVX2. The publisher requires that asset and refuses to substitute a modern-only build.
Maintainer refresh: python3 scripts/cloud-mirror-publish.py --stage /path/on/large-disk/acfs-cloud --output /path/to/new-candidate.json --publish discovers latest releases with authenticated gh, verifies release checksums and pinned Minisign signatures where published, bundles Linux x86_64 executables, uploads with authenticated Wrangler, and verifies each public download. It requires Python 3.10+, gh, minisign, and wrangler; these credentials are needed only by the maintainer. Review the candidate, smoke-test on Ubuntu 24.04, and commit it as cloud-mirror.json. Repeated runs reuse downloaded artifacts and skip matching remote bundles. Staging is retained for inspection. A failed tool aborts manifest publication; it cannot silently disappear from the install set.
Use --tools br bv to refresh a subset while retaining every other entry from the committed manifest. Partial refreshes require its existing base URL. Refreshing JSM also publishes its verified vendor archive to the public cloud-binaries-v1 prerelease. Assets include the source checksum in their names, are never replaced, and must pass both GitHub’s digest check and anonymous download verification before the candidate manifest is written. This carrier does not change ACFS’s normal latest release. When mirroring to another R2 bucket/domain, --base-url supplies the public prefix and --bucket supplies the destination bucket; the URL path becomes the object prefix.
ChatGPT / Codex cloud environments
The same public bundles work in a Linux x86_64 Codex cloud environment. In Work in → Cloud, create or edit an environment and put this in its Install script:
#!/bin/bash
(
set -o pipefail
acfs_cloud_root="$(git rev-parse --show-toplevel)" || exit 1
acfs_cloud_setup="$(curl -q -fsSL --proto '=https' --proto-redir '=https' --connect-timeout 5 --max-time 20 -A 'acfs (+https://github.com/Dicklesworthstone/agentic_coding_flywheel_setup)' -H 'Accept-Encoding: identity' https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/scripts/claude-code-web-setup.sh)" || { printf '%s\n' 'ACFS cloud bootstrap download failed; tools were not installed. Check network access and retry.' >&2; exit 1; }
acfs_cloud_exclude="$(git rev-parse --git-path info/exclude)" || exit 1
mkdir -p "$(dirname "$acfs_cloud_exclude")" || exit 1
printf '\n/.acfs-cloud/\n/.agents/skills/acfs-cloud-tools/\n' >> "$acfs_cloud_exclude" || exit 1
printf '%s\n' "$acfs_cloud_setup" | ACFS_CLOUD_REQUIRED=1 ACFS_CLOUD_SKILL_DIR="$acfs_cloud_root/.agents/skills/acfs-cloud-tools" ACFS_CLOUD_AGENT=codex ACFS_CLOUD_ROOT="$acfs_cloud_root/.acfs-cloud" bash
) || exit 1
Enable internet access and add raw.githubusercontent.com and downloads.agent-flywheel.com to Additional allowed domains. These public downloads need no secrets or ownership of the tool repositories. The recipe installs into the writable repository workspace because hosted home/config paths can be read-only, and excludes its data directory through local Git metadata. It preserves HOME and CODEX_HOME. Review <repo>/.acfs-cloud/.acfs/cloud/setup.log, then Publish the prepared environment. After changing its setup, Republish for new tasks. See OpenAI’s current cloud environment guide.
Save these instructions in the environment’s Start skill and include them at the start of each new task. Our hosted checks reused all eleven executables but did not automatically load the saved Start skill or generated repository skill; explicitly loading the guide and setting PATH works:
Find the repository root with git rev-parse --show-toplevel.
Read <repo>/.acfs-cloud/.codex/AGENTS.md for the installed flywheel tools and <repo>/.acfs-cloud/.acfs/cloud/setup.log for failures.
In each task shell, run acfs_cloud_root="$(git rev-parse --show-toplevel)/.acfs-cloud"; export PATH="$acfs_cloud_root/.local/bin:$PATH" before using the tools.
Follow the guide's CASS_DATA_DIR, CASS_MEMORY_HOME and JFP_HOME exports in each task shell so search data, memory and prompt caches use the writable workspace; preserve existing overrides and keep any XDG_DATA_HOME/XDG_CONFIG_HOME writable.
Before using Agent Mail with a read-only HOME, follow the guide's command-scoped STORAGE_ROOT recipe; reuse existing configuration and preserve DATABASE_URL.
Before using JSM with a read-only HOME, follow the guide's command-scoped XDG recipe; reuse existing configuration and check skill installation targets separately.
Keep JSM_DISABLE_SELF_UPDATE=1 in each task shell so ordinary JSM commands retain the manifest-pinned executable; use verified cloud setup for tool refreshes.
Before using MS, follow the guide's local initialization and indexing steps in a writable project; reuse existing .ms/MS_ROOT/MS_CONFIG state.
Check br --version, bv --version, ubs --version and jsm --version before starting work.
Use br ready --json and bv --robot-triage; never open their interactive TUIs.
Codex mode preserves existing instructions outside its managed block. Without a custom root it uses $CODEX_HOME/AGENTS.md or ~/.codex/AGENTS.md; a nonempty AGENTS.override.md takes precedence, so setup warns. The workspace recipe also creates .agents/skills/acfs-cloud-tools/SKILL.md in Codex’s documented repository skill location; an existing skill at that path is preserved. Reading that skill loads the separate guide and configures PATH. Automatic hosted catalog discovery failed in our checks: a fresh task still omitted it after removing its Git exclusion, so changing exclusions is not a proven fix. Use the explicit startup instructions above. See OpenAI’s instruction discovery rules. Agent Mail is available as a CLI; this setup does not configure or claim hosted MCP support. Local Codex MCP configuration and ChatGPT’s remote MCP connections are different surfaces; see OpenAI’s MCP guide.
Repository owners who want Codex to discover a reference to the cloud tools through project instructions can run this command once in their target Git checkout. It appends a portable, conditional reference to the root AGENTS.md, or to AGENTS.override.md when that file takes precedence.
#!/bin/bash
(
set -o pipefail
acfs_cloud_setup="$(curl -q -fsSL --proto '=https' --proto-redir '=https' --connect-timeout 5 --max-time 20 -A 'acfs (+https://github.com/Dicklesworthstone/agentic_coding_flywheel_setup)' -H 'Accept-Encoding: identity' https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/scripts/claude-code-web-setup.sh)" || { printf '%s\n' 'ACFS cloud bootstrap download failed; tools were not installed. Check network access and retry.' >&2; exit 1; }
printf '%s\n' "$acfs_cloud_setup" | bash -s -- --install-codex-guidance
)
Review and commit the instruction file to share it with fresh checkouts. The command keeps existing instructions and can be run again. It reports a conflict for edited ACFS guidance, unsafe links, ignored files or a file that would exceed Codex’s default 32 KiB instruction budget. In a fresh task, verify which project instructions loaded and check the tools with the guide.
If your UI instead has Setup script and Maintenance script, it uses the legacy environment workflow. Put the install command in Setup script; avoid reinstalling in Maintenance script on every cached resume. Configure task-phase internet separately if tools need online access after setup.
Verification boundary: both installer modes are tested on Ubuntu 24.04, including real public downloads. On 2026-10-08, a fresh Claude-hosted Full session pinned to 4a0e6bfa792ce73ad4c69847755ecd64384288c2 installed all ten tools in 12 seconds; all eleven versions passed, the guide loaded automatically, and Agent Mail’s stdio MCP health check passed. On 2026-10-09, a cold default-Trusted Claude session pinned to 31c8180860f9ed461d9843d6ed298939a5b3ea74 installed all ten tools through public fallbacks in 53 seconds; all eleven versions, automatic instructions and actual Agent Mail MCP health passed. That run’s first UBS helper download failed TLS; its release-hash-verified recovery was tested separately. The later complete UBS fallback removes that lazy module download, but has not been rerun in that hosted session. Codex hosted installation took 6 seconds at 140a845d; fresh published tasks reused all eleven executables, including after the repository-skill update at 4bdbf5a7. A task that explicitly loaded the guide configured PATH and passed all eleven probes. Automatic Codex skill loading remains open. These times describe the pinned earlier recipes, not a fresh hosted acceptance of later changes. Default Claude setup reports individual failures and exits zero; successful session startup alone does not prove every tool installed. Default UBS exit 0 can include warnings; inspect its report or use --ci --fail-on-warning for a warning-strict check.
Other Linux cloud agents
The provider-neutral template writes $HOME/.acfs/cloud/AGENTS.md and does not change agent configuration or register MCP servers:
#!/bin/bash
(
set -o pipefail
acfs_cloud_setup="$(curl -q -fsSL --proto '=https' --proto-redir '=https' --connect-timeout 5 --max-time 20 -A 'acfs (+https://github.com/Dicklesworthstone/agentic_coding_flywheel_setup)' -H 'Accept-Encoding: identity' https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/scripts/claude-code-web-setup.sh)" || { printf '%s\n' 'ACFS cloud bootstrap download failed; tools were not installed. Check network access and retry.' >&2; exit 1; }
printf '%s\n' "$acfs_cloud_setup" | ACFS_CLOUD_REQUIRED=1 ACFS_CLOUD_AGENT=generic bash
) || exit 1
Include these instructions in each task:
Read $HOME/.acfs/cloud/AGENTS.md and $HOME/.acfs/cloud/setup.log before starting work.
In each task shell, run export PATH="$HOME/.local/bin:$PATH".
If using a custom writable data root, follow the guide's CASS_DATA_DIR, CASS_MEMORY_HOME and JFP_HOME exports in each task shell; preserve existing overrides and keep any XDG_DATA_HOME/XDG_CONFIG_HOME writable.
Before using Agent Mail with a read-only HOME, follow the guide's command-scoped STORAGE_ROOT recipe; reuse existing configuration and preserve DATABASE_URL.
Before using JSM with a read-only HOME, follow the guide's command-scoped XDG recipe; reuse existing configuration and check skill installation targets separately.
Keep JSM_DISABLE_SELF_UPDATE=1 in each task shell so ordinary JSM commands retain the manifest-pinned executable; use verified cloud setup for tool refreshes.
Before using MS, follow the guide's local initialization and indexing steps in a writable project; reuse existing .ms/MS_ROOT/MS_CONFIG state.
Check br --version, bv --version, ubs --version and jsm --version; report missing tools from the setup log.
Use the existing repository tracker with br ready --json and bv --robot-triage. Never open their interactive TUIs.
Agent Mail is available as a CLI. This setup does not configure this agent's MCP servers.
Requirements: Linux x86_64 with compatible runtime libraries, Bash, Python 3, curl, tar and GNU timeout, plus a writable data root. Ubuntu 24.04 has full install checks. On 25 October 2026, all eleven current executables also passed offline version checks in a clean Debian 12 x86_64 container with glibc 2.36; this is executable startup evidence, not a Debian installation or hosted-provider test. If you set ACFS_CLOUD_ROOT, use that root instead of $HOME in these instructions. Inspect the setup log and each version command to confirm the installed tools work.
For a custom data root, follow the generated guide’s CASS_DATA_DIR and CASS_MEMORY_HOME exports so search data and memory also use the writable workspace, and its JFP_HOME export for prompt caching. These preserve existing overrides and an explicit XDG_DATA_HOME; configured state directories must be writable. JFP also honors XDG_CONFIG_HOME, which takes precedence and must be writable. Provider HOME and configuration are preserved.
Keep JSM pinned: the generated task-shell command exports JSM_DISABLE_SELF_UPDATE=1, and its JSM command examples apply the same opt-out. Otherwise even an ordinary command such as jsm config show can automatically replace the verified binary with a newer vendor release. Saved JSM preferences stay unchanged. For an intentional refresh or to restore the reviewed binary after an automatic update, run the verified cloud setup with ACFS_CLOUD_REINSTALL=1; ordinary reruns reuse working binaries. Existing repository skills are preserved, so use the updated generated guide if a saved skill predates this setting. Avoid jsm update in the pinned environment.
Agent Mail without MCP: the generated guide includes a CLI session recipe using am macros start-session, captures the returned agent name, and reads messages with am robot inbox --include-bodies --json. It also shows how to reserve a specific edit path and release only that reservation. Custom-root recipes apply the same command-scoped storage defaults while preserving DATABASE_URL. These operations need no background service; agents must share the same mailbox to coordinate across tasks. Separate provider VMs do not share local mail automatically.
MS needs project state before it can search skills. In a writable project, run ms init --robot once, then ms index <skill-directory> --robot and ms search "query" --robot. Replace <skill-directory> with the directory containing your skills, such as .agents/skills. Reuse existing .ms, MS_ROOT or MS_CONFIG state; with configured overrides, skip this initialization recipe. Avoid --global on a read-only HOME and --force when preserving existing state. Setup only installs MS; it leaves project initialization and skill indexing to the task that needs them.
- Amp Orbs: merge the command into executable
.agents/setup, or use the project’s Pre-setup Script. Do not install dependencies in .agents/resume. Amp documents Debian 12; the current binaries pass the clean Debian 12 version checks above, while Amp-hosted installation, instruction loading and snapshot persistence remain unverified. Setup does not need personal GitHub credentials.
- Devin: add a Linux blueprint
run step to initialize or maintenance and task instructions to knowledge. Verify a fresh snapshot. PATH exports do not persist between blueprint steps unless written to $ENVRC; explicit task-shell exports avoid assuming persistence.
- Grok Bot: Enterprise Team Setup runs shell-script manifest entries as the computer user on every Linux team computer. Consumer setup access, binary compatibility and hosted persistence remain unverified. Grok Build CLI and chat Build Mode are different products.
- Meta Muse: Meta documents a persistent Linux VM with Sentinel-controlled access. A usable startup hook, CPU/runtime compatibility and hosted installation have not been verified. Muse Code is the separate terminal/CI agent.
The Installer
The installer is the heart of ACFS—a modular Bash script that transforms a fresh Ubuntu or Arch-based machine into a fully-configured development environment.
Usage
Full vibe mode (recommended for throwaway VPS):
{ acfs_installer="$(curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/install.sh")" || acfs_installer="$(curl -fsSL "https://cdn.jsdelivr.net/gh/Dicklesworthstone/agentic_coding_flywheel_setup@main/install.sh")"; } && printf '%s\n' "$acfs_installer" | bash -s -- --yes --mode vibe
Interactive mode (asks for confirmation):
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/install.sh" | bash
Safe mode (no passwordless sudo, agent confirmations enabled):
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/install.sh" | bash -s -- --mode safe
Installer Modes
| Mode |
Passwordless Sudo |
Agent Flags |
Best For |
| vibe |
Yes |
--dangerously-skip-permissions |
Throwaway VPS, maximum velocity |
| safe |
No |
Standard confirmations |
Production-like environments |
Installation Phases
graph TD
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#e8f5e9', 'lineColor': '#90a4ae'}}}%%
A["Phase 1: User Setup<br/><small>Create ubuntu user, migrate SSH keys, sudo</small>"]
B["Phase 2: Filesystem<br/><small>/data/projects, ~/.acfs layout</small>"]
C["Phase 3: Shell Setup<br/><small>zsh, oh-my-zsh, powerlevel10k</small>"]
D["Phase 4: CLI Tools<br/><small>ripgrep, fzf, lazygit, Tailscale, etc.</small>"]
E["Phase 5: Language Runtimes<br/><small>bun, uv, rust, go, nvm</small>"]
F["Phase 6: AI Agents<br/><small>claude, codex, agy</small>"]
G["Phase 7: Cloud & Database<br/><small>PostgreSQL, vault, wrangler, supabase, vercel</small>"]
H["Phase 8: Flywheel Stack<br/><small>ntm, agent mail, br, bv, ubs, dcg, ru, etc.</small>"]
I["Phase 9: Finalize<br/><small>Deploy acfs.zshrc, tmux.conf, agent guide</small>"]
J["Post-install smoke test<br/><small>critical checks; then run acfs doctor</small>"]
A --> B --> C --> D --> E --> F --> G --> H --> I --> J
classDef phase fill:#e8f5e9,stroke:#81c784,stroke-width:2px,color:#2e7d32
class A,B,C,D,E,F,G,H,I,J phase
Key Properties
| Property |
Description |
| Idempotent |
Safe to re-run; skips already-installed tools |
| Checkpointed |
Phases resume automatically from ~/.acfs/state.json |
| Pre-flight validated |
Run scripts/preflight.sh to catch issues before install |
| Logged |
Colored output with progress indicators |
| Modular |
Each category is a separate sourceable script |
Claude Code Settings Written at Install
The installer provisions a few keys in ~/.claude/settings.json, always merging non-destructively (a value you have already set is never overridden):
| Key |
Value |
Mode |
Why |
cleanupPeriodDays |
99999 |
all modes |
Claude Code silently deletes session transcripts older than this (default 30 days) from ~/.claude/projects — with no warning or log line. That default destroys history before cass can index it, so ACFS sets an explicit high value; lower it yourself if you actually want pruning. |
skipDangerousModePermissionPrompt |
true |
vibe only |
Avoids interactive workspace-trust prompts for coding agents. |
Resume Capability
The installer tracks progress in ~/.acfs/state.json. Re-run the same command
with --resume after fixing a failed dependency, privilege problem, or interrupted
installation. Completed phases are checked against the selected modules’ live
verification results before they can be skipped. Incomplete phases retry their
component checks, so working components are kept and missing or broken ones are
repaired. This also recovers older installations whose completion records were
written despite a failed step; do not delete the state file to recover them.
Required step failures remain recorded until a successful retry or verified
recovery resolves them. Optional failures remain visible without blocking an
otherwise successful installation; an optional module explicitly requested with
--only must succeed. Final success requires the selected essential components
to pass verification, including for targeted installations.
To force a fresh reinstall of all tools:
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/install.sh" | bash -s -- --yes --mode vibe --force-reinstall
Pre-Flight Check
Before running the full installer, validate your system:
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/scripts/preflight.sh" | bash
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/scripts/preflight.sh" | bash -s -- --json
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/scripts/preflight.sh" | bash -s -- --format toon
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/scripts/preflight.sh" | bash -s -- --network=skip
This checks:
- OS compatibility (Ubuntu 22.04+ or Arch-family: Arch, Omarchy; supported LTS releases stay in place unless an upgrade is explicitly requested)
- Architecture (x86_64 or ARM64)
- Memory and disk space (warns below 4GB RAM; fails below 20GB free disk)
- Network connectivity to required URLs
- Cached
checksums.yaml availability for verified upstream installers
- APT lock status
- Potential conflicts (nvm, pyenv, existing ACFS)
Network checks performed:
| Check |
What it verifies |
Fix if failing |
| DNS resolution |
Can resolve github.com, raw.githubusercontent.com |
Check provider DNS settings; inspect resolvectl status or /etc/resolv.conf |
| GitHub HTTPS |
Can reach github.com:443 |
Check firewall, proxy, or VPN settings |
| Verified installer URLs |
Critical upstream installer endpoints from checksums.yaml plus ACFS raw content |
May need to retry; transient failures OK; checksum verification still stays enabled |
| APT mirrors |
Default Ubuntu mirror reachable |
Check /etc/apt/sources.list or try different mirror |
| Offline/cache mode |
--network=skip skips live URL checks while still reporting local checksum availability |
Re-run with --network=check when online before a release or difficult install |
For checksum-refresh review, compare a generated candidate without changing checksums.yaml:
candidate="/tmp/acfs-checksums.$$.candidate.yaml"
./scripts/lib/security.sh --update-checksums > "$candidate"
./scripts/preflight.sh --checksum-candidate "$candidate"
Common preflight failures:
| Error |
Cause |
Solution |
| “Cannot resolve github.com” |
DNS misconfigured |
Check provider DNS settings or reboot; do not overwrite managed resolver files |
| “Cannot reach github.com” |
Firewall blocking HTTPS |
Allow outbound port 443 |
| “timeout contacting github.com” |
Network, proxy, or provider route is slow |
Retry with --network=check; if it persists after install bootstrap, run acfs support-bundle |
| “APT mirror slow or unreachable” |
Regional mirror down |
Edit /etc/apt/sources.list to use archive.ubuntu.com |
| “checksum candidate differs” |
Upstream verified installer content changed |
Review the diff; do not install from unverified fallback sources |
| “APT is locked by another process” |
Another apt process running (usually unattended-upgrades on a fresh VPS) |
Wait for it to finish; reboot and resume if it remains stuck |
| “Need at least 20GB free” |
Less than 20GB free disk (a hard failure; low RAM only warns) |
Clean up with sudo apt autoremove or expand disk |
Console Output
The installer uses semantic colors for progress visibility:
[1/8] Installing essential packages... # Blue: progress steps
Installing zsh, git, curl... # Gray: details
⚠️ May take a few minutes # Yellow: warnings
✖ Failed to install package # Red: errors
✔ Shell setup complete # Green: success
Optional Ubuntu Release Upgrade
A no-flags install keeps supported Ubuntu 22.04 and 24.04 LTS hosts on their current release. Non-root users with sudo and Ubuntu 24.04 Docker/WSL environments can install ACFS without opting into an OS upgrade.
Pass --target-ubuntu=26.04 to explicitly request an upgrade to Ubuntu 26.04 LTS. An OS upgrade requires a root-run installer on a host that can reboot; it is separate from installing or updating the ACFS tools.
How it works:
- Detects your current Ubuntu version
- Calculates a supported upgrade path (e.g., 24.04 → 26.04 LTS)
- Performs sequential
do-release-upgrade operations
- Reboots after each upgrade (handled automatically)
- Resumes via systemd service after reboot
- At the target version, starts ACFS automatically if you originally supplied
--yes or -y. Otherwise, the next SSH login shows how to continue with the saved module selections.
To finish an interactive install, reconnect over SSH and run the saved recovery script from your terminal.
sudo /bin/bash -p /var/lib/acfs/upgrade_resume.sh --continue-install
Expected timeline:
- Each version hop takes 30-60 minutes
- Multiple LTS hops take longer; the path must be offered by Ubuntu’s stable release upgrader
- SSH sessions disconnect during reboots (reconnect to monitor)
To explicitly request the 26.04 LTS upgrade:
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/install.sh" | bash -s -- --yes --mode vibe --target-ubuntu=26.04
To suppress an explicit upgrade request:
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/install.sh" | bash -s -- --yes --mode vibe --target-ubuntu=26.04 --skip-ubuntu-upgrade
--skip-ubuntu-upgrade wins regardless of flag order. Neither this flag nor an ordinary no-target install bypasses an active system upgrade checkpoint: normal installation remains blocked until the unfinished upgrade is resolved. Inspect the checkpoint and resume logs before retrying; keep the recovery state intact.
Monitoring upgrade progress:
# Check current status
/var/lib/acfs/check_status.sh
# View upgrade logs
journalctl -u acfs-upgrade-resume -f
# View detailed logs
tail -f /var/log/acfs/upgrade_resume.log
Important notes:
- Create a VM snapshot before upgrading (recommended but not required)
- Upgrades cannot be undone without restoring from snapshot
- The system will reboot multiple times automatically
- Ubuntu 25.10 is supported only as a recovery source when explicitly upgrading to 26.04 LTS; it is not an upgrade destination
- Reconnect via SSH after each reboot to monitor progress
The Update Command
After installation, keeping tools current is handled by acfs-update. It provides a unified interface for updating all installed components.
Usage
acfs-update # Update apt, runtimes, shell, agents, cloud CLIs, and stack tools
acfs-update --agents-only # Only update coding agents
acfs-update --runtime-only # Only update runtimes (node/nvm, bun, rust, uv, go)
acfs-update --dry-run # Preview changes without making them
acfs-update --yes --quiet --no-self-update
# Automated mode that avoids changing the ACFS tree itself
acfs-update --bootstrap-self-update
# Explicitly convert a non-git or incomplete install into a git checkout
--bootstrap-self-update replaces ACFS repository files with origin/main. Copy local files elsewhere or commit local edits before opting in. Routine updates leave non-git and incomplete Git installs untouched.
The control-plane boundary: with --no-self-update (the shipped nightly
timer’s default), automated runs update your stack tools but never ACFS itself –
neither the git checkout nor the deployed runtime copies under ~/.acfs
(bin/acfs, bin/acfs-update, scripts/lib/*.sh). The control plane therefore
needs its own periodic refresh: run acfs-update without --no-self-update from
time to time, or git pull --rebase the checkout and then run
acfs-update --shell-only to redeploy the runtime copies. acfs doctor warns
(updates.runtime_skew) when the checkout and the deployed runtime disagree, so
a stack kept current by the nightly cannot silently outrun a stale dispatcher.
Temp space: if TMPDIR (default /tmp) refuses a test write, because it is
full or over a per-user tmpfs quota, acfs-update moves the run to the first of
ACFS_UPDATE_TMPDIR, /data/tmp, /var/tmp and ~/.cache/acfs/tmp that
accepts one. Verified installers are staged in a system directory instead of
TMPDIR: /tmp, or /var/tmp when /tmp refuses the write.
What Gets Updated
| Category |
Tools |
Method |
| System |
apt packages |
apt update && apt upgrade |
| Shell |
OMZ, P10K, plugins |
git pull on each repo |
| Shell |
Atuin, Zoxide |
Re-run upstream installers |
| Runtime |
Node.js / nvm |
Update the default Node release; refresh older nvm through its verified installer |
| Runtime |
Bun |
bun upgrade |
| Runtime |
Rust |
rustup update stable |
| Runtime |
uv (Python) |
uv self update |
| Runtime |
Go |
Targeted apt package update; --force repairs a missing selected installation |
| Agents |
Claude Code |
Re-runs the checksum-verified native installer (claude update by hand) |
| Agents |
Codex |
bun install -g @latest |
| Agents |
Antigravity |
agy update (or verified installer with --force) |
| Agents |
oh-my-pi (omp) |
omp update (or verified installer with --force) |
| Agents |
Grok CLI |
Re-run verified installer (GROK_BIN_DIR pinned to ACFS bin dir) |
| Cloud |
Wrangler, Vercel |
bun install -g @latest |
| Cloud |
Supabase |
GitHub release tarball (sha256 checksums) |
| Stack |
ntm, slb, ubs, dcg, ru, etc. |
Re-run upstream installers |
Node updates follow the existing nvm default: node tracks the latest release,
lts/* tracks LTS, and exact version pins stay pinned. Custom aliases and the
default are preserved, and nvm is asked to migrate global packages from the previous
default when its Node and npm executables are available. A missing default is initial
README 内容过长,已截取前 64 KB。完整内容请前往 GitHub 仓库查看。
评论