@mmmbuto/gemini-cli-termux 0.24.2-termux → 0.24.4-termux

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/README.md CHANGED
@@ -29,7 +29,7 @@ pkg update && pkg upgrade -y
29
29
  pkg install nodejs-lts -y
30
30
  npm install -g @mmmbuto/gemini-cli-termux
31
31
 
32
- gemini --version # expected: 0.24.2-termux (npm latest)
32
+ gemini --version # expected: 0.24.3-termux (npm latest)
33
33
  ```
34
34
 
35
35
  Build from source:
@@ -65,7 +65,7 @@ node bundle/gemini.js --version
65
65
  ### 📚 Complete Documentation
66
66
 
67
67
  - **Test Results**
68
- - [GEMINI_TEST_REPORT_v0.24.0.md](./GEMINI_TEST_REPORT_v0.24.0.md) — PASS
68
+ - [GEMINI_TEST_REPORT_v0.24.3.md](./GEMINI_TEST_REPORT_v0.24.3.md) — PASS
69
69
  (partial execution; interactive steps pending)
70
70
  - **[Test Suite](./GEMINI_TEST_SUITE.md)** - Test methodology and checklist
71
71
  - **[Context Memory](./docs/cli/context-memory.md)** - Memory modes, JIT + JSON,
@@ -105,21 +105,17 @@ See [docs/patches/README.md](./docs/patches/README.md) for complete solutions.
105
105
  npm install -g @mmmbuto/gemini-cli-termux@latest
106
106
  ```
107
107
 
108
- ### Changelog (0.24.2-termux)
108
+ ### Changelog (0.24.3-termux)
109
109
 
110
- - **Auto-update fix**: uses the fork package name to prevent upstream overwrite.
111
- - **Memory Mode presets** in `/settings Memory` (default / jit / jit+json).
112
- - **JIT + JSON** combined memory support (ContextManager now loads JSON memory).
113
- - **Memory settings reorganized** into a dedicated section; MCP import
114
- categories hidden from UI.
115
- - **Docs & tests refreshed** for 0.24.0-termux.
116
- - **README cleanup**: legacy 0.22.x release sections removed.
110
+ - **Upstream merge**: v0.25.0-nightly integrated with Termux patches preserved.
111
+ - **Build fixes**: MessageBus import compatibility + `@types/js-yaml` added.
112
+ - **Docs/tests**: new test report for v0.24.3-termux.
117
113
 
118
114
  ## Tests
119
115
 
120
116
  - Suite: [`GEMINI_TEST_SUITE.md`](./GEMINI_TEST_SUITE.md)
121
117
  - Latest report:
122
- - [`GEMINI_TEST_REPORT_v0.24.0.md`](./GEMINI_TEST_REPORT_v0.24.0.md) — PASS
118
+ - [`GEMINI_TEST_REPORT_v0.24.3.md`](./GEMINI_TEST_REPORT_v0.24.3.md) — PASS
123
119
  (partial execution; interactive steps pending). Notes include
124
120
  non‑interactive tool confirmation limits.
125
121
 
@@ -94,7 +94,6 @@ they appear in the UI.
94
94
  | Enable Tool Output Truncation | `tools.enableToolOutputTruncation` | Enable truncation of large tool outputs. | `true` |
95
95
  | Tool Output Truncation Threshold | `tools.truncateToolOutputThreshold` | Truncate tool output if it is larger than this many characters. Set to -1 to disable. | `10000` |
96
96
  | Tool Output Truncation Lines | `tools.truncateToolOutputLines` | The number of lines to keep when truncating tool output. | `100` |
97
- | Enable Message Bus Integration | `tools.enableMessageBusIntegration` | Enable policy-based tool confirmation via message bus integration. | `true` |
98
97
 
99
98
  ### Security
100
99
 
@@ -112,3 +111,4 @@ they appear in the UI.
112
111
  | ----------------------------------- | ------------------------------------------------------- | ------------------------------------------------------------ | ------- |
113
112
  | Enable Codebase Investigator | `experimental.codebaseInvestigatorSettings.enabled` | Enable the Codebase Investigator agent. | `true` |
114
113
  | Codebase Investigator Max Num Turns | `experimental.codebaseInvestigatorSettings.maxNumTurns` | Maximum number of turns for the Codebase Investigator agent. | `10` |
114
+ | Agent Skills | `experimental.skills` | Enable Agent Skills (experimental). | `false` |
@@ -0,0 +1,156 @@
1
+ # Agent Skills
2
+
3
+ _Note: This is an experimental feature enabled via `experimental.skills`. You
4
+ can also search for "Skills" within the `/settings` interactive UI to toggle
5
+ this and manage other skill-related settings._
6
+
7
+ Agent Skills allow you to extend Gemini CLI with specialized expertise,
8
+ procedural workflows, and task-specific resources. Based on the
9
+ [Agent Skills](https://agentskills.io) open standard, a "skill" is a
10
+ self-contained directory that packages instructions and assets into a
11
+ discoverable capability.
12
+
13
+ ## Overview
14
+
15
+ Unlike general context files ([`GEMINI.md`](./gemini-md.md)), which provide
16
+ persistent project-wide background, Skills represent **on-demand expertise**.
17
+ This allows Gemini to maintain a vast library of specialized capabilities—such
18
+ as security auditing, cloud deployments, or codebase migrations—without
19
+ cluttering the model's immediate context window.
20
+
21
+ Gemini autonomously decides when to employ a skill based on your request and the
22
+ skill's description. When a relevant skill is identified, the model "pulls in"
23
+ the full instructions and resources required to complete the task using the
24
+ `activate_skill` tool.
25
+
26
+ ## Key Benefits
27
+
28
+ - **Shared Expertise:** Package complex workflows (like a specific team's PR
29
+ review process) into a folder that anyone can use.
30
+ - **Repeatable Workflows:** Ensure complex multi-step tasks are performed
31
+ consistently by providing a procedural framework.
32
+ - **Resource Bundling:** Include scripts, templates, or example data alongside
33
+ instructions so the agent has everything it needs.
34
+ - **Progressive Disclosure:** Only skill metadata (name and description) is
35
+ loaded initially. Detailed instructions and resources are only disclosed when
36
+ the model explicitly activates the skill, saving context tokens.
37
+
38
+ ## Skill Discovery Tiers
39
+
40
+ Gemini CLI discovers skills from three primary locations:
41
+
42
+ 1. **Project Skills** (`.gemini/skills/`): Project-specific skills that are
43
+ typically committed to version control and shared with the team.
44
+ 2. **User Skills** (`~/.gemini/skills/`): Personal skills available across all
45
+ your projects.
46
+ 3. **Extension Skills**: Skills bundled within installed
47
+ [extensions](../extensions/index.md).
48
+
49
+ **Precedence:** If multiple skills share the same name, higher-precedence
50
+ locations override lower ones: **Project > User > Extension**.
51
+
52
+ ## Managing Skills
53
+
54
+ ### In an Interactive Session
55
+
56
+ Use the `/skills` slash command to view and manage available expertise:
57
+
58
+ - `/skills list` (default): Shows all discovered skills and their status.
59
+ - `/skills disable <name>`: Prevents a specific skill from being used.
60
+ - `/skills enable <name>`: Re-enables a disabled skill.
61
+ - `/skills reload`: Refreshes the list of discovered skills from all tiers.
62
+
63
+ _Note: `/skills disable` and `/skills enable` default to the `user` scope. Use
64
+ `--scope project` to manage project-specific settings._
65
+
66
+ ### From the Terminal
67
+
68
+ The `gemini skills` command provides management utilities:
69
+
70
+ ```bash
71
+ # List all discovered skills
72
+ gemini skills list
73
+
74
+ # Enable/disable skills. Can use --scope to specify project or user
75
+ gemini skills enable my-expertise
76
+ gemini skills disable my-expertise
77
+ ```
78
+
79
+ ## Creating a Skill
80
+
81
+ A skill is a directory containing a `SKILL.md` file at its root. This file uses
82
+ YAML frontmatter for metadata and Markdown for instructions.
83
+
84
+ ### Basic Structure
85
+
86
+ ```markdown
87
+ ---
88
+ name: <unique-name>
89
+ description: <what the skill does and when Gemini should use it>
90
+ ---
91
+
92
+ <your instructions for how the agent should behave / use the skill>
93
+ ```
94
+
95
+ - **`name`**: A unique identifier (lowercase, alphanumeric, and dashes).
96
+ - **`description`**: The most critical field. Gemini uses this to decide when
97
+ the skill is relevant. Be specific about the expertise provided.
98
+ - **Body**: Everything below the second `---` is injected as expert procedural
99
+ guidance for the model.
100
+
101
+ ### Example: Team Code Reviewer
102
+
103
+ ```markdown
104
+ ---
105
+ name: code-reviewer
106
+ description:
107
+ Expertise in reviewing code for style, security, and performance. Use when the
108
+ user asks for "feedback," a "review," or to "check" their changes.
109
+ ---
110
+
111
+ # Code Reviewer
112
+
113
+ You are an expert code reviewer. When reviewing code, follow this workflow:
114
+
115
+ 1. **Analyze**: Review the staged changes or specific files provided. Ensure
116
+ that the changes are scoped properly and represent minimal changes required
117
+ to address the issue.
118
+ 2. **Style**: Ensure code follows the project's conventions and idiomatic
119
+ patterns as described in the `GEMINI.md` file.
120
+ 3. **Security**: Flag any potential security vulnerabilities.
121
+ 4. **Tests**: Verify that new logic has corresponding test coverage and that
122
+ the test coverage adequately validates the changes.
123
+
124
+ Provide your feedback as a concise bulleted list of "Strengths" and
125
+ "Opportunities."
126
+ ```
127
+
128
+ ### Resource Conventions
129
+
130
+ While you can structure your skill directory however you like, the Agent Skills
131
+ standard encourages these conventions:
132
+
133
+ - **`scripts/`**: Executable scripts (bash, python, node) the agent can run.
134
+ - **`references/`**: Static documentation, schemas, or example data for the
135
+ agent to consult.
136
+ - **`assets/`**: Code templates, boilerplate, or binary resources.
137
+
138
+ When a skill is activated, Gemini CLI provides the model with a tree view of the
139
+ entire skill directory, allowing it to discover and utilize these assets.
140
+
141
+ ## How it Works (Security & Privacy)
142
+
143
+ 1. **Discovery**: At the start of a session, Gemini CLI scans the discovery
144
+ tiers and injects the name and description of all enabled skills into the
145
+ system prompt.
146
+ 2. **Activation**: When Gemini identifies a task matching a skill's
147
+ description, it calls the `activate_skill` tool.
148
+ 3. **Consent**: You will see a confirmation prompt in the UI detailing the
149
+ skill's name, purpose, and the directory path it will gain access to.
150
+ 4. **Injection**: Upon your approval:
151
+ - The `SKILL.md` body and folder structure is added to the conversation
152
+ history.
153
+ - The skill's directory is added to the agent's allowed file paths, granting
154
+ it permission to read any bundled assets.
155
+ 5. **Execution**: The model proceeds with the specialized expertise active. It
156
+ is instructed to prioritize the skill's procedural guidance within reason.
@@ -297,7 +297,7 @@ Captures startup configuration and user prompt submissions.
297
297
 
298
298
  #### Tools
299
299
 
300
- Captures tool executions, output truncation, and Smart Edit behavior.
300
+ Captures tool executions, output truncation, and Edit behavior.
301
301
 
302
302
  - `gemini_cli.tool_call`: Emitted for each tool (function) call.
303
303
  - **Attributes**:
@@ -325,11 +325,11 @@ Captures tool executions, output truncation, and Smart Edit behavior.
325
325
  - `lines` (int)
326
326
  - `prompt_id` (string)
327
327
 
328
- - `gemini_cli.smart_edit_strategy`: Smart Edit strategy chosen.
328
+ - `gemini_cli.edit_strategy`: Edit strategy chosen.
329
329
  - **Attributes**:
330
330
  - `strategy` (string)
331
331
 
332
- - `gemini_cli.smart_edit_correction`: Smart Edit correction result.
332
+ - `gemini_cli.edit_correction`: Edit correction result.
333
333
  - **Attributes**:
334
334
  - `correction` ("success" | "failure")
335
335
 
@@ -0,0 +1,124 @@
1
+ # Getting Started with Agent Skills
2
+
3
+ Agent Skills allow you to extend Gemini CLI with specialized expertise. This
4
+ tutorial will guide you through creating your first skill, enabling it, and
5
+ using it in a session.
6
+
7
+ ## 1. Enable Agent Skills
8
+
9
+ Agent Skills are currently an experimental feature and must be enabled in your
10
+ settings.
11
+
12
+ ### Via the interactive UI
13
+
14
+ 1. Start a Gemini CLI session by running `gemini`.
15
+ 2. Type `/settings` to open the interactive settings dialog.
16
+ 3. Search for "Skills".
17
+ 4. Toggle **Agent Skills** to `true`.
18
+ 5. Press `Esc` to save and exit. You may need to restart the CLI for the
19
+ changes to take effect.
20
+
21
+ ### Via `settings.json`
22
+
23
+ Alternatively, you can manually edit your global settings file at
24
+ `~/.gemini/settings.json` (create it if it doesn't exist):
25
+
26
+ ```json
27
+ {
28
+ "experimental": {
29
+ "skills": true
30
+ }
31
+ }
32
+ ```
33
+
34
+ ## 2. Create Your First Skill
35
+
36
+ A skill is a directory containing a `SKILL.md` file. Let's create an **API
37
+ Auditor** skill that helps you verify if local or remote endpoints are
38
+ responding correctly.
39
+
40
+ 1. **Create the skill directory structure:**
41
+
42
+ ```bash
43
+ mkdir -p .gemini/skills/api-auditor/scripts
44
+ ```
45
+
46
+ 2. **Create the `SKILL.md` file:** Create a file at
47
+ `.gemini/skills/api-auditor/SKILL.md` with the following content:
48
+
49
+ ```markdown
50
+ ---
51
+ name: api-auditor
52
+ description:
53
+ Expertise in auditing and testing API endpoints. Use when the user asks to
54
+ "check", "test", or "audit" a URL or API.
55
+ ---
56
+
57
+ # API Auditor Instructions
58
+
59
+ You act as a QA engineer specialized in API reliability. When this skill is
60
+ active, you MUST:
61
+
62
+ 1. **Audit**: Use the bundled `scripts/audit.js` utility to check the
63
+ status of the provided URL.
64
+ 2. **Report**: Analyze the output (status codes, latency) and explain any
65
+ failures in plain English.
66
+ 3. **Secure**: Remind the user if they are testing a sensitive endpoint
67
+ without an `https://` protocol.
68
+ ```
69
+
70
+ 3. **Create the bundled Node.js script:** Create a file at
71
+ `.gemini/skills/api-auditor/scripts/audit.js`. This script will be used by
72
+ the agent to perform the actual check:
73
+
74
+ ```javascript
75
+ // .gemini/skills/api-auditor/scripts/audit.js
76
+ const url = process.argv[2];
77
+
78
+ if (!url) {
79
+ console.error('Usage: node audit.js <url>');
80
+ process.exit(1);
81
+ }
82
+
83
+ console.log(`Auditing ${url}...`);
84
+ fetch(url, { method: 'HEAD' })
85
+ .then((r) => console.log(`Result: Success (Status ${r.status})`))
86
+ .catch((e) => console.error(`Result: Failed (${e.message})`));
87
+ ```
88
+
89
+ ## 3. Verify the Skill is Discovered
90
+
91
+ Use the `/skills` slash command (or `gemini skills list` from your terminal) to
92
+ see if Gemini CLI has found your new skill.
93
+
94
+ In a Gemini CLI session:
95
+
96
+ ```
97
+ /skills list
98
+ ```
99
+
100
+ You should see `api-auditor` in the list of available skills.
101
+
102
+ ## 4. Use the Skill in a Chat
103
+
104
+ Now, let's see the skill in action. Start a new session and ask a question about
105
+ an endpoint.
106
+
107
+ **User:** "Can you audit http://geminili.com"
108
+
109
+ Gemini will recognize the request matches the `api-auditor` description and will
110
+ ask for your permission to activate it.
111
+
112
+ **Model:** (After calling `activate_skill`) "I've activated the **api-auditor**
113
+ skill. I'll run the audit script now..."
114
+
115
+ Gemini will then use the `run_shell_command` tool to execute your bundled Node
116
+ script:
117
+
118
+ `node .gemini/skills/api-auditor/scripts/audit.js http://geminili.com`
119
+
120
+ ## Next Steps
121
+
122
+ - Explore [Agent Skills Authoring Guide](../skills.md#creating-a-skill) to learn
123
+ about more advanced skill features.
124
+ - Learn how to share skills via [Extensions](../../extensions/index.md).
@@ -2,6 +2,10 @@
2
2
 
3
3
  This page contains tutorials for interacting with Gemini CLI.
4
4
 
5
+ ## Agent Skills
6
+
7
+ - [Getting Started with Agent Skills](./tutorials/skills-getting-started.md)
8
+
5
9
  ## Setting up a Model Context Protocol (MCP) server
6
10
 
7
11
  > [!CAUTION] Before using a third-party MCP server, ensure you trust its source
@@ -684,20 +684,10 @@ their corresponding top-level category object in your `settings.json` file.
684
684
  - **Default:** `1000`
685
685
  - **Requires restart:** Yes
686
686
 
687
- - **`tools.enableMessageBusIntegration`** (boolean):
688
- - **Description:** Enable policy-based tool confirmation via message bus
689
- integration. When enabled, tools automatically respect policy engine
690
- decisions (ALLOW/DENY/ASK_USER) without requiring individual tool
691
- implementations.
692
- - **Default:** `true`
693
- - **Requires restart:** Yes
694
-
695
687
  - **`tools.enableHooks`** (boolean):
696
- - **Description:** Enable the hooks system for intercepting and customizing
697
- Gemini CLI behavior. When enabled, hooks configured in settings will execute
698
- at appropriate lifecycle events (BeforeTool, AfterTool, BeforeModel, etc.).
699
- Requires MessageBus integration.
700
- - **Default:** `false`
688
+ - **Description:** Enables the hooks system experiment. When disabled, the
689
+ hooks system is completely deactivated regardless of other settings.
690
+ - **Default:** `true`
701
691
  - **Requires restart:** Yes
702
692
 
703
693
  #### `mcp`
@@ -717,12 +707,6 @@ their corresponding top-level category object in your `settings.json` file.
717
707
  - **Default:** `undefined`
718
708
  - **Requires restart:** Yes
719
709
 
720
- #### `useSmartEdit`
721
-
722
- - **`useSmartEdit`** (boolean):
723
- - **Description:** Enable the smart-edit tool instead of the replace tool.
724
- - **Default:** `true`
725
-
726
710
  #### `useWriteTodos`
727
711
 
728
712
  - **`useWriteTodos`** (boolean):
@@ -830,6 +814,11 @@ their corresponding top-level category object in your `settings.json` file.
830
814
  - **Default:** `false`
831
815
  - **Requires restart:** Yes
832
816
 
817
+ - **`experimental.skills`** (boolean):
818
+ - **Description:** Enable Agent Skills (experimental).
819
+ - **Default:** `false`
820
+ - **Requires restart:** Yes
821
+
833
822
  - **`experimental.codebaseInvestigatorSettings.enabled`** (boolean):
834
823
  - **Description:** Enable the Codebase Investigator agent.
835
824
  - **Default:** `true`
@@ -857,18 +846,39 @@ their corresponding top-level category object in your `settings.json` file.
857
846
  - **Default:** `"auto"`
858
847
  - **Requires restart:** Yes
859
848
 
849
+ - **`experimental.useOSC52Paste`** (boolean):
850
+ - **Description:** Use OSC 52 sequence for pasting instead of clipboardy
851
+ (useful for remote sessions).
852
+ - **Default:** `false`
853
+
860
854
  - **`experimental.introspectionAgentSettings.enabled`** (boolean):
861
855
  - **Description:** Enable the Introspection Agent.
862
856
  - **Default:** `false`
863
857
  - **Requires restart:** Yes
864
858
 
859
+ #### `skills`
860
+
861
+ - **`skills.disabled`** (array):
862
+ - **Description:** List of disabled skills.
863
+ - **Default:** `[]`
864
+ - **Requires restart:** Yes
865
+
865
866
  #### `hooks`
866
867
 
868
+ - **`hooks.enabled`** (boolean):
869
+ - **Description:** Canonical toggle for the hooks system. When disabled, no
870
+ hooks will be executed.
871
+ - **Default:** `false`
872
+
867
873
  - **`hooks.disabled`** (array):
868
874
  - **Description:** List of hook names (commands) that should be disabled.
869
875
  Hooks in this list will not execute even if configured.
870
876
  - **Default:** `[]`
871
877
 
878
+ - **`hooks.notifications`** (boolean):
879
+ - **Description:** Show visual indicators when hooks are executing.
880
+ - **Default:** `true`
881
+
872
882
  - **`hooks.BeforeTool`** (array):
873
883
  - **Description:** Hooks that execute before tool execution. Can intercept,
874
884
  validate, or modify tool calls.
@@ -923,6 +933,21 @@ their corresponding top-level category object in your `settings.json` file.
923
933
  - **Description:** Hooks that execute before tool selection. Can filter or
924
934
  prioritize available tools dynamically.
925
935
  - **Default:** `[]`
936
+
937
+ #### `admin`
938
+
939
+ - **`admin.secureModeEnabled`** (boolean):
940
+ - **Description:** If true, disallows yolo mode from being used.
941
+ - **Default:** `false`
942
+
943
+ - **`admin.extensions.enabled`** (boolean):
944
+ - **Description:** If false, disallows extensions from being installed or
945
+ used.
946
+ - **Default:** `true`
947
+
948
+ - **`admin.mcp.enabled`** (boolean):
949
+ - **Description:** If false, disallows MCP servers from being used.
950
+ - **Default:** `true`
926
951
  <!-- SETTINGS-AUTOGEN:END -->
927
952
 
928
953
  #### `mcpServers`