@thegitai/cli 1.0.0-preview.8 → 1.0.0

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.
Files changed (100) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +301 -15
  3. package/dist/bin/ai.js +142 -112
  4. package/dist/bin/browser-host.js +284 -0
  5. package/dist/src/agent-mode.js +33 -7
  6. package/dist/src/api/auth.js +8 -2
  7. package/dist/src/api/browser-login.js +147 -35
  8. package/dist/src/api/chat.js +703 -166
  9. package/dist/src/api/contracts.js +55 -1
  10. package/dist/src/api/default-host.js +1 -0
  11. package/dist/src/api/http.js +168 -8
  12. package/dist/src/api/models.js +47 -9
  13. package/dist/src/api/startup-handshake.js +36 -0
  14. package/dist/src/api/turn-recovery.js +189 -0
  15. package/dist/src/background-jobs.js +8 -2
  16. package/dist/src/browser/bridge.js +268 -0
  17. package/dist/src/browser/chrome-profiles.js +73 -0
  18. package/dist/src/browser/framing.js +42 -0
  19. package/dist/src/browser/native-host.js +219 -0
  20. package/dist/src/browser/protocol.js +46 -0
  21. package/dist/src/browser/session-bridge.js +130 -0
  22. package/dist/src/cli-args.js +19 -5
  23. package/dist/src/client-environment.js +2 -0
  24. package/dist/src/core/clipboard.js +8 -14
  25. package/dist/src/core/image-limits.js +56 -0
  26. package/dist/src/core/image-path-extractor.js +70 -3
  27. package/dist/src/core/session-image-store.js +246 -0
  28. package/dist/src/edit-journal.js +33 -2
  29. package/dist/src/executor.js +26 -4
  30. package/dist/src/help-text.js +152 -41
  31. package/dist/src/install-id.js +32 -0
  32. package/dist/src/job-follow-up.js +40 -0
  33. package/dist/src/mcp-client.js +335 -0
  34. package/dist/src/mcp-command.js +176 -0
  35. package/dist/src/mcp-config.js +123 -0
  36. package/dist/src/mcp-sdk.js +3 -0
  37. package/dist/src/mcp-types.js +26 -0
  38. package/dist/src/patcher.js +46 -4
  39. package/dist/src/permissions.js +301 -0
  40. package/dist/src/preferences.js +39 -0
  41. package/dist/src/project-key.js +11 -0
  42. package/dist/src/project-model-preferences.js +74 -0
  43. package/dist/src/quota-notice.js +62 -0
  44. package/dist/src/reasoning-effort.js +27 -0
  45. package/dist/src/session-safety.js +0 -12
  46. package/dist/src/session-store.js +123 -30
  47. package/dist/src/session.js +12 -4
  48. package/dist/src/signin.js +58 -0
  49. package/dist/src/skills/discovery.js +280 -0
  50. package/dist/src/skills/frontmatter.js +192 -0
  51. package/dist/src/skills/install.js +394 -0
  52. package/dist/src/skills/types.js +43 -0
  53. package/dist/src/skills-command.js +71 -0
  54. package/dist/src/tool-executor.js +41 -51
  55. package/dist/src/tools/browser.js +928 -0
  56. package/dist/src/tools/delete-file.js +21 -5
  57. package/dist/src/tools/index.js +34 -10
  58. package/dist/src/tools/patch-file.js +14 -29
  59. package/dist/src/tools/read-file.js +7 -1
  60. package/dist/src/tools/read-image-file.js +85 -0
  61. package/dist/src/tools/replace-document-text.js +28 -18
  62. package/dist/src/tools/restore-checkpoint.js +1 -2
  63. package/dist/src/tools/run-command.js +14 -71
  64. package/dist/src/tools/run-node-script.js +12 -81
  65. package/dist/src/tools/save-generated-image.js +120 -0
  66. package/dist/src/tools/shell-diagnostics.js +246 -72
  67. package/dist/src/tools/str-replace.js +14 -29
  68. package/dist/src/tools/undo-edit.js +2 -7
  69. package/dist/src/tools/use-skill.js +38 -0
  70. package/dist/src/tools/write-file.js +69 -14
  71. package/dist/src/ui/prompt-history-store.js +1 -1
  72. package/dist/src/ui/repl.js +1155 -301
  73. package/dist/src/ui/slash-commands.js +140 -0
  74. package/dist/src/ui/tui/attention.js +25 -0
  75. package/dist/src/ui/tui/bridge.js +38 -5
  76. package/dist/src/ui/tui/build-frame.js +903 -304
  77. package/dist/src/ui/tui/composer-layout.js +76 -0
  78. package/dist/src/ui/tui/desktop-notification.js +118 -0
  79. package/dist/src/ui/tui/markdown-render.js +21 -11
  80. package/dist/src/ui/tui/model-label.js +13 -0
  81. package/dist/src/ui/tui/shell-input.js +266 -61
  82. package/dist/src/ui/tui/shortcuts.js +61 -0
  83. package/dist/src/ui/tui/terminal-theme.js +28 -0
  84. package/dist/src/ui/tui/text.js +31 -6
  85. package/dist/src/ui/tui/user-input.js +593 -0
  86. package/dist/src/update-check.js +205 -0
  87. package/dist/src/usage-notice.js +52 -0
  88. package/dist/src/usage.js +25 -2
  89. package/dist/src/utils.js +13 -0
  90. package/dist/src/version.js +52 -2
  91. package/dist/vendor/mcp/LICENSES.txt +414 -0
  92. package/dist/vendor/mcp/client.cjs +82 -0
  93. package/package.json +22 -9
  94. package/dist/src/project-index.js +0 -233
  95. package/dist/src/tools/code-intel.js +0 -472
  96. package/dist/src/tools/find-symbol.js +0 -70
  97. package/dist/src/tools/hover-symbol.js +0 -95
  98. package/dist/src/tools/list-symbols.js +0 -55
  99. package/dist/src/tools/search-code.js +0 -37
  100. package/dist/src/tools/signature-help.js +0 -118
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- TheGitAI Client — Source-Visible Proprietary License
1
+ TheGitAI Client - Source-Visible Proprietary License
2
2
 
3
3
  Copyright (c) 2026 TheGitAI
4
4
 
package/README.md CHANGED
@@ -1,10 +1,29 @@
1
- # TheGitAI — AI coding agent for your terminal
1
+ # TheGitAI - AI coding agent for your terminal
2
2
 
3
- TheGitAI is an AI coding agent for your terminal. It indexes your repository,
4
- writes and edits files, runs commands, and builds features with you.
3
+ TheGitAI is an AI coding agent that carries a task the whole way in your
4
+ terminal: it investigates your repository, changes code across files, runs your
5
+ real project, and checks the result against your own tests before handing it
6
+ back. Every edit it makes can be undone without touching yours.
5
7
 
6
- Talk to your repo in plain English. TheGitAI can keep long-running processes
7
- going while you work, all with your approval.
8
+ - **Your repository and shell** - literal, regex and natural-language code
9
+ search, multi-file edits, shell commands, tests, builds and diagnostics, with
10
+ up to six independent lookups running at once.
11
+ - **Your live stack** - up to eight dev servers, watchers and local APIs keep
12
+ running in the background while it reproduces a bug and reads the logs.
13
+ - **Your signed-in Chrome** - with the TheGitAI Chrome extension it works in the
14
+ browser you already have open, signed in as you, in its own tab group.
15
+ - **Skills** - teach it your team's workflows as `SKILL.md` folders. It uses one
16
+ when a request calls for it, or when you type `/<name>`.
17
+ - **MCP servers** - connect local or remote MCP servers with `ai mcp add`.
18
+ - **Beyond source code** - reads PDF, Word and Excel files, edits Word
19
+ documents, looks at screenshots, and searches and fetches the web.
20
+ - **Steering and recovery** - send corrections while it works, switch between
21
+ Default, Bypass all permissions and Plan modes, and undo an edit, a turn or a
22
+ file, or restore a checkpoint.
23
+ - **Curated frontier models** - switch models mid-session without losing the
24
+ conversation. No provider API keys to manage.
25
+
26
+ Documentation: https://thegit.ai/docs
8
27
 
9
28
  ## Install
10
29
 
@@ -12,14 +31,26 @@ going while you work, all with your approval.
12
31
  npm i -g @thegitai/cli
13
32
  ```
14
33
 
15
- Requires Node.js 24 or newer.
34
+ Supports Node.js 22 and newer. Node.js 24 is recommended.
35
+
36
+ This installs the `ai` command. If `ai` is already taken by another command on
37
+ your machine, `thegitai` starts the same CLI.
38
+
39
+ ## Updates
40
+
41
+ `ai` checks for a newer release each time it starts, and offers to install it
42
+ for you. TheGitAI works best on the latest version, and an older CLI may not
43
+ work optimally. **Update now** is already selected, so Enter takes it - the CLI
44
+ installs the update and asks you to start `ai` again, so the whole session runs
45
+ one version - while ↑/↓ moves to **Skip** to go on with the version you have. Skipping lasts for that session
46
+ only; the next start asks again. Ctrl+C quits without installing anything.
16
47
 
17
48
  ## Usage
18
49
 
19
50
  ```text
20
- ai start an interactive session in the current repo
51
+ ai sign in if needed, then start a session in the current repo
21
52
  ai "<request>" start a session with <request> as the first message
22
- ai login sign in via your browser (--no-browser for SSH/headless)
53
+ ai login the same as `ai`; kept for muscle memory
23
54
  ai whoami show the signed-in account
24
55
  ai --usage show account usage and reset times
25
56
  ai logout sign out
@@ -28,15 +59,268 @@ ai --version print the version and exit
28
59
 
29
60
  Run `ai --help` for sessions, modes, keys, and chat commands.
30
61
 
62
+ The CLI shows a usage notice at 80% and 95% of your 5-hour, weekly, or monthly
63
+ allowance while work continues. Notices include when usage starts resetting in
64
+ your local time and a reminder to run `/usage`. When more than one allowance is
65
+ nearly used, the notice names only the most urgent one; `/usage` shows them
66
+ all. While the CLI stays open, the 80% notice rearms only
67
+ below 75% usage and the 95% notice only below 90%, so small fluctuations stay
68
+ quiet. Restarting the CLI can show a notice again. A nearly exhausted allowance
69
+ displays "over 99%". Live notices clear when a turn ends or is cancelled, and
70
+ remain in the transcript. Usage updates arrive when a turn starts and after
71
+ usage is saved during and at the end of the turn. An exhausted allowance still
72
+ shows `Usage limit reached`.
73
+
74
+ A request your account cannot run right now, such as one for a model your plan
75
+ does not include or one sent after an allowance is used up, is refused before
76
+ it starts. The CLI shows why, with the reset time and, where an upgrade would
77
+ help, a link to the plans page. The refused request is put back in the input
78
+ box so you can switch models and send it again, and it is not saved to the
79
+ session.
80
+
31
81
  Coding sessions require an interactive terminal on stdin and stdout. Piped
32
82
  one-shot prompts are not supported. Saved history is local to the repo and can
33
83
  always be viewed or resumed from that computer. Continuing it through the
34
84
  service requires the TheGitAI account used for that session. Local sessions can
35
85
  also be listed while signed out or offline.
36
86
 
37
- CLI login tokens use a rolling 24-hour inactivity timeout. If one expires during
38
- any server request, the CLI saves the local session, removes the expired
39
- credential, and asks you to run `ai login` before resuming.
87
+ Signing in opens your browser. The same screen also prints a URL you can open on
88
+ any other device and a box for an authorization code, so SSH and headless
89
+ machines need no separate command: open the URL wherever you have a browser,
90
+ choose "On another computer" on that page, and paste the code it shows.
91
+
92
+ CLI login tokens use a rolling 48-hour inactivity timeout. If one expires during
93
+ any server request, the CLI removes the expired credential and signs you in
94
+ again on the next run.
95
+
96
+ ## Models and reasoning effort
97
+
98
+ Type `/model` to choose with **↑ / ↓**, and adjust a model's reasoning effort
99
+ with **← / →** in the same panel: **Default / Low / Balanced / Deep**.
100
+ **Enter** saves the selected model's choice for this project; **Esc** cancels.
101
+ Each model remembers its own choice across new and resumed sessions.
102
+ A model your plan does not include stays in the list, grayed out with the
103
+ reason, and **Enter** does not select it.
104
+ On Plus or Pro, the footer names the plan after **TheGitAI**.
105
+ The picker shows a model's effort beside its name when it is not Default, and
106
+ the footer always shows it. The footer labels
107
+ agent mode separately as `Mode: ...`; narrow terminals place it on the next
108
+ line, keeping both settings visible while idle and working.
109
+
110
+ Default uses TheGitAI's current recommended setting for the model. Low favors
111
+ quicker responses, Balanced balances depth and speed, and Deep favors thorough
112
+ reasoning and may take longer and cost more. Choosing Default again clears your
113
+ override. Switching models preserves your conversation.
114
+ An invalid project preference file loads Default effort; saving refuses to
115
+ overwrite it until the file is repaired or removed.
116
+
117
+ ## When the connection drops
118
+
119
+ A dropped connection does not end your turn. The CLI shows
120
+ `Connection interrupted · retrying in 10s · retry 1/3` under the working timer,
121
+ waits ten seconds, and reconnects to the same turn - it never starts the request
122
+ over, and a command, edit or browser action that already ran is not run again.
123
+ It tries three times. Once it is back, the turn simply continues and a short
124
+ `Connection restored` note stays in the transcript.
125
+
126
+ The same applies when you start `ai` while TheGitAI is briefly unavailable:
127
+ startup shows `Couldn't reach TheGitAI (…) · retrying in 10s · retry 1/3` and
128
+ waits up to three times before giving up.
129
+
130
+ If TheGitAI itself restarted while it was working, the turn cannot resume
131
+ where it was. It continues instead: the CLI sends your request once more with
132
+ the steps that already finished on your machine and everything you told it
133
+ during the turn, and the work picks up from there - a command that already ran
134
+ is not run again, and a correction you made still stands - with a short
135
+ `Server restarted` note in the transcript.
136
+
137
+ Press Esc at any point to stop the turn instead. If all three retries fail, the
138
+ turn ends with an error that names what was interrupted, notes that some actions
139
+ may already have completed, and leaves anything you had queued in the composer
140
+ rather than sending it on top of a turn whose outcome is unknown.
141
+
142
+ ## MCP servers
143
+
144
+ Connect external tools with the Model Context Protocol (MCP). TheGitAI supports
145
+ local **stdio** servers and remote **Streamable HTTP** servers through the
146
+ official MCP SDK. Setup uses familiar `mcp` commands:
147
+
148
+ ```bash
149
+ # Remote documentation tools
150
+ ai mcp add --transport http context7 https://mcp.context7.com/mcp
151
+
152
+ # Local browser tools in a separate, temporary browser profile
153
+ ai mcp add playwright -- npx -y @playwright/mcp@latest --headless --isolated
154
+
155
+ ai mcp list
156
+ ai mcp get context7
157
+ ai mcp disable playwright
158
+ ai mcp enable playwright
159
+ ai mcp remove playwright
160
+ ```
161
+
162
+ Inside a chat, run **`/mcp`** to connect and see each server's status and tools.
163
+ Configured tools are connected in parallel and made available to the active
164
+ model. Tool lists are cached for one minute and refreshed when the server reports
165
+ a change. Failed connections wait one minute before retrying; `/mcp` retries
166
+ immediately, and a check you cancel is retried on the next turn. Ask normally, or name the server when you want it used - for
167
+ example, “Use Context7 to check the current API for this library.” Configuration
168
+ changes apply on the next turn or `/mcp`; they do not change an in-flight turn.
169
+ `ai mcp list` shows configuration without starting servers. `get` shows metadata
170
+ without printing URLs, arguments, or credential values.
171
+
172
+ For authentication, use headers or explicitly pass environment variables:
173
+
174
+ ```bash
175
+ # Set CONTEXT7_API_KEY in your environment first. Single quotes keep the
176
+ # placeholder in the config instead of saving the secret itself.
177
+ ai mcp add --transport http docs https://mcp.context7.com/mcp \
178
+ --header 'Authorization: Bearer ${CONTEXT7_API_KEY}'
179
+
180
+ ai mcp add --env SERVICE_TOKEN='${SERVICE_TOKEN}' local-tools -- my-mcp-server
181
+ ```
182
+
183
+ The short flags `-t`, `-e` and `-H` mean `--transport`, `--env` and `--header`.
184
+ `-s user` / `--scope user` is accepted; project and local scopes are unavailable.
185
+
186
+ Values support `${VARIABLE}` and `${VARIABLE:-default}` expansion when connecting.
187
+ Missing variables produce a visible connection error. Local servers inherit a
188
+ small standard environment (such as PATH and HOME); explicitly pass service
189
+ credentials with `--env`. A local server starts in the current repository.
190
+
191
+ To reuse a server's JSON setup instructions:
192
+
193
+ ```bash
194
+ ai mcp add-json docs '{"type":"http","url":"https://mcp.context7.com/mcp"}'
195
+ ai mcp add-json local-tools '{"command":"my-mcp-server","args":[],"env":{}}'
196
+ ```
197
+
198
+ Configuration is saved for your user on this machine, in `mcp.json` under the
199
+ TheGitAI state directory. `ai mcp list` prints the exact path. On Linux and macOS,
200
+ the default is `~/.local/state/thegitai/mcp.json` (or under `XDG_STATE_HOME`);
201
+ on Windows it is `%LOCALAPPDATA%\thegitai\mcp.json`. The file uses an
202
+ `mcpServers` object keyed by server name; each
203
+ entry accepts `disabled` and an optional `timeout` in milliseconds (1,000–300,000,
204
+ default 60,000). The CLI does not load project `.mcp.json` files.
205
+
206
+ **Approvals and limits:** Default mode asks before each MCP call; you can approve
207
+ one call or allow that specific server/tool for the session. `/new` clears these
208
+ grants. Bypass mode approves MCP calls automatically. Plan mode blocks MCP calls,
209
+ including tools a server labels read-only. Adding a local server authorizes
210
+ starting its configured program; only add servers you trust. MCP servers can
211
+ access files or external services using their own permissions, and their changes
212
+ are not covered by TheGitAI's file-edit undo.
213
+
214
+ Server credentials and connection settings stay on your machine. Discovered tool
215
+ names, descriptions and schemas, call arguments, and results are used for your
216
+ model requests. Text, structured results, and images are supported. Audio and
217
+ binary resources are reported as unsupported. Timeouts or disconnects can leave
218
+ an action's outcome unknown; TheGitAI does not automatically repeat MCP calls.
219
+
220
+ This release supports MCP **tools**, up to 128 tools / 100 KiB of definitions per
221
+ turn (about 25,600 estimated tokens). Tool descriptions can contain up to 4,096
222
+ characters. Servers are admitted in configuration order; a server exceeding a
223
+ limit is shown as unavailable in `/mcp` while chat continues with the other tools.
224
+ Invalid server entries are shown individually and can be disabled or removed with
225
+ `ai mcp`. Invalid JSON disables MCP tools for the turn and is shown by `/mcp`;
226
+ repair the file before using configuration commands.
227
+
228
+ MCP results share a 25,000 estimated-token limit across text and structured
229
+ content, enough for a typical browser page snapshot to arrive whole. Larger
230
+ results keep the start and end of their long text blocks, mark the omitted
231
+ middle and report the original size, so the agent can request a narrower query;
232
+ short blocks stay whole. Duplicate JSON text accompanying a structured result is
233
+ included once.
234
+
235
+ The SDK client runtime is bundled with the CLI at reviewed versions; installing
236
+ MCP support adds no runtime npm dependencies.
237
+
238
+ Browser-based OAuth login, standalone MCP resources/prompts, older SSE-only
239
+ servers, and plugin installation are not included. Context7 may require an API key
240
+ or impose rate limits; Playwright requires a supported installed browser.
241
+
242
+ Run `ai mcp --help` for the command reference.
243
+
244
+ ## Skills
245
+
246
+ A skill teaches TheGitAI a repeatable workflow: a folder with a `SKILL.md`
247
+ file, plus any reference files or scripts it needs.
248
+
249
+ ```markdown
250
+ ---
251
+ name: release-notes
252
+ description: Write release notes from merged pull requests. Use when the user asks for release notes or a changelog entry.
253
+ argument-hint: <version>
254
+ ---
255
+
256
+ 1. Run scripts/collect-prs.sh $ARGUMENTS to list the merged pull requests.
257
+ 2. Follow references/style.md for headings and tone.
258
+ ```
259
+
260
+ Put it in `~/.thegitai/skills/<name>/` to use it in every project, or in
261
+ `<project>/.thegitai/skills/<name>/` to share it with a repository; yours wins
262
+ when both have the same name. Folders for other tools, such as
263
+ `.agents/skills`, are not read. `name` (lowercase letters, digits and single
264
+ hyphens, matching the folder) and `description` (what it does and when to use
265
+ it, up to 1024 characters) are required; `disable-model-invocation: true` makes
266
+ a skill run only when you type it, and `argument-hint` is shown in the command
267
+ picker.
268
+
269
+ TheGitAI keeps only each skill's name and description in view and loads the
270
+ full instructions when a request matches. Its scripts go through the normal
271
+ approvals. Type `/<name> [what to do]` to run a skill yourself; the text after
272
+ the name replaces `$ARGUMENTS`. `/skills` lists your skills and explains any that
273
+ did not load. `/skills add <source>` installs one from GitHub
274
+ (`owner/repo/path`, optionally `@ref`, or a URL; set `GITHUB_TOKEN` for private
275
+ repositories) or a local folder after showing what it contains; add `--project`
276
+ to install it into the current project. Ask the agent to "create a skill that
277
+ ..." or run `/skill-creator` to make one.
278
+
279
+ ## Chrome browser control
280
+
281
+ The TheGitAI Chrome extension is separately installed. After installing it,
282
+ start `ai` normally and ask about your current tab or a website task. It uses
283
+ your existing Chrome profile, website sessions, and terminal login. Connection
284
+ is automatic; no setup/start command, second sign-in, or manual tab attachment
285
+ is required. Tabs used by the agent join a TheGitAI tab group in an existing
286
+ window. The conversation stays in your terminal. With more than one Chrome
287
+ profile connected, TheGitAI asks which one to use the first time it acts in
288
+ the browser, with the one you used last as the default, and keeps that profile
289
+ for the conversation, including after `/resume`.
290
+
291
+ Default mode asks before using a website and can remember that site for the
292
+ session. Bypass all permissions allows browser actions; Plan mode reads pages
293
+ without clicking, typing, or navigating. Use Stop/Resume in the extension popup to
294
+ pause browser control, or Disable to disconnect it. Chrome's protected pages,
295
+ including browser settings and extension management, cannot be controlled.
296
+
297
+ The extension is currently a development download and is not yet listed in the
298
+ Chrome Web Store. Its version and distribution are independent of this npm
299
+ package. Ubuntu with Chrome is the initial validation target.
300
+
301
+ ## Structured questions
302
+
303
+
304
+ The agent can pause its current turn to ask up to four related questions in one
305
+ form. Use **↑ / ↓**, the displayed option number, or **Enter** to choose, and
306
+ **← / →** to move between questions. **Something else / add details** is the
307
+ numbered final option; focus it and type, paste, or press **Enter** to add a
308
+ single-line note; **Enter** commits it and moves on the way any other choice
309
+ does - to the next question, or to **Submit answers** on the last one - without
310
+ submitting the form. On single-select questions it is mutually exclusive with
311
+ the listed choices, and **↑ / ↓** leaves its editor when the note is empty.
312
+ Multi-select questions toggle choices. The last question has an explicit
313
+ **Submit answers** row. **Esc** closes an open note first and otherwise cancels
314
+ the form; **Ctrl+C** cancels the whole turn.
315
+
316
+ Only the option you are on shows its description, so the whole form - every
317
+ option, the note row, **Submit answers**, and the key hints - stays on screen
318
+ without scrolling. Move between options to read the others.
319
+
320
+ Answers return to the same turn, and completed question/answer records remain
321
+ readable when the session is resumed. Default, Bypass all permissions, and Plan
322
+ modes all support the form; Bypass all permissions does not choose answers for
323
+ you.
40
324
 
41
325
  ## Visible to-do list
42
326
 
@@ -45,8 +329,8 @@ you can see what it plans to do, what it is working on right now, and what is
45
329
  already done.
46
330
 
47
331
  - While the agent works, the list sits at the bottom of the live **Working**
48
- area, right above where you type, and updates as steps start and finish —
49
- one step in progress at a time — so it stays visible even when tool output
332
+ area, right above where you type, and updates as steps start and finish -
333
+ one step in progress at a time - so it stays visible even when tool output
50
334
  above it runs long.
51
335
  - When the turn ends, a final snapshot of the list stays readable in the
52
336
  transcript, and the footer shows a small progress chip (e.g. `◐ 4/6 to-dos`)
@@ -57,7 +341,7 @@ already done.
57
341
 
58
342
  ## Background jobs
59
343
 
60
- Some commands are meant to keep running — a dev server, a file watcher, a local
344
+ Some commands are meant to keep running - a dev server, a file watcher, a local
61
345
  API. TheGitAI runs these as **background jobs**, so the agent can start a server,
62
346
  work against it live, and stop it when the task is done, all in one session.
63
347
 
@@ -67,11 +351,13 @@ work against it live, and stop it when the task is done, all in one session.
67
351
  read its output inline, **k** to stop it, **Esc** to close.
68
352
  - `/jobs output <id>` prints a job's full output, and `/jobs kill <id>` stops one
69
353
  by id.
354
+ - When waiting for a job is all that's left, the agent can hand control back to
355
+ you and continue automatically once the job finishes on its own.
70
356
  - When you end the session, TheGitAI stops its background jobs for you.
71
357
 
72
358
  Full documentation: <https://thegit.ai/docs>
73
359
 
74
360
  ## License
75
361
 
76
- Proprietary — see the LICENSE file included in this package. Source is
362
+ Proprietary - see the LICENSE file included in this package. Source is
77
363
  visible for inspection; copying and redistribution are not permitted.