Skip to content

Commit bbebcfd

Browse files
author
chenbo
committed
Rename package and CLI aliases for OpenCode++
1 parent 07f28d2 commit bbebcfd

79 files changed

Lines changed: 16143 additions & 15684 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.agent-context/AGENTS.generated.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ L0 operating rules. Keep this file loaded by default; load deeper context only w
1313

1414
## Default Workflow
1515
- Read `AGENTS.md` only before the task is concrete.
16-
- Agent-led handoff: run `code-agent-plusplus run "<task>" .` or inspect `.agent-context/runs/<task-id>/`; this writes context and boundaries but does not execute an agent.
17-
- Harness-led executor flow: run `code-agent-plusplus orchestrate "<task>" . --executor mock|opencode|mimocode --executor-command "<command with {prompt}>" --max-loops 3 --checkpoint git-worktree` when OpenCode++ should own multi-loop gates.
16+
- Agent-led handoff: run `opencode-plusplus run "<task>" .` or inspect `.agent-context/runs/<task-id>/`; this writes context and boundaries but does not execute an agent.
17+
- Harness-led executor flow: run `opencode-plusplus orchestrate "<task>" . --executor mock|opencode|mimocode --executor-command "<command with {prompt}>" --max-loops 3 --checkpoint git-worktree` when OpenCode++ should own multi-loop gates.
1818
- Do not load the full `.agent-context/` directory unless L1/L2 context is insufficient.
1919
- Prefer source files over generated summaries for behavior, API, and test decisions.
2020

@@ -55,16 +55,16 @@ L0 operating rules. Keep this file loaded by default; load deeper context only w
5555
## Harness Runtime Files
5656
- `.agent-context/contracts/` - machine-checkable edit, command, test, and safety boundaries
5757
- `.agent-context/runs/` - complete task run contexts with plan, pack, tests, impact, verify, and prompts
58-
- `.agent-context/loops/` - loop controller decisions when written with `code-agent-plusplus loop "<task>" . --write`
58+
- `.agent-context/loops/` - loop controller decisions when written with `opencode-plusplus loop "<task>" . --write`
5959
- `.agent-context/traces/` - execution trace records for agent edits, tests, verification, final state, and manual/command/CI evidence
6060
- `.agent-context/hallucination/` - deterministic missing file, command, dependency, config, and symbol findings
6161
- `.agent-context/regression/` - known issues, fix history, fragile modules, and anti-regression test memory
6262
- `.agent-context/delta/` - context delta and files the agent should re-read after repository changes
6363

6464
## Before Closing
65-
- Prefer `code-agent-plusplus trace run <trace-id> . --action run-test --command "<test-command>"` over manual test claims when recording verification.
66-
- Run `code-agent-plusplus hallucination . --trace <trace-id> --base main` when the task has an execution trace.
67-
- Run `code-agent-plusplus regression . --trace <trace-id> --base main` when the task touches known fragile modules or historical bug patterns.
68-
- Prefer `code-agent-plusplus policy . --base main --trace <trace-id> --fail-on required` when a trace exists.
69-
- Run `code-agent-plusplus verify --diff .` and `code-agent-plusplus loop "<task>" . --phase after-edit` before final review.
70-
- Check `code-agent-plusplus freshness .` and `code-agent-plusplus drift .` if generated context may be stale.
65+
- Prefer `opencode-plusplus trace run <trace-id> . --action run-test --command "<test-command>"` over manual test claims when recording verification.
66+
- Run `opencode-plusplus hallucination . --trace <trace-id> --base main` when the task has an execution trace.
67+
- Run `opencode-plusplus regression . --trace <trace-id> --base main` when the task touches known fragile modules or historical bug patterns.
68+
- Prefer `opencode-plusplus policy . --base main --trace <trace-id> --fail-on required` when a trace exists.
69+
- Run `opencode-plusplus verify --diff .` and `opencode-plusplus loop "<task>" . --phase after-edit` before final review.
70+
- Check `opencode-plusplus freshness .` and `opencode-plusplus drift .` if generated context may be stale.

.agent-context/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ This document is generated from static repository signals. Treat it as a startin
1313
- `outputs`: outputs contains 27 files and depends on core, harness, integrations.
1414
- `core`: core contains 18 files and depends on analyzers, config, llm, outputs.
1515
- `harness`: harness contains 9 files and depends on core, outputs, sandbox.
16-
- `retrievers`: retrievers contains 7 files and depends on core, integrations, outputs.
1716
- `integrations`: integrations contains 5 files and depends on core, harness, outputs, retrievers.
18-
- `benchmarks`: benchmarks contains 25 files and depends on core, harness, outputs.
17+
- `retrievers`: retrievers contains 7 files and depends on core, integrations, outputs.
1918
- `cli`: cli contains 5 files and depends on benchmarks, config, core, harness, integrations, outputs, retrievers.
19+
- `benchmarks`: benchmarks contains 25 files and depends on core, harness, outputs.
2020
- `analyzers`: analyzers contains 6 files and depends on core.
2121
- `benchmarks/fixtures/small-ts-app`: benchmarks/fixtures/small-ts-app contains 13 files.
2222

.agent-context/contracts/architecture.contract.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -161,18 +161,6 @@
161161
],
162162
"summary": "harness contains 9 files and depends on core, outputs, sandbox."
163163
},
164-
{
165-
"name": "retrievers",
166-
"owns": [
167-
"src/retrievers/**"
168-
],
169-
"imports": [
170-
"core",
171-
"integrations",
172-
"outputs"
173-
],
174-
"summary": "retrievers contains 7 files and depends on core, integrations, outputs."
175-
},
176164
{
177165
"name": "integrations",
178166
"owns": [
@@ -187,17 +175,16 @@
187175
"summary": "integrations contains 5 files and depends on core, harness, outputs, retrievers."
188176
},
189177
{
190-
"name": "benchmarks",
178+
"name": "retrievers",
191179
"owns": [
192-
"benchmarks/**",
193-
"src/benchmarks/**"
180+
"src/retrievers/**"
194181
],
195182
"imports": [
196183
"core",
197-
"harness",
184+
"integrations",
198185
"outputs"
199186
],
200-
"summary": "benchmarks contains 25 files and depends on core, harness, outputs."
187+
"summary": "retrievers contains 7 files and depends on core, integrations, outputs."
201188
},
202189
{
203190
"name": "cli",
@@ -215,6 +202,19 @@
215202
],
216203
"summary": "cli contains 5 files and depends on benchmarks, config, core, harness, integrations, outputs, retrievers."
217204
},
205+
{
206+
"name": "benchmarks",
207+
"owns": [
208+
"benchmarks/**",
209+
"src/benchmarks/**"
210+
],
211+
"imports": [
212+
"core",
213+
"harness",
214+
"outputs"
215+
],
216+
"summary": "benchmarks contains 25 files and depends on core, harness, outputs."
217+
},
218218
{
219219
"name": "analyzers",
220220
"owns": [

.agent-context/contracts/module-boundaries.json

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,16 @@
198198
"src/harness/verification-plane/policy-engine.ts"
199199
]
200200
},
201-
"retrievers": {
201+
"integrations": {
202202
"owns": [
203-
"src/retrievers/**"
203+
"src/integrations/**"
204204
],
205205
"allowedImports": [
206206
"benchmarks/fixtures/monorepo/packages/config/**",
207207
"benchmarks/fixtures/monorepo/packages/shared/**",
208208
"src/config/**",
209209
"src/core/**",
210+
"src/harness/**",
210211
"src/integrations/**",
211212
"src/outputs/**",
212213
"src/retrievers/**"
@@ -223,29 +224,27 @@
223224
],
224225
"observedImports": [
225226
"core",
226-
"integrations",
227-
"outputs"
227+
"harness",
228+
"outputs",
229+
"retrievers"
228230
],
229231
"publicFiles": [
230-
"src/retrievers/codegraph.ts",
231-
"src/retrievers/external.ts",
232-
"src/retrievers/hybrid.ts",
233-
"src/retrievers/index.ts",
234-
"src/retrievers/ripgrep.ts",
235-
"src/retrievers/static.ts",
236-
"src/retrievers/types.ts"
232+
"src/integrations/codegraph.ts",
233+
"src/integrations/opencode/launcher.ts",
234+
"src/integrations/opencode/project-init.ts",
235+
"src/integrations/opencode/sidecar-plugin-template.ts",
236+
"src/integrations/opencode/sidecar.ts"
237237
]
238238
},
239-
"integrations": {
239+
"retrievers": {
240240
"owns": [
241-
"src/integrations/**"
241+
"src/retrievers/**"
242242
],
243243
"allowedImports": [
244244
"benchmarks/fixtures/monorepo/packages/config/**",
245245
"benchmarks/fixtures/monorepo/packages/shared/**",
246246
"src/config/**",
247247
"src/core/**",
248-
"src/harness/**",
249248
"src/integrations/**",
250249
"src/outputs/**",
251250
"src/retrievers/**"
@@ -262,32 +261,35 @@
262261
],
263262
"observedImports": [
264263
"core",
265-
"harness",
266-
"outputs",
267-
"retrievers"
264+
"integrations",
265+
"outputs"
268266
],
269267
"publicFiles": [
270-
"src/integrations/codegraph.ts",
271-
"src/integrations/opencode/launcher.ts",
272-
"src/integrations/opencode/project-init.ts",
273-
"src/integrations/opencode/sidecar-plugin-template.ts",
274-
"src/integrations/opencode/sidecar.ts"
268+
"src/retrievers/codegraph.ts",
269+
"src/retrievers/external.ts",
270+
"src/retrievers/hybrid.ts",
271+
"src/retrievers/index.ts",
272+
"src/retrievers/ripgrep.ts",
273+
"src/retrievers/static.ts",
274+
"src/retrievers/types.ts"
275275
]
276276
},
277-
"benchmarks": {
277+
"cli": {
278278
"owns": [
279-
"benchmarks/**",
280-
"src/benchmarks/**"
279+
"src/cli/**"
281280
],
282281
"allowedImports": [
283282
"benchmarks/**",
284283
"benchmarks/fixtures/monorepo/packages/config/**",
285284
"benchmarks/fixtures/monorepo/packages/shared/**",
286285
"src/benchmarks/**",
286+
"src/cli/**",
287287
"src/config/**",
288288
"src/core/**",
289289
"src/harness/**",
290-
"src/outputs/**"
290+
"src/integrations/**",
291+
"src/outputs/**",
292+
"src/retrievers/**"
291293
],
292294
"forbiddenImports": [
293295
"**/*.generated.*",
@@ -300,37 +302,36 @@
300302
"src/payments/**"
301303
],
302304
"observedImports": [
305+
"benchmarks",
306+
"config",
303307
"core",
304308
"harness",
305-
"outputs"
309+
"integrations",
310+
"outputs",
311+
"retrievers"
306312
],
307313
"publicFiles": [
308-
"benchmarks/fixtures/fastapi-app/app/admin.py",
309-
"benchmarks/fixtures/fastapi-app/app/billing.py",
310-
"benchmarks/fixtures/fastapi-app/app/models.py",
311-
"benchmarks/fixtures/fastapi-app/app/routes/users.py",
312-
"benchmarks/fixtures/fastapi-app/app/schemas.py",
313-
"benchmarks/fixtures/fastapi-app/tests/test_users.py",
314-
"src/benchmarks/agent-benchmark.ts",
315-
"src/benchmarks/benchmark.ts"
314+
"src/cli/capp-commands.ts",
315+
"src/cli/default-command.ts",
316+
"src/cli/index.ts",
317+
"src/cli/opencode-preset.ts",
318+
"src/cli/task-args.ts"
316319
]
317320
},
318-
"cli": {
321+
"benchmarks": {
319322
"owns": [
320-
"src/cli/**"
323+
"benchmarks/**",
324+
"src/benchmarks/**"
321325
],
322326
"allowedImports": [
323327
"benchmarks/**",
324328
"benchmarks/fixtures/monorepo/packages/config/**",
325329
"benchmarks/fixtures/monorepo/packages/shared/**",
326330
"src/benchmarks/**",
327-
"src/cli/**",
328331
"src/config/**",
329332
"src/core/**",
330333
"src/harness/**",
331-
"src/integrations/**",
332-
"src/outputs/**",
333-
"src/retrievers/**"
334+
"src/outputs/**"
334335
],
335336
"forbiddenImports": [
336337
"**/*.generated.*",
@@ -343,20 +344,19 @@
343344
"src/payments/**"
344345
],
345346
"observedImports": [
346-
"benchmarks",
347-
"config",
348347
"core",
349348
"harness",
350-
"integrations",
351-
"outputs",
352-
"retrievers"
349+
"outputs"
353350
],
354351
"publicFiles": [
355-
"src/cli/capp-commands.ts",
356-
"src/cli/default-command.ts",
357-
"src/cli/index.ts",
358-
"src/cli/opencode-preset.ts",
359-
"src/cli/task-args.ts"
352+
"benchmarks/fixtures/fastapi-app/app/admin.py",
353+
"benchmarks/fixtures/fastapi-app/app/billing.py",
354+
"benchmarks/fixtures/fastapi-app/app/models.py",
355+
"benchmarks/fixtures/fastapi-app/app/routes/users.py",
356+
"benchmarks/fixtures/fastapi-app/app/schemas.py",
357+
"benchmarks/fixtures/fastapi-app/tests/test_users.py",
358+
"src/benchmarks/agent-benchmark.ts",
359+
"src/benchmarks/benchmark.ts"
360360
]
361361
},
362362
"analyzers": {

.agent-context/contracts/safety.contract.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"Do not edit lockfiles unless dependency changes are required and explained.",
2121
"Do not change migrations, schemas, CI, deployment, or env files unless they are in scope for the task.",
2222
"Do not introduce new global dependencies when local module code can satisfy the task.",
23-
"Use code-agent-plusplus impact --base <ref> after edits to identify affected dependents and required verification."
23+
"Use opencode-plusplus impact --base <ref> after edits to identify affected dependents and required verification."
2424
]
2525
}

0 commit comments

Comments
 (0)