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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279
  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. "compactSidebar": {
  12. "description": "Use the compact TUI sidebar layout. Defaults to true; set false to use the expanded layout.",
  13. "type": "boolean"
  14. },
  15. "stripOrchestratorModel": {
  16. "description": "When true, omit orchestrator.model and orchestrator.variant from the SDK config so OpenCode uses the session model selected with /model after subagent dispatch. An explicitly selected preset that sets orchestrator.model is preserved. Defaults to false.",
  17. "type": "boolean"
  18. },
  19. "autoUpdate": {
  20. "description": "Disable automatic installation of plugin updates when false. Defaults to true.",
  21. "type": "boolean"
  22. },
  23. "presets": {
  24. "type": "object",
  25. "propertyNames": {
  26. "type": "string"
  27. },
  28. "additionalProperties": {
  29. "type": "object",
  30. "propertyNames": {
  31. "type": "string"
  32. },
  33. "additionalProperties": {
  34. "type": "object",
  35. "properties": {
  36. "model": {
  37. "anyOf": [
  38. {
  39. "type": "string"
  40. },
  41. {
  42. "minItems": 1,
  43. "type": "array",
  44. "items": {
  45. "anyOf": [
  46. {
  47. "type": "string"
  48. },
  49. {
  50. "type": "object",
  51. "properties": {
  52. "id": {
  53. "type": "string"
  54. },
  55. "variant": {
  56. "type": "string"
  57. }
  58. },
  59. "required": [
  60. "id"
  61. ]
  62. }
  63. ]
  64. }
  65. }
  66. ]
  67. },
  68. "temperature": {
  69. "type": "number",
  70. "minimum": 0,
  71. "maximum": 2
  72. },
  73. "variant": {
  74. "type": "string"
  75. },
  76. "skills": {
  77. "type": "array",
  78. "items": {
  79. "type": "string"
  80. }
  81. },
  82. "mcps": {
  83. "type": "array",
  84. "items": {
  85. "type": "string"
  86. }
  87. },
  88. "prompt": {
  89. "type": "string",
  90. "minLength": 1
  91. },
  92. "orchestratorPrompt": {
  93. "type": "string",
  94. "minLength": 1
  95. },
  96. "options": {
  97. "type": "object",
  98. "propertyNames": {
  99. "type": "string"
  100. },
  101. "additionalProperties": {}
  102. },
  103. "displayName": {
  104. "type": "string",
  105. "minLength": 1
  106. },
  107. "description": {
  108. "type": "string",
  109. "minLength": 1
  110. },
  111. "permission": {
  112. "anyOf": [
  113. {
  114. "type": "string",
  115. "enum": [
  116. "ask",
  117. "allow",
  118. "deny"
  119. ]
  120. },
  121. {
  122. "type": "object",
  123. "properties": {
  124. "read": {
  125. "anyOf": [
  126. {
  127. "type": "string",
  128. "enum": [
  129. "ask",
  130. "allow",
  131. "deny"
  132. ]
  133. },
  134. {
  135. "type": "object",
  136. "propertyNames": {
  137. "type": "string"
  138. },
  139. "additionalProperties": {
  140. "type": "string",
  141. "enum": [
  142. "ask",
  143. "allow",
  144. "deny"
  145. ]
  146. }
  147. }
  148. ]
  149. },
  150. "edit": {
  151. "anyOf": [
  152. {
  153. "type": "string",
  154. "enum": [
  155. "ask",
  156. "allow",
  157. "deny"
  158. ]
  159. },
  160. {
  161. "type": "object",
  162. "propertyNames": {
  163. "type": "string"
  164. },
  165. "additionalProperties": {
  166. "type": "string",
  167. "enum": [
  168. "ask",
  169. "allow",
  170. "deny"
  171. ]
  172. }
  173. }
  174. ]
  175. },
  176. "glob": {
  177. "anyOf": [
  178. {
  179. "type": "string",
  180. "enum": [
  181. "ask",
  182. "allow",
  183. "deny"
  184. ]
  185. },
  186. {
  187. "type": "object",
  188. "propertyNames": {
  189. "type": "string"
  190. },
  191. "additionalProperties": {
  192. "type": "string",
  193. "enum": [
  194. "ask",
  195. "allow",
  196. "deny"
  197. ]
  198. }
  199. }
  200. ]
  201. },
  202. "grep": {
  203. "anyOf": [
  204. {
  205. "type": "string",
  206. "enum": [
  207. "ask",
  208. "allow",
  209. "deny"
  210. ]
  211. },
  212. {
  213. "type": "object",
  214. "propertyNames": {
  215. "type": "string"
  216. },
  217. "additionalProperties": {
  218. "type": "string",
  219. "enum": [
  220. "ask",
  221. "allow",
  222. "deny"
  223. ]
  224. }
  225. }
  226. ]
  227. },
  228. "list": {
  229. "anyOf": [
  230. {
  231. "type": "string",
  232. "enum": [
  233. "ask",
  234. "allow",
  235. "deny"
  236. ]
  237. },
  238. {
  239. "type": "object",
  240. "propertyNames": {
  241. "type": "string"
  242. },
  243. "additionalProperties": {
  244. "type": "string",
  245. "enum": [
  246. "ask",
  247. "allow",
  248. "deny"
  249. ]
  250. }
  251. }
  252. ]
  253. },
  254. "bash": {
  255. "anyOf": [
  256. {
  257. "type": "string",
  258. "enum": [
  259. "ask",
  260. "allow",
  261. "deny"
  262. ]
  263. },
  264. {
  265. "type": "object",
  266. "propertyNames": {
  267. "type": "string"
  268. },
  269. "additionalProperties": {
  270. "type": "string",
  271. "enum": [
  272. "ask",
  273. "allow",
  274. "deny"
  275. ]
  276. }
  277. }
  278. ]
  279. },
  280. "task": {
  281. "anyOf": [
  282. {
  283. "type": "string",
  284. "enum": [
  285. "ask",
  286. "allow",
  287. "deny"
  288. ]
  289. },
  290. {
  291. "type": "object",
  292. "propertyNames": {
  293. "type": "string"
  294. },
  295. "additionalProperties": {
  296. "type": "string",
  297. "enum": [
  298. "ask",
  299. "allow",
  300. "deny"
  301. ]
  302. }
  303. }
  304. ]
  305. },
  306. "external_directory": {
  307. "anyOf": [
  308. {
  309. "type": "string",
  310. "enum": [
  311. "ask",
  312. "allow",
  313. "deny"
  314. ]
  315. },
  316. {
  317. "type": "object",
  318. "propertyNames": {
  319. "type": "string"
  320. },
  321. "additionalProperties": {
  322. "type": "string",
  323. "enum": [
  324. "ask",
  325. "allow",
  326. "deny"
  327. ]
  328. }
  329. }
  330. ]
  331. },
  332. "lsp": {
  333. "anyOf": [
  334. {
  335. "type": "string",
  336. "enum": [
  337. "ask",
  338. "allow",
  339. "deny"
  340. ]
  341. },
  342. {
  343. "type": "object",
  344. "propertyNames": {
  345. "type": "string"
  346. },
  347. "additionalProperties": {
  348. "type": "string",
  349. "enum": [
  350. "ask",
  351. "allow",
  352. "deny"
  353. ]
  354. }
  355. }
  356. ]
  357. },
  358. "skill": {
  359. "anyOf": [
  360. {
  361. "type": "string",
  362. "enum": [
  363. "ask",
  364. "allow",
  365. "deny"
  366. ]
  367. },
  368. {
  369. "type": "object",
  370. "propertyNames": {
  371. "type": "string"
  372. },
  373. "additionalProperties": {
  374. "type": "string",
  375. "enum": [
  376. "ask",
  377. "allow",
  378. "deny"
  379. ]
  380. }
  381. }
  382. ]
  383. },
  384. "todowrite": {
  385. "type": "string",
  386. "enum": [
  387. "ask",
  388. "allow",
  389. "deny"
  390. ]
  391. },
  392. "question": {
  393. "type": "string",
  394. "enum": [
  395. "ask",
  396. "allow",
  397. "deny"
  398. ]
  399. },
  400. "webfetch": {
  401. "type": "string",
  402. "enum": [
  403. "ask",
  404. "allow",
  405. "deny"
  406. ]
  407. },
  408. "websearch": {
  409. "type": "string",
  410. "enum": [
  411. "ask",
  412. "allow",
  413. "deny"
  414. ]
  415. },
  416. "codesearch": {
  417. "type": "string",
  418. "enum": [
  419. "ask",
  420. "allow",
  421. "deny"
  422. ]
  423. },
  424. "doom_loop": {
  425. "type": "string",
  426. "enum": [
  427. "ask",
  428. "allow",
  429. "deny"
  430. ]
  431. }
  432. },
  433. "additionalProperties": {
  434. "anyOf": [
  435. {
  436. "type": "string",
  437. "enum": [
  438. "ask",
  439. "allow",
  440. "deny"
  441. ]
  442. },
  443. {
  444. "type": "object",
  445. "propertyNames": {
  446. "type": "string"
  447. },
  448. "additionalProperties": {
  449. "type": "string",
  450. "enum": [
  451. "ask",
  452. "allow",
  453. "deny"
  454. ]
  455. }
  456. }
  457. ]
  458. }
  459. }
  460. ]
  461. }
  462. },
  463. "additionalProperties": false
  464. }
  465. }
  466. },
  467. "agents": {
  468. "type": "object",
  469. "propertyNames": {
  470. "type": "string"
  471. },
  472. "additionalProperties": {
  473. "type": "object",
  474. "properties": {
  475. "model": {
  476. "anyOf": [
  477. {
  478. "type": "string"
  479. },
  480. {
  481. "minItems": 1,
  482. "type": "array",
  483. "items": {
  484. "anyOf": [
  485. {
  486. "type": "string"
  487. },
  488. {
  489. "type": "object",
  490. "properties": {
  491. "id": {
  492. "type": "string"
  493. },
  494. "variant": {
  495. "type": "string"
  496. }
  497. },
  498. "required": [
  499. "id"
  500. ]
  501. }
  502. ]
  503. }
  504. }
  505. ]
  506. },
  507. "temperature": {
  508. "type": "number",
  509. "minimum": 0,
  510. "maximum": 2
  511. },
  512. "variant": {
  513. "type": "string"
  514. },
  515. "skills": {
  516. "type": "array",
  517. "items": {
  518. "type": "string"
  519. }
  520. },
  521. "mcps": {
  522. "type": "array",
  523. "items": {
  524. "type": "string"
  525. }
  526. },
  527. "prompt": {
  528. "type": "string",
  529. "minLength": 1
  530. },
  531. "orchestratorPrompt": {
  532. "type": "string",
  533. "minLength": 1
  534. },
  535. "options": {
  536. "type": "object",
  537. "propertyNames": {
  538. "type": "string"
  539. },
  540. "additionalProperties": {}
  541. },
  542. "displayName": {
  543. "type": "string",
  544. "minLength": 1
  545. },
  546. "description": {
  547. "type": "string",
  548. "minLength": 1
  549. },
  550. "permission": {
  551. "anyOf": [
  552. {
  553. "type": "string",
  554. "enum": [
  555. "ask",
  556. "allow",
  557. "deny"
  558. ]
  559. },
  560. {
  561. "type": "object",
  562. "properties": {
  563. "read": {
  564. "anyOf": [
  565. {
  566. "type": "string",
  567. "enum": [
  568. "ask",
  569. "allow",
  570. "deny"
  571. ]
  572. },
  573. {
  574. "type": "object",
  575. "propertyNames": {
  576. "type": "string"
  577. },
  578. "additionalProperties": {
  579. "type": "string",
  580. "enum": [
  581. "ask",
  582. "allow",
  583. "deny"
  584. ]
  585. }
  586. }
  587. ]
  588. },
  589. "edit": {
  590. "anyOf": [
  591. {
  592. "type": "string",
  593. "enum": [
  594. "ask",
  595. "allow",
  596. "deny"
  597. ]
  598. },
  599. {
  600. "type": "object",
  601. "propertyNames": {
  602. "type": "string"
  603. },
  604. "additionalProperties": {
  605. "type": "string",
  606. "enum": [
  607. "ask",
  608. "allow",
  609. "deny"
  610. ]
  611. }
  612. }
  613. ]
  614. },
  615. "glob": {
  616. "anyOf": [
  617. {
  618. "type": "string",
  619. "enum": [
  620. "ask",
  621. "allow",
  622. "deny"
  623. ]
  624. },
  625. {
  626. "type": "object",
  627. "propertyNames": {
  628. "type": "string"
  629. },
  630. "additionalProperties": {
  631. "type": "string",
  632. "enum": [
  633. "ask",
  634. "allow",
  635. "deny"
  636. ]
  637. }
  638. }
  639. ]
  640. },
  641. "grep": {
  642. "anyOf": [
  643. {
  644. "type": "string",
  645. "enum": [
  646. "ask",
  647. "allow",
  648. "deny"
  649. ]
  650. },
  651. {
  652. "type": "object",
  653. "propertyNames": {
  654. "type": "string"
  655. },
  656. "additionalProperties": {
  657. "type": "string",
  658. "enum": [
  659. "ask",
  660. "allow",
  661. "deny"
  662. ]
  663. }
  664. }
  665. ]
  666. },
  667. "list": {
  668. "anyOf": [
  669. {
  670. "type": "string",
  671. "enum": [
  672. "ask",
  673. "allow",
  674. "deny"
  675. ]
  676. },
  677. {
  678. "type": "object",
  679. "propertyNames": {
  680. "type": "string"
  681. },
  682. "additionalProperties": {
  683. "type": "string",
  684. "enum": [
  685. "ask",
  686. "allow",
  687. "deny"
  688. ]
  689. }
  690. }
  691. ]
  692. },
  693. "bash": {
  694. "anyOf": [
  695. {
  696. "type": "string",
  697. "enum": [
  698. "ask",
  699. "allow",
  700. "deny"
  701. ]
  702. },
  703. {
  704. "type": "object",
  705. "propertyNames": {
  706. "type": "string"
  707. },
  708. "additionalProperties": {
  709. "type": "string",
  710. "enum": [
  711. "ask",
  712. "allow",
  713. "deny"
  714. ]
  715. }
  716. }
  717. ]
  718. },
  719. "task": {
  720. "anyOf": [
  721. {
  722. "type": "string",
  723. "enum": [
  724. "ask",
  725. "allow",
  726. "deny"
  727. ]
  728. },
  729. {
  730. "type": "object",
  731. "propertyNames": {
  732. "type": "string"
  733. },
  734. "additionalProperties": {
  735. "type": "string",
  736. "enum": [
  737. "ask",
  738. "allow",
  739. "deny"
  740. ]
  741. }
  742. }
  743. ]
  744. },
  745. "external_directory": {
  746. "anyOf": [
  747. {
  748. "type": "string",
  749. "enum": [
  750. "ask",
  751. "allow",
  752. "deny"
  753. ]
  754. },
  755. {
  756. "type": "object",
  757. "propertyNames": {
  758. "type": "string"
  759. },
  760. "additionalProperties": {
  761. "type": "string",
  762. "enum": [
  763. "ask",
  764. "allow",
  765. "deny"
  766. ]
  767. }
  768. }
  769. ]
  770. },
  771. "lsp": {
  772. "anyOf": [
  773. {
  774. "type": "string",
  775. "enum": [
  776. "ask",
  777. "allow",
  778. "deny"
  779. ]
  780. },
  781. {
  782. "type": "object",
  783. "propertyNames": {
  784. "type": "string"
  785. },
  786. "additionalProperties": {
  787. "type": "string",
  788. "enum": [
  789. "ask",
  790. "allow",
  791. "deny"
  792. ]
  793. }
  794. }
  795. ]
  796. },
  797. "skill": {
  798. "anyOf": [
  799. {
  800. "type": "string",
  801. "enum": [
  802. "ask",
  803. "allow",
  804. "deny"
  805. ]
  806. },
  807. {
  808. "type": "object",
  809. "propertyNames": {
  810. "type": "string"
  811. },
  812. "additionalProperties": {
  813. "type": "string",
  814. "enum": [
  815. "ask",
  816. "allow",
  817. "deny"
  818. ]
  819. }
  820. }
  821. ]
  822. },
  823. "todowrite": {
  824. "type": "string",
  825. "enum": [
  826. "ask",
  827. "allow",
  828. "deny"
  829. ]
  830. },
  831. "question": {
  832. "type": "string",
  833. "enum": [
  834. "ask",
  835. "allow",
  836. "deny"
  837. ]
  838. },
  839. "webfetch": {
  840. "type": "string",
  841. "enum": [
  842. "ask",
  843. "allow",
  844. "deny"
  845. ]
  846. },
  847. "websearch": {
  848. "type": "string",
  849. "enum": [
  850. "ask",
  851. "allow",
  852. "deny"
  853. ]
  854. },
  855. "codesearch": {
  856. "type": "string",
  857. "enum": [
  858. "ask",
  859. "allow",
  860. "deny"
  861. ]
  862. },
  863. "doom_loop": {
  864. "type": "string",
  865. "enum": [
  866. "ask",
  867. "allow",
  868. "deny"
  869. ]
  870. }
  871. },
  872. "additionalProperties": {
  873. "anyOf": [
  874. {
  875. "type": "string",
  876. "enum": [
  877. "ask",
  878. "allow",
  879. "deny"
  880. ]
  881. },
  882. {
  883. "type": "object",
  884. "propertyNames": {
  885. "type": "string"
  886. },
  887. "additionalProperties": {
  888. "type": "string",
  889. "enum": [
  890. "ask",
  891. "allow",
  892. "deny"
  893. ]
  894. }
  895. }
  896. ]
  897. }
  898. }
  899. ]
  900. }
  901. },
  902. "additionalProperties": false
  903. }
  904. },
  905. "disabled_agents": {
  906. "description": "Agent names to disable completely. Disabled agents are not instantiated and cannot be delegated to. Orchestrator and council internal agents (councillor) cannot be disabled. By default, 'observer' is disabled. Remove it from this list and configure a vision-capable model to enable.",
  907. "type": "array",
  908. "items": {
  909. "type": "string"
  910. }
  911. },
  912. "image_routing": {
  913. "description": "How image attachments are handled. When omitted, preserves legacy conditional behavior: intercept attachments only when observer is enabled. \"auto\": requires observer to be enabled and saves attachments to disk before nudging delegation to @observer. \"direct\": always passes attachments to the orchestrator untouched.",
  914. "type": "string",
  915. "enum": [
  916. "auto",
  917. "direct"
  918. ]
  919. },
  920. "disabled_mcps": {
  921. "description": "MCP server names to disable completely. Disabled servers are not started and cannot be used by agents.",
  922. "type": "array",
  923. "items": {
  924. "type": "string"
  925. }
  926. },
  927. "disabled_tools": {
  928. "description": "Tool names to disable completely. Disabled tools are not registered with OpenCode and cannot be used by agents.",
  929. "type": "array",
  930. "items": {
  931. "type": "string"
  932. }
  933. },
  934. "disabled_skills": {
  935. "description": "Skill names to disable completely. Disabled skills are not granted to agents, even when referenced by presets or agent overrides.",
  936. "type": "array",
  937. "items": {
  938. "type": "string"
  939. }
  940. },
  941. "multiplexer": {
  942. "type": "object",
  943. "properties": {
  944. "type": {
  945. "default": "none",
  946. "type": "string",
  947. "enum": [
  948. "auto",
  949. "tmux",
  950. "zellij",
  951. "herdr",
  952. "kitty",
  953. "cmux",
  954. "none"
  955. ]
  956. },
  957. "layout": {
  958. "default": "main-vertical",
  959. "type": "string",
  960. "enum": [
  961. "main-horizontal",
  962. "main-vertical",
  963. "tiled",
  964. "even-horizontal",
  965. "even-vertical"
  966. ]
  967. },
  968. "main_pane_size": {
  969. "default": 60,
  970. "type": "number",
  971. "minimum": 20,
  972. "maximum": 80
  973. },
  974. "zellij_pane_mode": {
  975. "default": "agent-tab",
  976. "type": "string",
  977. "enum": [
  978. "agent-tab",
  979. "current-tab"
  980. ]
  981. }
  982. }
  983. },
  984. "backgroundJobs": {
  985. "type": "object",
  986. "properties": {
  987. "strategy": {
  988. "default": "latest",
  989. "description": "Board injection strategy. \"latest\" replaces prior board messages; \"checkpoint-compatible\" preserves them and appends only changed board snapshots.",
  990. "type": "string",
  991. "enum": [
  992. "latest",
  993. "checkpoint-compatible"
  994. ]
  995. },
  996. "maxSessionsPerAgent": {
  997. "default": 2,
  998. "type": "integer",
  999. "minimum": 1,
  1000. "maximum": 10
  1001. },
  1002. "maxContextLines": {
  1003. "default": 50000,
  1004. "type": "integer",
  1005. "minimum": 0,
  1006. "maximum": 500000
  1007. },
  1008. "readContextMinLines": {
  1009. "default": 10,
  1010. "type": "integer",
  1011. "minimum": 0,
  1012. "maximum": 1000
  1013. },
  1014. "readContextMaxFiles": {
  1015. "default": 8,
  1016. "type": "integer",
  1017. "minimum": 0,
  1018. "maximum": 50
  1019. },
  1020. "maxRetainedSnapshots": {
  1021. "default": 20,
  1022. "description": "Maximum board snapshots retained per checkpoint cache epoch (1–100). Exceeding the limit starts a new epoch with the current snapshot and intentionally creates one cache miss.",
  1023. "type": "integer",
  1024. "minimum": 1,
  1025. "maximum": 100
  1026. },
  1027. "continueOnIdle": {
  1028. "default": false,
  1029. "description": "Beta opt-in. When true, idle orchestrator sessions with incomplete todos may receive one automatic hidden continuation prompt. Disabled by default; idle reconciliation and background-job orchestration continue without automatic continuation prompts.",
  1030. "type": "boolean"
  1031. },
  1032. "wallClockTimeoutMs": {
  1033. "default": 0,
  1034. "description": "Explicit opt-in wall-clock deadline for native task(..., background: true) child sessions. 0 disables supervision; finite values are 60,000–2,147,483,647ms.",
  1035. "anyOf": [
  1036. {
  1037. "type": "number",
  1038. "const": 0
  1039. },
  1040. {
  1041. "type": "integer",
  1042. "minimum": 60000,
  1043. "maximum": 2147483647
  1044. }
  1045. ]
  1046. },
  1047. "abortGraceMs": {
  1048. "default": 10000,
  1049. "description": "Grace period after a wall-clock deadline while OpenCode confirms the child terminal state (1,000–60,000ms).",
  1050. "type": "integer",
  1051. "minimum": 1000,
  1052. "maximum": 60000
  1053. }
  1054. }
  1055. },
  1056. "fallback": {
  1057. "type": "object",
  1058. "properties": {
  1059. "enabled": {
  1060. "default": true,
  1061. "type": "boolean"
  1062. },
  1063. "maxRetries": {
  1064. "default": 3,
  1065. "description": "Number of consecutive 429/rate-limit responses tolerated on the same model before aborting (or swapping to the next fallback model when a chain is configured).",
  1066. "type": "integer",
  1067. "minimum": 0,
  1068. "maximum": 9007199254740991
  1069. }
  1070. },
  1071. "additionalProperties": false
  1072. },
  1073. "council": {
  1074. "type": "object",
  1075. "properties": {
  1076. "presets": {
  1077. "type": "object",
  1078. "propertyNames": {
  1079. "type": "string"
  1080. },
  1081. "additionalProperties": {
  1082. "type": "object",
  1083. "propertyNames": {
  1084. "type": "string"
  1085. },
  1086. "additionalProperties": {
  1087. "type": "object",
  1088. "propertyNames": {
  1089. "type": "string"
  1090. },
  1091. "additionalProperties": {}
  1092. }
  1093. }
  1094. },
  1095. "default_preset": {
  1096. "default": "default",
  1097. "type": "string"
  1098. }
  1099. },
  1100. "required": [
  1101. "presets"
  1102. ],
  1103. "additionalProperties": {}
  1104. },
  1105. "companion": {
  1106. "type": "object",
  1107. "properties": {
  1108. "enabled": {
  1109. "type": "boolean"
  1110. },
  1111. "binaryPath": {
  1112. "description": "Path to a custom companion binary to launch.",
  1113. "type": "string",
  1114. "minLength": 1
  1115. },
  1116. "position": {
  1117. "type": "string",
  1118. "enum": [
  1119. "bottom-right",
  1120. "bottom-left",
  1121. "top-right",
  1122. "top-left"
  1123. ]
  1124. },
  1125. "size": {
  1126. "type": "string",
  1127. "enum": [
  1128. "small",
  1129. "medium",
  1130. "large"
  1131. ]
  1132. },
  1133. "gifPack": {
  1134. "description": "Bundled companion animation pack to use.",
  1135. "type": "string",
  1136. "enum": [
  1137. "default"
  1138. ]
  1139. },
  1140. "loopStyle": {
  1141. "description": "Companion animation playback style: classic loops or smooth ping-pong playback.",
  1142. "type": "string",
  1143. "enum": [
  1144. "classic",
  1145. "smooth"
  1146. ]
  1147. },
  1148. "speed": {
  1149. "description": "Companion animation playback speed multiplier. Defaults to 1.",
  1150. "type": "number",
  1151. "minimum": 0.25,
  1152. "maximum": 4
  1153. },
  1154. "debug": {
  1155. "description": "Enable verbose native companion debug logs.",
  1156. "type": "boolean"
  1157. }
  1158. }
  1159. },
  1160. "webfetch": {
  1161. "type": "object",
  1162. "properties": {
  1163. "enabled": {
  1164. "default": true,
  1165. "description": "When false, skip registering this enhanced webfetch so OpenCode uses its built-in version.",
  1166. "type": "boolean"
  1167. },
  1168. "model": {
  1169. "description": "Dedicated model(s) for smartfetch secondary-model summarization. Same shape as agent model config (string, array of strings/objects with id+variant). Takes priority over small_model, agents.explorer.model, and agents.librarian.model.",
  1170. "anyOf": [
  1171. {
  1172. "type": "string"
  1173. },
  1174. {
  1175. "minItems": 1,
  1176. "type": "array",
  1177. "items": {
  1178. "anyOf": [
  1179. {
  1180. "type": "string"
  1181. },
  1182. {
  1183. "type": "object",
  1184. "properties": {
  1185. "id": {
  1186. "type": "string"
  1187. },
  1188. "variant": {
  1189. "type": "string"
  1190. }
  1191. },
  1192. "required": [
  1193. "id"
  1194. ]
  1195. }
  1196. ]
  1197. }
  1198. }
  1199. ]
  1200. }
  1201. },
  1202. "additionalProperties": false
  1203. },
  1204. "acpAgents": {
  1205. "type": "object",
  1206. "propertyNames": {
  1207. "type": "string"
  1208. },
  1209. "additionalProperties": {
  1210. "type": "object",
  1211. "properties": {
  1212. "command": {
  1213. "type": "string",
  1214. "minLength": 1
  1215. },
  1216. "args": {
  1217. "default": [],
  1218. "type": "array",
  1219. "items": {
  1220. "type": "string"
  1221. }
  1222. },
  1223. "env": {
  1224. "default": {},
  1225. "type": "object",
  1226. "propertyNames": {
  1227. "type": "string"
  1228. },
  1229. "additionalProperties": {
  1230. "type": "string"
  1231. }
  1232. },
  1233. "cwd": {
  1234. "type": "string",
  1235. "minLength": 1
  1236. },
  1237. "description": {
  1238. "type": "string",
  1239. "minLength": 1
  1240. },
  1241. "prompt": {
  1242. "type": "string",
  1243. "minLength": 1
  1244. },
  1245. "orchestratorPrompt": {
  1246. "type": "string",
  1247. "minLength": 1
  1248. },
  1249. "wrapperModel": {
  1250. "type": "string",
  1251. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  1252. },
  1253. "timeoutMs": {
  1254. "default": 0,
  1255. "description": "Timeout for a single ACP run in milliseconds. Set to 0 to disable the timeout.",
  1256. "type": "integer",
  1257. "minimum": 0,
  1258. "maximum": 2147483647
  1259. },
  1260. "permissionMode": {
  1261. "default": "ask",
  1262. "type": "string",
  1263. "enum": [
  1264. "ask",
  1265. "allow",
  1266. "reject"
  1267. ]
  1268. }
  1269. },
  1270. "required": [
  1271. "command"
  1272. ],
  1273. "additionalProperties": false
  1274. }
  1275. }
  1276. },
  1277. "title": "oh-my-opencode-slim",
  1278. "description": "Configuration schema for oh-my-opencode-slim plugin for OpenCode"
  1279. }