@thegitai/cli 1.0.0-preview.66 → 1.0.0-preview.68

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.
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
2
-
3
- TheGitAI is an AI coding agent for your terminal. It reads and searches your repository,
4
- writes and edits files, runs commands, and builds features with you.
5
-
6
- Talk to your repo in plain English. TheGitAI can keep long-running processes
7
- going while you work, all with your approval.
1
+ # TheGitAI - AI coding agent for your terminal
2
+
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.
7
+
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
 
@@ -21,9 +40,9 @@ your machine, `thegitai` starts the same CLI.
21
40
 
22
41
  `ai` checks for a newer release each time it starts, and offers to install it
23
42
  for you. TheGitAI works best on the latest version, and an older CLI may not
24
- work optimally. **Update now** is already selected, so Enter takes it — the CLI
43
+ work optimally. **Update now** is already selected, so Enter takes it - the CLI
25
44
  installs the update and asks you to start `ai` again, so the whole session runs
26
- one version — while ↑/↓ moves to **Skip** to go on with the version you have. Skipping lasts for that session
45
+ one version - while ↑/↓ moves to **Skip** to go on with the version you have. Skipping lasts for that session
27
46
  only; the next start asks again. Ctrl+C quits without installing anything.
28
47
 
29
48
  ## Usage
@@ -57,9 +76,7 @@ does not include or one sent after an allowance is used up, is refused before
57
76
  it starts. The CLI shows why, with the reset time and, where an upgrade would
58
77
  help, a link to the plans page. The refused request is put back in the input
59
78
  box so you can switch models and send it again, and it is not saved to the
60
- session. When your monthly allowance is used up and extra Auto usage is left,
61
- the Auto options in `/model` keep working on it until it runs out or your plan
62
- renews; `/usage` shows how much of the extra is left as a percentage.
79
+ session.
63
80
 
64
81
  Coding sessions require an interactive terminal on stdin and stdout. Piped
65
82
  one-shot prompts are not supported. Saved history is local to the repo and can
@@ -78,19 +95,15 @@ again on the next run.
78
95
 
79
96
  ## Models and reasoning effort
80
97
 
81
- Type `/model` to choose with **↑ / ↓**. The **Auto** options come first: Cost
82
- Efficient, Fastest and Most Intelligent. Auto picks the model and its reasoning
83
- effort for each session, and new installs start on Auto (Cost Efficient). The
84
- named models follow under **Models**; for one of them, adjust its reasoning
85
- effort with **← / →** in the same panel: **Default / Low / Balanced / Deep**.
98
+ Type `/model` to choose with **↑ / ↓**, and adjust a model's reasoning effort
99
+ with **← / →** in the same panel: **Default / Low / Balanced / Deep**.
86
100
  **Enter** saves the selected model's choice for this project; **Esc** cancels.
87
101
  Each model remembers its own choice across new and resumed sessions.
88
102
  A model your plan does not include stays in the list, grayed out with the
89
- reason, and **Enter** does not select it. While a paid account is on its extra
90
- Auto usage, the named models fold into one line until the plan renews.
103
+ reason, and **Enter** does not select it.
91
104
  On Plus or Pro, the footer names the plan after **TheGitAI**.
92
105
  The picker shows a model's effort beside its name when it is not Default, and
93
- the footer always shows it, except on Auto, which sets its own. The footer labels
106
+ the footer always shows it. The footer labels
94
107
  agent mode separately as `Mode: ...`; narrow terminals place it on the next
95
108
  line, keeping both settings visible while idle and working.
96
109
 
@@ -105,7 +118,7 @@ overwrite it until the file is repaired or removed.
105
118
 
106
119
  A dropped connection does not end your turn. The CLI shows
107
120
  `Connection interrupted · retrying in 10s · retry 1/3` under the working timer,
108
- waits ten seconds, and reconnects to the same turn — it never starts the request
121
+ waits ten seconds, and reconnects to the same turn - it never starts the request
109
122
  over, and a command, edit or browser action that already ran is not run again.
110
123
  It tries three times. Once it is back, the turn simply continues and a short
111
124
  `Connection restored` note stays in the transcript.
@@ -117,8 +130,8 @@ waits up to three times before giving up.
117
130
  If TheGitAI itself restarted while it was working, the turn cannot resume
118
131
  where it was. It continues instead: the CLI sends your request once more with
119
132
  the steps that already finished on your machine and everything you told it
120
- during the turn, and the work picks up from there — a command that already ran
121
- is not run again, and a correction you made still stands — with a short
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
122
135
  `Server restarted` note in the transcript.
123
136
 
124
137
  Press Esc at any point to stop the turn instead. If all three retries fail, the
@@ -150,7 +163,7 @@ Inside a chat, run **`/mcp`** to connect and see each server's status and tools.
150
163
  Configured tools are connected in parallel and made available to the active
151
164
  model. Tool lists are cached for one minute and refreshed when the server reports
152
165
  a change. Failed connections wait one minute before retrying; `/mcp` retries
153
- immediately, and a check you cancel is retried on the next turn. Ask normally, or name the server when you want it used—for
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
154
167
  example, “Use Context7 to check the current API for this library.” Configuration
155
168
  changes apply on the next turn or `/mcp`; they do not change an in-flight turn.
156
169
  `ai mcp list` shows configuration without starting servers. `get` shows metadata
@@ -228,6 +241,41 @@ or impose rate limits; Playwright requires a supported installed browser.
228
241
 
229
242
  Run `ai mcp --help` for the command reference.
230
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
+
231
279
  ## Chrome browser control
232
280
 
233
281
  The TheGitAI Chrome extension is separately installed. After installing it,
@@ -258,15 +306,15 @@ form. Use **↑ / ↓**, the displayed option number, or **Enter** to choose, an
258
306
  **← / →** to move between questions. **Something else / add details** is the
259
307
  numbered final option; focus it and type, paste, or press **Enter** to add a
260
308
  single-line note; **Enter** commits it and moves on the way any other choice
261
- does — to the next question, or to **Submit answers** on the last one — without
309
+ does - to the next question, or to **Submit answers** on the last one - without
262
310
  submitting the form. On single-select questions it is mutually exclusive with
263
311
  the listed choices, and **↑ / ↓** leaves its editor when the note is empty.
264
312
  Multi-select questions toggle choices. The last question has an explicit
265
313
  **Submit answers** row. **Esc** closes an open note first and otherwise cancels
266
314
  the form; **Ctrl+C** cancels the whole turn.
267
315
 
268
- Only the option you are on shows its description, so the whole form — every
269
- option, the note row, **Submit answers**, and the key hints — stays on screen
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
270
318
  without scrolling. Move between options to read the others.
271
319
 
272
320
  Answers return to the same turn, and completed question/answer records remain
@@ -281,8 +329,8 @@ you can see what it plans to do, what it is working on right now, and what is
281
329
  already done.
282
330
 
283
331
  - While the agent works, the list sits at the bottom of the live **Working**
284
- area, right above where you type, and updates as steps start and finish —
285
- 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
286
334
  above it runs long.
287
335
  - When the turn ends, a final snapshot of the list stays readable in the
288
336
  transcript, and the footer shows a small progress chip (e.g. `◐ 4/6 to-dos`)
@@ -293,7 +341,7 @@ already done.
293
341
 
294
342
  ## Background jobs
295
343
 
296
- 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
297
345
  API. TheGitAI runs these as **background jobs**, so the agent can start a server,
298
346
  work against it live, and stop it when the task is done, all in one session.
299
347
 
@@ -311,5 +359,5 @@ Full documentation: <https://thegit.ai/docs>
311
359
 
312
360
  ## License
313
361
 
314
- Proprietary — see the LICENSE file included in this package. Source is
362
+ Proprietary - see the LICENSE file included in this package. Source is
315
363
  visible for inspection; copying and redistribution are not permitted.
package/dist/bin/ai.js CHANGED
@@ -234,7 +234,7 @@ export async function main() {
234
234
  throw whoamiOutcome.reason;
235
235
  }
236
236
  if (offlineNotice) {
237
- console.error(chalk.yellow(`⚠ Couldn't reach TheGitAI (${offlineNotice}). Starting with cached settings — it will reconnect on your next message.`));
237
+ console.error(chalk.yellow(`⚠ Couldn't reach TheGitAI (${offlineNotice}). Starting with cached settings - it will reconnect on your next message.`));
238
238
  }
239
239
  const updateOutcome = await offerUpdateAtStartup({
240
240
  currentVersion: getCliVersion(),
@@ -9,6 +9,7 @@ const PLAN_MODE_TOOL_NAMES = new Set([
9
9
  'run_command',
10
10
  'shell_job_output',
11
11
  'update_todos',
12
+ 'use_skill',
12
13
  'browser',
13
14
  'browser_tabs',
14
15
  'browser_read_page',
@@ -176,7 +176,7 @@ export async function loginViaBrowser(options) {
176
176
  const codePromise = new Promise((resolve, reject) => {
177
177
  timer = setTimeout(() => {
178
178
  shutDownServer(server);
179
- reject(new Error('Sign-in timed out. Authorization codes last 10 minutes — run `ai` again to start over.'));
179
+ reject(new Error('Sign-in timed out. Authorization codes last 10 minutes - run `ai` again to start over.'));
180
180
  }, options.timeoutMs ?? DEFAULT_TIMEOUT_MS);
181
181
  server.on('request', (req, res) => {
182
182
  const requestUrl = new URL(req.url ?? '/', 'http://127.0.0.1');
@@ -13,6 +13,7 @@ import { createTraceContext, gatewayFailureCategory, normalizeServerUrl, QUOTA_E
13
13
  import { createTurnRecovery, fetchTurnAttempt, interruptedStream, isRetryableTurnStatus, isTurnRecoveryExhausted, readTurnChunk, } from './turn-recovery.js';
14
14
  import { collectClientEnvironment } from '../client-environment.js';
15
15
  import { collectProjectOrientation } from '../project-orientation.js';
16
+ import { collectSkillRequest } from '../skills/discovery.js';
16
17
  import { describeSessionImageStore } from '../core/session-image-store.js';
17
18
  import { autoAttachImages } from '../core/image-path-extractor.js';
18
19
  import { formatTurnFailureMarker } from '../turn-failure-marker.js';
@@ -756,6 +757,7 @@ export async function sendServerUserMessage({ config, session, input, jobFollowU
756
757
  const request = {
757
758
  clientTurnId: randomUUID(),
758
759
  mcpTools: await sessionMcp(session).discover(signal),
760
+ ...collectSkillRequest(session.rootDir, session.env, jobFollowUp ? '' : requestInputBase),
759
761
  modelId: session.modelId,
760
762
  reasoningEffort: projectModelEffort(readProjectModelEfforts(session.rootDir, config.serverUrl, session.env), session.modelId),
761
763
  session: snapshotForServer(session),
@@ -137,7 +137,7 @@ function readClipboardWindows() {
137
137
  }
138
138
  const detail = [err?.message, err?.stderr?.toString?.()?.trim()]
139
139
  .filter(Boolean)
140
- .join(' — ');
140
+ .join(' - ');
141
141
  throw new ClipboardError(`Failed to read clipboard image on Windows: ${detail || 'unknown error'}`, 'READ_FAILED');
142
142
  }
143
143
  }
@@ -571,7 +571,7 @@ export function getBlockedCommandReason(command, hasTimeout, rootDir) {
571
571
  const ignoredDir = findIgnoredPathInspection(command, rootDir);
572
572
  if (ignoredDir?.startsWith(OS_TEMP_BLOCK_MARKER)) {
573
573
  const tempName = ignoredDir.slice(OS_TEMP_BLOCK_MARKER.length);
574
- return `Listing or scanning the shared OS temp directory (${tempName}) is blocked because it can contain other users' and processes' files. Use the session scratch directory ${ensureSessionScratchDir()} for temporary scripts and files — creating, running, and listing are all allowed there — or reference an exact file path.`;
574
+ return `Listing or scanning the shared OS temp directory (${tempName}) is blocked because it can contain other users' and processes' files. Use the session scratch directory ${ensureSessionScratchDir()} for temporary scripts and files - creating, running, and listing are all allowed there - or reference an exact file path.`;
575
575
  }
576
576
  if (ignoredDir) {
577
577
  return `Command inspects an off-limits generated or dependency directory (${ignoredDir}). Avoid that path.`;
@@ -20,29 +20,29 @@ const HELP_MARKDOWN = [
20
20
  '',
21
21
  '## Usage',
22
22
  '',
23
- '- `ai` — start an interactive chat session in the current repo',
24
- '- `ai "<request>"` — start an interactive session with `<request>` as the first message',
23
+ '- `ai` - start an interactive chat session in the current repo',
24
+ '- `ai "<request>"` - start an interactive session with `<request>` as the first message',
25
25
  '- Coding sessions require terminal stdin and stdout; piped prompts are not supported.',
26
26
  '',
27
27
  '## Auth',
28
28
  '',
29
- '- `ai` — signs you in if you are not already, then starts a session',
30
- '- `ai login` — the same thing; kept for muscle memory',
31
- '- Signing in opens your browser. When it cannot open one — over SSH, in a',
32
- ' container, or when the browser you want is on another device — the same',
29
+ '- `ai` - signs you in if you are not already, then starts a session',
30
+ '- `ai login` - the same thing; kept for muscle memory',
31
+ '- Signing in opens your browser. When it cannot open one - over SSH, in a',
32
+ ' container, or when the browser you want is on another device - the same',
33
33
  ' screen prints a URL you can open anywhere and takes the code that page',
34
34
  ' gives you back. There is no mode to pick and no flag to remember.',
35
- '- `ai whoami` — show the signed-in account',
36
- '- `ai --usage` — show account usage percentage and reset times',
37
- '- `ai logout` — sign out',
35
+ '- `ai whoami` - show the signed-in account',
36
+ '- `ai --usage` - show account usage percentage and reset times',
37
+ '- `ai logout` - sign out',
38
38
  '',
39
39
  '## MCP servers',
40
40
  '',
41
- '- `ai mcp add <name> -- <command> [args...]` — connect a local MCP server',
42
- '- `ai mcp add --transport http <name> <url>` — connect a remote MCP server',
43
- '- `ai mcp --help` — configuration, headers, environment variables and commands',
41
+ '- `ai mcp add <name> -- <command> [args...]` - connect a local MCP server',
42
+ '- `ai mcp add --transport http <name> <url>` - connect a remote MCP server',
43
+ '- `ai mcp --help` - configuration, headers, environment variables and commands',
44
44
  '- Short setup flags: `-t` transport, `-e` environment, `-H` header, `-s user` scope.',
45
- '- `/mcp` — check connections and available tools; changes apply next turn',
45
+ '- `/mcp` - check connections and available tools; changes apply next turn',
46
46
  '- Default mode asks before MCP calls; approvals can cover one tool for the session.',
47
47
  '- Bypass mode also approves MCP calls. Plan mode blocks MCP calls.',
48
48
  '- Invalid servers are reported individually; chat continues with available tools.',
@@ -52,8 +52,8 @@ const HELP_MARKDOWN = [
52
52
  '',
53
53
  '## Sessions',
54
54
  '',
55
- '- `ai --list-sessions` — list saved sessions for this repo',
56
- '- `ai --session <id|name>` — resume a saved session by id or name',
55
+ '- `ai --list-sessions` - list saved sessions for this repo',
56
+ '- `ai --session <id|name>` - resume a saved session by id or name',
57
57
  '- Sessions are stored locally and can be listed or resumed in the same repo.',
58
58
  ' Continuing one requires the TheGitAI account used for that session.',
59
59
  '',
@@ -67,27 +67,27 @@ const HELP_MARKDOWN = [
67
67
  ' to a row. The CLI installs the update and asks you to start `ai` again, so',
68
68
  ' the whole session runs one version.',
69
69
  '- Skipping starts the session on the version you have and asks again next',
70
- ' time. A release cannot be silenced for good — that is what keeps a broken',
70
+ ' time. A release cannot be silenced for good - that is what keeps a broken',
71
71
  ' combination from lasting.',
72
72
  '- **Ctrl+C** at the prompt quits without installing anything and without',
73
73
  ' starting the session.',
74
74
  '',
75
75
  '## Options',
76
76
  '',
77
- '- `-y, --yes` — start in Bypass all permissions mode',
78
- '- `-h, --help` — show this help',
79
- '- `-v, --version` — print the version and exit',
77
+ '- `-y, --yes` - start in Bypass all permissions mode',
78
+ '- `-h, --help` - show this help',
79
+ '- `-v, --version` - print the version and exit',
80
80
  '',
81
81
  '## Modes',
82
82
  '',
83
- '- Default · Ask for Approval — asks before creating, editing or deleting',
83
+ '- Default · Ask for Approval - asks before creating, editing or deleting',
84
84
  ' files, before running commands, and before touching a website. Each answer',
85
85
  ' can be remembered for the rest of the session, and once it is, Default',
86
86
  ' stops asking for that action; see Safety & approvals.',
87
- '- Bypass all permissions — approves every command, file edit, deletion and',
87
+ '- Bypass all permissions - approves every command, file edit, deletion and',
88
88
  ' browser action for the rest of the session, without asking. Shown in red',
89
89
  ' in the footer. Blocked commands stay blocked.',
90
- '- Plan — read-only; the agent can inspect, ask typed questions, and plan,',
90
+ '- Plan - read-only; the agent can inspect, ask typed questions, and plan,',
91
91
  ' with file-reading shell commands only. It will not edit files or run tests,',
92
92
  ' builds, diagnostics, package managers, project code, or network probes.',
93
93
  '- In the TUI, press **?** on an empty composer for the keyboard-and-mouse panel. Shift+Tab cycles Default → Bypass → Plan (refused while the agent is working), mouse drag copies transcript/footer text, left-click opens rendered links, right-click copies rendered links or pastes in the sticky composer/footer when no selection is active, double-click copies a word, and triple-click copies a row.',
@@ -108,7 +108,7 @@ const HELP_MARKDOWN = [
108
108
  ' queued message, and it is delivered into the running turn with the text.',
109
109
  '- **Ctrl+G** turns desktop notifications on or off. One is raised when a turn',
110
110
  ' ends and when a permission prompt or a question is waiting for you, but',
111
- ' only while the terminal is in the background — if you are looking at the',
111
+ ' only while the terminal is in the background - if you are looking at the',
112
112
  ' session you are told nothing. Coming back clears it. The choice is',
113
113
  ' remembered between sessions.',
114
114
  `- **Paste** into the composer with your terminal's paste shortcut (\`${PASTE_SHORTCUT}\``,
@@ -128,7 +128,7 @@ const HELP_MARKDOWN = [
128
128
  ' on screen. Move to an option to read what it means.',
129
129
  '- **Something else / add details** is the numbered final option: focus it',
130
130
  ' and type. **Enter** commits the note and moves to the next question, or to',
131
- ' Submit on the last one — it never submits the form for you.',
131
+ ' Submit on the last one - it never submits the form for you.',
132
132
  '- **Esc** closes an open note first, and otherwise cancels the form.',
133
133
  '',
134
134
  '## Chat commands',
@@ -138,25 +138,31 @@ const HELP_MARKDOWN = [
138
138
  ' from the description does too (`/bug` finds `/report`). It shows the five',
139
139
  ' best matches and counts the rest; **↑/↓** chooses, **Tab** or **Enter**',
140
140
  ' accepts, **Esc** closes it.',
141
- '- `/help` — show this help',
142
- '- `/mcp` — check MCP connections and list available tools',
143
- '- `/about` — show version and platform info',
144
- '- `/report` — file a bug privately through the TheGitAI website in your',
141
+ '- `/help` - show this help',
142
+ '- `/mcp` - check MCP connections and list available tools',
143
+ '- `/skills` - list your skills and any that failed to load',
144
+ '- `/skills add <source>` - install a skill from GitHub (`owner/repo/path`',
145
+ ' or a GitHub URL) or from a local folder into ~/.thegitai/skills; add',
146
+ ' `--project` to put it in this project\'s .thegitai/skills instead',
147
+ '- `/<skill> [what to do]` - run a skill yourself. Skills show up in the',
148
+ ' command picker, and the agent also loads a matching skill on its own',
149
+ '- `/about` - show version and platform info',
150
+ '- `/report` - file a bug privately through the TheGitAI website in your',
145
151
  ' browser (sign in with your existing account)',
146
- '- `/usage` — show account usage percentage and reset times',
147
- '- `/model` — ↑/↓ picks a model, ←/→ adjusts effort; Enter saves for this project, Esc cancels',
148
- '- `/model <id>` — switch the active model without clearing history',
149
- '- `/resume` — resume a saved session for this repo',
150
- '- `/jobs` — manage long-running commands like dev servers and watchers:',
152
+ '- `/usage` - show account usage percentage and reset times',
153
+ '- `/model` - ↑/↓ picks a model, ←/→ adjusts effort; Enter saves for this project, Esc cancels',
154
+ '- `/model <id>` - switch the active model without clearing history',
155
+ '- `/resume` - resume a saved session for this repo',
156
+ '- `/jobs` - manage long-running commands like dev servers and watchers:',
151
157
  ' browse them, press Enter to expand one and read its output, k to stop it',
152
- '- Ctrl+B — open the same jobs picker, and the only way in while the agent',
158
+ '- Ctrl+B - open the same jobs picker, and the only way in while the agent',
153
159
  ' is working; press it again or Esc to close without touching the turn',
154
- '- `/jobs output <id>` — print one job\'s full captured output',
155
- '- `/jobs kill <id>` — stop one background job',
156
- '- `/notify` — turn desktop notifications on or off (same as Ctrl+G)',
157
- '- `/new` — start a new conversation; this session remains saved',
158
- '- `/logout` — sign out and quit',
159
- '- `/exit` — quit the session',
160
+ '- `/jobs output <id>` - print one job\'s full captured output',
161
+ '- `/jobs kill <id>` - stop one background job',
162
+ '- `/notify` - turn desktop notifications on or off (same as Ctrl+G)',
163
+ '- `/new` - start a new conversation; this session remains saved',
164
+ '- `/logout` - sign out and quit',
165
+ '- `/exit` - quit the session',
160
166
  '',
161
167
  '## Safety & approvals',
162
168
  '',
@@ -169,13 +175,13 @@ const HELP_MARKDOWN = [
169
175
  ' Single-letter shortcuts were removed on purpose: a prompt can appear',
170
176
  ' while you are typing, and a stray letter must never approve anything.',
171
177
  '- Every prompt offers Approve once, an "Always allow" for that kind of',
172
- ' action, and Deny. A command also offers to remember just its prefix — for',
178
+ ' action, and Deny. A command also offers to remember just its prefix - for',
173
179
  ' example approving `npm test -- --watch=false` can allow `npm test`.',
174
180
  '- A prefix is only offered when the command shows a plain verb, as in',
175
181
  ' `npm test` or `git status`. Commands with no verb (`ls -la`), interpreters',
176
182
  ' and wrappers (`bash -c`, `python -c`, `env`, `timeout`, `make`), and',
177
183
  ' destructive or network binaries (`rm`, `sudo`, `curl`) are never offered',
178
- ' one — a bare binary grant would mean "anything this program can do".',
184
+ ' one - a bare binary grant would mean "anything this program can do".',
179
185
  ' `npm run` must name its script, so the grant is `npm run build`.',
180
186
  '- A remembered prefix never covers a command that chains, pipes, redirects,',
181
187
  ' or substitutes, so allowing `npm test` can never green-light',
@@ -185,7 +191,7 @@ const HELP_MARKDOWN = [
185
191
  '- If an approved `sudo` command needs a password, the TUI shows the exact',
186
192
  ' command and keeps the password masked and local.',
187
193
  '- `-y` / `--yes` at startup auto-approves every shell command and file',
188
- ' edit for the whole session — use with care.',
194
+ ' edit for the whole session - use with care.',
189
195
  '- Long-running commands (e.g. dev servers) can run as managed background',
190
196
  ' jobs after the same approval as any other command. Background output',
191
197
  ' stays quiet once the model has responded; the footer shows only a compact',
@@ -217,7 +223,7 @@ const HELP_MARKDOWN = [
217
223
  ' had finished. Starting `ai` while the service is briefly unavailable waits',
218
224
  ' the same way.',
219
225
  '- For anything else, re-run the command and file the printed error',
220
- ' message with `/report` — there is no client-side debug mode by design.',
226
+ ' message with `/report` - there is no client-side debug mode by design.',
221
227
  ].join('\n');
222
228
  export function formatAboutCard() {
223
229
  return [
@@ -4,6 +4,7 @@ import path from 'path';
4
4
  import { createInterface } from 'readline';
5
5
  import { runCommand } from './executor.js';
6
6
  import { ensureSessionScratchDir, isInsideTheGitAiScratch, isWithinSessionScratchDir, } from './scratch-dir.js';
7
+ import { isInsidePersonalSkills } from './skills/discovery.js';
7
8
  import { isTuiMode } from './runtime-mode.js';
8
9
  import { truncate } from './utils.js';
9
10
  function parseUnifiedDiff(patchText) {
@@ -164,6 +165,8 @@ export function classifyProjectPath(rootDir, filePath) {
164
165
  if (!relative.startsWith('..') && !path.isAbsolute(relative)) {
165
166
  return 'project';
166
167
  }
168
+ if (isInsidePersonalSkills(absPath))
169
+ return 'skills';
167
170
  return 'outside';
168
171
  }
169
172
  export function resolveProjectPath(rootDir, filePath) {
@@ -42,7 +42,7 @@ export async function runSignIn({ env = process.env, login = loginViaBrowser, wr
42
42
  onUrl: (url) => log(formatSignInScreen({ url })),
43
43
  onBrowserOpen: (opened) => {
44
44
  if (!opened) {
45
- log(chalk.dim(' (no browser opened — use the URL or the code box above)'));
45
+ log(chalk.dim(' (no browser opened - use the URL or the code box above)'));
46
46
  }
47
47
  },
48
48
  promptCode: promptForCode,