orchestra-install 0.0.0-stage → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +138 -2
- package/install.mjs +51 -0
- package/package.json +23 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
202
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,139 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/brand/readme-hero-dark.png">
|
|
4
|
+
<img alt="orchestra: many voices, one composition" src="assets/brand/readme-hero-light.png" width="820">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
2
7
|
|
|
3
|
-
|
|
8
|
+
<p align="center">
|
|
9
|
+
<a href="https://code.claude.com/docs/en/plugins"><img alt="Claude Code plugin" src="https://img.shields.io/badge/Claude_Code-plugin-2450E0?style=flat-square"></a>
|
|
10
|
+
<img alt="9 agents" src="https://img.shields.io/badge/agents-9-F0442C?style=flat-square">
|
|
11
|
+
<a href="LICENSE"><img alt="Apache-2.0 license" src="https://img.shields.io/badge/license-Apache--2.0-FFC21A?style=flat-square&labelColor=111114"></a>
|
|
12
|
+
<a href="https://oarthurbg.github.io/orchestra/"><img alt="Docs" src="https://img.shields.io/badge/docs-the_stack_on_one_page-B9C8F2?style=flat-square&labelColor=111114"></a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
# orchestra
|
|
16
|
+
|
|
17
|
+
**Run one project with many Claude Code sessions at once.**
|
|
18
|
+
|
|
19
|
+
One session plans. One session per feature builds. You answer questions.
|
|
20
|
+
|
|
21
|
+
A Claude Code plugin, built while developing an internal media-planning app. It works for any kind of app: no database, server or Docker required.
|
|
22
|
+
|
|
23
|
+
## How it works
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<picture>
|
|
27
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/readme/how-it-works-dark.png">
|
|
28
|
+
<img alt="You talk to the maestro. The maestro opens one principal per feature (billing, search, export). Each principal runs subagents, one task each, and ends with a pull request." src="assets/readme/how-it-works-light.png" width="820">
|
|
29
|
+
</picture>
|
|
30
|
+
</p>
|
|
31
|
+
|
|
32
|
+
1. **You and the maestro plan the app.** It splits the work into features and opens one session for each, as many at once as your machine and your plan limits allow.
|
|
33
|
+
2. **Each principal builds one feature** in its own worktree: it mocks up and specs with you, then sends subagents to plan, build, review and test.
|
|
34
|
+
3. **Every feature ends as a pull request.** The maestro checks it and merges it. When a session needs a decision, it asks you.
|
|
35
|
+
|
|
36
|
+
## Who does what
|
|
37
|
+
|
|
38
|
+
<p align="center">
|
|
39
|
+
<picture>
|
|
40
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/readme/roles-dark.png">
|
|
41
|
+
<img alt="Maestro, your main session and project lead: plans the app with you, opens one session per feature, sizes the work to your machine and limits, checks and merges every PR, never writes code. Principal, one per feature: brainstorms and mocks up with you, writes the spec and the plan, runs the subagents and the reviews, opens the PR, never merges its own PR. Subagents, nine specialists: explore and plan, build and review, screenshot and verify, never start other agents." src="assets/readme/roles-light.png" width="820">
|
|
42
|
+
</picture>
|
|
43
|
+
</p>
|
|
44
|
+
|
|
45
|
+
The shape is the role everywhere orchestra draws a session. How it is drawn is the state: **solid** running, **outlined** idle, **over a heavy rule** waiting on you, **grey** stale. The rules are in [`BRAND.md`](docs/BRAND.md#symbols), and the nine subagents are in [Agents](docs/agents.md).
|
|
46
|
+
|
|
47
|
+
## See it
|
|
48
|
+
|
|
49
|
+
**The band** sits above the prompt in every session: your plan limits, and each workstream that needs you, most urgent first. [More about the band](docs/band.md).
|
|
50
|
+
|
|
51
|
+
<p align="center">
|
|
52
|
+
<picture>
|
|
53
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/images/band-compact-dark.png">
|
|
54
|
+
<img alt="The band: plan limits, a workstream waiting on an answer, one over 250k tokens of context, a count of two more, then the ponytail switch and the Liveview button" src="docs/images/band-compact-light.png" width="820">
|
|
55
|
+
</picture>
|
|
56
|
+
</p>
|
|
57
|
+
|
|
58
|
+
**The liveview** is a local page with every workstream's progress, ETA and timeline. It runs on your machine and uses no tokens. [More about the liveview](docs/liveview.md).
|
|
59
|
+
|
|
60
|
+
<p align="center">
|
|
61
|
+
<picture>
|
|
62
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/readme/liveview-dark.png">
|
|
63
|
+
<img alt="The liveview overview: plan limits, what needs you, and every workstream with its context, stage, PR, ETA and timeline" src="assets/readme/liveview-light.png" width="820">
|
|
64
|
+
</picture>
|
|
65
|
+
</p>
|
|
66
|
+
|
|
67
|
+
**The inbox** lists every question waiting on you, oldest first, with the mockups and specs you need to answer it.
|
|
68
|
+
|
|
69
|
+
<p align="center">
|
|
70
|
+
<picture>
|
|
71
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/readme/inbox-dark.png">
|
|
72
|
+
<img alt="The inbox: three decisions waiting, oldest first, each with its question, the options it offers, its mockups, specs and PR, and an Answer button" src="assets/readme/inbox-light.png" width="820">
|
|
73
|
+
</picture>
|
|
74
|
+
</p>
|
|
75
|
+
|
|
76
|
+
## Features
|
|
77
|
+
|
|
78
|
+
<table>
|
|
79
|
+
<tr><td><img alt="" src="assets/readme/features/workstreams.svg" width="40"></td><td><b>Parallel workstreams.</b> One session and one worktree per feature, all at once. <a href="docs/stages.md">Read more</a></td></tr>
|
|
80
|
+
<tr><td><img alt="" src="assets/readme/features/subagents.svg" width="40"></td><td><b>Nine subagents.</b> Each with its own model: Opus for judgment, cheaper for chores. <a href="docs/agents.md">Read more</a></td></tr>
|
|
81
|
+
<tr><td><img alt="" src="assets/readme/features/stages.svg" width="40"></td><td><b>The right skills at every stage.</b> Brainstorm, spec, plan, build, review, PR. <a href="docs/stages.md">Read more</a></td></tr>
|
|
82
|
+
<tr><td><picture><source media="(prefers-color-scheme: dark)" srcset="assets/readme/features/reviews-dark.svg"><img alt="" src="assets/readme/features/reviews-light.svg" width="40"></picture></td><td><b>Reviews before every merge.</b> Spec, quality and finish reviews, then the whole branch. <a href="docs/stages.md#reviews">Read more</a></td></tr>
|
|
83
|
+
<tr><td><img alt="" src="assets/readme/features/band.svg" width="40"></td><td><b>The band.</b> Plan limits and who needs you, above every prompt. <a href="docs/band.md">Read more</a></td></tr>
|
|
84
|
+
<tr><td><picture><source media="(prefers-color-scheme: dark)" srcset="assets/readme/features/liveview-dark.svg"><img alt="" src="assets/readme/features/liveview-light.svg" width="40"></picture></td><td><b>The liveview and inbox.</b> Progress, ETAs and your questions. No tokens. <a href="docs/liveview.md">Read more</a></td></tr>
|
|
85
|
+
<tr><td><img alt="" src="assets/readme/features/code-navigation.svg" width="40"></td><td><b>Code navigation.</b> A language server instead of grep. Fewer tokens. <a href="docs/setup.md#code-navigation">Read more</a></td></tr>
|
|
86
|
+
<tr><td><img alt="" src="assets/readme/features/context.svg" width="40"></td><td><b>Context kept small.</b> Handoff and clear past 250k; nothing lost on a compact. <a href="docs/setup.md#recommended-settings">Read more</a></td></tr>
|
|
87
|
+
<tr><td><img alt="" src="assets/readme/features/keep-warm.svg" width="40"></td><td><b>Keep-warm.</b> The prompt cache stays warm while subagents run. <a href="docs/band.md#keep-warm">Read more</a></td></tr>
|
|
88
|
+
<tr><td><img alt="" src="assets/readme/features/guardrails.svg" width="40"></td><td><b>Guardrails for bypass mode.</b> Owner authorizations and a branch guard. <a href="docs/setup.md#recommended-settings">Read more</a></td></tr>
|
|
89
|
+
</table>
|
|
90
|
+
|
|
91
|
+
## Does it help?
|
|
92
|
+
|
|
93
|
+
Measured, not estimated. Every number comes from a script in [`bench/`](bench) and is explained in [Benchmarks](docs/benchmarks.md).
|
|
94
|
+
|
|
95
|
+
**Code navigation saves tokens.** Explorers find who calls what with a language server instead of grep, and reach the same answers with fewer tokens. The saving is largest for small models on big codebases.
|
|
96
|
+
|
|
97
|
+
<p align="center">
|
|
98
|
+
<picture>
|
|
99
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/readme/bench-tokens-dark.png">
|
|
100
|
+
<img alt="Work tokens to answer who-calls, impact and trace questions. Haiku on 3 open-source codebases: 339k with grep, 239k with code navigation, 30% less. Haiku on a 1,960-file TypeScript app: 1,869k against 657k, 65% less. Opus on the same app: 1,599k against 1,350k, 16% less." src="assets/readme/bench-tokens-light.png" width="820">
|
|
101
|
+
</picture>
|
|
102
|
+
</p>
|
|
103
|
+
|
|
104
|
+
**The liveview keeps up with 50 workstreams,** the most measured. One rebuild then takes 0.5 s of its 5-second refresh.
|
|
105
|
+
|
|
106
|
+
<p align="center">
|
|
107
|
+
<picture>
|
|
108
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/readme/bench-liveview-dark.png">
|
|
109
|
+
<img alt="Seconds to rebuild the liveview by workstreams open, before and after the git cache: 0.4 against 0.3 s for 1, 1.0 against 0.3 s for 5, 1.8 against 0.4 s for 10, 3.9 against 0.4 s for 25, and 7.8 against 0.5 s for 50, now well under the 5-second refresh." src="assets/readme/bench-liveview-light.png" width="820">
|
|
110
|
+
</picture>
|
|
111
|
+
</p>
|
|
112
|
+
|
|
113
|
+
## Install
|
|
114
|
+
|
|
115
|
+
One command installs orchestra and the plugins it works with, and skips any you already have. It needs Claude Code and Node 18 or newer, on macOS, Linux or Windows:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
npx orchestra-install
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Then, in your project, run `/orchestra:init` and load the `orchestra:maestro` skill in your main session. It walks you through the rest.
|
|
122
|
+
|
|
123
|
+
What the script runs, how to install by hand, updates, requirements and recommended settings are in [Setup](docs/setup.md).
|
|
124
|
+
|
|
125
|
+
## Learn more
|
|
126
|
+
|
|
127
|
+
- [Setup](docs/setup.md): install, update, requirements and recommended settings.
|
|
128
|
+
- [Agents](docs/agents.md): the nine subagents, their models and their jobs.
|
|
129
|
+
- [Stages, modes and skills](docs/stages.md): what runs at each stage, and why.
|
|
130
|
+
- [The band](docs/band.md) and [the liveview](docs/liveview.md).
|
|
131
|
+
- [Benchmarks](docs/benchmarks.md): how every number above was measured.
|
|
132
|
+
- [The whole stack on one page](https://oarthurbg.github.io/orchestra/).
|
|
133
|
+
- [Brand](docs/BRAND.md): the mark, the colors and the symbols.
|
|
134
|
+
|
|
135
|
+
orchestra builds on [superpowers](https://github.com/obra/superpowers), [ponytail](https://github.com/DietrichGebert/ponytail), [impeccable](https://github.com/pbakaus/impeccable) and other plugins by their authors. Full credits are in [Setup](docs/setup.md#credits).
|
|
136
|
+
|
|
137
|
+
## License
|
|
138
|
+
|
|
139
|
+
orchestra's own files are under the [Apache License 2.0](LICENSE); keep the [`NOTICE`](NOTICE) file when you redistribute them. The orchestra name and logo are not part of that license: you may use them unmodified to refer to this project, but not to brand your own fork or product (see [`docs/BRAND.md`](docs/BRAND.md)). The third-party plugins are not part of this repository; each keeps its own license and is fetched from its own repository when you install it.
|
package/install.mjs
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Installs orchestra and the plugins its workflow uses, skipping any you already have from any marketplace.
|
|
3
|
+
// Run: npx orchestra-install [--dry-run], or from the repository: npx github:oarthurbg/orchestra
|
|
4
|
+
// Or: curl -fsSL https://raw.githubusercontent.com/oarthurbg/orchestra/main/install.mjs | node --input-type=module
|
|
5
|
+
import { spawnSync } from 'node:child_process'
|
|
6
|
+
import path from 'node:path'
|
|
7
|
+
|
|
8
|
+
const MARKETPLACE = 'orchestra'
|
|
9
|
+
const REPO = 'oarthurbg/orchestra'
|
|
10
|
+
const dry = process.argv.includes('--dry-run')
|
|
11
|
+
|
|
12
|
+
// stdin may be this script itself (piped into node), so children never read it.
|
|
13
|
+
const claude = (args, { mutates = false } = {}) => {
|
|
14
|
+
if (mutates && dry) return console.log(`would run: claude ${args.join(' ')}`), { status: 0, stdout: '' }
|
|
15
|
+
// Windows needs a shell to find claude.cmd; the arguments are fixed words, so one command line is safe.
|
|
16
|
+
const opts = { encoding: 'utf8', maxBuffer: 256 << 20, stdio: ['ignore', mutates ? 'inherit' : 'pipe', 'inherit'] }
|
|
17
|
+
const r = process.platform === 'win32' ? spawnSync(['claude', ...args].join(' '), { ...opts, shell: true }) : spawnSync('claude', args, opts)
|
|
18
|
+
if (r.error || (process.platform === 'win32' && r.status === 9009)) { console.error('Claude Code (`claude`) is not on PATH. Install it first: https://code.claude.com/docs'); process.exit(1) }
|
|
19
|
+
return r
|
|
20
|
+
}
|
|
21
|
+
const json = args => {
|
|
22
|
+
const r = claude([...args, '--json'])
|
|
23
|
+
try { return JSON.parse(r.stdout) } catch { console.error(`claude ${args.join(' ')} failed`); process.exit(1) }
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const added = json(['plugin', 'marketplace', 'list']).some(m => m.name === MARKETPLACE)
|
|
27
|
+
if (!added && claude(['plugin', 'marketplace', 'add', REPO], { mutates: true }).status !== 0) process.exit(1)
|
|
28
|
+
if (!added && dry) console.log(`(a real run would now list the ${MARKETPLACE} marketplace's plugins)`)
|
|
29
|
+
|
|
30
|
+
// available leaves out what is installed from this marketplace already, so both lists name its plugins.
|
|
31
|
+
const { installed, available } = json(['plugin', 'list', '--available'])
|
|
32
|
+
const names = [...new Set([
|
|
33
|
+
...available.filter(p => p.marketplaceName === MARKETPLACE).map(p => p.name),
|
|
34
|
+
...installed.filter(p => p.id.endsWith(`@${MARKETPLACE}`)).map(p => p.id.slice(0, -MARKETPLACE.length - 1)),
|
|
35
|
+
])]
|
|
36
|
+
// orchestra first, then its companions in the marketplace's order.
|
|
37
|
+
names.sort((a, b) => (b === 'orchestra') - (a === 'orchestra'))
|
|
38
|
+
|
|
39
|
+
const failed = []
|
|
40
|
+
for (const name of names) {
|
|
41
|
+
// A project or local install only counts in its own folder.
|
|
42
|
+
const have = installed.find(p => p.id.startsWith(`${name}@`) && (!p.projectPath || path.relative(p.projectPath, process.cwd()) === ''))
|
|
43
|
+
if (have) { console.log(`skip ${name}: already installed as ${have.id} (${have.scope} scope${have.enabled ? '' : ', disabled'})`); continue }
|
|
44
|
+
if (claude(['plugin', 'install', `${name}@${MARKETPLACE}`], { mutates: true }).status !== 0) failed.push(name)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
console.log(`
|
|
48
|
+
${failed.length ? `Not installed: ${failed.join(', ')}. Retry with claude plugin install <name>@${MARKETPLACE}.` : 'Done.'}
|
|
49
|
+
- playwright-cli also needs its CLI, for apps with a web UI: npm install -g @playwright/cli@latest
|
|
50
|
+
- Then, in your project, run /orchestra:init and load the orchestra:maestro skill in your main session.`)
|
|
51
|
+
process.exitCode = failed.length ? 1 : 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orchestra-install",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "Installs the orchestra Claude Code plugin and the plugins it works with.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/oarthurbg/orchestra.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/oarthurbg/orchestra#readme",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"claude-code",
|
|
13
|
+
"claude-code-plugin",
|
|
14
|
+
"orchestra"
|
|
15
|
+
],
|
|
16
|
+
"bin": {
|
|
17
|
+
"orchestra-install": "install.mjs"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"install.mjs"
|
|
21
|
+
],
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=18"
|
|
24
|
+
}
|
|
25
|
+
}
|