# opencode-anarchy

An OpenCode plugin that adds an anarchy-inspired command and tool.

## Features

- Custom tool: `anarchy_manifest`
- Slash command: `/manifesto`
- Custom tool: `pijul_manager`
- Slash commands: `/pijul-init`, `/pijul-spawn`, `/pijul-direct`, `/pijul-sync`, `/pijul-record`, `/pijul-push`, `/pijul-status`

## Installation

1. Install dependencies:

   ```bash
   bun install
   ```

2. Build the plugin:

   ```bash
   bun run build
   ```

3. Add to your OpenCode config (`~/.config/opencode/config.json`):

   ```json
   {
     "plugins": ["opencode-anarchy"]
   }
   ```

## Usage

- Tool: `anarchy_manifest`
- Command: `/manifesto`
- Tool: `pijul_manager`
- Commands: `/pijul-init`, `/pijul-spawn`, `/pijul-direct`, `/pijul-sync`, `/pijul-record`, `/pijul-push`, `/pijul-status`
- Direct `pijul` shell usage is blocked; use the tool commands instead.

The top-level agent and any subagent may proactively spawn child subagents (and their Pijul feature channels) when it improves speed or quality, even if the user does not invoke `/pijul-*` commands. Proactive spawns must still follow the full workflow (sync → resolve → record → push → verify trunk clean → delete channel → report summary) and metadata requirements.

## Repository

- `fitzgibbon@nest.pijul.com/fitzgibbon/opencode-anarchy`