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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473
  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. "inheritModelFrom": {
  69. "type": "string",
  70. "enum": [
  71. "session",
  72. "orchestrator"
  73. ]
  74. },
  75. "temperature": {
  76. "type": "number",
  77. "minimum": 0,
  78. "maximum": 2
  79. },
  80. "variant": {
  81. "type": "string"
  82. },
  83. "skills": {
  84. "type": "array",
  85. "items": {
  86. "type": "string"
  87. }
  88. },
  89. "mcps": {
  90. "type": "array",
  91. "items": {
  92. "type": "string"
  93. }
  94. },
  95. "prompt": {
  96. "type": "string",
  97. "minLength": 1
  98. },
  99. "orchestratorPrompt": {
  100. "type": "string",
  101. "minLength": 1
  102. },
  103. "options": {
  104. "type": "object",
  105. "propertyNames": {
  106. "type": "string"
  107. },
  108. "additionalProperties": {}
  109. },
  110. "displayName": {
  111. "type": "string",
  112. "minLength": 1
  113. },
  114. "color": {
  115. "description": "Agent display color as #RRGGBB or an OpenCode theme color",
  116. "anyOf": [
  117. {
  118. "type": "string",
  119. "pattern": "^#[0-9a-fA-F]{6}$"
  120. },
  121. {
  122. "type": "string",
  123. "enum": [
  124. "primary",
  125. "secondary",
  126. "accent",
  127. "success",
  128. "warning",
  129. "error",
  130. "info"
  131. ]
  132. }
  133. ]
  134. },
  135. "description": {
  136. "type": "string",
  137. "minLength": 1
  138. },
  139. "permission": {
  140. "anyOf": [
  141. {
  142. "type": "string",
  143. "enum": [
  144. "ask",
  145. "allow",
  146. "deny"
  147. ]
  148. },
  149. {
  150. "type": "object",
  151. "properties": {
  152. "read": {
  153. "anyOf": [
  154. {
  155. "type": "string",
  156. "enum": [
  157. "ask",
  158. "allow",
  159. "deny"
  160. ]
  161. },
  162. {
  163. "type": "object",
  164. "propertyNames": {
  165. "type": "string"
  166. },
  167. "additionalProperties": {
  168. "type": "string",
  169. "enum": [
  170. "ask",
  171. "allow",
  172. "deny"
  173. ]
  174. }
  175. }
  176. ]
  177. },
  178. "edit": {
  179. "anyOf": [
  180. {
  181. "type": "string",
  182. "enum": [
  183. "ask",
  184. "allow",
  185. "deny"
  186. ]
  187. },
  188. {
  189. "type": "object",
  190. "propertyNames": {
  191. "type": "string"
  192. },
  193. "additionalProperties": {
  194. "type": "string",
  195. "enum": [
  196. "ask",
  197. "allow",
  198. "deny"
  199. ]
  200. }
  201. }
  202. ]
  203. },
  204. "glob": {
  205. "anyOf": [
  206. {
  207. "type": "string",
  208. "enum": [
  209. "ask",
  210. "allow",
  211. "deny"
  212. ]
  213. },
  214. {
  215. "type": "object",
  216. "propertyNames": {
  217. "type": "string"
  218. },
  219. "additionalProperties": {
  220. "type": "string",
  221. "enum": [
  222. "ask",
  223. "allow",
  224. "deny"
  225. ]
  226. }
  227. }
  228. ]
  229. },
  230. "grep": {
  231. "anyOf": [
  232. {
  233. "type": "string",
  234. "enum": [
  235. "ask",
  236. "allow",
  237. "deny"
  238. ]
  239. },
  240. {
  241. "type": "object",
  242. "propertyNames": {
  243. "type": "string"
  244. },
  245. "additionalProperties": {
  246. "type": "string",
  247. "enum": [
  248. "ask",
  249. "allow",
  250. "deny"
  251. ]
  252. }
  253. }
  254. ]
  255. },
  256. "list": {
  257. "anyOf": [
  258. {
  259. "type": "string",
  260. "enum": [
  261. "ask",
  262. "allow",
  263. "deny"
  264. ]
  265. },
  266. {
  267. "type": "object",
  268. "propertyNames": {
  269. "type": "string"
  270. },
  271. "additionalProperties": {
  272. "type": "string",
  273. "enum": [
  274. "ask",
  275. "allow",
  276. "deny"
  277. ]
  278. }
  279. }
  280. ]
  281. },
  282. "bash": {
  283. "anyOf": [
  284. {
  285. "type": "string",
  286. "enum": [
  287. "ask",
  288. "allow",
  289. "deny"
  290. ]
  291. },
  292. {
  293. "type": "object",
  294. "propertyNames": {
  295. "type": "string"
  296. },
  297. "additionalProperties": {
  298. "type": "string",
  299. "enum": [
  300. "ask",
  301. "allow",
  302. "deny"
  303. ]
  304. }
  305. }
  306. ]
  307. },
  308. "task": {
  309. "anyOf": [
  310. {
  311. "type": "string",
  312. "enum": [
  313. "ask",
  314. "allow",
  315. "deny"
  316. ]
  317. },
  318. {
  319. "type": "object",
  320. "propertyNames": {
  321. "type": "string"
  322. },
  323. "additionalProperties": {
  324. "type": "string",
  325. "enum": [
  326. "ask",
  327. "allow",
  328. "deny"
  329. ]
  330. }
  331. }
  332. ]
  333. },
  334. "external_directory": {
  335. "anyOf": [
  336. {
  337. "type": "string",
  338. "enum": [
  339. "ask",
  340. "allow",
  341. "deny"
  342. ]
  343. },
  344. {
  345. "type": "object",
  346. "propertyNames": {
  347. "type": "string"
  348. },
  349. "additionalProperties": {
  350. "type": "string",
  351. "enum": [
  352. "ask",
  353. "allow",
  354. "deny"
  355. ]
  356. }
  357. }
  358. ]
  359. },
  360. "lsp": {
  361. "anyOf": [
  362. {
  363. "type": "string",
  364. "enum": [
  365. "ask",
  366. "allow",
  367. "deny"
  368. ]
  369. },
  370. {
  371. "type": "object",
  372. "propertyNames": {
  373. "type": "string"
  374. },
  375. "additionalProperties": {
  376. "type": "string",
  377. "enum": [
  378. "ask",
  379. "allow",
  380. "deny"
  381. ]
  382. }
  383. }
  384. ]
  385. },
  386. "skill": {
  387. "anyOf": [
  388. {
  389. "type": "string",
  390. "enum": [
  391. "ask",
  392. "allow",
  393. "deny"
  394. ]
  395. },
  396. {
  397. "type": "object",
  398. "propertyNames": {
  399. "type": "string"
  400. },
  401. "additionalProperties": {
  402. "type": "string",
  403. "enum": [
  404. "ask",
  405. "allow",
  406. "deny"
  407. ]
  408. }
  409. }
  410. ]
  411. },
  412. "todowrite": {
  413. "type": "string",
  414. "enum": [
  415. "ask",
  416. "allow",
  417. "deny"
  418. ]
  419. },
  420. "question": {
  421. "type": "string",
  422. "enum": [
  423. "ask",
  424. "allow",
  425. "deny"
  426. ]
  427. },
  428. "webfetch": {
  429. "type": "string",
  430. "enum": [
  431. "ask",
  432. "allow",
  433. "deny"
  434. ]
  435. },
  436. "websearch": {
  437. "type": "string",
  438. "enum": [
  439. "ask",
  440. "allow",
  441. "deny"
  442. ]
  443. },
  444. "codesearch": {
  445. "type": "string",
  446. "enum": [
  447. "ask",
  448. "allow",
  449. "deny"
  450. ]
  451. },
  452. "doom_loop": {
  453. "type": "string",
  454. "enum": [
  455. "ask",
  456. "allow",
  457. "deny"
  458. ]
  459. }
  460. },
  461. "additionalProperties": {
  462. "anyOf": [
  463. {
  464. "type": "string",
  465. "enum": [
  466. "ask",
  467. "allow",
  468. "deny"
  469. ]
  470. },
  471. {
  472. "type": "object",
  473. "propertyNames": {
  474. "type": "string"
  475. },
  476. "additionalProperties": {
  477. "type": "string",
  478. "enum": [
  479. "ask",
  480. "allow",
  481. "deny"
  482. ]
  483. }
  484. }
  485. ]
  486. }
  487. }
  488. ]
  489. }
  490. },
  491. "additionalProperties": false
  492. }
  493. }
  494. },
  495. "agents": {
  496. "type": "object",
  497. "propertyNames": {
  498. "type": "string"
  499. },
  500. "additionalProperties": {
  501. "type": "object",
  502. "properties": {
  503. "model": {
  504. "anyOf": [
  505. {
  506. "type": "string"
  507. },
  508. {
  509. "minItems": 1,
  510. "type": "array",
  511. "items": {
  512. "anyOf": [
  513. {
  514. "type": "string"
  515. },
  516. {
  517. "type": "object",
  518. "properties": {
  519. "id": {
  520. "type": "string"
  521. },
  522. "variant": {
  523. "type": "string"
  524. }
  525. },
  526. "required": [
  527. "id"
  528. ]
  529. }
  530. ]
  531. }
  532. }
  533. ]
  534. },
  535. "inheritModelFrom": {
  536. "type": "string",
  537. "enum": [
  538. "session",
  539. "orchestrator"
  540. ]
  541. },
  542. "temperature": {
  543. "type": "number",
  544. "minimum": 0,
  545. "maximum": 2
  546. },
  547. "variant": {
  548. "type": "string"
  549. },
  550. "skills": {
  551. "type": "array",
  552. "items": {
  553. "type": "string"
  554. }
  555. },
  556. "mcps": {
  557. "type": "array",
  558. "items": {
  559. "type": "string"
  560. }
  561. },
  562. "prompt": {
  563. "type": "string",
  564. "minLength": 1
  565. },
  566. "orchestratorPrompt": {
  567. "type": "string",
  568. "minLength": 1
  569. },
  570. "options": {
  571. "type": "object",
  572. "propertyNames": {
  573. "type": "string"
  574. },
  575. "additionalProperties": {}
  576. },
  577. "displayName": {
  578. "type": "string",
  579. "minLength": 1
  580. },
  581. "color": {
  582. "description": "Agent display color as #RRGGBB or an OpenCode theme color",
  583. "anyOf": [
  584. {
  585. "type": "string",
  586. "pattern": "^#[0-9a-fA-F]{6}$"
  587. },
  588. {
  589. "type": "string",
  590. "enum": [
  591. "primary",
  592. "secondary",
  593. "accent",
  594. "success",
  595. "warning",
  596. "error",
  597. "info"
  598. ]
  599. }
  600. ]
  601. },
  602. "description": {
  603. "type": "string",
  604. "minLength": 1
  605. },
  606. "permission": {
  607. "anyOf": [
  608. {
  609. "type": "string",
  610. "enum": [
  611. "ask",
  612. "allow",
  613. "deny"
  614. ]
  615. },
  616. {
  617. "type": "object",
  618. "properties": {
  619. "read": {
  620. "anyOf": [
  621. {
  622. "type": "string",
  623. "enum": [
  624. "ask",
  625. "allow",
  626. "deny"
  627. ]
  628. },
  629. {
  630. "type": "object",
  631. "propertyNames": {
  632. "type": "string"
  633. },
  634. "additionalProperties": {
  635. "type": "string",
  636. "enum": [
  637. "ask",
  638. "allow",
  639. "deny"
  640. ]
  641. }
  642. }
  643. ]
  644. },
  645. "edit": {
  646. "anyOf": [
  647. {
  648. "type": "string",
  649. "enum": [
  650. "ask",
  651. "allow",
  652. "deny"
  653. ]
  654. },
  655. {
  656. "type": "object",
  657. "propertyNames": {
  658. "type": "string"
  659. },
  660. "additionalProperties": {
  661. "type": "string",
  662. "enum": [
  663. "ask",
  664. "allow",
  665. "deny"
  666. ]
  667. }
  668. }
  669. ]
  670. },
  671. "glob": {
  672. "anyOf": [
  673. {
  674. "type": "string",
  675. "enum": [
  676. "ask",
  677. "allow",
  678. "deny"
  679. ]
  680. },
  681. {
  682. "type": "object",
  683. "propertyNames": {
  684. "type": "string"
  685. },
  686. "additionalProperties": {
  687. "type": "string",
  688. "enum": [
  689. "ask",
  690. "allow",
  691. "deny"
  692. ]
  693. }
  694. }
  695. ]
  696. },
  697. "grep": {
  698. "anyOf": [
  699. {
  700. "type": "string",
  701. "enum": [
  702. "ask",
  703. "allow",
  704. "deny"
  705. ]
  706. },
  707. {
  708. "type": "object",
  709. "propertyNames": {
  710. "type": "string"
  711. },
  712. "additionalProperties": {
  713. "type": "string",
  714. "enum": [
  715. "ask",
  716. "allow",
  717. "deny"
  718. ]
  719. }
  720. }
  721. ]
  722. },
  723. "list": {
  724. "anyOf": [
  725. {
  726. "type": "string",
  727. "enum": [
  728. "ask",
  729. "allow",
  730. "deny"
  731. ]
  732. },
  733. {
  734. "type": "object",
  735. "propertyNames": {
  736. "type": "string"
  737. },
  738. "additionalProperties": {
  739. "type": "string",
  740. "enum": [
  741. "ask",
  742. "allow",
  743. "deny"
  744. ]
  745. }
  746. }
  747. ]
  748. },
  749. "bash": {
  750. "anyOf": [
  751. {
  752. "type": "string",
  753. "enum": [
  754. "ask",
  755. "allow",
  756. "deny"
  757. ]
  758. },
  759. {
  760. "type": "object",
  761. "propertyNames": {
  762. "type": "string"
  763. },
  764. "additionalProperties": {
  765. "type": "string",
  766. "enum": [
  767. "ask",
  768. "allow",
  769. "deny"
  770. ]
  771. }
  772. }
  773. ]
  774. },
  775. "task": {
  776. "anyOf": [
  777. {
  778. "type": "string",
  779. "enum": [
  780. "ask",
  781. "allow",
  782. "deny"
  783. ]
  784. },
  785. {
  786. "type": "object",
  787. "propertyNames": {
  788. "type": "string"
  789. },
  790. "additionalProperties": {
  791. "type": "string",
  792. "enum": [
  793. "ask",
  794. "allow",
  795. "deny"
  796. ]
  797. }
  798. }
  799. ]
  800. },
  801. "external_directory": {
  802. "anyOf": [
  803. {
  804. "type": "string",
  805. "enum": [
  806. "ask",
  807. "allow",
  808. "deny"
  809. ]
  810. },
  811. {
  812. "type": "object",
  813. "propertyNames": {
  814. "type": "string"
  815. },
  816. "additionalProperties": {
  817. "type": "string",
  818. "enum": [
  819. "ask",
  820. "allow",
  821. "deny"
  822. ]
  823. }
  824. }
  825. ]
  826. },
  827. "lsp": {
  828. "anyOf": [
  829. {
  830. "type": "string",
  831. "enum": [
  832. "ask",
  833. "allow",
  834. "deny"
  835. ]
  836. },
  837. {
  838. "type": "object",
  839. "propertyNames": {
  840. "type": "string"
  841. },
  842. "additionalProperties": {
  843. "type": "string",
  844. "enum": [
  845. "ask",
  846. "allow",
  847. "deny"
  848. ]
  849. }
  850. }
  851. ]
  852. },
  853. "skill": {
  854. "anyOf": [
  855. {
  856. "type": "string",
  857. "enum": [
  858. "ask",
  859. "allow",
  860. "deny"
  861. ]
  862. },
  863. {
  864. "type": "object",
  865. "propertyNames": {
  866. "type": "string"
  867. },
  868. "additionalProperties": {
  869. "type": "string",
  870. "enum": [
  871. "ask",
  872. "allow",
  873. "deny"
  874. ]
  875. }
  876. }
  877. ]
  878. },
  879. "todowrite": {
  880. "type": "string",
  881. "enum": [
  882. "ask",
  883. "allow",
  884. "deny"
  885. ]
  886. },
  887. "question": {
  888. "type": "string",
  889. "enum": [
  890. "ask",
  891. "allow",
  892. "deny"
  893. ]
  894. },
  895. "webfetch": {
  896. "type": "string",
  897. "enum": [
  898. "ask",
  899. "allow",
  900. "deny"
  901. ]
  902. },
  903. "websearch": {
  904. "type": "string",
  905. "enum": [
  906. "ask",
  907. "allow",
  908. "deny"
  909. ]
  910. },
  911. "codesearch": {
  912. "type": "string",
  913. "enum": [
  914. "ask",
  915. "allow",
  916. "deny"
  917. ]
  918. },
  919. "doom_loop": {
  920. "type": "string",
  921. "enum": [
  922. "ask",
  923. "allow",
  924. "deny"
  925. ]
  926. }
  927. },
  928. "additionalProperties": {
  929. "anyOf": [
  930. {
  931. "type": "string",
  932. "enum": [
  933. "ask",
  934. "allow",
  935. "deny"
  936. ]
  937. },
  938. {
  939. "type": "object",
  940. "propertyNames": {
  941. "type": "string"
  942. },
  943. "additionalProperties": {
  944. "type": "string",
  945. "enum": [
  946. "ask",
  947. "allow",
  948. "deny"
  949. ]
  950. }
  951. }
  952. ]
  953. }
  954. }
  955. ]
  956. }
  957. },
  958. "additionalProperties": false
  959. }
  960. },
  961. "disabled_agents": {
  962. "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.",
  963. "type": "array",
  964. "items": {
  965. "type": "string"
  966. }
  967. },
  968. "image_routing": {
  969. "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.",
  970. "type": "string",
  971. "enum": [
  972. "auto",
  973. "direct"
  974. ]
  975. },
  976. "disabled_mcps": {
  977. "description": "MCP server names to disable completely. Disabled servers are not started and cannot be used by agents.",
  978. "type": "array",
  979. "items": {
  980. "type": "string"
  981. }
  982. },
  983. "disabled_tools": {
  984. "description": "Tool names to disable completely. Disabled tools are not registered with OpenCode and cannot be used by agents.",
  985. "type": "array",
  986. "items": {
  987. "type": "string"
  988. }
  989. },
  990. "disabled_skills": {
  991. "description": "Skill names to disable completely. Disabled skills are not granted to agents, even when referenced by presets or agent overrides.",
  992. "type": "array",
  993. "items": {
  994. "type": "string"
  995. }
  996. },
  997. "multiplexer": {
  998. "type": "object",
  999. "properties": {
  1000. "type": {
  1001. "default": "none",
  1002. "type": "string",
  1003. "enum": [
  1004. "auto",
  1005. "tmux",
  1006. "zellij",
  1007. "herdr",
  1008. "kitty",
  1009. "cmux",
  1010. "none"
  1011. ]
  1012. },
  1013. "layout": {
  1014. "default": "main-vertical",
  1015. "type": "string",
  1016. "enum": [
  1017. "main-horizontal",
  1018. "main-vertical",
  1019. "tiled",
  1020. "even-horizontal",
  1021. "even-vertical"
  1022. ]
  1023. },
  1024. "main_pane_size": {
  1025. "default": 60,
  1026. "type": "number",
  1027. "minimum": 20,
  1028. "maximum": 80
  1029. },
  1030. "zellij_pane_mode": {
  1031. "default": "agent-tab",
  1032. "type": "string",
  1033. "enum": [
  1034. "agent-tab",
  1035. "current-tab"
  1036. ]
  1037. }
  1038. }
  1039. },
  1040. "interview": {
  1041. "type": "object",
  1042. "properties": {
  1043. "maxQuestions": {
  1044. "default": 2,
  1045. "type": "integer",
  1046. "minimum": 1,
  1047. "maximum": 10
  1048. },
  1049. "outputFolder": {
  1050. "default": "interview",
  1051. "type": "string",
  1052. "minLength": 1,
  1053. "pattern": "^(?![\\\\/])(?![A-Za-z]:[\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"
  1054. },
  1055. "autoOpenBrowser": {
  1056. "default": true,
  1057. "description": "Automatically open the interview UI in your default browser during interactive runs. Disabled automatically in tests and CI.",
  1058. "type": "boolean"
  1059. },
  1060. "port": {
  1061. "default": 0,
  1062. "type": "integer",
  1063. "minimum": 0,
  1064. "maximum": 65535
  1065. },
  1066. "dashboard": {
  1067. "default": false,
  1068. "type": "boolean"
  1069. }
  1070. }
  1071. },
  1072. "backgroundJobs": {
  1073. "type": "object",
  1074. "properties": {
  1075. "strategy": {
  1076. "default": "latest",
  1077. "description": "Board injection strategy. \"latest\" replaces prior board messages; \"checkpoint-compatible\" preserves them and appends only changed board snapshots.",
  1078. "type": "string",
  1079. "enum": [
  1080. "latest",
  1081. "checkpoint-compatible"
  1082. ]
  1083. },
  1084. "maxSessionsPerAgent": {
  1085. "default": 2,
  1086. "type": "integer",
  1087. "minimum": 1,
  1088. "maximum": 10
  1089. },
  1090. "maxContextLines": {
  1091. "default": 50000,
  1092. "type": "integer",
  1093. "minimum": 0,
  1094. "maximum": 500000
  1095. },
  1096. "readContextMinLines": {
  1097. "default": 10,
  1098. "type": "integer",
  1099. "minimum": 0,
  1100. "maximum": 1000
  1101. },
  1102. "readContextMaxFiles": {
  1103. "default": 8,
  1104. "type": "integer",
  1105. "minimum": 0,
  1106. "maximum": 50
  1107. },
  1108. "maxRetainedSnapshots": {
  1109. "default": 20,
  1110. "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.",
  1111. "type": "integer",
  1112. "minimum": 1,
  1113. "maximum": 100
  1114. },
  1115. "orchestratorWake": {
  1116. "default": {
  1117. "enabled": true,
  1118. "intervalMs": 300000,
  1119. "mode": "auto"
  1120. },
  1121. "description": "Periodic orchestrator wake scheduler for idle sessions. v1: requires host session APIs (session.get, todo, children, status, promptAsync) and wakes while incomplete todos remain. v2: runs in children-driven degraded mode (requires session.list + promptAsync) and wakes while un-finished child sessions remain. Default enabled at a 5-minute interval.",
  1122. "type": "object",
  1123. "properties": {
  1124. "enabled": {
  1125. "default": true,
  1126. "description": "When true, idle orchestrator sessions with incomplete todos may receive periodic internal wake prompts. Default enabled.",
  1127. "type": "boolean"
  1128. },
  1129. "intervalMs": {
  1130. "default": 300000,
  1131. "description": "Continuous parent-idle interval between orchestrator wake evaluations (60,000–2,147,483,647ms). Default 300,000 (5 minutes). 0 is invalid.",
  1132. "type": "integer",
  1133. "minimum": 60000,
  1134. "maximum": 2147483647
  1135. },
  1136. "mode": {
  1137. "default": "auto",
  1138. "description": "Wake-condition source. \"auto\" uses todo-gating on v1 hosts and children-driven degraded mode on v2 hosts (no todo surface there); \"todo\" or \"children\" pin one mode, degrading to children when the host lacks the todo API. Default \"auto\".",
  1139. "type": "string",
  1140. "enum": [
  1141. "auto",
  1142. "todo",
  1143. "children"
  1144. ]
  1145. }
  1146. }
  1147. },
  1148. "wallClockTimeoutMs": {
  1149. "default": 0,
  1150. "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.",
  1151. "anyOf": [
  1152. {
  1153. "type": "number",
  1154. "const": 0
  1155. },
  1156. {
  1157. "type": "integer",
  1158. "minimum": 60000,
  1159. "maximum": 2147483647
  1160. }
  1161. ]
  1162. },
  1163. "abortGraceMs": {
  1164. "default": 10000,
  1165. "description": "Grace period after a wall-clock deadline while OpenCode confirms the child terminal state (1,000–60,000ms).",
  1166. "type": "integer",
  1167. "minimum": 1000,
  1168. "maximum": 60000
  1169. },
  1170. "concurrency": {
  1171. "default": {
  1172. "defaultConcurrency": 0,
  1173. "providerConcurrency": {},
  1174. "modelConcurrency": {}
  1175. },
  1176. "type": "object",
  1177. "properties": {
  1178. "defaultConcurrency": {
  1179. "default": 0,
  1180. "description": "Maximum concurrently running native background tasks. 0 disables the default cap.",
  1181. "type": "integer",
  1182. "minimum": 0,
  1183. "maximum": 1000
  1184. },
  1185. "providerConcurrency": {
  1186. "default": {},
  1187. "description": "Per-provider concurrency caps keyed by provider ID. The most specific configured cap wins: model > provider > default. 0 means unlimited for that provider.",
  1188. "type": "object",
  1189. "propertyNames": {
  1190. "type": "string",
  1191. "minLength": 1
  1192. },
  1193. "additionalProperties": {
  1194. "type": "integer",
  1195. "minimum": 0,
  1196. "maximum": 1000
  1197. }
  1198. },
  1199. "modelConcurrency": {
  1200. "default": {},
  1201. "description": "Per-model concurrency caps keyed by provider/model ID. The most specific configured cap wins: model > provider > default. 0 means unlimited for that model.",
  1202. "type": "object",
  1203. "propertyNames": {
  1204. "type": "string",
  1205. "minLength": 1
  1206. },
  1207. "additionalProperties": {
  1208. "type": "integer",
  1209. "minimum": 0,
  1210. "maximum": 1000
  1211. }
  1212. }
  1213. },
  1214. "additionalProperties": false
  1215. },
  1216. "sameProviderPolicy": {
  1217. "default": {},
  1218. "description": "Opt-in per-provider policy for native background tasks: when the parent session and the child agent both resolve to a provider listed here with value \"foreground\", the background request is converted to foreground execution (existing foreground path, no concurrency admission). Unlisted or unknown providers keep background behavior. Default {} (no conversion).",
  1219. "type": "object",
  1220. "propertyNames": {
  1221. "type": "string",
  1222. "minLength": 1
  1223. },
  1224. "additionalProperties": {
  1225. "type": "string",
  1226. "const": "foreground"
  1227. }
  1228. },
  1229. "waitForUserGuard": {
  1230. "default": true,
  1231. "description": "When true, intercept wait_for_user calls made while background tasks are still running and the orchestrator wake scheduler is enabled, returning guidance to end the turn instead of blocking on manual input. Default enabled.",
  1232. "type": "boolean"
  1233. }
  1234. }
  1235. },
  1236. "fallback": {
  1237. "type": "object",
  1238. "properties": {
  1239. "enabled": {
  1240. "default": true,
  1241. "type": "boolean"
  1242. },
  1243. "maxRetries": {
  1244. "default": 3,
  1245. "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).",
  1246. "type": "integer",
  1247. "minimum": 0,
  1248. "maximum": 9007199254740991
  1249. },
  1250. "initialRetryDelayMs": {
  1251. "default": 0,
  1252. "description": "Delay in milliseconds before triggering the first fallback on a failover-worthy error. Gives intercepting plugins time to recover the current model before the fallback chain advances. 0 disables.",
  1253. "type": "integer",
  1254. "minimum": 0,
  1255. "maximum": 9007199254740991
  1256. },
  1257. "retryDelayMs": {
  1258. "default": 500,
  1259. "description": "Delay in milliseconds between consecutive fallback attempts after the initial trigger. 0 disables.",
  1260. "type": "integer",
  1261. "minimum": 0,
  1262. "maximum": 9007199254740991
  1263. }
  1264. },
  1265. "additionalProperties": false
  1266. },
  1267. "council": {
  1268. "type": "object",
  1269. "properties": {
  1270. "presets": {
  1271. "type": "object",
  1272. "propertyNames": {
  1273. "type": "string"
  1274. },
  1275. "additionalProperties": {
  1276. "type": "object",
  1277. "propertyNames": {
  1278. "type": "string"
  1279. },
  1280. "additionalProperties": {
  1281. "type": "object",
  1282. "propertyNames": {
  1283. "type": "string"
  1284. },
  1285. "additionalProperties": {}
  1286. }
  1287. }
  1288. },
  1289. "default_preset": {
  1290. "default": "default",
  1291. "type": "string"
  1292. }
  1293. },
  1294. "required": [
  1295. "presets"
  1296. ],
  1297. "additionalProperties": {}
  1298. },
  1299. "companion": {
  1300. "type": "object",
  1301. "properties": {
  1302. "enabled": {
  1303. "type": "boolean"
  1304. },
  1305. "binaryPath": {
  1306. "description": "Path to a custom companion binary to launch.",
  1307. "type": "string",
  1308. "minLength": 1
  1309. },
  1310. "position": {
  1311. "type": "string",
  1312. "enum": [
  1313. "bottom-right",
  1314. "bottom-left",
  1315. "top-right",
  1316. "top-left"
  1317. ]
  1318. },
  1319. "size": {
  1320. "type": "string",
  1321. "enum": [
  1322. "small",
  1323. "medium",
  1324. "large"
  1325. ]
  1326. },
  1327. "gifPack": {
  1328. "description": "Bundled companion animation pack to use.",
  1329. "type": "string",
  1330. "enum": [
  1331. "default"
  1332. ]
  1333. },
  1334. "loopStyle": {
  1335. "description": "Companion animation playback style: classic loops or smooth ping-pong playback.",
  1336. "type": "string",
  1337. "enum": [
  1338. "classic",
  1339. "smooth"
  1340. ]
  1341. },
  1342. "speed": {
  1343. "description": "Companion animation playback speed multiplier. Defaults to 1.",
  1344. "type": "number",
  1345. "minimum": 0.25,
  1346. "maximum": 4
  1347. },
  1348. "debug": {
  1349. "description": "Enable verbose native companion debug logs.",
  1350. "type": "boolean"
  1351. }
  1352. }
  1353. },
  1354. "webfetch": {
  1355. "type": "object",
  1356. "properties": {
  1357. "enabled": {
  1358. "default": true,
  1359. "description": "When false, skip registering this enhanced webfetch so OpenCode uses its built-in version.",
  1360. "type": "boolean"
  1361. },
  1362. "model": {
  1363. "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.",
  1364. "anyOf": [
  1365. {
  1366. "type": "string"
  1367. },
  1368. {
  1369. "minItems": 1,
  1370. "type": "array",
  1371. "items": {
  1372. "anyOf": [
  1373. {
  1374. "type": "string"
  1375. },
  1376. {
  1377. "type": "object",
  1378. "properties": {
  1379. "id": {
  1380. "type": "string"
  1381. },
  1382. "variant": {
  1383. "type": "string"
  1384. }
  1385. },
  1386. "required": [
  1387. "id"
  1388. ]
  1389. }
  1390. ]
  1391. }
  1392. }
  1393. ]
  1394. }
  1395. },
  1396. "additionalProperties": false
  1397. },
  1398. "acpAgents": {
  1399. "type": "object",
  1400. "propertyNames": {
  1401. "type": "string"
  1402. },
  1403. "additionalProperties": {
  1404. "type": "object",
  1405. "properties": {
  1406. "command": {
  1407. "type": "string",
  1408. "minLength": 1
  1409. },
  1410. "args": {
  1411. "default": [],
  1412. "type": "array",
  1413. "items": {
  1414. "type": "string"
  1415. }
  1416. },
  1417. "env": {
  1418. "default": {},
  1419. "type": "object",
  1420. "propertyNames": {
  1421. "type": "string"
  1422. },
  1423. "additionalProperties": {
  1424. "type": "string"
  1425. }
  1426. },
  1427. "cwd": {
  1428. "type": "string",
  1429. "minLength": 1
  1430. },
  1431. "description": {
  1432. "type": "string",
  1433. "minLength": 1
  1434. },
  1435. "prompt": {
  1436. "type": "string",
  1437. "minLength": 1
  1438. },
  1439. "orchestratorPrompt": {
  1440. "type": "string",
  1441. "minLength": 1
  1442. },
  1443. "wrapperModel": {
  1444. "type": "string",
  1445. "pattern": "^[^/\\s]+\\/.+$"
  1446. },
  1447. "timeoutMs": {
  1448. "default": 0,
  1449. "description": "Timeout for a single ACP run in milliseconds. Set to 0 to disable the timeout.",
  1450. "type": "integer",
  1451. "minimum": 0,
  1452. "maximum": 2147483647
  1453. },
  1454. "permissionMode": {
  1455. "default": "ask",
  1456. "type": "string",
  1457. "enum": [
  1458. "ask",
  1459. "allow",
  1460. "reject"
  1461. ]
  1462. }
  1463. },
  1464. "required": [
  1465. "command"
  1466. ],
  1467. "additionalProperties": false
  1468. }
  1469. }
  1470. },
  1471. "title": "oh-my-opencode-slim",
  1472. "description": "Configuration schema for oh-my-opencode-slim plugin for OpenCode"
  1473. }