openrig-software-factory
Use when a user wants a continuing software team for a real repository, or has a first OpenRig team and needs a repeatable path for reviewed work and later tasks.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-12
- Stars
- ★ 16
- Forks
- 4
01 前言 Front Matter
- name
- openrig-software-factory
- metadata
- { "openrig": { "stage": "WIP", "transfer_test": "pending" }, "cli_surfaces_referenced": [ "context get", "context list", "context show", "grow", "queue create", "queue handoff", "workflow compile", "workflow instantiate-lifecycle" ] }
- description
- Use when a user wants a continuing software team for a real repository, or has a first OpenRig team and needs a repeatable path for reviewed work and later tasks.
02 资源文件 1
- 参考文档references/worked-example.md37.4 KB
03 SKILL.md 正文
OpenRig Software Factory
Start with a useful repository outcome and add coordination when it earns its cost. A beginner can complete reviewed work without Workflow. These are choices using existing capabilities, not stages everyone must graduate through.
Choose how the team works
| Need | Start here | Add more when… |
|---|---|---|
| One change, close human guidance | Manual/team work: give an owner the outcome, use repository instructions, implement and obtain the chosen independent check. | Work must survive turns or move between seats. |
| Continuing work with visible ownership | Queue-supported orchestration: use rig queue create, claim work, then rig queue handoff with the candidate/evidence to the next owner. Record real blockers and the continuation. No Workflow instance is needed. |
Repeated steps need an explicit dependency graph and permitted exits. |
| An explicit execution contract | Workflow: inspect rig workflow compile, then deliberately use rig workflow instantiate-lifecycle. Advance its packets through the workflow projection mechanism. |
The actual project needs reusable profiles, additional roles or gates. |
For the concrete queue loop, wake behavior and optional two-slice Workflow,
read references/worked-example.md. Installed copy:
rig context get skills/core/openrig-software-factory/references/worked-example.md.
A roadmap, YAML file or wake does not execute work or authorize a new outcome.
Choose the first project's providers
Ask which working account(s) the user wants: Claude Code, Codex, or both. Reuse
an explicit choice and recommend the account they already have working. The
built-in starter has dev.build on Claude Code and dev.review on Codex.
For one provider, ask the operator to adapt a copy to the available logins;
there are no per-provider starter variants. first-project remains a compatibility
name for Starter, with existing-name safeguards. Check only selected CLIs/logins;
request the selected provider's login when it is missing, without credential copying
or silent provider fallback. Keep role names when changing a runtime.
Read the topology naming reference for the Starter → Workshop → Factory progression and names for specialized teams.
Read the compatible getting-started guide's Choose your providers and Kernel startup stays automatic sections before launch. The choice selects the two project agents. Kernel auto-boot independently uses available authenticated accounts, so it may use both even when the project uses one. Do not add an unused-provider login gate or manual kernel setup to this path. An instance-wide provider restriction is a separate request. Preserve an existing kernel and working user rigs.
Show the chosen recipe, resolved runtimes/models and exact
rig up <starter> --cwd . --plan / rig up <starter> --cwd . commands. Codex seats
retain gpt-6-astra; Claude seats use the configured native default without an
OpenRig model override. Confirm that model with the user and its availability;
verify the native session's actual model before consequential work. Use the
chosen rig name in owner/checker addresses throughout the same task and return.
Establish the working agreement
Read the repository instructions, current work and desired user-visible result. Verify the intended instance, code/work roots, real seat addresses and native readiness. Reuse a suitable small team; an existing agent can bootstrap it. A kernel operator is optional and is not automatically the project owner.
Agree the work boundary, time/spend limit, who answers unresolved choices, and when to stop: checked result, no authorized next work, exhausted budget, or a real user/permission/provider blocker. Background daemon checks are not themselves model turns, but delivered wakes and resumed work can spend tokens. Prefer an event-driven wait to frequent empty reminders. Wakes cannot answer a user question, clear a permission prompt or guarantee progress.
Ask once before launching or assigning work: “Allow your agents to run
OpenRig commands without repeated permission prompts?” Yes — recommended /
No — keep prompts. Reuse an existing explicit choice for this scope. Explain
that this covers all rig verbs, including starting/stopping agents and changing
configuration, at personal project scope unless the user explicitly chooses
user-wide sessions. It is not global YOLO or permission to invent work.
On an actual Yes, follow Applying a permission policy
to add existing native rules, preserve stricter/unrelated settings, and verify
the target conversation. No or no answer leaves settings alone and continues
with existing prompts. Remember the explicit choice and exact additions in the
existing onboarding context; “Undo the OpenRig command allowances added by this
setup” removes only those additions. Broader access remains a separate opt-in.
Keep purpose, acceptance, decisions and evidence in existing project files. Deliver selected context and obtain each seat's scope reaction; retrieval alone is not peer delivery. The owner carries the candidate through the chosen check and bounded repairs, reports how to try it, and retains the next authorized task or explicitly reports none. Preserve work and custody before a supported stop.
Grow your factory
Choose the team size separately from the coordination method above:
- Use the two-agent starter. Keep the existing owner and independent checker while that pair meets the workload. The owner can implement and coordinate.
- Add one or two seats to the running rig. This is the usual next step.
Follow Grow the running team
for
rig growcommands, readiness/context/work assignment, and saving the expanded topology. Existing sessions need no rebuild or down/up cycle solely to add capacity. - Author a custom rig when you want a different structure. Read
OpenRig Architect, available through
rig context get skills/core/openrig-architect/SKILL.md. Request: “Design a user-owned rig for [outcome] using the compatible RigSpec/AgentSpec guidance. Reuse suitable agents, define responsibilities and context, and validate the files. Preserve the existing rig and agree any new launch.”
As independent work grows, the original owner can concentrate on orchestration, multiple builders can implement separate outcomes, and the checker can retain independent review capacity. Record that division explicitly; adding seats does not assign work, change permissions or create parallelism. Agree file/worktree boundaries and integration ownership, follow the project's existing review policy, and keep active concurrency within the user's time/spend budget. Two seats are an entry point, not a finished factory or a maximum.
Read compatible guidance
Before installation, use this file and companion at the same published tag or commit as the selected package. After installation:
rig --version
rig context list --json
rig context show skills/core/openrig-software-factory --json
rig context get skills/core/openrig-software-factory/SKILL.md
Compare build identity as well as version. Preserve missing, unreadable or older recipe results; do not silently substitute newer main or skip a missing companion.
Find the compatible permission guide
Retrieve the maintained procedure with
rig context get skills/applying-a-permission-policy/SKILL.md.
For source or archive readers, locate it below; the companion getting-started
guide contains optional broader launch-mode recipes under Opt-in permissive
operation. These paths are relative to the named root, not this skill:
| Reading from | Procedure and guide, at the same version as this recipe |
|---|---|
Source checkout, including skills/_canonical |
Below the repository root: packages/daemon/assets/plugins/openrig-core/skills/applying-a-permission-policy/SKILL.md and docs/reference/getting-started.md. |
| npm installation | Below the matching npm root -g or local npm root: @openrig/cli/daemon/assets/plugins/openrig-core/skills/applying-a-permission-policy/SKILL.md and @openrig/cli/daemon/docs/reference/getting-started.md. |
| Unpacked npm archive | Below the extraction directory: package/daemon/assets/plugins/openrig-core/skills/applying-a-permission-policy/SKILL.md and package/daemon/docs/reference/getting-started.md. |
For installed guidance, use the npm installation that supplies the selected
rig executable; another prefix or local project can contain a different version.
If the matching guide or section is missing, report the gap before proceeding;
do not substitute current main or guidance from another installation.
Request to give your agent
Help me achieve [observable change] in this repository. Read the compatible Software Factory recipe, choose the lightest useful team/queue/Workflow path, and keep the next owner visible. Preserve existing files and permissions. Agree time/spend limits, perform the authorized work and chosen independent check, and ask only about unresolved decisions or effects outside that scope. Keep publication and destructive changes out of this task.
When commands, defaults or permission semantics change, check this source and companion together and regenerate their existing projections. Website guidance should link to the same versioned recipe, not maintain another procedure.
04 同仓库更多 Skills
notes
Use when taking notes.
software-for-agents
Use when older OpenRig instructions name software-for-agents or describe agent-in-the-middle or studio software under the former skill name.
session-compaction-and-restore
Use when reasoning about what survives compaction/context-loss/restart/seat-refresh, designing a high-fidelity restore packet, or distinguishing native runtime resume vs fork vs artifact-backed mental-model rebuild. Covers the 4 failure modes that prevent honest restore (compacted seat drops hot potato; restore packet preserves details but loses product intent; runtime resume mistaken for handover or fork; rebuilt seat starts with stale instructions).
seat-continuity-and-handover
Use when replacing a seat's occupant (rebuild/handover/swap), reasoning about stable-seat-identity vs fluid-occupant-identity, choosing an old-occupant disposition (retire/advise/shadow), or recording provenance for an occupant change. Two independent outcomes (continuityOutcome + seatBindingOutcome) and the 5 failure modes that prevent silent dishonesty.
retiring-and-inheriting-a-seat
Use when you are a sitting agent near your context threshold (~85%) and a PLANNED seat transition is due — retire deliberately and hand your seat to a fresh successor primed from a packet, rather than let compaction degrade you. Covers the handover packet, the append-only lineage ledger (one row per tenure), physical-seat continuity, the do-not-over-inherit framing, the optional warm-handoff window, and wake-v0 (consulting a retired predecessor). NOT for unplanned compaction/crash recovery (session-compaction-and-restore / claude-compaction-restore) and NOT the seat-binding primitive mechanics (seat-continuity-and-handover).
refocusing
Use when a long-running agent may have lost the product outcome, when context was compacted, when work has crossed a major boundary, or when a fresh path-based trace is needed before the next consequential action. Not for fresh-session orientation, waking an idle seat, or checkpoints.