1package soy.iko.opencode.data.model
3import kotlinx.serialization.Serializable
5/** Entry from `GET /agent`. */
9 val description: String? = null,
10 val mode: String? = null,
11 val builtIn: Boolean = false,
12 val prompt: String? = null,
14 val isPrimary: Boolean get() = mode == "primary"
15 val displayDescription: String get() = description?.takeIf { it.isNotBlank() } ?: "Custom agent"
18/** Entry from `GET /command`. */
22 val description: String? = null,
23 val agent: String? = null,
24 val model: String? = null,
26 val subtask: Boolean = false,
28 val displayDescription: String get() = description?.takeIf { it.isNotBlank() } ?: template.take(80)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list