oh-my-opencode-slim.schema.json 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. {
  2. "$schema": "https://json-schema.org/draft/2020-12/schema",
  3. "type": "object",
  4. "properties": {
  5. "preset": {
  6. "type": "string"
  7. },
  8. "setDefaultAgent": {
  9. "type": "boolean"
  10. },
  11. "scoringEngineVersion": {
  12. "type": "string",
  13. "enum": [
  14. "v1",
  15. "v2-shadow",
  16. "v2"
  17. ]
  18. },
  19. "balanceProviderUsage": {
  20. "type": "boolean"
  21. },
  22. "manualPlan": {
  23. "type": "object",
  24. "properties": {
  25. "orchestrator": {
  26. "type": "object",
  27. "properties": {
  28. "primary": {
  29. "type": "string",
  30. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  31. },
  32. "fallback1": {
  33. "type": "string",
  34. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  35. },
  36. "fallback2": {
  37. "type": "string",
  38. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  39. },
  40. "fallback3": {
  41. "type": "string",
  42. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  43. }
  44. },
  45. "required": [
  46. "primary",
  47. "fallback1",
  48. "fallback2",
  49. "fallback3"
  50. ]
  51. },
  52. "oracle": {
  53. "type": "object",
  54. "properties": {
  55. "primary": {
  56. "type": "string",
  57. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  58. },
  59. "fallback1": {
  60. "type": "string",
  61. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  62. },
  63. "fallback2": {
  64. "type": "string",
  65. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  66. },
  67. "fallback3": {
  68. "type": "string",
  69. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  70. }
  71. },
  72. "required": [
  73. "primary",
  74. "fallback1",
  75. "fallback2",
  76. "fallback3"
  77. ]
  78. },
  79. "designer": {
  80. "type": "object",
  81. "properties": {
  82. "primary": {
  83. "type": "string",
  84. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  85. },
  86. "fallback1": {
  87. "type": "string",
  88. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  89. },
  90. "fallback2": {
  91. "type": "string",
  92. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  93. },
  94. "fallback3": {
  95. "type": "string",
  96. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  97. }
  98. },
  99. "required": [
  100. "primary",
  101. "fallback1",
  102. "fallback2",
  103. "fallback3"
  104. ]
  105. },
  106. "explorer": {
  107. "type": "object",
  108. "properties": {
  109. "primary": {
  110. "type": "string",
  111. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  112. },
  113. "fallback1": {
  114. "type": "string",
  115. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  116. },
  117. "fallback2": {
  118. "type": "string",
  119. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  120. },
  121. "fallback3": {
  122. "type": "string",
  123. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  124. }
  125. },
  126. "required": [
  127. "primary",
  128. "fallback1",
  129. "fallback2",
  130. "fallback3"
  131. ]
  132. },
  133. "librarian": {
  134. "type": "object",
  135. "properties": {
  136. "primary": {
  137. "type": "string",
  138. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  139. },
  140. "fallback1": {
  141. "type": "string",
  142. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  143. },
  144. "fallback2": {
  145. "type": "string",
  146. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  147. },
  148. "fallback3": {
  149. "type": "string",
  150. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  151. }
  152. },
  153. "required": [
  154. "primary",
  155. "fallback1",
  156. "fallback2",
  157. "fallback3"
  158. ]
  159. },
  160. "fixer": {
  161. "type": "object",
  162. "properties": {
  163. "primary": {
  164. "type": "string",
  165. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  166. },
  167. "fallback1": {
  168. "type": "string",
  169. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  170. },
  171. "fallback2": {
  172. "type": "string",
  173. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  174. },
  175. "fallback3": {
  176. "type": "string",
  177. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  178. }
  179. },
  180. "required": [
  181. "primary",
  182. "fallback1",
  183. "fallback2",
  184. "fallback3"
  185. ]
  186. }
  187. },
  188. "required": [
  189. "orchestrator",
  190. "oracle",
  191. "designer",
  192. "explorer",
  193. "librarian",
  194. "fixer"
  195. ],
  196. "additionalProperties": false
  197. },
  198. "presets": {
  199. "type": "object",
  200. "propertyNames": {
  201. "type": "string"
  202. },
  203. "additionalProperties": {
  204. "type": "object",
  205. "propertyNames": {
  206. "type": "string"
  207. },
  208. "additionalProperties": {
  209. "type": "object",
  210. "properties": {
  211. "model": {
  212. "anyOf": [
  213. {
  214. "type": "string"
  215. },
  216. {
  217. "type": "array",
  218. "items": {
  219. "anyOf": [
  220. {
  221. "type": "string"
  222. },
  223. {
  224. "type": "object",
  225. "properties": {
  226. "id": {
  227. "type": "string"
  228. },
  229. "variant": {
  230. "type": "string"
  231. }
  232. },
  233. "required": [
  234. "id"
  235. ]
  236. }
  237. ]
  238. }
  239. }
  240. ]
  241. },
  242. "temperature": {
  243. "type": "number",
  244. "minimum": 0,
  245. "maximum": 2
  246. },
  247. "variant": {
  248. "type": "string"
  249. },
  250. "skills": {
  251. "type": "array",
  252. "items": {
  253. "type": "string"
  254. }
  255. },
  256. "mcps": {
  257. "type": "array",
  258. "items": {
  259. "type": "string"
  260. }
  261. },
  262. "options": {
  263. "type": "object",
  264. "additionalProperties": true,
  265. "description": "Provider-specific model options (e.g., textVerbosity, thinking budget)"
  266. }
  267. }
  268. }
  269. }
  270. },
  271. "agents": {
  272. "type": "object",
  273. "propertyNames": {
  274. "type": "string"
  275. },
  276. "additionalProperties": {
  277. "type": "object",
  278. "properties": {
  279. "model": {
  280. "anyOf": [
  281. {
  282. "type": "string"
  283. },
  284. {
  285. "type": "array",
  286. "items": {
  287. "anyOf": [
  288. {
  289. "type": "string"
  290. },
  291. {
  292. "type": "object",
  293. "properties": {
  294. "id": {
  295. "type": "string"
  296. },
  297. "variant": {
  298. "type": "string"
  299. }
  300. },
  301. "required": [
  302. "id"
  303. ]
  304. }
  305. ]
  306. }
  307. }
  308. ]
  309. },
  310. "temperature": {
  311. "type": "number",
  312. "minimum": 0,
  313. "maximum": 2
  314. },
  315. "variant": {
  316. "type": "string"
  317. },
  318. "skills": {
  319. "type": "array",
  320. "items": {
  321. "type": "string"
  322. }
  323. },
  324. "mcps": {
  325. "type": "array",
  326. "items": {
  327. "type": "string"
  328. }
  329. },
  330. "options": {
  331. "type": "object",
  332. "additionalProperties": true,
  333. "description": "Provider-specific model options (e.g., textVerbosity, thinking budget)"
  334. }
  335. }
  336. }
  337. },
  338. "disabled_mcps": {
  339. "type": "array",
  340. "items": {
  341. "type": "string"
  342. }
  343. },
  344. "multiplexer": {
  345. "type": "object",
  346. "properties": {
  347. "type": {
  348. "default": "none",
  349. "type": "string",
  350. "enum": [
  351. "auto",
  352. "tmux",
  353. "zellij",
  354. "none"
  355. ]
  356. },
  357. "layout": {
  358. "default": "main-vertical",
  359. "type": "string",
  360. "enum": [
  361. "main-horizontal",
  362. "main-vertical",
  363. "tiled",
  364. "even-horizontal",
  365. "even-vertical"
  366. ]
  367. },
  368. "main_pane_size": {
  369. "default": 60,
  370. "type": "number",
  371. "minimum": 20,
  372. "maximum": 80
  373. }
  374. }
  375. },
  376. "tmux": {
  377. "type": "object",
  378. "properties": {
  379. "enabled": {
  380. "default": false,
  381. "type": "boolean"
  382. },
  383. "layout": {
  384. "default": "main-vertical",
  385. "type": "string",
  386. "enum": [
  387. "main-horizontal",
  388. "main-vertical",
  389. "tiled",
  390. "even-horizontal",
  391. "even-vertical"
  392. ]
  393. },
  394. "main_pane_size": {
  395. "default": 60,
  396. "type": "number",
  397. "minimum": 20,
  398. "maximum": 80
  399. }
  400. }
  401. },
  402. "websearch": {
  403. "type": "object",
  404. "properties": {
  405. "provider": {
  406. "default": "exa",
  407. "type": "string",
  408. "enum": [
  409. "exa",
  410. "tavily"
  411. ]
  412. }
  413. }
  414. },
  415. "background": {
  416. "type": "object",
  417. "properties": {
  418. "maxConcurrentStarts": {
  419. "default": 10,
  420. "type": "number",
  421. "minimum": 1,
  422. "maximum": 50
  423. }
  424. }
  425. },
  426. "interview": {
  427. "type": "object",
  428. "properties": {
  429. "maxQuestions": {
  430. "default": 2,
  431. "type": "integer",
  432. "minimum": 1,
  433. "maximum": 10
  434. },
  435. "outputFolder": {
  436. "default": "interview",
  437. "type": "string",
  438. "minLength": 1
  439. },
  440. "autoOpenBrowser": {
  441. "default": true,
  442. "type": "boolean"
  443. }
  444. }
  445. },
  446. "todoContinuation": {
  447. "type": "object",
  448. "properties": {
  449. "maxContinuations": {
  450. "default": 5,
  451. "description": "Maximum consecutive auto-continuations before stopping to ask user",
  452. "type": "integer",
  453. "minimum": 1,
  454. "maximum": 50
  455. },
  456. "cooldownMs": {
  457. "default": 3000,
  458. "description": "Delay in ms before auto-continuing (gives user time to abort)",
  459. "type": "integer",
  460. "minimum": 0,
  461. "maximum": 30000
  462. },
  463. "autoEnable": {
  464. "default": false,
  465. "description": "Automatically enable auto-continue when the orchestrator session has enough todos",
  466. "type": "boolean"
  467. },
  468. "autoEnableThreshold": {
  469. "default": 4,
  470. "description": "Number of todos that triggers auto-enable (only used when autoEnable is true)",
  471. "type": "integer",
  472. "minimum": 1,
  473. "maximum": 50
  474. }
  475. }
  476. },
  477. "fallback": {
  478. "type": "object",
  479. "properties": {
  480. "enabled": {
  481. "default": true,
  482. "type": "boolean"
  483. },
  484. "timeoutMs": {
  485. "default": 15000,
  486. "type": "number",
  487. "minimum": 0
  488. },
  489. "retryDelayMs": {
  490. "default": 500,
  491. "type": "number",
  492. "minimum": 0
  493. },
  494. "chains": {
  495. "default": {},
  496. "type": "object",
  497. "properties": {
  498. "orchestrator": {
  499. "minItems": 1,
  500. "type": "array",
  501. "items": {
  502. "type": "string"
  503. }
  504. },
  505. "oracle": {
  506. "minItems": 1,
  507. "type": "array",
  508. "items": {
  509. "type": "string"
  510. }
  511. },
  512. "designer": {
  513. "minItems": 1,
  514. "type": "array",
  515. "items": {
  516. "type": "string"
  517. }
  518. },
  519. "explorer": {
  520. "minItems": 1,
  521. "type": "array",
  522. "items": {
  523. "type": "string"
  524. }
  525. },
  526. "librarian": {
  527. "minItems": 1,
  528. "type": "array",
  529. "items": {
  530. "type": "string"
  531. }
  532. },
  533. "fixer": {
  534. "minItems": 1,
  535. "type": "array",
  536. "items": {
  537. "type": "string"
  538. }
  539. }
  540. },
  541. "additionalProperties": {
  542. "minItems": 1,
  543. "type": "array",
  544. "items": {
  545. "type": "string"
  546. }
  547. }
  548. },
  549. "retry_on_empty": {
  550. "default": true,
  551. "description": "When true (default), empty provider responses are treated as failures, triggering fallback/retry. Set to false to treat them as successes.",
  552. "type": "boolean"
  553. }
  554. }
  555. },
  556. "council": {
  557. "type": "object",
  558. "properties": {
  559. "master": {
  560. "type": "object",
  561. "properties": {
  562. "model": {
  563. "type": "string",
  564. "pattern": "^[^/\\s]+\\/[^\\s]+$",
  565. "description": "Model ID for the council master (e.g. \"anthropic/claude-opus-4-6\")"
  566. },
  567. "variant": {
  568. "type": "string"
  569. },
  570. "prompt": {
  571. "description": "Optional role/guidance injected into the master synthesis prompt",
  572. "type": "string"
  573. }
  574. },
  575. "required": [
  576. "model"
  577. ]
  578. },
  579. "presets": {
  580. "type": "object",
  581. "propertyNames": {
  582. "type": "string"
  583. },
  584. "additionalProperties": {
  585. "type": "object",
  586. "propertyNames": {
  587. "type": "string"
  588. },
  589. "additionalProperties": {
  590. "type": "object",
  591. "propertyNames": {
  592. "type": "string"
  593. },
  594. "additionalProperties": {}
  595. }
  596. }
  597. },
  598. "master_timeout": {
  599. "default": 300000,
  600. "type": "number",
  601. "minimum": 0
  602. },
  603. "councillors_timeout": {
  604. "default": 180000,
  605. "type": "number",
  606. "minimum": 0
  607. },
  608. "default_preset": {
  609. "default": "default",
  610. "type": "string"
  611. },
  612. "master_fallback": {
  613. "description": "Fallback models for the council master. Tried in order if the primary model fails. Example: [\"anthropic/claude-sonnet-4-6\", \"openai/gpt-5.4\"]",
  614. "type": "array",
  615. "items": {
  616. "type": "string",
  617. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  618. }
  619. },
  620. "councillor_execution_mode": {
  621. "default": "parallel",
  622. "description": "Execution mode for councillors. \"serial\" runs them one at a time (required for single-model systems). \"parallel\" runs them concurrently (default, faster for multi-model systems).",
  623. "type": "string",
  624. "enum": [
  625. "parallel",
  626. "serial"
  627. ]
  628. },
  629. "councillor_retries": {
  630. "default": 3,
  631. "description": "Number of retry attempts for councillors and master that return empty responses (e.g. due to provider rate limiting). Default: 3 retries.",
  632. "type": "integer",
  633. "minimum": 0,
  634. "maximum": 5
  635. }
  636. },
  637. "required": [
  638. "master",
  639. "presets"
  640. ]
  641. }
  642. },
  643. "title": "oh-my-opencode-slim",
  644. "description": "Configuration schema for oh-my-opencode-slim plugin for OpenCode"
  645. }