gemcode 0.3.76__tar.gz → 0.3.77__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.
- gemcode-0.3.77/PKG-INFO +689 -0
- gemcode-0.3.77/README.md +500 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/pyproject.toml +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/agent.py +16 -16
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/autocompact.py +2 -2
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/callbacks.py +6 -6
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/capability_routing.py +2 -2
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/cli.py +28 -28
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/config.py +4 -4
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/context_budget.py +2 -2
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/context_warning.py +6 -6
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/credentials.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/hooks.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/invoke.py +1 -1
- gemcode-0.3.76/src/gemcode/kairos_daemon.py → gemcode-0.3.77/src/gemcode/kaira_daemon.py +19 -19
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/limits.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/mcp_loader.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/modality_tools.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/model_routing.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/permissions.py +2 -2
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/plugins/terminal_hooks_plugin.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/plugins/tool_recovery_plugin.py +2 -2
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/prompt_suggestions.py +2 -2
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/query/__init__.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/query/config.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/query/deps.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/query/engine.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/query/stop_hooks.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/query/token_budget.py +2 -2
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/query/transitions.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/repl_commands.py +3 -3
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/repl_slash.py +9 -9
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/session_runtime.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/skills.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/slash_commands.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/thinking.py +4 -4
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tool_prompt_manifest.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tool_registry.py +2 -2
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tool_result_store.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/bash.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/edit.py +3 -2
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/notebook.py +2 -2
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/notes.py +2 -3
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/subtask.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/tasks.py +2 -2
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/think.py +1 -2
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/todo.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/web.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/web_search.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools_inspector.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tui/input_handler.py +1 -1
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tui/scrollback.py +3 -3
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tui/spinner.py +8 -8
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tui/welcome_rich.py +1 -1
- gemcode-0.3.76/src/gemcode/web/claude_sse_adapter.py → gemcode-0.3.77/src/gemcode/web/web_sse_compat.py +2 -5
- gemcode-0.3.77/src/gemcode.egg-info/PKG-INFO +689 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode.egg-info/SOURCES.txt +4 -4
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_context_warning.py +1 -1
- gemcode-0.3.76/tests/test_kairos_scheduler.py → gemcode-0.3.77/tests/test_kaira_scheduler.py +14 -14
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_token_budget.py +1 -1
- gemcode-0.3.76/tests/test_claude_web_adapter_sse.py → gemcode-0.3.77/tests/test_web_sse_adapter.py +0 -1
- gemcode-0.3.76/PKG-INFO +0 -523
- gemcode-0.3.76/README.md +0 -334
- gemcode-0.3.76/src/gemcode.egg-info/PKG-INFO +0 -523
- {gemcode-0.3.76 → gemcode-0.3.77}/LICENSE +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/MANIFEST.in +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/setup.cfg +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/__init__.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/__main__.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/audit.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/autotune.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/checkpoints.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/compaction.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/computer_use/__init__.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/computer_use/browser_computer.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/curated_memory.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/dynamic_policy.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/evals/harness.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/hitl_session.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/ide_protocol.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/ide_stdio.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/intent_classifier.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/interactions.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/learning.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/live_audio_engine.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/logging_config.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/memory/__init__.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/memory/embedding_memory_service.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/memory/file_memory_service.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/model_errors.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/openapi_loader.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/output_styles.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/paths.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/plugins/__init__.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/policy_profile.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/pricing.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/refine.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/review_agent.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/rules.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/session_store.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/__init__.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/browser.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/curated_memory.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/filesystem.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/repo_map.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/search.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/shell.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/shell_gate.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tools/skills.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/trust.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/tui/welcome_banner.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/version.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/vertex.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/web/__init__.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/web/sse_adapter.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/web/terminal_repl.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode/workspace_hints.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode.egg-info/dependency_links.txt +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode.egg-info/entry_points.txt +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode.egg-info/requires.txt +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/src/gemcode.egg-info/top_level.txt +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_add_dir.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_agent_instruction.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_autocompact.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_capability_routing.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_checkpoint_diff_command.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_cli_init.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_computer_use_permissions.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_context_budget.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_credentials.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_interactive_permission_ask.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_modality_tools.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_model_error_retry.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_model_errors.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_model_routing.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_output_styles_and_rules.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_paths.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_permissions.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_prompt_suggestions.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_repl_commands.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_repl_slash.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_skills.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_slash_commands.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_thinking_config.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_tool_context_circulation.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_tools.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_tools_inspector.py +0 -0
- {gemcode-0.3.76 → gemcode-0.3.77}/tests/test_workspace_hints.py +0 -0
gemcode-0.3.77/PKG-INFO
ADDED
|
@@ -0,0 +1,689 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: gemcode
|
|
3
|
+
Version: 0.3.77
|
|
4
|
+
Summary: Local-first coding agent on Google Gemini + ADK
|
|
5
|
+
Author: GemCode Contributors
|
|
6
|
+
License: Apache License
|
|
7
|
+
Version 2.0, January 2004
|
|
8
|
+
http://www.apache.org/licenses/
|
|
9
|
+
|
|
10
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
11
|
+
|
|
12
|
+
1. Definitions.
|
|
13
|
+
|
|
14
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
15
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
16
|
+
|
|
17
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
18
|
+
the copyright owner that is granting the License.
|
|
19
|
+
|
|
20
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
21
|
+
other entities that control, are controlled by, or are under common
|
|
22
|
+
control with that entity. For the purposes of this definition,
|
|
23
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
24
|
+
direction or management of such entity, whether by contract or
|
|
25
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
26
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
27
|
+
|
|
28
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
29
|
+
exercising permissions granted by this License.
|
|
30
|
+
|
|
31
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
32
|
+
including but not limited to software source code, documentation
|
|
33
|
+
source, and configuration files.
|
|
34
|
+
|
|
35
|
+
"Object" form shall mean any form resulting from mechanical
|
|
36
|
+
transformation or translation of a Source form, including but
|
|
37
|
+
not limited to compiled object code, generated documentation,
|
|
38
|
+
and conversions to other media types.
|
|
39
|
+
|
|
40
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
41
|
+
Object form, made available under the License, as indicated by a
|
|
42
|
+
copyright notice that is included in or attached to the work
|
|
43
|
+
(an example is provided in the Appendix below).
|
|
44
|
+
|
|
45
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
46
|
+
form, that is based on (or derived from) the Work and for which the
|
|
47
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
48
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
49
|
+
of this License, Derivative Works shall not include works that remain
|
|
50
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
51
|
+
the Work and Derivative Works thereof.
|
|
52
|
+
|
|
53
|
+
"Contribution" shall mean any work of authorship, including
|
|
54
|
+
the original version of the Work and any modifications or additions
|
|
55
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
56
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
57
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
58
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
59
|
+
means any form of electronic, verbal, or written communication sent
|
|
60
|
+
to the Licensor or its representatives, including but not limited to
|
|
61
|
+
communication on electronic mailing lists, source code control systems,
|
|
62
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
63
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
64
|
+
excluding communication that is conspicuously marked or otherwise
|
|
65
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
66
|
+
|
|
67
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
68
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
69
|
+
subsequently incorporated within the Work.
|
|
70
|
+
|
|
71
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
72
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
73
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
74
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
75
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
76
|
+
Work and such Derivative Works in Source or Object form.
|
|
77
|
+
|
|
78
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
79
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
80
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
81
|
+
(except as stated in this section) patent license to make, have made,
|
|
82
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
83
|
+
where such license applies only to those patent claims licensable
|
|
84
|
+
by such Contributor that are necessarily infringed by their
|
|
85
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
86
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
87
|
+
institute patent litigation against any entity (including a
|
|
88
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
89
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
90
|
+
or contributory patent infringement, then any patent licenses
|
|
91
|
+
granted to You under this License for that Work shall terminate
|
|
92
|
+
as of the date such litigation is filed.
|
|
93
|
+
|
|
94
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
95
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
96
|
+
modifications, and in Source or Object form, provided that You
|
|
97
|
+
meet the following conditions:
|
|
98
|
+
|
|
99
|
+
(a) You must give any other recipients of the Work or
|
|
100
|
+
Derivative Works a copy of this License; and
|
|
101
|
+
|
|
102
|
+
(b) You must cause any modified files to carry prominent notices
|
|
103
|
+
stating that You changed the files; and
|
|
104
|
+
|
|
105
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
106
|
+
that You distribute, all copyright, patent, trademark, and
|
|
107
|
+
attribution notices from the Source form of the Work,
|
|
108
|
+
excluding those notices that do not pertain to any part of
|
|
109
|
+
the Derivative Works; and
|
|
110
|
+
|
|
111
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
112
|
+
distribution, then any Derivative Works that You distribute must
|
|
113
|
+
include a readable copy of the attribution notices contained
|
|
114
|
+
within such NOTICE file, excluding those notices that do not
|
|
115
|
+
pertain to any part of the Derivative Works, in at least one
|
|
116
|
+
of the following places: within a NOTICE text file distributed
|
|
117
|
+
as part of the Derivative Works; within the Source form or
|
|
118
|
+
documentation, if provided along with the Derivative Works; or,
|
|
119
|
+
within a display generated by the Derivative Works, if and
|
|
120
|
+
wherever such third-party notices normally appear. The contents
|
|
121
|
+
of the NOTICE file are for informational purposes only and
|
|
122
|
+
do not modify the License. You may add Your own attribution
|
|
123
|
+
notices within Derivative Works that You distribute, alongside
|
|
124
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
125
|
+
that such additional attribution notices cannot be construed
|
|
126
|
+
as modifying the License.
|
|
127
|
+
|
|
128
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
129
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
130
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
131
|
+
this License, without any additional terms or conditions.
|
|
132
|
+
|
|
133
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
134
|
+
names, trademarks, service marks, or product names of the Licensor.
|
|
135
|
+
|
|
136
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
137
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
138
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
139
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
140
|
+
|
|
141
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
142
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
143
|
+
unless required by applicable law, shall any Contributor be liable
|
|
144
|
+
to You for damages, including any direct, indirect, special,
|
|
145
|
+
incidental, or consequential damages arising in any way out of the
|
|
146
|
+
use of the Work.
|
|
147
|
+
|
|
148
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
149
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
150
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
151
|
+
or other liability obligations and/or rights consistent with this
|
|
152
|
+
License. However, in accepting such obligations, You may act only
|
|
153
|
+
on Your own behalf and on Your sole responsibility.
|
|
154
|
+
|
|
155
|
+
END OF TERMS AND CONDITIONS
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
Project-URL: Homepage, https://github.com/spiderdev27/GemCode
|
|
159
|
+
Project-URL: Repository, https://github.com/spiderdev27/GemCode
|
|
160
|
+
Project-URL: Issues, https://github.com/spiderdev27/GemCode/issues
|
|
161
|
+
Keywords: ai,agent,coding,gemini,adk,cli,tui
|
|
162
|
+
Classifier: Development Status :: 3 - Alpha
|
|
163
|
+
Classifier: Environment :: Console
|
|
164
|
+
Classifier: Intended Audience :: Developers
|
|
165
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
166
|
+
Classifier: Operating System :: OS Independent
|
|
167
|
+
Classifier: Programming Language :: Python :: 3
|
|
168
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
169
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
170
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
171
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
172
|
+
Classifier: Topic :: Software Development
|
|
173
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
174
|
+
Classifier: Topic :: Terminals
|
|
175
|
+
Requires-Python: >=3.11
|
|
176
|
+
Description-Content-Type: text/markdown
|
|
177
|
+
License-File: LICENSE
|
|
178
|
+
Requires-Dist: google-adk>=1.0.0
|
|
179
|
+
Requires-Dist: google-genai>=1.0.0
|
|
180
|
+
Requires-Dist: python-dotenv>=1.0.0
|
|
181
|
+
Requires-Dist: rich>=13.0.0
|
|
182
|
+
Requires-Dist: prompt_toolkit>=3.0.0
|
|
183
|
+
Provides-Extra: dev
|
|
184
|
+
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
185
|
+
Requires-Dist: pytest-asyncio>=0.24.0; extra == "dev"
|
|
186
|
+
Provides-Extra: mcp
|
|
187
|
+
Requires-Dist: mcp>=1.0.0; extra == "mcp"
|
|
188
|
+
Dynamic: license-file
|
|
189
|
+
|
|
190
|
+
# GemCode — User manual
|
|
191
|
+
|
|
192
|
+
**GemCode** is a **local-first coding agent** that combines **Google Gemini** with the **[Agent Development Kit (ADK)](https://google.github.io/adk-docs/)** to work inside your repositories: it reads and edits files, runs allowlisted commands, searches code and the web, and can optionally use embeddings, deep research, browser automation, and live audio. Sessions persist under `.gemcode/`; permissions and audit logging keep operations explicit and inspectable.
|
|
193
|
+
|
|
194
|
+
This document is the **authoritative reference** for CLI behavior, configuration, tools, and REPL commands.
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Table of contents
|
|
199
|
+
|
|
200
|
+
1. [Architecture](#architecture)
|
|
201
|
+
2. [Requirements and install](#requirements-and-install)
|
|
202
|
+
3. [First run](#first-run)
|
|
203
|
+
4. [CLI commands](#cli-commands)
|
|
204
|
+
5. [Main CLI flags](#main-cli-flags)
|
|
205
|
+
6. [The `.gemcode/` directory](#the-gemcode-directory)
|
|
206
|
+
7. [Project context: `GEMINI.md`](#project-context-geminimd)
|
|
207
|
+
8. [Function tools (catalog)](#function-tools-catalog)
|
|
208
|
+
9. [REPL: slash commands](#repl-slash-commands)
|
|
209
|
+
10. [GemSkills](#gemskills)
|
|
210
|
+
11. [Output styles and rules](#output-styles-and-rules)
|
|
211
|
+
12. [Checkpoints, diff, and rewind](#checkpoints-diff-and-rewind)
|
|
212
|
+
13. [Multi-root workspaces (`/add-dir`)](#multi-root-workspaces-add-dir)
|
|
213
|
+
14. [Model routing and thinking](#model-routing-and-thinking)
|
|
214
|
+
15. [Capabilities](#capabilities)
|
|
215
|
+
16. [Permissions and interactive approval](#permissions-and-interactive-approval)
|
|
216
|
+
17. [Hooks](#hooks)
|
|
217
|
+
18. [Token budget, context, and compaction](#token-budget-context-and-compaction)
|
|
218
|
+
19. [MCP](#mcp)
|
|
219
|
+
20. [IDE bridge: `gemcode ide --stdio`](#ide-bridge-gemcode-ide-stdio)
|
|
220
|
+
21. [Eval harness and autotune](#eval-harness-and-autotune)
|
|
221
|
+
22. [Kaira scheduler](#kaira-scheduler)
|
|
222
|
+
23. [Live audio](#live-audio)
|
|
223
|
+
24. [Related components](#related-components)
|
|
224
|
+
25. [Environment variables](#environment-variables)
|
|
225
|
+
26. [Development and release](#development-and-release)
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## Architecture
|
|
230
|
+
|
|
231
|
+
**Outer loop (CLI / REPL / IDE):** You choose project root (`-C`), session id, model mode, capabilities, and whether mutating tools are allowed (`--yes` or HITL). GemCode builds an ADK `Runner` with an `LlmAgent` and a **tool inventory** appropriate for that config.
|
|
232
|
+
|
|
233
|
+
**Inner loop (ADK):** The model is called repeatedly. Each turn it may emit **function calls**; ADK executes them and feeds results back until the run finishes, hits `max_llm_calls`, or stops for policy or circuit-breaker reasons.
|
|
234
|
+
|
|
235
|
+
**Multi-agent (optional):** ADK agent transfer can delegate to sub-agents (e.g. explorer/verifier patterns). Disable with `GEMCODE_ADK_AGENT_TRANSFER=0` if you need a single agent only.
|
|
236
|
+
|
|
237
|
+
**Subtasks:** `run_subtask` can spawn focused child runs for parallelized work (used heavily by the built-in **`/batch`** skill pattern).
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## Requirements and install
|
|
242
|
+
|
|
243
|
+
- **Python** 3.11+
|
|
244
|
+
- **API key:** [Google AI Studio](https://aistudio.google.com/app/apikey) → `GOOGLE_API_KEY` (or `gemcode login` to store under `~/.gemcode/`)
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
cd gemcode
|
|
248
|
+
python3 -m venv .venv
|
|
249
|
+
source .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
250
|
+
pip install -e ".[dev]"
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Copy **`.env.example`** to `.env` in your project (or globally) and set at least `GOOGLE_API_KEY`.
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
## First run
|
|
258
|
+
|
|
259
|
+
1. **Workspace trust** — On first use in a directory, GemCode may ask you to **trust** the folder so file and shell tools are allowed. Trust is recorded so you are not prompted every time.
|
|
260
|
+
2. **API key** — If `GOOGLE_API_KEY` is unset in a TTY session, GemCode can prompt once and save the key (same store as `gemcode login`).
|
|
261
|
+
3. **`.gemcode/`** — Created under the project root for sessions, audit log, policy, tool results, etc.
|
|
262
|
+
|
|
263
|
+
Non-interactive environments (CI, pipes) must set `GOOGLE_API_KEY` explicitly and may need to pre-trust or set env vars that skip prompts (see `.env.example`).
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
## CLI commands
|
|
268
|
+
|
|
269
|
+
| Invocation | Purpose |
|
|
270
|
+
|------------|---------|
|
|
271
|
+
| `gemcode [prompt]` | Run one user message and print the model’s final text. Prompt omitted + TTY → **REPL**. Prompt omitted + stdin → read prompt from stdin. |
|
|
272
|
+
| `gemcode -C DIR …` | Use **DIR** as `project_root` (recommended instead of running from `~`). |
|
|
273
|
+
| `gemcode login` | Save or update the Google API key in the user credential store. |
|
|
274
|
+
| `gemcode models` (aliases: `list-models`, `list_models`) | List Gemini models (`--show-all` for full list). |
|
|
275
|
+
| `gemcode tools list` \| `gemcode tools smoke` | Inspect or validate tool declarations for a project (optional `--deep-research`, `--maps-grounding`, `--embeddings`, `--memory`). |
|
|
276
|
+
| `gemcode eval` | Run automated gates (tool smoke, `pytest` if `tests/` exists; optional `--llm` golden prompts). Writes **`.gemcode/evals/last_eval.json`**. Exit non-zero on failure. |
|
|
277
|
+
| `gemcode autotune init --tag NAME` | Create/checkout an `autotune/<NAME>` branch (scaffolding for iterative tuning). |
|
|
278
|
+
| `gemcode autotune eval` | Run eval suite and append to **`.gemcode/evals/autotune_ledger.jsonl`**. |
|
|
279
|
+
| `gemcode live-audio` | Microphone → Gemini Live API (see [Live audio](#live-audio)). |
|
|
280
|
+
| `gemcode kaira` | Stdin-line → queued jobs scheduler (see [Kaira](#kaira-scheduler)). |
|
|
281
|
+
| `gemcode ide --stdio` | **JSONL IDE protocol** on stdin/stdout for editor extensions (hidden entry; used by VS Code). |
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## Main CLI flags
|
|
286
|
+
|
|
287
|
+
| Flag | Meaning |
|
|
288
|
+
|------|---------|
|
|
289
|
+
| `-C`, `--directory` | Project root (default: current working directory). |
|
|
290
|
+
| `--session` | Session id for SQLite-backed history (reuse to continue a conversation). |
|
|
291
|
+
| `--yes` | Allow mutating tools (`write_file`, `search_replace`, …). Shell still restricted by allowlist + permission mode. |
|
|
292
|
+
| `--interactive-ask` | **HITL:** prompt in the terminal to approve each mutating tool instead of requiring `--yes` up front. |
|
|
293
|
+
| `--model` | Override default Gemini model id. |
|
|
294
|
+
| `--model-mode` | `auto\|fast\|balanced\|quality` — routing strategy (see `.env.example`). |
|
|
295
|
+
| `--deep-research` | Enable Gemini built-in search/url tools and deep-research routing. |
|
|
296
|
+
| `--maps-grounding` | Opt-in Maps grounding inside deep research (can interact badly with other built-ins on some models). |
|
|
297
|
+
| `--embeddings` | Enable semantic file search (`semantic_search_files`) and related plumbing. |
|
|
298
|
+
| `--capability-mode` | `auto\|research\|embeddings\|computer\|audio\|all` — force or hint capability bundles. |
|
|
299
|
+
| `--tool-combination-mode` | Gemini 3 **tool context circulation**: `deep_research\|always\|never\|auto`. |
|
|
300
|
+
| `--mcp` | Load MCP toolsets from `.gemcode/mcp.json` (requires `pip install -e ".[mcp]"`). |
|
|
301
|
+
| `--max-llm-calls` | Cap model↔tool iterations (`RunConfig.max_llm_calls`). |
|
|
302
|
+
|
|
303
|
+
Kaira and `live-audio` accept overlapping options (project root, `--yes`, research/embeddings, etc.); run `gemcode kaira -h` / `gemcode live-audio -h` for full lists.
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## The `.gemcode/` directory
|
|
308
|
+
|
|
309
|
+
State is **project-local** (unless noted).
|
|
310
|
+
|
|
311
|
+
| Path / artifact | Purpose |
|
|
312
|
+
|-----------------|---------|
|
|
313
|
+
| `sessions.sqlite` | ADK session service: conversation history for `--session` ids. |
|
|
314
|
+
| `audit.log` | JSONL audit: tool usage, model usage, terminal reasons, optional tool-use summaries. |
|
|
315
|
+
| `tool-results/` | Offloaded large tool outputs; references like `tool_result:<sha256>`. |
|
|
316
|
+
| `artifacts/` | File artifacts (ADK `FileArtifactService`). |
|
|
317
|
+
| `policy.json` | Self-tuning profile for dynamic token / evidence budgets. |
|
|
318
|
+
| `memories.jsonl` | Embedding-backed memory when `GEMCODE_ENABLE_MEMORY=1`. |
|
|
319
|
+
| `notes.md` | Agent notes surfaced via `/notes`. |
|
|
320
|
+
| `evals/last_eval.json` | Latest `gemcode eval` record. |
|
|
321
|
+
| `evals/autotune_ledger.jsonl` | Rows from `gemcode autotune eval`. |
|
|
322
|
+
| `skills/<name>/SKILL.md` | **GemSkills** (project-scoped; see [GemSkills](#gemskills)). |
|
|
323
|
+
| `output-styles/<name>.md` | **Output style** prompts (see [Output styles](#output-styles-and-rules)). |
|
|
324
|
+
| `rules/*.md` | **Rule** files with optional path gating (see [Rules](#output-styles-and-rules)). |
|
|
325
|
+
| `hooks/post_turn` | Optional executable **post-turn** hook (or `GEMCODE_POST_TURN_HOOK`). |
|
|
326
|
+
| `hooks/pre_tool_use`, `post_tool_use`, `session_start`, `session_stop` | Optional lifecycle hooks (executable scripts; JSON on stdin). |
|
|
327
|
+
| `settings.json` | Optional **permission rules** (`allow` / `deny` patterns for bash, etc.). |
|
|
328
|
+
| `mcp.json` | MCP server definitions when using `--mcp`. |
|
|
329
|
+
| Checkpoints | Managed by `gemcode.checkpoints` — listed and restored via `/rewind` and tools. |
|
|
330
|
+
|
|
331
|
+
User-wide overrides can live under `~/.gemcode/` (credentials, global `settings.json`, personal skills/styles/rules).
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
## Project context: `GEMINI.md`
|
|
336
|
+
|
|
337
|
+
If present at the **repository root**, `GEMINI.md` is injected into the system instruction so the model consistently sees your project goals, conventions, and boundaries.
|
|
338
|
+
|
|
339
|
+
Use **`/init`** (or `/init force`) in the REPL to scaffold or refresh `GEMINI.md` from the current tree.
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
## Function tools (catalog)
|
|
344
|
+
|
|
345
|
+
Tools are registered in `gemcode/tools/` and exposed to the model as ADK function tools. Exact availability may depend on config (e.g. memory, MCP, computer use).
|
|
346
|
+
|
|
347
|
+
### Planning and meta
|
|
348
|
+
|
|
349
|
+
| Tool | Role |
|
|
350
|
+
|------|------|
|
|
351
|
+
| `todo_write` / `todo_read` | Task lists for multi-step work. |
|
|
352
|
+
| `think` | Explicit reasoning step (useful for hard problems). |
|
|
353
|
+
|
|
354
|
+
### Filesystem and search
|
|
355
|
+
|
|
356
|
+
| Tool | Role |
|
|
357
|
+
|------|------|
|
|
358
|
+
| `read_file`, `list_directory`, `glob_files` | Read-only navigation. |
|
|
359
|
+
| `grep_content` | Ripgrep-style search (respects allowed roots). |
|
|
360
|
+
| `repo_map` | Compact symbol-oriented map of the repo. |
|
|
361
|
+
| `write_file`, `search_replace` | Mutations (require `--yes` or HITL approval in default mode). |
|
|
362
|
+
| `move_file`, `delete_file` | File tree mutations (same permission rules). |
|
|
363
|
+
|
|
364
|
+
### Shell and processes
|
|
365
|
+
|
|
366
|
+
| Tool | Role |
|
|
367
|
+
|------|------|
|
|
368
|
+
| `run_command` | Allowlisted one-shot commands. |
|
|
369
|
+
| `bash` | Pipelines and redirects; supports `background=True`. |
|
|
370
|
+
| `list_tasks`, `task_output`, `kill_task` | Background task control for `bash(..., background=True)`. |
|
|
371
|
+
|
|
372
|
+
### Notebooks
|
|
373
|
+
|
|
374
|
+
| Tool | Role |
|
|
375
|
+
|------|------|
|
|
376
|
+
| `notebook_read`, `notebook_edit` | Jupyter notebook cells. |
|
|
377
|
+
|
|
378
|
+
### Web
|
|
379
|
+
|
|
380
|
+
| Tool | Role |
|
|
381
|
+
|------|------|
|
|
382
|
+
| `web_search`, `web_fetch` | Programmatic web search and fetch (policy applies). |
|
|
383
|
+
|
|
384
|
+
### Tool results and recovery
|
|
385
|
+
|
|
386
|
+
| Tool | Role |
|
|
387
|
+
|------|------|
|
|
388
|
+
| `load_tool_result` | Load a prior offloaded blob by `tool_result:<sha>`. |
|
|
389
|
+
| `checkpoints_list`, `checkpoint_undo` | List/restore **checkpoints** after mutating operations. |
|
|
390
|
+
|
|
391
|
+
### Memory and skills
|
|
392
|
+
|
|
393
|
+
| Tool | Role |
|
|
394
|
+
|------|------|
|
|
395
|
+
| `remember_fact`, `read_curated_memory` | Curated, safe-to-inject persistent notes (separate from full session memory). |
|
|
396
|
+
| `list_skills`, `load_skill`, `skills_manifest` | Discover and load **GemSkills** on demand. |
|
|
397
|
+
| `load_memory` | (When memory enabled) ADK on-demand memory search. |
|
|
398
|
+
|
|
399
|
+
### Parallelism
|
|
400
|
+
|
|
401
|
+
| Tool | Role |
|
|
402
|
+
|------|------|
|
|
403
|
+
| `run_subtask` | Spawn a focused sub-run for isolated tasks (used by `/batch` patterns). |
|
|
404
|
+
|
|
405
|
+
### Optional bundles (not in the minimal core list above)
|
|
406
|
+
|
|
407
|
+
- **Deep research:** `google_search`, `url_context`, optional `google_maps_grounding`.
|
|
408
|
+
- **Embeddings:** `semantic_search_files`; with memory, embedding-backed storage.
|
|
409
|
+
- **Computer use:** ADK `ComputerUseToolset` + Playwright (separate install and flags).
|
|
410
|
+
- **MCP:** Tools loaded from configured servers.
|
|
411
|
+
|
|
412
|
+
**Vendor file policy:** Writes to certain vendor-specific instruction filenames (e.g. `CLAUDE.md`, `AGENTS.md`) are blocked; use project conventions like `GEMINI.md` and curated memory files instead.
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
## REPL: slash commands
|
|
417
|
+
|
|
418
|
+
In interactive mode, lines starting with `/` are **slash commands** (see `repl_commands.py` and `tui/input_handler.py` for the full set). Below is a grouped reference.
|
|
419
|
+
|
|
420
|
+
### Project and context
|
|
421
|
+
|
|
422
|
+
| Command | Purpose |
|
|
423
|
+
|---------|---------|
|
|
424
|
+
| `/init` \| `/init force` | Analyze the repo and generate or overwrite `GEMINI.md`. |
|
|
425
|
+
| `/cost` | Token usage and estimated cost for the session. |
|
|
426
|
+
| `/notes`, `/notes clear`, `/notes edit` | View, clear, or edit `.gemcode/notes.md`. |
|
|
427
|
+
| `/create gemskill <name> [description]` | Scaffold `.gemcode/skills/<name>/SKILL.md`. |
|
|
428
|
+
| `/style`, `/style <name>\|off` | List or activate **output styles** (`.gemcode/output-styles/*.md`). |
|
|
429
|
+
| `/rules` | Show **rule** files from `.gemcode/rules/` (with path gating). |
|
|
430
|
+
| `/diff`, `/diff last`, `/diff cp_…` | Git diff, or **checkpoint → workspace** diff. |
|
|
431
|
+
| `/rewind` \| `/checkpoint` | List or restore **checkpoints**. |
|
|
432
|
+
| `/add-dir`, `/add-dir list`, `/add-dir remove <name>` | Add extra read/search roots (**multi-root**). |
|
|
433
|
+
| `/batch <goal>` | Run the built-in **batch** orchestration skill (large parallel changes). |
|
|
434
|
+
|
|
435
|
+
### Session and diagnostics
|
|
436
|
+
|
|
437
|
+
| Command | Purpose |
|
|
438
|
+
|---------|---------|
|
|
439
|
+
| `/help` | Short help. |
|
|
440
|
+
| `/status` | Model, capabilities, thinking, limits, risk/context telemetry. |
|
|
441
|
+
| `/config` | Dump active config fields. |
|
|
442
|
+
| `/session`, `/session list`, `/session name`, `/session resume`, `/session new` | Session management; `/clear` aliases `/session new`. |
|
|
443
|
+
| `/compact`, `/compact <focus>` | Force context compaction / summarization. |
|
|
444
|
+
| `/review`, `/review <path>` | Parallel code review pass. |
|
|
445
|
+
| `/context` | Context pressure and token breakdown (includes styles, rules, skills manifest, touched paths). |
|
|
446
|
+
| `/audit [N]` | Tail of `audit.log`. |
|
|
447
|
+
| `/tools` | Tool inventory for current config. |
|
|
448
|
+
| `/doctor` | Environment sanity check. |
|
|
449
|
+
| `/version` | Version string. |
|
|
450
|
+
| `/exit` | Leave the REPL. |
|
|
451
|
+
|
|
452
|
+
### Model
|
|
453
|
+
|
|
454
|
+
| Command | Purpose |
|
|
455
|
+
|---------|---------|
|
|
456
|
+
| `/model`, `/model use <id>`, `/model list` | Show or set model; list Gemini ids. |
|
|
457
|
+
| `/mode`, `/mode <fast\|balanced\|quality\|auto>` | Model mode strategy. |
|
|
458
|
+
|
|
459
|
+
### Capabilities
|
|
460
|
+
|
|
461
|
+
| Command | Purpose |
|
|
462
|
+
|---------|---------|
|
|
463
|
+
| `/computer`, `/computer on\|off`, `/computer url` | Browser automation (Playwright). |
|
|
464
|
+
| `/research`, `/research on\|off` | Deep research tools. |
|
|
465
|
+
| `/embeddings on\|off` | Semantic search tool. |
|
|
466
|
+
| `/caps`, `/caps …` | View or bulk-toggle capabilities. |
|
|
467
|
+
| `/memory`, `/memory on\|off` | Persistent memory. |
|
|
468
|
+
|
|
469
|
+
### Thinking and limits
|
|
470
|
+
|
|
471
|
+
| Command | Purpose |
|
|
472
|
+
|---------|---------|
|
|
473
|
+
| `/thinking …` | Verbose/brief/off, budget/level for Gemini 2.5/3.x. |
|
|
474
|
+
| `/limits`, `/limits calls <N>` | Execution limits. |
|
|
475
|
+
| `/budget`, `/budget <N>\|off` | Per-turn token budget. |
|
|
476
|
+
|
|
477
|
+
### Other
|
|
478
|
+
|
|
479
|
+
| Command | Purpose |
|
|
480
|
+
|---------|---------|
|
|
481
|
+
| `/permissions` | Permission mode and HITL settings. |
|
|
482
|
+
| `/hooks` | Post-turn and lifecycle hook paths. |
|
|
483
|
+
| `/kaira` | How to run the **Kaira** daemon. |
|
|
484
|
+
| `/code on\|off` | Sandboxed Python executor (ADK `BuiltInCodeExecutor`). |
|
|
485
|
+
| `/plan on\|off` | Plan-before-act mode. |
|
|
486
|
+
|
|
487
|
+
The TUI (when `GEMCODE_TUI=1` and terminal supports it) provides **slash completion** and a scrollback-style UI.
|
|
488
|
+
|
|
489
|
+
---
|
|
490
|
+
|
|
491
|
+
## GemSkills
|
|
492
|
+
|
|
493
|
+
**GemSkills** are reusable markdown playbooks with optional YAML frontmatter.
|
|
494
|
+
|
|
495
|
+
- **Locations:** `.gemcode/skills/<name>/SKILL.md` (project), `~/.gemcode/skills/<name>/SKILL.md` (user).
|
|
496
|
+
- **Discovery:** Only **metadata** (name + description) is preloaded into context for token efficiency. Full body loads **on demand** via `/skill <name>`, `/<name>`, or tools `load_skill` / `list_skills`.
|
|
497
|
+
- **Built-in:** **`batch`** — parallel large-change workflow (map → units → `run_subtask` → verify). Exposed as `/batch <goal>`; not auto-invoked by the model (`disable_model_invocation`).
|
|
498
|
+
|
|
499
|
+
Use **`/create gemskill <name>`** to scaffold a new skill directory.
|
|
500
|
+
|
|
501
|
+
---
|
|
502
|
+
|
|
503
|
+
## Output styles and rules
|
|
504
|
+
|
|
505
|
+
### Output styles
|
|
506
|
+
|
|
507
|
+
- **Paths:** `.gemcode/output-styles/<name>.md` or `~/.gemcode/output-styles/<name>.md` (project wins on name clash).
|
|
508
|
+
- **Names:** lowercase letters, digits, hyphens (e.g. `concise-bullets.md` → `concise-bullets`).
|
|
509
|
+
- **REPL:** `/style` lists styles; `/style <name>` applies for the session; `/style off` clears.
|
|
510
|
+
- **Env:** `GEMCODE_OUTPUT_STYLE` or session config `cfg.output_style`.
|
|
511
|
+
|
|
512
|
+
### Rules
|
|
513
|
+
|
|
514
|
+
- **Paths:** `.gemcode/rules/*.md` and `~/.gemcode/rules/*.md`.
|
|
515
|
+
- **Frontmatter:** Optional `paths:` list — rules can apply only when touched paths match (gating).
|
|
516
|
+
- **REPL:** `/rules` shows what is loaded.
|
|
517
|
+
|
|
518
|
+
---
|
|
519
|
+
|
|
520
|
+
## Checkpoints, diff, and rewind
|
|
521
|
+
|
|
522
|
+
Mutating tools participate in a **checkpoint** system so you can compare and roll back.
|
|
523
|
+
|
|
524
|
+
- **Tools:** `checkpoints_list`, `checkpoint_undo`.
|
|
525
|
+
- **REPL:** `/diff` shows `git diff` when inside a git repo; outside git or when you need history, `/diff last` or `/diff cp_<id>` compares **checkpoint vs workspace**.
|
|
526
|
+
- **REPL:** `/rewind` (alias `/checkpoint`) lists or restores checkpoints.
|
|
527
|
+
|
|
528
|
+
---
|
|
529
|
+
|
|
530
|
+
## Multi-root workspaces (`/add-dir`)
|
|
531
|
+
|
|
532
|
+
Some projects span multiple directories. **`/add-dir <path>`** registers additional roots for **read/search** operations with path safety checks (`resolve_under_allowed_roots`). Use `/add-dir list` and `/add-dir remove <name>` to manage them.
|
|
533
|
+
|
|
534
|
+
---
|
|
535
|
+
|
|
536
|
+
## Model routing and thinking
|
|
537
|
+
|
|
538
|
+
- **`GEMCODE_MODEL`**, **`GEMCODE_MODEL_MODE`** (`fast`, `balanced`, `quality`, `auto`), and family toggles **`GEMCODE_MODEL_FAMILY_MODE`** (`primary`, `alt`, `auto`) select among Gemini 3.x vs 2.5 defaults.
|
|
539
|
+
- **Thinking:** For Gemini 3.x, `GEMCODE_THINKING_LEVEL` and related env vars; for 2.5, thinking budget. `/thinking` in the REPL adjusts behavior; `GEMCODE_DISABLE_THINKING`, `GEMCODE_INCLUDE_THOUGHT_SUMMARIES` affect cost and verbosity.
|
|
540
|
+
|
|
541
|
+
See `.env.example` for the full matrix.
|
|
542
|
+
|
|
543
|
+
---
|
|
544
|
+
|
|
545
|
+
## Capabilities
|
|
546
|
+
|
|
547
|
+
| Capability | Enable | Notes |
|
|
548
|
+
|------------|--------|--------|
|
|
549
|
+
| Deep research | `--deep-research`, `GEMCODE_ENABLE_DEEP_RESEARCH` | `google_search`, `url_context`; optional Maps. |
|
|
550
|
+
| Embeddings | `--embeddings`, `GEMCODE_ENABLE_EMBEDDINGS` | `semantic_search_files`. |
|
|
551
|
+
| Memory | `GEMCODE_ENABLE_MEMORY` | File-backed memories + optional `load_memory`. |
|
|
552
|
+
| Computer use | `GEMCODE_ENABLE_COMPUTER_USE` / `--capability-mode computer` | Playwright; requires install + permissions. |
|
|
553
|
+
| Audio (live) | `gemcode live-audio` | Separate streaming path. |
|
|
554
|
+
|
|
555
|
+
**Capability routing** (`--capability-mode` or `GEMCODE_CAPABILITY_MODE`) can bundle tools and route to role-specific models when configured.
|
|
556
|
+
|
|
557
|
+
---
|
|
558
|
+
|
|
559
|
+
## Permissions and interactive approval
|
|
560
|
+
|
|
561
|
+
- **`GEMCODE_PERMISSION_MODE`:** `default` vs `strict` (strict denies writes and shell unless explicitly allowlisted).
|
|
562
|
+
- **`--yes`:** Treat as approval for mutating tools for that process.
|
|
563
|
+
- **`--interactive-ask` / `GEMCODE_INTERACTIVE_PERMISSION_ASK`:** Prompt **in-run** for each sensitive tool call if `--yes` was not passed.
|
|
564
|
+
- **Settings:** `.gemcode/settings.json` and `~/.gemcode/settings.json` can **allow** / **deny** patterns (see `/permissions` output).
|
|
565
|
+
- Policy denials **do not** increment the consecutive-failure circuit breaker.
|
|
566
|
+
|
|
567
|
+
---
|
|
568
|
+
|
|
569
|
+
## Hooks
|
|
570
|
+
|
|
571
|
+
- **Post-turn:** `GEMCODE_POST_TURN_HOOK` or executable `.gemcode/hooks/post_turn`.
|
|
572
|
+
- **Lifecycle:** Optional executable scripts `pre_tool_use`, `post_tool_use`, `session_start`, `session_stop` under `.gemcode/hooks/` (with optional `.sh`/`.py` suffix). They receive **JSON on stdin**; `pre_tool_use` can deny a tool with non-zero exit.
|
|
573
|
+
|
|
574
|
+
---
|
|
575
|
+
|
|
576
|
+
## Token budget, context, and compaction
|
|
577
|
+
|
|
578
|
+
GemCode uses **dynamic token policy** (context pressure + task risk), **tool result offloading**, optional **ADK event compaction**, optional **MVP compaction** of `Content` items, and session ceilings (`GEMCODE_MAX_SESSION_TOKENS`, `GEMCODE_TOKEN_BUDGET`). Key toggles:
|
|
579
|
+
|
|
580
|
+
- `GEMCODE_DYNAMIC_TOKEN_POLICY`, `GEMCODE_DYNAMIC_RISK_POLICY`, `GEMCODE_TOOL_RESULT_OFFLOAD`
|
|
581
|
+
- `GEMCODE_AUTOCOMPACT`, `GEMCODE_ADK_EVENTS_COMPACTION`, etc.
|
|
582
|
+
|
|
583
|
+
`/status` and `/context` surface live telemetry (`risk_score`, `context_percent_left`, …).
|
|
584
|
+
|
|
585
|
+
---
|
|
586
|
+
|
|
587
|
+
## MCP
|
|
588
|
+
|
|
589
|
+
1. Install: `pip install -e ".[mcp]"`.
|
|
590
|
+
2. Configure **`.gemcode/mcp.json`** (see `mcp_loader.py`).
|
|
591
|
+
3. Run with **`--mcp`** so configured toolsets attach to the runner.
|
|
592
|
+
|
|
593
|
+
---
|
|
594
|
+
|
|
595
|
+
## IDE bridge: `gemcode ide --stdio`
|
|
596
|
+
|
|
597
|
+
Editor extensions (including the official VS Code extension) spawn:
|
|
598
|
+
|
|
599
|
+
```bash
|
|
600
|
+
gemcode ide --stdio
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
and speak a **JSONL protocol** (`ide_protocol.py`, `ide_stdio.py`) for chat, tool proposals, diffs, apply/undo, and checkpoints — without the extension writing files unless the user confirms.
|
|
604
|
+
|
|
605
|
+
---
|
|
606
|
+
|
|
607
|
+
## Eval harness and autotune
|
|
608
|
+
|
|
609
|
+
| Command | Purpose |
|
|
610
|
+
|---------|---------|
|
|
611
|
+
| `gemcode eval [-C DIR] [--llm] [--model M]` | Run gates; write `.gemcode/evals/last_eval.json`; exit `1` on failure. |
|
|
612
|
+
| `gemcode autotune init --tag NAME [-C DIR]` | Git branch scaffolding for experiments. |
|
|
613
|
+
| `gemcode autotune eval …` | Eval + append **ledger** JSONL with git metadata. |
|
|
614
|
+
|
|
615
|
+
Use **`--llm`** sparingly; it runs golden prompts and costs tokens.
|
|
616
|
+
|
|
617
|
+
---
|
|
618
|
+
|
|
619
|
+
## Kaira scheduler
|
|
620
|
+
|
|
621
|
+
```bash
|
|
622
|
+
gemcode kaira [-C DIR] [--concurrency N] [--yes] [--interactive-ask] …
|
|
623
|
+
```
|
|
624
|
+
|
|
625
|
+
Reads **one prompt per line** from stdin; jobs run on a priority queue. The model may enqueue more work via Kaira tools (`kaira_enqueue_prompt`, `kaira_sleep_ms`). See `/kaira` in the REPL for a short usage summary.
|
|
626
|
+
|
|
627
|
+
---
|
|
628
|
+
|
|
629
|
+
## Live audio
|
|
630
|
+
|
|
631
|
+
```bash
|
|
632
|
+
gemcode live-audio [-C DIR] [--seconds N] [--rate HZ] [--language CODE] [--model M] …
|
|
633
|
+
```
|
|
634
|
+
|
|
635
|
+
Streams microphone audio to the **Gemini Live** API. Requires optional dependencies (`sounddevice`, `numpy`). Intended for voice-driven sessions, not file editing by default.
|
|
636
|
+
|
|
637
|
+
---
|
|
638
|
+
|
|
639
|
+
## Related components
|
|
640
|
+
|
|
641
|
+
| Component | Role |
|
|
642
|
+
|-----------|------|
|
|
643
|
+
| **VS Code extension** (`gemcode-vscode/`) | Launch CLI, sidebar control center, Chat + diff apply, `gemcode ide --stdio`. |
|
|
644
|
+
| **Web API** (`gemcode-web-api/`) | Example Node server: terminals, env wiring; can integrate with SSE chat adapters. |
|
|
645
|
+
| **Web UI contract** (`docs/web-ui-contract.md`) | Documented **SSE / `POST /api/chat`** expectations for compatible frontends. |
|
|
646
|
+
|
|
647
|
+
---
|
|
648
|
+
|
|
649
|
+
## Environment variables
|
|
650
|
+
|
|
651
|
+
The canonical commented list is **`gemcode/.env.example`**. It covers:
|
|
652
|
+
|
|
653
|
+
- Models, modes, and family routing
|
|
654
|
+
- Capabilities (research, embeddings, computer, audio)
|
|
655
|
+
- Permissions, HITL, allowlists
|
|
656
|
+
- Context windows, compaction, autocompact, ADK compaction
|
|
657
|
+
- Tool output limits, audit, hooks, MCP, verbose errors
|
|
658
|
+
|
|
659
|
+
Set variables in the shell, in a `.env` file at the project root, or in CI secrets — **never commit API keys**.
|
|
660
|
+
|
|
661
|
+
---
|
|
662
|
+
|
|
663
|
+
## Development and release
|
|
664
|
+
|
|
665
|
+
```bash
|
|
666
|
+
pip install -e ".[dev]"
|
|
667
|
+
pytest
|
|
668
|
+
```
|
|
669
|
+
|
|
670
|
+
### Release workflow (tags → PyPI)
|
|
671
|
+
|
|
672
|
+
The repo can publish to PyPI on **`v*`** tags (see `.github/workflows/publish-pypi.yml`).
|
|
673
|
+
|
|
674
|
+
```bash
|
|
675
|
+
# Bump version in gemcode/pyproject.toml, then:
|
|
676
|
+
git add -A
|
|
677
|
+
git commit -m "release: vX.Y.Z"
|
|
678
|
+
git tag -a vX.Y.Z -m "vX.Y.Z"
|
|
679
|
+
git push origin HEAD
|
|
680
|
+
git push origin vX.Y.Z
|
|
681
|
+
```
|
|
682
|
+
|
|
683
|
+
---
|
|
684
|
+
|
|
685
|
+
## References
|
|
686
|
+
|
|
687
|
+
- [Google ADK documentation](https://google.github.io/adk-docs/)
|
|
688
|
+
- [Google AI Studio](https://aistudio.google.com/) — API keys
|
|
689
|
+
- Do not commit proprietary leaked trees into this package; keep reference clones private if used.
|