@ccx-agent/opencode-ccx 0.6.0 → 0.7.0

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/README.md CHANGED
@@ -340,6 +340,16 @@ Example:
340
340
  "explore_min_queries": 3,
341
341
  "coordinator_enabled": false,
342
342
  "allow_subagent_delegation": false,
343
+ "agents": {
344
+ "verification": {
345
+ "model": "anthropic/claude-sonnet-4-5",
346
+ "temperature": 0
347
+ },
348
+ "explore": {
349
+ "model": "openai/gpt-5-mini",
350
+ "temperature": 0.4
351
+ }
352
+ },
343
353
  "context_bundle": {
344
354
  "enabled": true,
345
355
  "include_cwd": true,
@@ -387,6 +397,10 @@ Example:
387
397
  | `subagent_orchestration.explore_min_queries` | `number` | `3` | Escalate to `ccx-explore` when directed lookup likely needs more than this query count |
388
398
  | `subagent_orchestration.coordinator_enabled` | `boolean` | `false` | Register and advertise `ccx-coordinator` subagent |
389
399
  | `subagent_orchestration.allow_subagent_delegation` | `boolean` | `false` | Permit subagents to delegate further. When `false`, runtime recursion guard blocks nested `task` delegation from `ccx-*` subagents unless explicit delegation-approval metadata is present |
400
+ | `subagent_orchestration.agents.<name>.model` | `string` | unset | Override a registered ccx subagent model using OpenCode's `provider/model` format, e.g. `anthropic/claude-sonnet-4-5` |
401
+ | `subagent_orchestration.agents.<name>.variant` | `string` | unset | Default model variant for that subagent when using its configured model |
402
+ | `subagent_orchestration.agents.<name>.temperature` | `number` | unset | Override that subagent's temperature; must be non-negative |
403
+ | `subagent_orchestration.agents.<name>.top_p` | `number` | unset | Override that subagent's top-p sampling value; must be between 0 and 1 |
390
404
  | `subagent_orchestration.context_bundle.enabled` | `boolean` | `true` | Inject a shared context bundle (cwd, git snapshot, recently changed files) into `task` tool args before execution |
391
405
  | `subagent_orchestration.context_bundle.include_cwd` | `boolean` | `true` | Include the working directory in the injected bundle |
392
406
  | `subagent_orchestration.context_bundle.include_git` | `boolean` | `true` | Include the per-session git snapshot in the injected bundle |
@@ -55,6 +55,12 @@ export declare const configSchema: z.ZodObject<{
55
55
  explore_min_queries: z.ZodDefault<z.ZodInt>;
56
56
  coordinator_enabled: z.ZodDefault<z.ZodBoolean>;
57
57
  allow_subagent_delegation: z.ZodDefault<z.ZodBoolean>;
58
+ agents: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
59
+ model: z.ZodOptional<z.ZodString>;
60
+ variant: z.ZodOptional<z.ZodString>;
61
+ temperature: z.ZodOptional<z.ZodNumber>;
62
+ top_p: z.ZodOptional<z.ZodNumber>;
63
+ }, z.core.$strip>>>;
58
64
  context_bundle: z.ZodDefault<z.ZodObject<{
59
65
  enabled: z.ZodDefault<z.ZodBoolean>;
60
66
  include_cwd: z.ZodDefault<z.ZodBoolean>;
package/dist/index.js CHANGED
@@ -21577,7 +21577,7 @@ function finalize(ctx, schema) {
21577
21577
  result.$schema = "http://json-schema.org/draft-07/schema#";
21578
21578
  } else if (ctx.target === "draft-04") {
21579
21579
  result.$schema = "http://json-schema.org/draft-04/schema#";
21580
- } else if (ctx.target === "openapi-3.0") {} else {}
21580
+ } else if (ctx.target === "openapi-3.0") {}
21581
21581
  if (ctx.external?.uri) {
21582
21582
  const id = ctx.external.registry.get(schema)?.id;
21583
21583
  if (!id)
@@ -21825,7 +21825,7 @@ var literalProcessor = (schema, ctx, json, _params) => {
21825
21825
  if (val === undefined) {
21826
21826
  if (ctx.unrepresentable === "throw") {
21827
21827
  throw new Error("Literal `undefined` cannot be represented in JSON Schema");
21828
- } else {}
21828
+ }
21829
21829
  } else if (typeof val === "bigint") {
21830
21830
  if (ctx.unrepresentable === "throw") {
21831
21831
  throw new Error("BigInt literals cannot be represented in JSON Schema");
@@ -24231,10 +24231,17 @@ var sessionWorkflowsSchema = exports_external.object({
24231
24231
  full_context_command: exports_external.string().min(1).nullable().default(null),
24232
24232
  status_command: exports_external.string().min(1).nullable().default(null)
24233
24233
  });
24234
+ var subagentModelConfigSchema = exports_external.object({
24235
+ model: exports_external.string().min(1).optional(),
24236
+ variant: exports_external.string().min(1).optional(),
24237
+ temperature: exports_external.number().finite().min(0).optional(),
24238
+ top_p: exports_external.number().finite().min(0).max(1).optional()
24239
+ });
24234
24240
  var subagentOrchestrationSchema = exports_external.object({
24235
24241
  explore_min_queries: exports_external.int().positive().default(3),
24236
24242
  coordinator_enabled: exports_external.boolean().default(false),
24237
24243
  allow_subagent_delegation: exports_external.boolean().default(false),
24244
+ agents: exports_external.record(exports_external.string().min(1), subagentModelConfigSchema).default({}),
24238
24245
  context_bundle: contextBundleSchema.default({
24239
24246
  enabled: true,
24240
24247
  include_cwd: true,
@@ -24302,6 +24309,7 @@ var configSchema = exports_external.object({
24302
24309
  explore_min_queries: 3,
24303
24310
  coordinator_enabled: false,
24304
24311
  allow_subagent_delegation: false,
24312
+ agents: {},
24305
24313
  context_bundle: {
24306
24314
  enabled: true,
24307
24315
  include_cwd: true,
@@ -25305,6 +25313,12 @@ function buildToolRestrictions(def) {
25305
25313
  }
25306
25314
  return tools;
25307
25315
  }
25316
+ function buildSubagentModelSettings(config2, def) {
25317
+ const settings = config2.subagent_orchestration.agents[def.name];
25318
+ if (!settings)
25319
+ return {};
25320
+ return Object.fromEntries(Object.entries(settings).filter(([, value]) => value !== undefined));
25321
+ }
25308
25322
  function buildSubagentGuidance(config2) {
25309
25323
  const exploreMinQueries = config2.subagent_orchestration.explore_min_queries;
25310
25324
  const spotCheckMinCommands = config2.verification.spot_check_min_commands;
@@ -25399,7 +25413,8 @@ function createConfigHook(config2, directory) {
25399
25413
  description: def.description,
25400
25414
  mode: "subagent",
25401
25415
  prompt: def.getSystemPrompt(),
25402
- tools: buildToolRestrictions(def)
25416
+ tools: buildToolRestrictions(def),
25417
+ ...buildSubagentModelSettings(config2, def)
25403
25418
  };
25404
25419
  }
25405
25420
  input.agent = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccx-agent/opencode-ccx",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Production-grade prompt engineering for OpenCode — disciplined coding, risk-aware actions, adversarial verification",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",