Skip to main content
Glama
README.md
# Arc MCP

**A smaller plan. A stronger finish.** Evidence-led workflows inside OpenCode.

Arc adds 1–5 ordered outcomes, actual check records, two fresh read-only native
reviewers and an advisory completion gate. OpenCode keeps its models, UI and tools.

## Open source · v0.2.1

Arc MCP is publicly available under the MIT license. Explore the workflow and
installation guide at https://pumkin4534.github.io/.

## Install

OpenCode integration targets **1.18.25**. Platform bundles contain a prebuilt Rust
binary; installation needs **no Cargo, compiler, Xcode or Visual Studio**. Node.js
20+ is reused when available or installed in a user-local managed directory.

| Platform | Command runner | Protection |
| --- | --- | --- |
| macOS, Intel / Apple Silicon | POSIX shell through Seatbelt | Scoped filesystem/network restrictions; owned process-group cleanup |
| Ubuntu 22.04+, x64 / ARM64 | Native POSIX shell | Process-group cleanup; **no filesystem/network sandbox** |
| Windows x64 / ARM64 | Native Windows PowerShell | Owned Windows Job Object cleanup; **no filesystem/network sandbox** |

Native Windows/Ubuntu checks are an explicit compatibility mode. A failed macOS
sandbox is never retried without protection. Every check records its actual runner.

### One-line install

macOS / Ubuntu:

```sh
curl -fsSL https://pumkin4534.github.io/install.sh | bash
```

Windows PowerShell:

```powershell
irm https://pumkin4534.github.io/install.ps1 | iex
```

No GitHub login, CLI, or repository invitation is required. The installer verifies
the release bundle's SHA-256 checksum and merges an Arc entry into existing
OpenCode JSON/JSONC configuration.
It supports comments and trailing commas and installs or upgrades Arc on every
run. Existing providers, permissions, custom Arc settings and workflow history
are retained. Source archives contain no developer sessions, logs or credentials.

### Update an existing installation

Run the same install command again. It selects the currently published installer
release, replaces Arc's managed binary/plugin/agent/skill/commands, and migrates
older Arc command paths to the managed layout. Identical installations are a
no-op. Locally edited Arc-managed files are backed up before being replaced;
unrelated OpenCode files are not installer-managed.

Each changed installation keeps a private rollback snapshot under
`~/.config/opencode/arc-mcp/backups/` (or your selected config directory). It
contains the original config and Arc files plus a `journal.json` describing the
transaction. Ordinary activation failures roll back files already replaced.
Concurrent edits are preserved and reported if rollback cannot safely complete.
Interrupted installations leave a lock/journal for inspection rather than being
automatically replayed. Receipt-marked downgrades are refused.

Close OpenCode before upgrading on Windows, where a running executable may be
locked. After an upgrade on any platform, quit and restart OpenCode so it loads
the new plugin and MCP process. Backups may contain configuration secrets; keep
them private. An old standalone executable outside the managed directory is not
overwritten by the public installer; OpenCode's Arc command is migrated instead.

Managed Node.js lives under `${XDG_DATA_HOME:-$HOME/.local/share}/arc-mcp/tools`
on Unix or `%LOCALAPPDATA%\arc-mcp\tools` on Windows (`ARC_TOOLS_HOME` overrides it).
Its official archive is checksum-verified. Existing runtimes and shell profiles
are preserved; Windows restores the calling session's PATH and TLS settings.

Quit and restart OpenCode after installation:

```text
/arc Implement the change with these acceptance criteria: …
/arc-status
/arc-continue
```

Installed binary: `~/.config/opencode/arc-mcp/bin/arc-mcp` (`arc-mcp.exe` on Windows; respects
`XDG_CONFIG_HOME`). The installer also adds the Arc plugin, read-only agent,
workflow skill and three commands. Tests use `ARC_CONFIG_HOME` to select an
isolated configuration directory; normal use requires no environment overrides.

## How it works

1. **Plan:** 1–5 broad dependency-ordered outcomes, retaining all acceptance details.
2. **Build:** use native OpenCode tools and your selected model.
3. **Check:** run real commands and bind bounded output/exit to scoped source
   fingerprints. Failed, unknown, interrupted or stale evidence blocks readiness.
4. **Review:** two fresh native sessions receive the evidence packet and read-only
   project access, not the writer transcript. They run concurrently.
5. **Finish:** current checks and both review judgments must agree. Progress-only
   updates cannot erase a failed judgment. Prior findings follow later packets.

Stop, new input, questions and permission requests interrupt reviews. Arc does not
automatically resume stopped work or replay commands. One active ledger is stored
per project; unfinished work cannot be silently discarded by a replacement plan.

## Privacy and assurance

See [PRIVACY.md](PRIVACY.md) and [SECURITY.md](SECURITY.md).

- No built-in analytics or separate telemetry service.
- During use, local records include task text, paths, commands, output and reviewer
  IDs. Output is **not automatically redacted**. Keep secrets out of commands and
  captured output. State is not included in source packages.
- Reviewer packets use your selected OpenCode model provider. A remote provider
  receives that task/evidence context; this is not an offline-only tool.
- Completion is explicitly `native-advisory`, `tamper_protected:false`. Ordinary
  native tools and same-user processes can modify host records.
- macOS checks use Seatbelt; native Windows/Ubuntu checks are not OS-sandboxed.
  Source observations are scoped and
  non-atomic; ignored/generated/secret content and symlink referents are excluded.
- Cleanup owns a Unix process group or Windows Job Object, not external services
  or delegated processes. Run foreground tests, not daemons. macOS guarded checks
  deny network/Mach delegation and writes outside project/scratch (except
  `/dev/null`). Install project dependencies first.

## Development

```sh
npm ci --ignore-scripts
cargo test
cargo clippy --all-targets -- -D warnings
npm run build
npm test
npm run privacy -- --binary
node scripts/dependency-audit.mjs
npm audit --omit=dev
```

`node tests/opencode-smoke.mjs` uses installed OpenCode with an isolated home and a
local deterministic provider. It verifies integration, not live model judgment
quality. Set `ARC_TEST_SCENARIO=stop` for native cancellation testing.

The current website is maintained separately in `Pumkin4534/Pumkin4534.github.io`.
The `site/` directory here is the earlier private-preview design. No GitHub Pages
deployment is enabled for this MCP repository.

To remove Arc, delete only `mcp.arc` from the selected config and the installed
Arc files: `arc-mcp/`, `plugins/arc-opencode.js`, `agents/arc-reviewer.md`,
`skills/arc-workflow/`, and `commands/{arc,arc-status,arc-continue}.md`. Then restart
OpenCode. Keep your evidence directory if you want to retain workflow history.

MIT licensed. See [LICENSE](LICENSE).