1package soy.iko.opencode.data.model
3import androidx.compose.runtime.Immutable
4import kotlinx.serialization.Serializable
6/** Entry from `GET /agent`. */
11 val description: String? = null,
12 val mode: String? = null,
13 val builtIn: Boolean = false,
14 val prompt: String? = null,
16 val isPrimary: Boolean get() = mode == "primary"
17 val displayDescription: String get() = description?.takeIf { it.isNotBlank() } ?: "Custom agent"
20/** Entry from `GET /command`. */
25 val description: String? = null,
26 val agent: String? = null,
27 val model: String? = null,
28 val template: String = "",
29 val subtask: Boolean = false,
31 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