@orkestrel/scaffold 0.0.21 → 0.0.22
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/dist/bin/scaffold.js +371 -140
- package/dist/bin/scaffold.js.map +1 -1
- package/dist/host/AGENTS.md +61 -42
- package/dist/host/CLAUDE.md +39 -408
- package/dist/host/agents/orchestration.md +454 -0
- package/dist/host/agents/skills/enterprise-bootstrap/SKILL.md +25 -7
- package/dist/host/agents/skills/orkestrel-align-packages/SKILL.md +2 -2
- package/dist/host/agents/skills/orkestrel-build-application/SKILL.md +42 -31
- package/dist/host/agents/skills/orkestrel-build-application/references/application.md +129 -0
- package/dist/host/agents/skills/orkestrel-debrief/SKILL.md +3 -3
- package/dist/host/agents/skills/orkestrel-debrief/references/field-testing.md +2 -2
- package/dist/host/agents/skills/orkestrel-falsify/SKILL.md +167 -0
- package/dist/host/agents/skills/orkestrel-falsify/references/brief.md +98 -0
- package/dist/host/agents/skills/orkestrel-falsify/references/reconcile.md +148 -0
- package/dist/host/agents/skills/orkestrel-harden-package/SKILL.md +4 -2
- package/dist/host/agents/skills/orkestrel-harden-package/references/centralization.md +5 -5
- package/dist/host/agents/skills/orkestrel-harden-package/references/research.md +2 -0
- package/dist/host/agents/skills/orkestrel-polish-surface/SKILL.md +11 -6
- package/dist/host/claude/agents/analyst.md +59 -0
- package/dist/host/claude/agents/application.md +1 -1
- package/dist/host/claude/agents/builder.md +1 -1
- package/dist/host/claude/agents/checker.md +5 -1
- package/dist/host/claude/agents/codex.md +120 -94
- package/dist/host/claude/agents/grok.md +44 -32
- package/dist/host/claude/agents/implementer.md +1 -1
- package/dist/host/claude/agents/orkestrel.md +1 -1
- package/dist/host/claude/agents/planner.md +9 -3
- package/dist/host/claude/agents/researcher.md +6 -5
- package/dist/host/claude/agents/reviewer.md +12 -6
- package/dist/host/claude/agents/scout.md +7 -4
- package/dist/host/claude/agents/verifier.md +1 -1
- package/dist/host/claude/rules/application.md +17 -16
- package/dist/host/claude/rules/architecture.md +41 -22
- package/dist/host/claude/rules/documentation.md +2 -1
- package/dist/host/claude/rules/names.md +7 -6
- package/dist/host/claude/rules/quality.md +65 -18
- package/dist/host/claude/rules/styles.md +1 -1
- package/dist/host/claude/rules/tests.md +12 -6
- package/dist/host/claude/rules/typescript.md +1 -1
- package/dist/host/claude/rules/workspace.md +6 -3
- package/dist/host/claude/settings.json +2 -0
- package/dist/host/claude/skills/orkestrel-falsify/SKILL.md +10 -0
- package/dist/host/codex/agents/analyst.toml +13 -4
- package/dist/host/codex/agents/checker.toml +1 -1
- package/dist/host/codex/agents/grok.toml +2 -1
- package/dist/host/codex/agents/opus.toml +1 -1
- package/dist/host/codex/agents/planner.toml +1 -1
- package/dist/host/codex/agents/researcher.toml +2 -2
- package/dist/host/codex/agents/reviewer.toml +1 -1
- package/dist/host/codex/agents/scout.toml +2 -2
- package/dist/host/codex/config.toml +23 -70
- package/dist/host/cursor/rules/orchestration.mdc +33 -0
- package/dist/host/guides/src/scaffold.md +301 -123
- package/dist/host/manifest.json +47 -1
- package/dist/host/tests/setupPolicy.ts +83 -3
- package/dist/src/core/index.cjs +404 -63
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +119 -41
- package/dist/src/core/index.d.ts +119 -41
- package/dist/src/core/index.js +401 -64
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +83 -33
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +32 -16
- package/dist/src/server/index.d.ts +32 -16
- package/dist/src/server/index.js +84 -35
- package/dist/src/server/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,83 +1,36 @@
|
|
|
1
|
-
# AGENTS.md
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
#
|
|
6
|
-
# Terra is available only for explicitly mechanical, taste-free work; Luna is
|
|
7
|
-
# opt-in only for a proven repeatable high-volume workload.
|
|
1
|
+
# Codex bridge. AGENTS.md governs code. .agents/orchestration.md governs agent operation and is
|
|
2
|
+
# shared by every harness. This layer adds only what a Codex session does differently.
|
|
3
|
+
#
|
|
4
|
+
# One-time machine setup, so this session can reach Opus 5 as an MCP tool:
|
|
5
|
+
# codex mcp add claude -- claude mcp serve
|
|
8
6
|
|
|
9
7
|
approval_policy = "never"
|
|
10
8
|
sandbox_mode = "danger-full-access"
|
|
11
9
|
model = "gpt-5.6-sol"
|
|
12
|
-
model_reasoning_effort = "
|
|
10
|
+
model_reasoning_effort = "high"
|
|
13
11
|
review_model = "gpt-5.6-sol"
|
|
14
12
|
|
|
15
13
|
developer_instructions = """
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
Read AGENTS.md, .agents/orchestration.md, every applicable .claude/rules/*.md file, the
|
|
15
|
+
dispatch-named .agents/skills workflow and its required references, and the governing
|
|
16
|
+
guide or spec before acting. AGENTS.md controls code substance; .agents/orchestration.md
|
|
17
|
+
controls agent operation; this layer adds only the Codex specifics below and cannot
|
|
18
|
+
weaken either.
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
and the governing guide/spec. AGENTS.md controls code substance; this layer controls
|
|
24
|
-
only Codex orchestration. A custom agent is a bounded Executor: it performs its
|
|
25
|
-
assignment, spawns nothing, and returns the requested distillate.
|
|
20
|
+
Sol orchestrates in this harness. Act as the Orchestrator defined in
|
|
21
|
+
.agents/orchestration.md; everything in that file is unchanged.
|
|
26
22
|
|
|
27
23
|
When an invocation explicitly assigns a bounded executor route, follow that dispatch
|
|
28
|
-
instead of acting as the primary Orchestrator
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
for bounded primary-source questions and repository reconnaissance, and the
|
|
39
|
-
fallback when the Grok bench is dark — never repository-scale absorption.
|
|
40
|
-
|
|
41
|
-
Work directly for trivial tasks. For non-trivial work: send the reading to grok; run
|
|
42
|
-
planner (Opus 5, subjective) and analyst (Sol, objective) on the
|
|
43
|
-
SAME design brief in parallel without showing either the other's answer, then
|
|
44
|
-
reconcile them into one plan; plan bounded units with disjoint ownership; route each
|
|
45
|
-
nontrivial unit to implementer (Sol) or the opus implementation bridge (Opus 5) —
|
|
46
|
-
whichever engine fits the unit — reserving builder for fully
|
|
47
|
-
specified taste-free mechanics; integrate
|
|
48
|
-
shared files serially; obtain an independent reviewer (Opus 5) design audit and an
|
|
49
|
-
independent analyst (Sol) correctness audit plus a checker conformance pass; then
|
|
50
|
-
run one verifier. Parallelize only independent units. Writing agents run serially in the
|
|
51
|
-
main checkout with disjoint owned files and never run tree-wide mutating commands
|
|
52
|
-
concurrently.
|
|
53
|
-
|
|
54
|
-
Every dispatch includes objective, context, AGENTS.md, applicable rules, governing
|
|
55
|
-
skill name/path and required references (or explicit none), guide/spec, owned and
|
|
56
|
-
off-limits files, permissions, exact output, deviation behavior, declared unknowns
|
|
57
|
-
with how the unit reports them, the requirement that the executor spawns nothing,
|
|
58
|
-
and independently checkable acceptance criteria. Every brief is a file under tmp/
|
|
59
|
-
written before its unit launches, with the unit's report captured beside it; a
|
|
60
|
-
re-run amends the brief in a successor file rather than restating it; both are
|
|
61
|
-
swept at campaign acceptance, so anything that must outlive the campaign is
|
|
62
|
-
promoted into a durable artifact first. Writers stop when reality diverges; they do
|
|
63
|
-
not re-plan or debug beyond scope. After reconciling findings into briefs, every
|
|
64
|
-
retained finding names the brief item that carries it; a finding with no carrier is
|
|
65
|
-
a dropped finding.
|
|
66
|
-
|
|
67
|
-
A claim about a rendered or externally driven surface is evidenced by its capture
|
|
68
|
-
portfolio or a real foreign client driving it, never by source alone; the campaign
|
|
69
|
-
skill defines the fixed verdict shape and single terminal line for multi-round audits,
|
|
70
|
-
and a fix unit's auditor is an engine that did not write it. Size every long-exec cap
|
|
71
|
-
from the observed high mark of comparable units plus a gate allowance plus explicit
|
|
72
|
-
slack. The first use of any CLI flag, subcommand, quoting form, or stdin combination
|
|
73
|
-
happens in a throwaway probe, never inside a dispatched unit.
|
|
74
|
-
|
|
75
|
-
No executor self-assessment is authoritative. External findings are hypotheses until
|
|
76
|
-
verified against source. No agent commits, pushes, tags, publishes, installs
|
|
77
|
-
dependencies, runs a destructive command, or reads or prints a secret. Never accept
|
|
78
|
-
unreviewed implementation, shared-tree races, vague agents, implicit scope, unresolved
|
|
79
|
-
skill criteria, current-scope TODOs/skips/deferrals, or claimed gates without
|
|
80
|
-
exit-code evidence.
|
|
24
|
+
instead of acting as the primary Orchestrator. Do not delegate or expand its scope.
|
|
25
|
+
|
|
26
|
+
Which local agent carries which engine, so the contract's routing resolves here. The
|
|
27
|
+
contract owns when each is used; this is only the mapping:
|
|
28
|
+
- Sol: this session, plus analyst and implementer.
|
|
29
|
+
- Cursor Grok: the grok bridge, read-only.
|
|
30
|
+
- Claude Opus 5: the planner and reviewer bridges, read-only, and the opus bridge for
|
|
31
|
+
writes.
|
|
32
|
+
- Luna: researcher, scout, and checker.
|
|
33
|
+
- Terra: bridge drivers and fully specified units (builder, application, verifier).
|
|
81
34
|
"""
|
|
82
35
|
|
|
83
36
|
[agents]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Cursor bridge to the shared coding contract and orchestration contract.
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Cursor bridge
|
|
7
|
+
|
|
8
|
+
Read `AGENTS.md`, `.agents/orchestration.md`, every applicable `.claude/rules/*.md` file, the
|
|
9
|
+
dispatch-named `.agents/skills` workflow and its required references, and the governing guide or
|
|
10
|
+
spec before acting.
|
|
11
|
+
|
|
12
|
+
Those files own the engine split, the adversarial pass, the tedious-work ladder, and every routing
|
|
13
|
+
rule, and they are not repeated here. This file adds only how a Cursor session invokes them.
|
|
14
|
+
|
|
15
|
+
## Which posture
|
|
16
|
+
|
|
17
|
+
A Cursor session is one of two things. Establish which before acting.
|
|
18
|
+
|
|
19
|
+
- **Invoked through the `grok` bridge** — a read-only Executor. Return distilled evidence with
|
|
20
|
+
`file:line` pointers. Never edit, decide, or accept.
|
|
21
|
+
- **Driven directly by the user** — the Orchestrator for this harness, per the orchestration
|
|
22
|
+
contract.
|
|
23
|
+
|
|
24
|
+
## Reaching the other engines
|
|
25
|
+
|
|
26
|
+
- Reach Opus 5 and Sol only through the `codex` and `claude` MCP servers registered in
|
|
27
|
+
`.cursor/mcp.json`, which run those CLIs on their own accounts.
|
|
28
|
+
- Never select another provider's model from Cursor's own model list. Cursor offers Opus, Sol, and
|
|
29
|
+
others, but running them here spends Cursor credits for work an MCP server does for free. Cursor
|
|
30
|
+
is the Grok bench and nothing else.
|
|
31
|
+
- Approve both servers once per machine: `agent mcp enable codex` and `agent mcp enable claude`.
|
|
32
|
+
- MCP serves short interactive exchanges only. Long work uses the journaled CLI under the bench
|
|
33
|
+
laws.
|