@axiomantic/vine

中文文档
0.2.17发布于 2026/10/30MITCommonJS零依赖构建来源已验证近 30 天下载 3066

Zero-Cost Rift Copy-on-Write Workspaces & Zero-Mirage Git Weaving Engine

原始使用文档
文档目录15 节
  1. Core Concepts
  2. Documentation for Humans & AI Agents
  3. Core Protocols & Architecture
  4. Standalone Yet Designed for the Axiomantic Triad
  5. Quick Note: Using Garden as your High-Level Swarm Wrapper
  6. Installation
  7. 1. For AI Coding Assistants (Recommended)
  8. 2. Standalone CLI Installation
  9. 3. Repository Coordination Guide
  10. Quickstart
  11. CLI Reference
  12. Configuration & Environment Variables
  13. Example vine.toml
  14. Multi-Agent Triad Workflow
  15. Repository Guide Integration

Vine

Zero-Cost Rift Copy-on-Write Workspaces & Zero-Mirage Git Weaving for Autonomous AI Agents

Vine provides zero-drag workspace virtualization, polyglot build-cache normalization, and mechanical + semantic verification gates for parallel AI coding agents.

Core Concepts

  • Strands: Instantaneous Rift copy-on-write workspace clones (vine new <task_id>). Uses rift for zero-cost snapshot cloning (in ~9s with 0 extra disk blocks) and git worktree for monolithic fallback (in ~280ms).
  • Universal CoW Vendoring: Clones dependency caches (deps, node_modules, vendor) in <80ms without physical disk duplication.
  • Polyglot Build Cache Layer: Auto-activates non-destructive .envrc normalizing ccache, sccache, uv clone mode, and nimcache.
  • The Three-Key Gate: Ensures zero "Green Mirage" by requiring Key 1 (in-memory mechanical git merge-tree exit 0), Key 2 (live compiler & test suite exit 0), and Key 3 (independent adversarial audit ratification via vine audit).
  • Weaving: Fast-forwards verified strands back into the canonical trunk (vine weave).

Documentation for Humans & AI Agents

Vine provides comprehensive workspace, gate, and build cache specifications:

Core Protocols & Architecture


Standalone Yet Designed for the Axiomantic Triad

Vine is completely standalone and can be used on its own for zero-cost Rift copy-on-write workspace cloning, .envrc build-cache normalization, and Three-Key gate verification on any git repository.

[!NOTE]

Quick Note: Using Garden as your High-Level Swarm Wrapper

Looking for the high-level multi-agent conductor? Use Garden.
While vine provides isolated branch workspaces (strands) and the Three-Key Gate, Garden is the high-level umbrella framework. Simply start a session in your favorite coding harness (Antigravity, Claude Code, OpenCode) and type "garden: I want to build [feature]". Garden conducts an intake interview, generates clean 10-backtick prompt cards for your terminal tabs, and coordinates all workers over Rhizo and Vine!

However, Vine is designed from the ground up to pair seamlessly with Rhizo and Garden:

  • Rhizo (Transport & Concurrency): Inter-agent messaging bus, monotonic fencing locks, and task queues over Redis.
  • Vine (Workspaces & Verification): Zero-cost Rift copy-on-write strands, polyglot build-cache normalization, and the Three-Key integration gate (git merge-tree mechanical + compiler/test suite semantic checks + independent adversarial audit ratification).
  • Garden (Swarm Methodology & High-Level Wrapper): Conversational project intake interview, prompt-bootstrapped worker fleets (10-backtick cards), 3-stage empirical dialectical pump (research, architecture, audit), and master ceremonial implementation planning.

Installation

Install the skills globally (-g) across all your coding assistants (Claude Code, Antigravity, Cursor, Codex, OpenCode, etc.):

# Recommended: Install the complete multi-agent triad globally
npx skills add -g axiomantic/rhizo
npx skills add -g axiomantic/vine
npx skills add -g axiomantic/garden

(Each skill automatically self-bootstraps its native CLI binary if it is not already installed on your system).

To install only Vine:

npx skills add -g axiomantic/vine

2. Standalone CLI Installation

Install the compiled CLI tools directly onto your $PATH:

# Install all three tools:
npm install -g @axiomantic/rhizo @axiomantic/vine @axiomantic/garden rift-snapshot

# Or install Vine alone:
npm install -g @axiomantic/vine rift-snapshot

[!TIP] Zero-Install Run via NPX: In restricted or containerized environments where global installation is unavailable, you can run any command directly without installing:

npx -y @axiomantic/vine <command>

3. Repository Coordination Guide

Install the Vine strand coordination protocol directly into any project's AGENTS.md:

vine guide install

Quickstart

# Spin up an isolated strand for a task
vine new task-1049 --repo ~/Development/PebbleOS --branch feat/display-driver

# Inspect dynamic strand lifecycle and commit delta
vine status --json

# Forecast cross-strand file footprint overlap before conflicts happen
vine collisions

# Reconcile upstream canonical trunk changes into strand
vine sync

# Verify mechanical and semantic correctness inside the strand
vine gate

# Weave clean strand into canonical trunk
vine weave

# Prune completed or merged strands
vine prune --apply

CLI Reference

CommandArgumentsDescription
vine new <task_id>[--repo <dir>] [--branch <name>] [--parent <branch>] [--worktree]Provision an isolated Rift CoW strand or git worktree.
vine list[--repo <dir>] [--all] [--json]List active strands, branches, and status across projects.
vine status[<strand>] [--dir <path>] [--json]Inspect deep lifecycle state (PROVISIONED, IN_PROGRESS, GATE_PASSED, etc.) and commits ahead/behind.
vine collisions[--repo <dir>] [--json]Forecast file-footprint overlaps across concurrent worker strands.
vine sync[--dir <path>] [--base <branch>]Fast-forward or merge upstream trunk changes cleanly into strand.
vine gate[--dir <path>] [--base <branch>] [--submit] [--author <name>] [--skip-tests] [-- <command...>]Run Three-Key Gate: Key 1 mechanical pre-check and Key 2 semantic test suite (-- <cmd...> or --test-command <cmd>).
vine submit[--dir <path>] [--author <name>] [--commit <msg>] [--listen] [--allow-no-tests]Run Keys 1 & 2, auto-commit dirty changes, submit strand for Key 3 audit, and optionally enter foreground listener.
vine audit<approve|reject|status> [--auditor <name>] [--reason <text>] [--notes <text>]Key 3 Adversarial Audit: reject defects, check status, or ratify approval with cryptographic audit token (worker self-audit is strictly blocked).
vine weave[--dir <path>] [--base <branch>] [--force] [--allow-unaudited]Verify Three-Key Gate and fast-forward merge ratified strand into canonical trunk and prune.
vine prune[--repo <dir>] [--apply]Remove inactive or completed strands (dry-run by default).
vine config <init|show>[--json]Scaffold or display project vine.toml configuration.
vine guide <install|check|uninstall>[path]Install or manage Vine Coordination Guide in AGENTS.md.

Configuration & Environment Variables

[!TIP] For the complete specification of vine.toml, .vine.json runtime state schemas, and environment variables, see the Vine Configuration & Manifest Reference.

Vine provides zero-config defaults that can be customized via vine.toml or environment variables:

VariableDefaultDescription
VINE_WORKSPACES_DIR~/Development/workspacesBase directory where isolated strands are provisioned.
VINE_PROJECTS_DIR~/DevelopmentBase directory where canonical repositories reside.
VINE_CONFIGAuto-discoveredExplicit path to project vine.toml.
VINE_PRIMARY_BRANCHmainDefault target branch for gate checks and merges.
VINE_TEST_COMMANDAuto-detectedCustom test/compiler runner for Key 2 semantic gate check.
VINE_VENV_POLICYpromptVirtual environment copy policy (prompt, auto_yes, auto_no).

Example vine.toml

[project]
primary_branch = "main"

[strand]
venv_policy = "prompt"
vendor_dirs = ["deps", "node_modules", "vendor", ".zig-cache"]

[verification]
test_command = "pytest -v tests/"

Multi-Agent Triad Workflow

When orchestrating teams of multiple AI assistants operating simultaneously across strands, pair Vine with Rhizo and Garden:

  • Distributed Mutexes & Fencing: Use rhizo lock file:<path> --fencing to prevent concurrent collisions on non-mergeable schema files or migrations.
  • Synchronized Task Queues: Agents claim work via rhizo claim queue:<project>:tasks --lease 1800 and report status back over the Redis bus.
  • Full Ceremony Conduct: Use garden to direct persona deliberations, generate 10-backtick worker prompt cards, and drive implementation plans.
  • Zero Dirty Commits: Rhizo, Vine, and Garden enforce complete decoupling of agent identity from directory paths.

Repository Guide Integration

Install the Vine guide into any repository's AGENTS.md:

# Defaults to AGENTS.md in the current working directory:
vine guide install

# Or specify a custom target path:
vine guide install /path/to/AGENTS.md

版本与发布记录

@axiomantic/vine 共发布 25 个版本,首次发布于 2026/09/29;过去 12 个月发布了 25 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.2.17latest2026/10/308 天前
0.2.162026/10/2910 天前
0.2.152026/10/2612 天前
0.2.142026/10/2414 天前
0.2.132026/10/2316 天前
0.2.122026/10/1919 天前

关于 @axiomantic/vine 的常见问题

@axiomantic/vine 是什么?

Zero-Cost Rift Copy-on-Write Workspaces & Zero-Mirage Git Weaving Engine

如何安装 @axiomantic/vine?

在项目目录运行 npm install @axiomantic/vine,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 vine,可以用 npx vine 直接运行。

@axiomantic/vine 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/axiomantic__vine 是否存在。

@axiomantic/vine 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@axiomantic/vine 可以商用吗?

@axiomantic/vine 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@axiomantic/vine 的下载量有多少?

根据 npm 官方下载统计,@axiomantic/vine 在 2026/10/08 – 2026/11/06 这 30 天内被下载 3,066 次,日均约 102 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@axiomantic/vine 还在维护吗?

最新版本 0.2.17 发布于 2026/10/30(8 天前);至今共发布 25 个版本,其中过去 12 个月发布了 25 个;首次发布于 2026/09/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。