harbor-tui 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ian Johnson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,192 @@
1
+ Metadata-Version: 2.4
2
+ Name: harbor-tui
3
+ Version: 0.1.0
4
+ Summary: One-key terminal UI for Boat sandboxes and their agents
5
+ Author: Ian Johnson
6
+ Author-email: Ian Johnson <tacoda@hey.com>
7
+ License-Expression: MIT
8
+ License-File: LICENSE
9
+ Requires-Dist: boat-sdk>=1.15.0
10
+ Requires-Dist: pyte>=0.8.2
11
+ Requires-Dist: textual>=8.2.8
12
+ Requires-Python: >=3.12
13
+ Project-URL: Homepage, https://github.com/tacoda/harbor
14
+ Project-URL: Repository, https://github.com/tacoda/harbor
15
+ Description-Content-Type: text/markdown
16
+
17
+ # Harbor
18
+
19
+ <!-- voice-register: informational -->
20
+
21
+ Harbor is a terminal UI for coding agents that run on [Boat](https://boat.dev).
22
+ Each agent gets exactly one sandbox, made when the agent starts and deleted
23
+ when you close it, so an agent's work and its machine never drift apart. A
24
+ sandbox stops itself once its agent sits idle, and Harbor wakes it whenever you
25
+ need it again. Home lists every agent; `Enter` opens one.
26
+
27
+ It doesn't manage local terminal panes (herdr already does that), and it doesn't
28
+ edit Boat environments, secrets, or webhooks.
29
+
30
+ ## Install
31
+
32
+ ```bash
33
+ uv tool install harbor-tui
34
+ cp config.example.toml ~/.config/harbor/config.toml # then edit it
35
+ export BOAT_API_KEY=... # https://boat.dev/dashboard?tab=api-keys
36
+ harbor
37
+ ```
38
+
39
+ To run from a clone instead, use `uv run harbor`.
40
+
41
+ ## Config
42
+
43
+ Every key is optional, and the file never holds a secret:
44
+
45
+ ```toml
46
+ token_env = "BOAT_API_KEY" # the env var that holds your Boat API key
47
+ git = "~/.gitconfig-tacoda" # a gitconfig profile file
48
+ repo_owners = ["tacoda"] # where the repo list comes from
49
+ # gh_user = "tacoda" # gh account to list repos as
50
+ # ssh_key = "~/.ssh/id_tacoda" # override the profile's key
51
+ # auto_stop_minutes = 30 # an idle agent's sandbox stops after this; 0 never stops
52
+ # base_url = "https://boat.dev/api/v1"
53
+ ```
54
+
55
+ The `git` profile does two things. Its `user.name` and `user.email` go onto a
56
+ sandbox before an agent starts, so commits carry the right identity. Its
57
+ `core.sshCommand` key (`ssh -i ~/.ssh/id_tacoda`) is the key Harbor uses for
58
+ shells. Your private key never leaves your machine, and pushing from a sandbox
59
+ still uses Boat's GitHub access.
60
+
61
+ The repo list comes from `gh repo list` for each of `repo_owners`, or for your
62
+ own gh account when the list is empty.
63
+
64
+ ## How an agent and its sandbox fit together
65
+
66
+ `n` starts an agent: pick a repo, a provider, and a model, and write the task.
67
+ Harbor then creates a sandbox just for it, sets your git identity there, clones
68
+ the repo, and starts the agent. The sandbox's labels remember the agent, its
69
+ task, and its repo, so Harbor knows them even while it sleeps.
70
+
71
+ The sandbox has an auto-stop timer (`auto_stop_minutes`, 30 by default). Boat
72
+ resets it while the agent works, so the sandbox stops only once the agent has
73
+ been idle that long, and the agent's changes stay on its disk. Harbor starts
74
+ the sandbox again by itself whenever something needs it up: messaging the agent,
75
+ approving or denying, opening the shell, or looking at artifacts. Results and
76
+ logs read fine while it sleeps.
77
+
78
+ Closing an agent (`x`) deletes its sandbox, after you confirm: `y` or the
79
+ **Close agent** button closes it, and `n`, `escape`, or `Enter` on **Cancel**
80
+ (which has focus) keeps it. If its repo has changes that aren't upstream yet,
81
+ the dialog names them, so you can have the agent push first (`p`: "commit this
82
+ on a branch and push it").
83
+
84
+ ## Home
85
+
86
+ Three numbers (agents working, agents waiting on you, and cost this month),
87
+ then one line per agent:
88
+
89
+ | Status | Meaning |
90
+ |---|---|
91
+ | `▲ …` | Its sandbox has an error, degraded health, or a failed setup |
92
+ | `● working` | The agent is at work |
93
+ | `? asks` | Its last reply ends in a question |
94
+ | `○ waiting` | Its turn is over and it waits for you |
95
+ | `◷ sleeps soon` | Its sandbox stops itself within 15 minutes |
96
+ | `, asleep` | Its sandbox is stopped; Harbor wakes it when you need it |
97
+
98
+ `Enter` opens an agent, `n` starts one, `C` copies the highlighted sandbox's
99
+ id, `g` refreshes, and `q` quits.
100
+
101
+ `/` (or `ctrl+p`) opens the command palette. It finds agents and shells, and it
102
+ runs commands: "new agent" and "refresh" anywhere, and in an agent's view, that
103
+ agent's commands (approve, steer, stop, close, and the rest), offering only the
104
+ ones that fit what the agent is doing.
105
+ Everything refreshes every 5 seconds.
106
+
107
+ ## An agent's view
108
+
109
+ Four tabs, **Results** (`1`), **Artifacts** (`2`), **Logs** (`3`), and **Shell**
110
+ (`4`), and the message bar at the bottom. Keys act on the agent, and the footer
111
+ shows only the ones that fit what it's doing:
112
+
113
+ | Key | Action | Shown |
114
+ |---|---|---|
115
+ | `y` / `d` | Approve or deny. Deny asks for an optional reason. | when its turn is over |
116
+ | `r` | Continue it | when its turn is over |
117
+ | `t` | Steer it | while it works |
118
+ | `s` | Stop it | while it works |
119
+ | `p` | Send it feedback | always |
120
+ | `c` | Open a shell on its sandbox | always |
121
+ | `v` / `l` | Show Artifacts or Logs | always |
122
+ | `o` | Open its sandbox's desktop in your browser | always |
123
+ | `x` | Close it: its sandbox is deleted | always |
124
+ | `C` | Copy the highlighted reply, artifact, or logs | always |
125
+ | `escape` | Back to Home (from the message bar: back to the results) | |
126
+
127
+ Agents always run in the background. Boat has no approval gate, so approving
128
+ and denying are replies: `y` sends "Approved. Go ahead.", `d` sends "Denied.
129
+ Don't do that." plus your reason, and `p` sends whatever you type. **The message
130
+ bar** sends a message on `Enter`, or steers the agent if it's mid-turn; `F8`
131
+ interrupts it.
132
+
133
+ **Results** lists every reply the agent wrote, newest first. `Enter` opens one
134
+ whole.
135
+
136
+ **Artifacts** lists what the agent made on its sandbox, with a viewer:
137
+
138
+ | Artifact | What you see |
139
+ |---|---|
140
+ | diff | One per changed repo under `~`: commits not upstream yet, `git status`, and the full diff against the upstream branch |
141
+ | file | Each changed or new file in those repos, with syntax colors |
142
+ | image | Images from the last day under `~` and `/tmp`. `Enter` downloads one and opens it on this machine. |
143
+
144
+ It only reads; it never touches a repo's index. `F5` lists again.
145
+
146
+ **Logs** shows the agent's whole conversation (prompts, replies, and tool calls)
147
+ and the commands Boat ran on its sandbox, without Harbor's own.
148
+
149
+ **The shell** is a real terminal inside Harbor. Harbor authorizes your public
150
+ key on the sandbox, writes the host key Boat reports to
151
+ `~/.config/harbor/known_hosts`, and runs `ssh` with
152
+ `StrictHostKeyChecking=yes`. Every key goes to the shell except `ctrl+]`, which
153
+ takes you back to Results. The shell keeps running while you're elsewhere, so
154
+ `c` brings it back.
155
+
156
+ ## The command line
157
+
158
+ `harbor agent` starts agents without the TUI, each with its own new sandbox.
159
+ Every order needs a provider:
160
+
161
+ ```bash
162
+ harbor agent --repo tacoda/harbor --provider codex --model gpt-5 "fix the flaky test"
163
+ gh issue view 42 | harbor agent --repo tacoda/harbor --provider claude -
164
+ harbor agent --orders sprint.toml --provider claude
165
+ ```
166
+
167
+ An order file lists many tasks as `[[order]]` tables with the same keys as the
168
+ flags (`prompt` or `prompt_file`, `repo`, `provider`, `model`). Flags act as
169
+ defaults. Harbor checks every order before it starts anything, starts up to 8
170
+ at once, prints one line per order, and exits with 1 if any failed.
171
+
172
+ ## How the repo gets there
173
+
174
+ Before an agent starts, Harbor puts your prompt first and a note about the
175
+ clone after it, so previews show your words. Then it runs the git identity
176
+ commands and
177
+ `gh repo clone owner/name ~/name` (falling back to `git clone`) on its new
178
+ sandbox. If the clone fails, you get the error and no agent starts.
179
+
180
+ ## Develop
181
+
182
+ ```bash
183
+ uv run pytest
184
+ uv run ruff check .
185
+ ```
186
+
187
+ Tests drive the real UI with Textual's pilot against a fake Boat, and the shell
188
+ tests run a local `bash` in a real pseudo-terminal. Nothing touches the network.
189
+
190
+ ## License
191
+
192
+ MIT. See [LICENSE](LICENSE).
@@ -0,0 +1,176 @@
1
+ # Harbor
2
+
3
+ <!-- voice-register: informational -->
4
+
5
+ Harbor is a terminal UI for coding agents that run on [Boat](https://boat.dev).
6
+ Each agent gets exactly one sandbox, made when the agent starts and deleted
7
+ when you close it, so an agent's work and its machine never drift apart. A
8
+ sandbox stops itself once its agent sits idle, and Harbor wakes it whenever you
9
+ need it again. Home lists every agent; `Enter` opens one.
10
+
11
+ It doesn't manage local terminal panes (herdr already does that), and it doesn't
12
+ edit Boat environments, secrets, or webhooks.
13
+
14
+ ## Install
15
+
16
+ ```bash
17
+ uv tool install harbor-tui
18
+ cp config.example.toml ~/.config/harbor/config.toml # then edit it
19
+ export BOAT_API_KEY=... # https://boat.dev/dashboard?tab=api-keys
20
+ harbor
21
+ ```
22
+
23
+ To run from a clone instead, use `uv run harbor`.
24
+
25
+ ## Config
26
+
27
+ Every key is optional, and the file never holds a secret:
28
+
29
+ ```toml
30
+ token_env = "BOAT_API_KEY" # the env var that holds your Boat API key
31
+ git = "~/.gitconfig-tacoda" # a gitconfig profile file
32
+ repo_owners = ["tacoda"] # where the repo list comes from
33
+ # gh_user = "tacoda" # gh account to list repos as
34
+ # ssh_key = "~/.ssh/id_tacoda" # override the profile's key
35
+ # auto_stop_minutes = 30 # an idle agent's sandbox stops after this; 0 never stops
36
+ # base_url = "https://boat.dev/api/v1"
37
+ ```
38
+
39
+ The `git` profile does two things. Its `user.name` and `user.email` go onto a
40
+ sandbox before an agent starts, so commits carry the right identity. Its
41
+ `core.sshCommand` key (`ssh -i ~/.ssh/id_tacoda`) is the key Harbor uses for
42
+ shells. Your private key never leaves your machine, and pushing from a sandbox
43
+ still uses Boat's GitHub access.
44
+
45
+ The repo list comes from `gh repo list` for each of `repo_owners`, or for your
46
+ own gh account when the list is empty.
47
+
48
+ ## How an agent and its sandbox fit together
49
+
50
+ `n` starts an agent: pick a repo, a provider, and a model, and write the task.
51
+ Harbor then creates a sandbox just for it, sets your git identity there, clones
52
+ the repo, and starts the agent. The sandbox's labels remember the agent, its
53
+ task, and its repo, so Harbor knows them even while it sleeps.
54
+
55
+ The sandbox has an auto-stop timer (`auto_stop_minutes`, 30 by default). Boat
56
+ resets it while the agent works, so the sandbox stops only once the agent has
57
+ been idle that long, and the agent's changes stay on its disk. Harbor starts
58
+ the sandbox again by itself whenever something needs it up: messaging the agent,
59
+ approving or denying, opening the shell, or looking at artifacts. Results and
60
+ logs read fine while it sleeps.
61
+
62
+ Closing an agent (`x`) deletes its sandbox, after you confirm: `y` or the
63
+ **Close agent** button closes it, and `n`, `escape`, or `Enter` on **Cancel**
64
+ (which has focus) keeps it. If its repo has changes that aren't upstream yet,
65
+ the dialog names them, so you can have the agent push first (`p`: "commit this
66
+ on a branch and push it").
67
+
68
+ ## Home
69
+
70
+ Three numbers (agents working, agents waiting on you, and cost this month),
71
+ then one line per agent:
72
+
73
+ | Status | Meaning |
74
+ |---|---|
75
+ | `▲ …` | Its sandbox has an error, degraded health, or a failed setup |
76
+ | `● working` | The agent is at work |
77
+ | `? asks` | Its last reply ends in a question |
78
+ | `○ waiting` | Its turn is over and it waits for you |
79
+ | `◷ sleeps soon` | Its sandbox stops itself within 15 minutes |
80
+ | `, asleep` | Its sandbox is stopped; Harbor wakes it when you need it |
81
+
82
+ `Enter` opens an agent, `n` starts one, `C` copies the highlighted sandbox's
83
+ id, `g` refreshes, and `q` quits.
84
+
85
+ `/` (or `ctrl+p`) opens the command palette. It finds agents and shells, and it
86
+ runs commands: "new agent" and "refresh" anywhere, and in an agent's view, that
87
+ agent's commands (approve, steer, stop, close, and the rest), offering only the
88
+ ones that fit what the agent is doing.
89
+ Everything refreshes every 5 seconds.
90
+
91
+ ## An agent's view
92
+
93
+ Four tabs, **Results** (`1`), **Artifacts** (`2`), **Logs** (`3`), and **Shell**
94
+ (`4`), and the message bar at the bottom. Keys act on the agent, and the footer
95
+ shows only the ones that fit what it's doing:
96
+
97
+ | Key | Action | Shown |
98
+ |---|---|---|
99
+ | `y` / `d` | Approve or deny. Deny asks for an optional reason. | when its turn is over |
100
+ | `r` | Continue it | when its turn is over |
101
+ | `t` | Steer it | while it works |
102
+ | `s` | Stop it | while it works |
103
+ | `p` | Send it feedback | always |
104
+ | `c` | Open a shell on its sandbox | always |
105
+ | `v` / `l` | Show Artifacts or Logs | always |
106
+ | `o` | Open its sandbox's desktop in your browser | always |
107
+ | `x` | Close it: its sandbox is deleted | always |
108
+ | `C` | Copy the highlighted reply, artifact, or logs | always |
109
+ | `escape` | Back to Home (from the message bar: back to the results) | |
110
+
111
+ Agents always run in the background. Boat has no approval gate, so approving
112
+ and denying are replies: `y` sends "Approved. Go ahead.", `d` sends "Denied.
113
+ Don't do that." plus your reason, and `p` sends whatever you type. **The message
114
+ bar** sends a message on `Enter`, or steers the agent if it's mid-turn; `F8`
115
+ interrupts it.
116
+
117
+ **Results** lists every reply the agent wrote, newest first. `Enter` opens one
118
+ whole.
119
+
120
+ **Artifacts** lists what the agent made on its sandbox, with a viewer:
121
+
122
+ | Artifact | What you see |
123
+ |---|---|
124
+ | diff | One per changed repo under `~`: commits not upstream yet, `git status`, and the full diff against the upstream branch |
125
+ | file | Each changed or new file in those repos, with syntax colors |
126
+ | image | Images from the last day under `~` and `/tmp`. `Enter` downloads one and opens it on this machine. |
127
+
128
+ It only reads; it never touches a repo's index. `F5` lists again.
129
+
130
+ **Logs** shows the agent's whole conversation (prompts, replies, and tool calls)
131
+ and the commands Boat ran on its sandbox, without Harbor's own.
132
+
133
+ **The shell** is a real terminal inside Harbor. Harbor authorizes your public
134
+ key on the sandbox, writes the host key Boat reports to
135
+ `~/.config/harbor/known_hosts`, and runs `ssh` with
136
+ `StrictHostKeyChecking=yes`. Every key goes to the shell except `ctrl+]`, which
137
+ takes you back to Results. The shell keeps running while you're elsewhere, so
138
+ `c` brings it back.
139
+
140
+ ## The command line
141
+
142
+ `harbor agent` starts agents without the TUI, each with its own new sandbox.
143
+ Every order needs a provider:
144
+
145
+ ```bash
146
+ harbor agent --repo tacoda/harbor --provider codex --model gpt-5 "fix the flaky test"
147
+ gh issue view 42 | harbor agent --repo tacoda/harbor --provider claude -
148
+ harbor agent --orders sprint.toml --provider claude
149
+ ```
150
+
151
+ An order file lists many tasks as `[[order]]` tables with the same keys as the
152
+ flags (`prompt` or `prompt_file`, `repo`, `provider`, `model`). Flags act as
153
+ defaults. Harbor checks every order before it starts anything, starts up to 8
154
+ at once, prints one line per order, and exits with 1 if any failed.
155
+
156
+ ## How the repo gets there
157
+
158
+ Before an agent starts, Harbor puts your prompt first and a note about the
159
+ clone after it, so previews show your words. Then it runs the git identity
160
+ commands and
161
+ `gh repo clone owner/name ~/name` (falling back to `git clone`) on its new
162
+ sandbox. If the clone fails, you get the error and no agent starts.
163
+
164
+ ## Develop
165
+
166
+ ```bash
167
+ uv run pytest
168
+ uv run ruff check .
169
+ ```
170
+
171
+ Tests drive the real UI with Textual's pilot against a fake Boat, and the shell
172
+ tests run a local `bash` in a real pseudo-terminal. Nothing touches the network.
173
+
174
+ ## License
175
+
176
+ MIT. See [LICENSE](LICENSE).
@@ -0,0 +1,47 @@
1
+ [project]
2
+ name = "harbor-tui"
3
+ version = "0.1.0"
4
+ description = "One-key terminal UI for Boat sandboxes and their agents"
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ authors = [
9
+ { name = "Ian Johnson", email = "tacoda@hey.com" }
10
+ ]
11
+ requires-python = ">=3.12"
12
+ dependencies = [
13
+ "boat-sdk>=1.15.0",
14
+ "pyte>=0.8.2",
15
+ "textual>=8.2.8",
16
+ ]
17
+
18
+ [project.urls]
19
+ Homepage = "https://github.com/tacoda/harbor"
20
+ Repository = "https://github.com/tacoda/harbor"
21
+
22
+ [project.scripts]
23
+ harbor = "harbor:main"
24
+
25
+ [build-system]
26
+ requires = ["uv_build>=0.11.8,<0.12.0"]
27
+ build-backend = "uv_build"
28
+
29
+ [tool.uv.build-backend]
30
+ module-name = "harbor"
31
+
32
+ [dependency-groups]
33
+ dev = [
34
+ "pytest>=9.2.0",
35
+ "pytest-asyncio>=1.5.0",
36
+ "ruff>=0.17.6",
37
+ ]
38
+
39
+ [tool.pytest.ini_options]
40
+ asyncio_mode = "auto"
41
+
42
+ [tool.ruff]
43
+ line-length = 100
44
+
45
+ [tool.ruff.lint]
46
+ # Textual declares BINDINGS as a class-level list.
47
+ ignore = ["RUF012"]
@@ -0,0 +1,3 @@
1
+ from harbor.cli import main
2
+
3
+ __all__ = ["main"]
@@ -0,0 +1,71 @@
1
+ """The agent form: repo, provider, model, and prompt for a new agent on a sandbox."""
2
+
3
+ from textual.app import ComposeResult
4
+ from textual.binding import Binding
5
+ from textual.containers import Vertical
6
+ from textual.screen import ModalScreen
7
+ from textual.widgets import Input, Label, Select
8
+
9
+ from harbor.core import Order, parse_repo
10
+
11
+
12
+ class AgentForm(ModalScreen[Order | None]):
13
+ """Enter in any field starts the agent. Tab moves on. Escape cancels."""
14
+
15
+ BINDINGS = [Binding("escape", "dismiss", "Cancel")]
16
+
17
+ def __init__(self, title: str, last: Order, providers: list[str], repos: list[str]):
18
+ super().__init__()
19
+ self.title_text = title
20
+ self.last = last # remembers the provider and model you chose before
21
+ self.providers = providers
22
+ self.repos = repos
23
+
24
+ def compose(self) -> ComposeResult:
25
+ with Vertical(id="agent-form"):
26
+ yield Label(self.title_text, id="title")
27
+ yield self._repo_field()
28
+ known = self.last.provider in self.providers
29
+ yield Select([(p, p) for p in self.providers], prompt="provider (required)",
30
+ value=self.last.provider if known else Select.NULL, id="provider")
31
+ yield Input(self.last.model, placeholder="model (blank: harness default)", id="model")
32
+ yield Input(placeholder="prompt: what should the agent do?", id="prompt")
33
+ yield Label("Enter starts the agent · Tab next field · Esc cancels", classes="hint")
34
+
35
+ def _repo_field(self):
36
+ """A gh repo list when there is one (type to jump), else free text."""
37
+ if not self.repos:
38
+ return Input(placeholder="repo: owner/name (optional)", id="repo")
39
+ options = [(f"{repo.split('/')[1]} · {repo.split('/')[0]}", repo) for repo in self.repos]
40
+ return Select(options, prompt="repo (none)", id="repo")
41
+
42
+ def _repo(self) -> str:
43
+ field = self.query_one("#repo")
44
+ if isinstance(field, Select):
45
+ return "" if field.value is Select.NULL else field.value
46
+ return parse_repo(field.value) if field.value.strip() else ""
47
+
48
+ def on_mount(self) -> None:
49
+ self.query_one("#repo").focus()
50
+
51
+ def _text(self, field: str) -> str:
52
+ return self.query_one(f"#{field}", Input).value.strip()
53
+
54
+ def on_input_submitted(self, event: Input.Submitted) -> None:
55
+ event.stop()
56
+ prompt = self._text("prompt")
57
+ if not prompt:
58
+ self.notify("Write a prompt first.", severity="warning")
59
+ self.query_one("#prompt").focus()
60
+ return
61
+ provider = self.query_one("#provider", Select).value
62
+ if provider is Select.NULL:
63
+ self.notify("Choose a provider.", severity="warning")
64
+ self.query_one("#provider", Select).focus()
65
+ return
66
+ try:
67
+ repo = self._repo()
68
+ except ValueError as error:
69
+ self.notify(str(error), severity="error")
70
+ return
71
+ self.dismiss(Order(prompt=prompt, provider=provider, model=self._text("model"), repo=repo))