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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263
  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. "interview": {
  985. "type": "object",
  986. "properties": {
  987. "maxQuestions": {
  988. "default": 2,
  989. "type": "integer",
  990. "minimum": 1,
  991. "maximum": 10
  992. },
  993. "outputFolder": {
  994. "default": "interview",
  995. "type": "string",
  996. "minLength": 1
  997. },
  998. "autoOpenBrowser": {
  999. "default": true,
  1000. "description": "Automatically open the interview UI in your default browser during interactive runs. Disabled automatically in tests and CI.",
  1001. "type": "boolean"
  1002. },
  1003. "port": {
  1004. "default": 0,
  1005. "type": "integer",
  1006. "minimum": 0,
  1007. "maximum": 65535
  1008. },
  1009. "dashboard": {
  1010. "default": false,
  1011. "type": "boolean"
  1012. }
  1013. }
  1014. },
  1015. "backgroundJobs": {
  1016. "type": "object",
  1017. "properties": {
  1018. "strategy": {
  1019. "default": "latest",
  1020. "description": "Board injection strategy. \"latest\" replaces prior board messages; \"checkpoint-compatible\" preserves them and appends only changed board snapshots.",
  1021. "type": "string",
  1022. "enum": [
  1023. "latest",
  1024. "checkpoint-compatible"
  1025. ]
  1026. },
  1027. "maxSessionsPerAgent": {
  1028. "default": 2,
  1029. "type": "integer",
  1030. "minimum": 1,
  1031. "maximum": 10
  1032. },
  1033. "maxContextLines": {
  1034. "default": 50000,
  1035. "type": "integer",
  1036. "minimum": 0,
  1037. "maximum": 500000
  1038. },
  1039. "readContextMinLines": {
  1040. "default": 10,
  1041. "type": "integer",
  1042. "minimum": 0,
  1043. "maximum": 1000
  1044. },
  1045. "readContextMaxFiles": {
  1046. "default": 8,
  1047. "type": "integer",
  1048. "minimum": 0,
  1049. "maximum": 50
  1050. },
  1051. "maxRetainedSnapshots": {
  1052. "default": 20,
  1053. "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.",
  1054. "type": "integer",
  1055. "minimum": 1,
  1056. "maximum": 100
  1057. },
  1058. "continueOnIdle": {
  1059. "default": false,
  1060. "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.",
  1061. "type": "boolean"
  1062. }
  1063. }
  1064. },
  1065. "fallback": {
  1066. "type": "object",
  1067. "properties": {
  1068. "enabled": {
  1069. "default": true,
  1070. "type": "boolean"
  1071. },
  1072. "timeoutMs": {
  1073. "default": 15000,
  1074. "type": "number",
  1075. "minimum": 0
  1076. },
  1077. "retryDelayMs": {
  1078. "default": 500,
  1079. "type": "number",
  1080. "minimum": 0
  1081. },
  1082. "maxRetries": {
  1083. "default": 3,
  1084. "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).",
  1085. "type": "integer",
  1086. "minimum": 0,
  1087. "maximum": 9007199254740991
  1088. },
  1089. "retry_on_empty": {
  1090. "default": true,
  1091. "description": "When true (default), empty provider responses are treated as failures, triggering fallback/retry. Set to false to treat them as successes.",
  1092. "type": "boolean"
  1093. },
  1094. "runtimeOverride": {
  1095. "description": "DEPRECATED: no longer used. Previously controlled whether out-of-chain runtime model picks triggered fallback. Fallback is now always disabled when a user explicitly selects a model via /model.",
  1096. "type": "boolean"
  1097. }
  1098. },
  1099. "additionalProperties": false
  1100. },
  1101. "council": {
  1102. "type": "object",
  1103. "properties": {
  1104. "presets": {
  1105. "type": "object",
  1106. "propertyNames": {
  1107. "type": "string"
  1108. },
  1109. "additionalProperties": {
  1110. "type": "object",
  1111. "propertyNames": {
  1112. "type": "string"
  1113. },
  1114. "additionalProperties": {
  1115. "type": "object",
  1116. "propertyNames": {
  1117. "type": "string"
  1118. },
  1119. "additionalProperties": {}
  1120. }
  1121. }
  1122. },
  1123. "default_preset": {
  1124. "default": "default",
  1125. "type": "string"
  1126. }
  1127. },
  1128. "required": [
  1129. "presets"
  1130. ],
  1131. "additionalProperties": {}
  1132. },
  1133. "companion": {
  1134. "type": "object",
  1135. "properties": {
  1136. "enabled": {
  1137. "type": "boolean"
  1138. },
  1139. "binaryPath": {
  1140. "description": "Path to a custom companion binary to launch.",
  1141. "type": "string",
  1142. "minLength": 1
  1143. },
  1144. "position": {
  1145. "type": "string",
  1146. "enum": [
  1147. "bottom-right",
  1148. "bottom-left",
  1149. "top-right",
  1150. "top-left"
  1151. ]
  1152. },
  1153. "size": {
  1154. "type": "string",
  1155. "enum": [
  1156. "small",
  1157. "medium",
  1158. "large"
  1159. ]
  1160. },
  1161. "gifPack": {
  1162. "description": "Bundled companion animation pack to use.",
  1163. "type": "string",
  1164. "enum": [
  1165. "default"
  1166. ]
  1167. },
  1168. "loopStyle": {
  1169. "description": "Companion animation playback style: classic loops or smooth ping-pong playback.",
  1170. "type": "string",
  1171. "enum": [
  1172. "classic",
  1173. "smooth"
  1174. ]
  1175. },
  1176. "speed": {
  1177. "description": "Companion animation playback speed multiplier. Defaults to 1.",
  1178. "type": "number",
  1179. "minimum": 0.25,
  1180. "maximum": 4
  1181. },
  1182. "debug": {
  1183. "description": "Enable verbose native companion debug logs.",
  1184. "type": "boolean"
  1185. }
  1186. }
  1187. },
  1188. "acpAgents": {
  1189. "type": "object",
  1190. "propertyNames": {
  1191. "type": "string"
  1192. },
  1193. "additionalProperties": {
  1194. "type": "object",
  1195. "properties": {
  1196. "command": {
  1197. "type": "string",
  1198. "minLength": 1
  1199. },
  1200. "args": {
  1201. "default": [],
  1202. "type": "array",
  1203. "items": {
  1204. "type": "string"
  1205. }
  1206. },
  1207. "env": {
  1208. "default": {},
  1209. "type": "object",
  1210. "propertyNames": {
  1211. "type": "string"
  1212. },
  1213. "additionalProperties": {
  1214. "type": "string"
  1215. }
  1216. },
  1217. "cwd": {
  1218. "type": "string",
  1219. "minLength": 1
  1220. },
  1221. "description": {
  1222. "type": "string",
  1223. "minLength": 1
  1224. },
  1225. "prompt": {
  1226. "type": "string",
  1227. "minLength": 1
  1228. },
  1229. "orchestratorPrompt": {
  1230. "type": "string",
  1231. "minLength": 1
  1232. },
  1233. "wrapperModel": {
  1234. "type": "string",
  1235. "pattern": "^[^/\\s]+\\/[^\\s]+$"
  1236. },
  1237. "timeoutMs": {
  1238. "default": 0,
  1239. "description": "Timeout for a single ACP run in milliseconds. Set to 0 to disable the timeout.",
  1240. "type": "integer",
  1241. "minimum": 0,
  1242. "maximum": 2147483647
  1243. },
  1244. "permissionMode": {
  1245. "default": "ask",
  1246. "type": "string",
  1247. "enum": [
  1248. "ask",
  1249. "allow",
  1250. "reject"
  1251. ]
  1252. }
  1253. },
  1254. "required": [
  1255. "command"
  1256. ],
  1257. "additionalProperties": false
  1258. }
  1259. }
  1260. },
  1261. "title": "oh-my-opencode-slim",
  1262. "description": "Configuration schema for oh-my-opencode-slim plugin for OpenCode"
  1263. }