Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
- run: npm test
- run: npm pack --dry-run
- name: Verify publish manifest
run: node -e "const p=require('./package.json'); if (p.bin['opencode-herdr-orchestration'] !== 'bin/orchestration.js') process.exit(1)"
run: node -e "const p=require('./package.json'); if (p.bin['flocky'] !== 'bin/orchestration.js') process.exit(1)"
- name: Verify packed CLI
shell: bash
run: |
set -euo pipefail
package="$(npm pack --silent)"
npm install --global "$package"
opencode-herdr-orchestration status
flocky status

gate:
name: CI
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# opencode-herdr-orchestration
# flocky

[![CI](https://github.com/CodingJinxx/opencode-herdr-orchestration/actions/workflows/ci.yml/badge.svg)](https://github.com/CodingJinxx/opencode-herdr-orchestration/actions/workflows/ci.yml)
[![npm version](https://img.shields.io/npm/v/opencode-herdr-orchestration.svg)](https://www.npmjs.com/package/opencode-herdr-orchestration)
[![CI](https://github.com/CodingJinxx/flocky/actions/workflows/ci.yml/badge.svg)](https://github.com/CodingJinxx/flocky/actions/workflows/ci.yml)
[![npm version](https://img.shields.io/npm/v/@ia-forge/flocky.svg)](https://www.npmjs.com/package/@ia-forge/flocky)
[![Node >=20](https://img.shields.io/badge/node-%3E%3D20-brightgreen.svg)](https://nodejs.org/)

Capability-separated OpenCode agents for planning, implementation, independent review, and delivery through Herdr, organized as **Developer → Shepherd → Flock**. This package registers the agents, provides structured worker-response retrieval, injects session-specific orchestration mode into shell environments, and ships a reproducible Git `pre-push` policy for new and existing repositories.
Expand All @@ -17,8 +17,8 @@ You need Node.js 20 or newer, a working OpenCode install, and Herdr on the stabl
Install or update with the cross-platform npm CLI:

```bash
npx -y opencode-herdr-orchestration@latest install
npx -y opencode-herdr-orchestration@latest install --with-hooks
npx -y @ia-forge/flocky@latest install
npx -y @ia-forge/flocky@latest install --with-hooks
```

The first form installs the global OpenCode plugin entry and agent models. The second form also installs the shared Git push policy. For update, manual setup, stale file migration, and full options, see [Getting Started](docs/getting-started.md) and [CLI Reference](docs/cli-reference.md).
Expand Down Expand Up @@ -106,7 +106,7 @@ For workarounds, launcher resolution, integration checks, interrupted-operation

## Docs

Start with [Getting Started](docs/getting-started.md) for install plus update plus migration, then use the guides below for daily work. Detail lives in docs so this landing page stays short. Published site: https://codingjinxx.github.io/opencode-herdr-orchestration/
Start with [Getting Started](docs/getting-started.md) for install plus update plus migration, then use the guides below for daily work. Detail lives in docs so this landing page stays short. Published site: https://codingjinxx.github.io/flocky/

- [Home](docs/index.md) — docs landing with navigation to every guide.
- [Getting Started](docs/getting-started.md) — install, update, manual setup, stale file migration, and verify steps.
Expand Down
2 changes: 1 addition & 1 deletion bin/orchestration.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ try {
else if (command === "status") fullStatus();
else if (command === "doctor") runDoctor();
else {
process.stderr.write("Usage: opencode-herdr-orchestration <install|update|configure-agents|status|doctor|uninstall|install-hooks|uninstall-hooks> [--with-hooks] [--force]\n");
process.stderr.write("Usage: flocky <install|update|configure-agents|status|doctor|uninstall|install-hooks|uninstall-hooks> [--with-hooks] [--force]\n");
process.exitCode = 2;
}
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
title: opencode-herdr-orchestration
baseurl: "/opencode-herdr-orchestration"
title: flocky
baseurl: "/flocky"
theme: minima
12 changes: 7 additions & 5 deletions docs/cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ layout: default

# CLI Reference

This page documents every `opencode-herdr-orchestration` package command exactly as implemented in `bin/orchestration.js`. For the install plus upgrade walkthrough, see [Getting Started](./getting-started.html).
This page documents every `@ia-forge/flocky` package command exactly as implemented in `bin/orchestration.js`. For the install plus upgrade walkthrough, see [Getting Started](./getting-started.html).

Live versions at verification time were package `0.3.2`, OpenCode `1.18.29`, Herdr `0.8.2`, channel `stable`, and integration `opencode: current (v10)`. When command output disagrees with this page, trust the live output from `status` and `doctor`.

## Usage

```text
Usage: opencode-herdr-orchestration <install|update|configure-agents|status|doctor|uninstall|install-hooks|uninstall-hooks> [--with-hooks] [--force]
Usage: flocky <install|update|configure-agents|status|doctor|uninstall|install-hooks|uninstall-hooks> [--with-hooks] [--force]
```

Invoke through the published package or from a checkout:

```bash
npx -y opencode-herdr-orchestration@latest <command>
npx -y @ia-forge/flocky@latest <command>
node ./bin/orchestration.js <command>
```

Expand Down Expand Up @@ -70,7 +70,7 @@ The `uninstall` command removes the native steer command entry, removes the orch
The Git policy procedure uses two focused commands. To enable the policy, run:

```bash
npx -y opencode-herdr-orchestration@latest install-hooks
npx -y @ia-forge/flocky@latest install-hooks
```

This path copies the packaged `pre-push` hook into the stable user location below and points global `core.hooksPath` there:
Expand All @@ -79,10 +79,12 @@ This path copies the packaged `pre-push` hook into the stable user location belo
~/.config/opencode-herdr-orchestration/hooks
```

KEEP: the hooks location stays at the legacy `~/.config/opencode-herdr-orchestration/hooks` path; warn only on mismatch, do not migrate automatically.

From that point every new clone, initialized repository, and linked worktree receives the same policy automatically. When global `core.hooksPath` already holds a different value, the command reports the conflict and requires an explicit `--force` rerun only after the existing hook setup has been reviewed. To inspect hook state, use `status`. To disable the policy, run:

```bash
npx -y opencode-herdr-orchestration@latest uninstall-hooks
npx -y @ia-forge/flocky@latest uninstall-hooks
```

Removal clears the global setting only when it points at this package and deletes the installed hook directory; any unrelated hooks path is left unchanged with an explanatory message. In governance mode the policy always protects `main` plus `master`; repository-specific branches are added with:
Expand Down
16 changes: 8 additions & 8 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Live versions at verification time were package `0.3.2`, OpenCode `1.18.29`, Her

## Global plugin entry

The global OpenCode file is `~/.config/opencode/opencode.json` or `~/.config/opencode/opencode.jsonc` unless `OPENCODE_CONFIG_DIR` points elsewhere. The published package entry is the bare name:
The global OpenCode file is `~/.config/opencode/opencode.json` or `~/.config/opencode/opencode.jsonc` unless `OPENCODE_CONFIG_DIR` points elsewhere. The published package entry is the scoped name:

```jsonc
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-herdr-orchestration"]
"plugin": ["@ia-forge/flocky"]
}
```

Expand All @@ -27,7 +27,7 @@ Current OpenCode releases may record but not execute an npm plugin referenced on
```jsonc
{
"plugin": [
"file:///ABSOLUTE/PATH/TO/.config/opencode/node_modules/opencode-herdr-orchestration/src/plugin.js"
"file:///ABSOLUTE/PATH/TO/.config/opencode/node_modules/@ia-forge/flocky/src/plugin.js"
]
}
```
Expand All @@ -40,12 +40,12 @@ During local development, reference a local checkout directly with a stable file
{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"file:///C:/Dev/opencode-herdr-orchestration/src/plugin.js"
"file:///C:/Dev/flocky/src/plugin.js"
]
}
```

Replace the example checkout path with the real absolute path to the local source file. This development entry is for a local checkout only; machines that track the published package keep the bare name or the installed file path above.
Replace the example checkout path with the real absolute path to the local source file. This development entry is for a local checkout only; machines that track the published package keep the scoped name or the installed file path above.

## Model defaults in a plugin tuple

Expand All @@ -55,7 +55,7 @@ Model choices live as options in a plugin tuple beside the plugin name. The tupl
{
"plugin": [
[
"opencode-herdr-orchestration",
"@ia-forge/flocky",
{
"shepherdModel": "anthropic/claude-sonnet-4-6",
"sheepdogModel": "litellm/glm-5.3-flash",
Expand Down Expand Up @@ -87,7 +87,7 @@ Machine-specific planning permissions and instructions use two scoped options th
{
"plugin": [
[
"opencode-herdr-orchestration",
"@ia-forge/flocky",
{
"shepherdPermissions": {
"private_deployment_status": "allow"
Expand All @@ -109,7 +109,7 @@ Squad-local machine permissions and instructions use the same scoped pattern and
{
"plugin": [
[
"opencode-herdr-orchestration",
"@ia-forge/flocky",
{
"sheepdogPermissions": {
"private_squad_status": "allow"
Expand Down
22 changes: 11 additions & 11 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ layout: default

# Getting Started

This guide installs the `opencode-herdr-orchestration` package, updates it safely, and removes leftover agent files from the previous architecture. For the full command list, see [CLI Reference](./cli-reference.html).
This guide installs the `@ia-forge/flocky` package, updates it safely, and removes leftover agent files from the previous architecture. For the full command list, see [CLI Reference](./cli-reference.html).

Live-verified versions used below were checked before printing: package `0.3.2`, OpenCode `1.18.29`, Herdr `0.8.2`, Herdr channel `stable`, integration `opencode: current (v10)`, Node.js `>=20` (host reported `v24.19.0`). When any version below disagrees with `opencode --version`, `node bin/orchestration.js status`, or `node bin/orchestration.js doctor`, trust the live command output.

Expand All @@ -20,13 +20,13 @@ Default model choices presented during setup are the shepherd phases inheriting
For most machines the cross-platform installer is the supported path:

```bash
npx -y opencode-herdr-orchestration@latest install
npx -y @ia-forge/flocky@latest install
```

To include the shared Git push policy in the same step, add the hooks flag:

```bash
npx -y opencode-herdr-orchestration@latest install --with-hooks
npx -y @ia-forge/flocky@latest install --with-hooks
```

During `install` the tool locates the global OpenCode config directory, installs that exact package version there, prompts for shepherd plus sheepdog plus worker plus reviewer model choices, preserves JSONC comments plus trailing commas plus existing plugins plus tuple options, records the stable file entry current OpenCode plugin loading requires, writes timestamped backups of touched config plus npm manifest files, and validates every agent role through a short-lived OpenCode debug run. The run never stops or signals a running OpenCode process.
Expand All @@ -40,9 +40,9 @@ OpenCode reads plugins plus agents only at startup. After every install, update,
Never hand-edit the global config while an OpenCode process that depends on it is running. Complete or stop dependent processes first, then run:

```bash
npx -y opencode-herdr-orchestration@latest update
npx -y opencode-herdr-orchestration@latest configure-agents
npx -y opencode-herdr-orchestration@latest status
npx -y @ia-forge/flocky@latest update
npx -y @ia-forge/flocky@latest configure-agents
npx -y @ia-forge/flocky@latest status
```

The `update` step resolves the newest published version, installs it exactly, preserves comments plus tuples, creates fresh backups, revalidates all roles, and restores the previous config when validation fails. The `configure-agents` step revisits the same model prompts later: press Enter to keep the displayed value or enter `-` to return that role to its package default. The `status` step reports the CLI version, installed version, latest version, configured file, detected agents, and obsolete files so the operator can confirm whether another restart is needed.
Expand All @@ -56,23 +56,23 @@ When the automated installer is unavailable, add the published package to `~/.co
```jsonc
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-herdr-orchestration"]
"plugin": ["@ia-forge/flocky"]
}
```

When a `plugin` list already exists, append the package name rather than replacing the list. Then install the exact package inside that config directory so the stable file entry can resolve it:

```bash
cd ~/.config/opencode
npm install --save-exact opencode-herdr-orchestration@latest
npm install --save-exact @ia-forge/flocky@latest
```

Current OpenCode releases may record but not execute an npm plugin referenced only by bare package name. When that happens, keep the installed package in place and use its installed entry path in a plugin tuple instead:

```jsonc
{
"plugin": [
"file:///ABSOLUTE/PATH/TO/.config/opencode/node_modules/opencode-herdr-orchestration/src/plugin.js"
"file:///ABSOLUTE/PATH/TO/.config/opencode/node_modules/@ia-forge/flocky/src/plugin.js"
]
}
```
Expand Down Expand Up @@ -107,8 +107,8 @@ From the global config directory, the following checks confirm a healthy install

```bash
opencode agent list
npx -y opencode-herdr-orchestration@latest status
npx -y opencode-herdr-orchestration@latest doctor
npx -y @ia-forge/flocky@latest status
npx -y @ia-forge/flocky@latest doctor
```

The agent list shows all seven packaged roles. The status output shows matching installed plus latest package versions with agents ready. The doctor output reports launcher candidates plus agreement plus spawn probe plus `opencode: current (v10)` integration presence plus flapping signals as JSON with a human summary. Full option details plus hook management live in [CLI Reference](./cli-reference.html).
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: opencode-herdr-orchestration
title: flocky
layout: default
---

# opencode-herdr-orchestration
# flocky

Capability-separated Herdr orchestration agents for OpenCode, organized as **Developer → Shepherd → Flock** for planning, implementation, independent review, and delivery.

Expand Down
Loading