tala-ai 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tala_ai-3.0.0/.gitignore +16 -0
- tala_ai-3.0.0/CHANGELOG.md +30 -0
- tala_ai-3.0.0/LICENSE +202 -0
- tala_ai-3.0.0/NOTICE +7 -0
- tala_ai-3.0.0/PKG-INFO +232 -0
- tala_ai-3.0.0/README.md +184 -0
- tala_ai-3.0.0/docs/architecture.md +102 -0
- tala_ai-3.0.0/docs/configuration.md +86 -0
- tala_ai-3.0.0/docs/from-v2.md +40 -0
- tala_ai-3.0.0/docs/pack-authoring.md +183 -0
- tala_ai-3.0.0/docs/performance.md +46 -0
- tala_ai-3.0.0/docs/publishing.md +69 -0
- tala_ai-3.0.0/docs/safety.md +56 -0
- tala_ai-3.0.0/docs/setup.md +151 -0
- tala_ai-3.0.0/install.ps1 +109 -0
- tala_ai-3.0.0/install.sh +69 -0
- tala_ai-3.0.0/pyproject.toml +146 -0
- tala_ai-3.0.0/scripts/convert_v2_packs.py +275 -0
- tala_ai-3.0.0/src/assistant/__init__.py +3 -0
- tala_ai-3.0.0/src/assistant/__main__.py +3 -0
- tala_ai-3.0.0/src/assistant/agent/__init__.py +7 -0
- tala_ai-3.0.0/src/assistant/agent/fastpath.py +48 -0
- tala_ai-3.0.0/src/assistant/agent/graph.py +60 -0
- tala_ai-3.0.0/src/assistant/agent/nodes.py +545 -0
- tala_ai-3.0.0/src/assistant/agent/prompts.py +59 -0
- tala_ai-3.0.0/src/assistant/agent/state.py +35 -0
- tala_ai-3.0.0/src/assistant/bootstrap.py +141 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/adb.yaml +933 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/docker.yaml +125 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/fastboot.yaml +101 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/fileops.yaml +288 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/files.yaml +23 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/firewall.yaml +60 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/git.yaml +123 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/git_extras.yaml +119 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/github.yaml +97 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/java.yaml +110 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/languages.yaml +152 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/logs.yaml +51 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/netdiag.yaml +76 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/network.yaml +142 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/node.yaml +56 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/npm.yaml +173 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/packagemanagers.yaml +174 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/powercfg.yaml +62 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/processes.yaml +56 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/python.yaml +208 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/schtasks.yaml +50 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/scrcpy.yaml +21 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/services.yaml +95 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/ssh.yaml +35 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/system.yaml +151 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/web.yaml +48 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/wevtutil.yaml +40 -0
- tala_ai-3.0.0/src/assistant/builtin_packs/winget.yaml +157 -0
- tala_ai-3.0.0/src/assistant/cli/__init__.py +1 -0
- tala_ai-3.0.0/src/assistant/cli/app.py +550 -0
- tala_ai-3.0.0/src/assistant/cli/prompter.py +49 -0
- tala_ai-3.0.0/src/assistant/cli/render.py +119 -0
- tala_ai-3.0.0/src/assistant/cli/setup_cmd.py +177 -0
- tala_ai-3.0.0/src/assistant/config/__init__.py +34 -0
- tala_ai-3.0.0/src/assistant/config/paths.py +70 -0
- tala_ai-3.0.0/src/assistant/config/settings.py +187 -0
- tala_ai-3.0.0/src/assistant/config/trust.py +55 -0
- tala_ai-3.0.0/src/assistant/domain/__init__.py +54 -0
- tala_ai-3.0.0/src/assistant/domain/branding.py +25 -0
- tala_ai-3.0.0/src/assistant/domain/errors.py +27 -0
- tala_ai-3.0.0/src/assistant/domain/events.py +75 -0
- tala_ai-3.0.0/src/assistant/domain/execution.py +48 -0
- tala_ai-3.0.0/src/assistant/domain/original.py +29 -0
- tala_ai-3.0.0/src/assistant/domain/platform.py +24 -0
- tala_ai-3.0.0/src/assistant/domain/risk.py +22 -0
- tala_ai-3.0.0/src/assistant/domain/tool.py +244 -0
- tala_ai-3.0.0/src/assistant/evaluation/__init__.py +22 -0
- tala_ai-3.0.0/src/assistant/evaluation/cases.py +37 -0
- tala_ai-3.0.0/src/assistant/evaluation/golden.yaml +111 -0
- tala_ai-3.0.0/src/assistant/evaluation/runner.py +182 -0
- tala_ai-3.0.0/src/assistant/llm/__init__.py +20 -0
- tala_ai-3.0.0/src/assistant/llm/factory.py +83 -0
- tala_ai-3.0.0/src/assistant/llm/health.py +82 -0
- tala_ai-3.0.0/src/assistant/llm/warmup.py +65 -0
- tala_ai-3.0.0/src/assistant/memory/__init__.py +13 -0
- tala_ai-3.0.0/src/assistant/memory/checkpointer.py +15 -0
- tala_ai-3.0.0/src/assistant/memory/facts.py +60 -0
- tala_ai-3.0.0/src/assistant/memory/history.py +68 -0
- tala_ai-3.0.0/src/assistant/packs/__init__.py +17 -0
- tala_ai-3.0.0/src/assistant/packs/issues.py +28 -0
- tala_ai-3.0.0/src/assistant/packs/loader.py +131 -0
- tala_ai-3.0.0/src/assistant/packs/registry.py +73 -0
- tala_ai-3.0.0/src/assistant/packs/validator.py +45 -0
- tala_ai-3.0.0/src/assistant/retrieval/__init__.py +6 -0
- tala_ai-3.0.0/src/assistant/retrieval/index.py +368 -0
- tala_ai-3.0.0/src/assistant/retrieval/text.py +28 -0
- tala_ai-3.0.0/src/assistant/safety/__init__.py +17 -0
- tala_ai-3.0.0/src/assistant/safety/audit.py +48 -0
- tala_ai-3.0.0/src/assistant/safety/fencing.py +28 -0
- tala_ai-3.0.0/src/assistant/safety/policy.py +71 -0
- tala_ai-3.0.0/src/assistant/service.py +243 -0
- tala_ai-3.0.0/src/assistant/setup/__init__.py +53 -0
- tala_ai-3.0.0/src/assistant/setup/apply.py +73 -0
- tala_ai-3.0.0/src/assistant/setup/catalog.py +71 -0
- tala_ai-3.0.0/src/assistant/setup/catalog.yaml +90 -0
- tala_ai-3.0.0/src/assistant/setup/choices.py +124 -0
- tala_ai-3.0.0/src/assistant/setup/hardware.py +175 -0
- tala_ai-3.0.0/src/assistant/setup/planner.py +176 -0
- tala_ai-3.0.0/src/assistant/setup/wizard.py +324 -0
- tala_ai-3.0.0/src/assistant/tools/__init__.py +16 -0
- tala_ai-3.0.0/src/assistant/tools/arguments.py +97 -0
- tala_ai-3.0.0/src/assistant/tools/executor.py +69 -0
- tala_ai-3.0.0/src/assistant/tools/rendering.py +51 -0
- tala_ai-3.0.0/src/assistant/tools/runner.py +168 -0
- tala_ai-3.0.0/tests/__init__.py +0 -0
- tala_ai-3.0.0/tests/conftest.py +79 -0
- tala_ai-3.0.0/tests/support.py +125 -0
- tala_ai-3.0.0/tests/test_agent_flow.py +408 -0
- tala_ai-3.0.0/tests/test_architecture.py +14 -0
- tala_ai-3.0.0/tests/test_arguments_and_rendering.py +112 -0
- tala_ai-3.0.0/tests/test_branding.py +45 -0
- tala_ai-3.0.0/tests/test_builtin_packs.py +179 -0
- tala_ai-3.0.0/tests/test_cli.py +88 -0
- tala_ai-3.0.0/tests/test_domain_tool.py +135 -0
- tala_ai-3.0.0/tests/test_evaluation.py +81 -0
- tala_ai-3.0.0/tests/test_fast_path.py +168 -0
- tala_ai-3.0.0/tests/test_llm_and_cli_ui.py +321 -0
- tala_ai-3.0.0/tests/test_memory_and_config.py +137 -0
- tala_ai-3.0.0/tests/test_original_output.py +121 -0
- tala_ai-3.0.0/tests/test_packaging.py +114 -0
- tala_ai-3.0.0/tests/test_packs.py +149 -0
- tala_ai-3.0.0/tests/test_retrieval.py +183 -0
- tala_ai-3.0.0/tests/test_runner.py +82 -0
- tala_ai-3.0.0/tests/test_safety.py +116 -0
- tala_ai-3.0.0/tests/test_setup.py +670 -0
- tala_ai-3.0.0/tests/test_setup_cli.py +271 -0
- tala_ai-3.0.0/tests/test_trust.py +48 -0
tala_ai-3.0.0/.gitignore
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
Complete rebuild of the v2 prototype. See [docs/from-v2.md](docs/from-v2.md).
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- One-line installers (`install.ps1`, `install.sh`) and a first-run setup wizard (`tala setup`):
|
|
9
|
+
hardware detection, default or advanced setup from a curated model catalog, memory estimates,
|
|
10
|
+
resource warnings, safe config merging with backup, and guided model downloads.
|
|
11
|
+
- LangChain + LangGraph agent: route, executor loop (bounded), authorize (interrupt), run, summarize.
|
|
12
|
+
- Pack format with logical tools, per-OS variants, typed parameters with constraints, conditional
|
|
13
|
+
arguments, defaults, layered pack directories, strict loader and `tala packs validate`.
|
|
14
|
+
- About 200 builtin tools: system, processes, network and files (cross-platform) plus git (and GitHub CLI),
|
|
15
|
+
docker, adb, fastboot, Python/pip/uv, Java/Maven/Gradle, Node/Yarn/pnpm, .NET/Go/Rust/Ruby, curl, SSH,
|
|
16
|
+
firewall, services, apt/Homebrew/Chocolatey, system logs, file reading, searching, hashing, copying
|
|
17
|
+
and archiving, and winget, powercfg, schtasks and wevtutil on Windows.
|
|
18
|
+
- Summary-first output for content-heavy tools (web pages, files, logs, diffs): the reply ends with an offer
|
|
19
|
+
of the original output, which a "yes" shows verbatim (pack key `offer_original`, setting
|
|
20
|
+
`runtime.offer_original_output`).
|
|
21
|
+
- Hybrid tool retrieval (FTS5 BM25 + sqlite-vec, RRF) with confidence-driven routing.
|
|
22
|
+
- Safety: mandatory risk, policy engine, exact-command approval, untrusted-output fencing, audit log,
|
|
23
|
+
bounded subprocess execution with tree kill.
|
|
24
|
+
- Session persistence (SQLite checkpoints), history budgeting, long-term facts.
|
|
25
|
+
- Typed event service API; Typer/rich CLI (`chat`, `ask`, `packs`, `facts`, `audit`, `doctor`, `eval`).
|
|
26
|
+
- Golden-set evaluation (retrieval and live agent), architecture contract tests, CI matrix.
|
|
27
|
+
|
|
28
|
+
### Removed
|
|
29
|
+
- `scrcpy_mirror`, `scrcpy_mirror_screen_off` (long-running GUI processes).
|
|
30
|
+
- The v2 `FileSystemGateway` (unused).
|
tala_ai-3.0.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
tala_ai-3.0.0/NOTICE
ADDED
tala_ai-3.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: tala-ai
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: Local, OS-agnostic desktop AI assistant: YAML tool packs, LangGraph agent, Ollama.
|
|
5
|
+
Project-URL: Homepage, https://github.com/AchinthaShiran/Tala
|
|
6
|
+
Project-URL: Source, https://github.com/AchinthaShiran/Tala
|
|
7
|
+
Project-URL: Issues, https://github.com/AchinthaShiran/Tala/issues
|
|
8
|
+
Project-URL: Changelog, https://github.com/AchinthaShiran/Tala/blob/main/CHANGELOG.md
|
|
9
|
+
Project-URL: Documentation, https://github.com/AchinthaShiran/Tala/tree/main/docs
|
|
10
|
+
Author: Achintha Bandara
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: NOTICE
|
|
14
|
+
Keywords: ai,assistant,cli,desktop-assistant,langchain,langgraph,local-llm,ollama,tool-calling
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
19
|
+
Classifier: Operating System :: MacOS
|
|
20
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
21
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
22
|
+
Classifier: Programming Language :: Python :: 3
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
28
|
+
Classifier: Topic :: Utilities
|
|
29
|
+
Requires-Python: >=3.11
|
|
30
|
+
Requires-Dist: langchain-core<2,>=1.0
|
|
31
|
+
Requires-Dist: langchain-ollama<2,>=1.0
|
|
32
|
+
Requires-Dist: langgraph-checkpoint-sqlite<4,>=3.0
|
|
33
|
+
Requires-Dist: langgraph<2,>=1.0
|
|
34
|
+
Requires-Dist: platformdirs>=4.2
|
|
35
|
+
Requires-Dist: pydantic<3,>=2.7
|
|
36
|
+
Requires-Dist: pyyaml>=6.0
|
|
37
|
+
Requires-Dist: rich>=13.7
|
|
38
|
+
Requires-Dist: sqlite-vec>=0.1.6
|
|
39
|
+
Requires-Dist: typer>=0.12
|
|
40
|
+
Provides-Extra: dev
|
|
41
|
+
Requires-Dist: import-linter>=2.0; extra == 'dev'
|
|
42
|
+
Requires-Dist: mypy>=1.11; extra == 'dev'
|
|
43
|
+
Requires-Dist: pytest-cov>=5; extra == 'dev'
|
|
44
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
45
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
46
|
+
Requires-Dist: types-pyyaml; extra == 'dev'
|
|
47
|
+
Description-Content-Type: text/markdown
|
|
48
|
+
|
|
49
|
+
# Tala
|
|
50
|
+
|
|
51
|
+
A local, OS-agnostic AI assistant for your PC. Chat in plain language; a local model (via
|
|
52
|
+
[Ollama](https://ollama.com)) picks and runs **tools** defined in simple YAML files called **packs**.
|
|
53
|
+
Nothing leaves your machine, and nothing risky runs without your approval.
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
You: how much free disk space do I have?
|
|
57
|
+
→ disk_free (read_only) powershell -NoProfile ... Get-PSDrive ...
|
|
58
|
+
✓ disk_free · 1093 ms
|
|
59
|
+
Assistant: Drive C has 9.2 GB free and drive D has 66.9 GB free.
|
|
60
|
+
|
|
61
|
+
You: stop the docker container web
|
|
62
|
+
╭──────────── Approval needed ────────────╮
|
|
63
|
+
│ docker_stop mutating │
|
|
64
|
+
│ command: /usr/bin/docker stop web │
|
|
65
|
+
╰─────────────────────────────────────────╯
|
|
66
|
+
Run it? [y/N]
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Why it is built this way
|
|
70
|
+
|
|
71
|
+
| Goal | How |
|
|
72
|
+
| --- | --- |
|
|
73
|
+
| **Add capabilities with YAML only** | Drop a file in a pack directory. No Python, no restart of design. See [pack authoring](docs/pack-authoring.md). |
|
|
74
|
+
| **Works on Windows, Linux and macOS** | One *logical* tool (`ping_host`) with per-OS command variants. Tools whose executable is missing are never offered to the model. |
|
|
75
|
+
| **Safe by default** | Mandatory risk level per tool, approval policy, exact command shown, no shell, argument constraints, untrusted-output fencing, audit log. See [safety](docs/safety.md). |
|
|
76
|
+
| **Runs on small local models** | Hybrid keyword + vector tool retrieval offers the model 4-8 tools instead of 100; arguments are validated and repaired; chat never loads the tool machinery. |
|
|
77
|
+
| **Engineered to grow** | LangChain + LangGraph agent, typed event API for any front end, layered architecture enforced by tests. See [architecture](docs/architecture.md). |
|
|
78
|
+
|
|
79
|
+
## Quick start
|
|
80
|
+
|
|
81
|
+
You need [Ollama](https://ollama.com/download) running locally.
|
|
82
|
+
|
|
83
|
+
**One-line install** (installs into an isolated environment, then starts the setup wizard):
|
|
84
|
+
|
|
85
|
+
```powershell
|
|
86
|
+
irm https://raw.githubusercontent.com/AchinthaShiran/Tala/main/install.ps1 | iex # Windows
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
```sh
|
|
90
|
+
curl -fsSL https://raw.githubusercontent.com/AchinthaShiran/Tala/main/install.sh | sh # macOS / Linux
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**Or from PyPI** (needs Python 3.11 or newer, not a specific version):
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
pipx install tala-ai # or: uv tool install tala-ai
|
|
97
|
+
tala setup
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**From a clone:**
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
python -m venv .venv && . .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
104
|
+
pip install -e ".[dev]"
|
|
105
|
+
tala setup # pick Default or Advanced; detects your hardware and warns about heavy models
|
|
106
|
+
tala chat # start talking
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
`tala setup` offers three setups: **Default** (one fixed, conservative configuration, the same everywhere),
|
|
110
|
+
**Recommended** (tailored to your detected hardware) and **Advanced** (choose models, context size, memory
|
|
111
|
+
use, approval rules and speed options from curated sets, with warnings when a choice will strain your
|
|
112
|
+
machine). Whichever you pick, the full settings are shown and you confirm before anything is applied. It
|
|
113
|
+
also offers itself the first time you run `tala chat`. Details: [docs/setup.md](docs/setup.md).
|
|
114
|
+
`tala doctor` re-checks everything at any time.
|
|
115
|
+
|
|
116
|
+
Other commands:
|
|
117
|
+
|
|
118
|
+
| Command | Purpose |
|
|
119
|
+
| --- | --- |
|
|
120
|
+
| `tala setup [--default\|--recommended\|--advanced] [--check]` | First-run wizard: hardware-aware setup and model downloads |
|
|
121
|
+
| `tala ask "..."` | One question, then exit |
|
|
122
|
+
| `tala packs list [--all]` | Tools available here (and why others are not) |
|
|
123
|
+
| `tala packs show NAME` | Full definition of a tool |
|
|
124
|
+
| `tala packs validate [PATH...] [--strict]` | Lint packs (use in CI for your own packs) |
|
|
125
|
+
| `tala packs trust [DIR] [--revoke]` | Allow packs from `<DIR>/.tala/packs` (untrusted by default) |
|
|
126
|
+
| `tala facts add/list/remove` | Things the assistant should always remember ("my phone is 192.168.1.20") |
|
|
127
|
+
| `tala audit` | Recent tool executions |
|
|
128
|
+
| `tala eval retrieval [--embeddings]` / `tala eval agent` | Measure tool-selection quality on the golden set |
|
|
129
|
+
|
|
130
|
+
Inside `tala chat`: `/tools`, `/history`, `/reset`, `/exit`. Sessions are saved and resume automatically
|
|
131
|
+
(`tala chat --session work`).
|
|
132
|
+
|
|
133
|
+
## Add your own tool in two minutes
|
|
134
|
+
|
|
135
|
+
Create `~/.config/tala/packs/mine.yaml` (Windows: `%LOCALAPPDATA%\tala\packs\`;
|
|
136
|
+
run `tala doctor` to see the exact path), or `./.tala/packs/` for a per-project pack (project packs load only after `tala packs trust`,
|
|
137
|
+
because a pack defines what may run on your machine):
|
|
138
|
+
|
|
139
|
+
```yaml
|
|
140
|
+
pack: mine
|
|
141
|
+
tools:
|
|
142
|
+
- name: git_branch_list
|
|
143
|
+
description: List the local git branches of the current repository.
|
|
144
|
+
risk: read_only
|
|
145
|
+
examples: [which branches do I have, list my git branches]
|
|
146
|
+
run:
|
|
147
|
+
any: {exe: git, args: [branch, --list]}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
tala packs validate # catches mistakes before the model ever sees the tool
|
|
152
|
+
tala chat # "which branches do I have?"
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Configuration
|
|
156
|
+
|
|
157
|
+
Optional `config.yaml` (location shown by `tala doctor`). Everything has a default; override only what
|
|
158
|
+
you need. Environment variables use `TALA__SECTION__KEY=value`.
|
|
159
|
+
|
|
160
|
+
```yaml
|
|
161
|
+
models:
|
|
162
|
+
main: {name: "gemma4:e4b", num_ctx: 8192} # shared by chat, executor, summarizer
|
|
163
|
+
router: {name: "granite4.1:3b", num_ctx: 2048}
|
|
164
|
+
agents:
|
|
165
|
+
executor: {model: main, temperature: 0.1}
|
|
166
|
+
runtime:
|
|
167
|
+
max_steps: 3 # tool rounds per request
|
|
168
|
+
direct_output_chars: 600 # fastest: show small results without a summary
|
|
169
|
+
safety:
|
|
170
|
+
tool_overrides: {git_status: auto, docker_ps: ask}
|
|
171
|
+
packs:
|
|
172
|
+
dirs: [~/team-packs]
|
|
173
|
+
disabled_tools: [kill_process]
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Full reference: [docs/configuration.md](docs/configuration.md). For response speed (time to first output,
|
|
177
|
+
fast path, warm-up) see [docs/performance.md](docs/performance.md).
|
|
178
|
+
|
|
179
|
+
## Project layout
|
|
180
|
+
|
|
181
|
+
```
|
|
182
|
+
src/assistant/
|
|
183
|
+
domain/ pure models: ToolSpec, risk levels, events, errors
|
|
184
|
+
packs/ YAML loading, lint, per-OS availability registry
|
|
185
|
+
tools/ argument validation, argv rendering, bounded subprocess runner, LangChain tools
|
|
186
|
+
retrieval/ hybrid BM25 + vector tool index with confidence tiers
|
|
187
|
+
safety/ approval policy, audit log, output fencing
|
|
188
|
+
llm/ model factory (Ollama; pluggable), health checks
|
|
189
|
+
memory/ session checkpoints, history budgeting, long-term facts
|
|
190
|
+
agent/ LangGraph: route -> executor -> authorize -> run -> summarize
|
|
191
|
+
service.py Assistant.send()/resume() -> typed events (the only front-end contract)
|
|
192
|
+
bootstrap.py composition root
|
|
193
|
+
cli/ thin Typer/rich front end
|
|
194
|
+
builtin_packs/ 95 tools (system, processes, network, files, git, docker, adb, npm, winget ...)
|
|
195
|
+
tests/ unit, pack quality gate, integration (scripted model), architecture
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
## Renaming or rebranding
|
|
199
|
+
|
|
200
|
+
The product name, command, environment-variable prefix and folder names live in one file:
|
|
201
|
+
[`src/assistant/domain/branding.py`](src/assistant/domain/branding.py). Change the constants there, rename
|
|
202
|
+
the console script and project name in `pyproject.toml`, and search-replace the Markdown docs. A test
|
|
203
|
+
(`tests/test_branding.py`) fails if the code base hard-codes any of these elsewhere.
|
|
204
|
+
|
|
205
|
+
## Development
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
pytest # 251 tests, fully offline (93% coverage)
|
|
209
|
+
ruff check . && ruff format --check .
|
|
210
|
+
mypy # strict
|
|
211
|
+
lint-imports # layer contracts (also part of pytest)
|
|
212
|
+
tala eval retrieval -v # tool-selection regression check
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
CI runs all of the above on Windows, Linux and macOS (`.github/workflows/ci.yml`).
|
|
216
|
+
|
|
217
|
+
## Status and limits (v3.0)
|
|
218
|
+
|
|
219
|
+
- Front end: CLI. The service API is front-end agnostic; an HTTP/WebSocket or tray adapter is the next step.
|
|
220
|
+
- Long-running/interactive programs (GUI apps, `scrcpy` mirroring) are not supported as tools yet.
|
|
221
|
+
- Commands are not OS-sandboxed; protection comes from approval policy, constraints and bounded execution.
|
|
222
|
+
- Small models (2-4B) make mistakes. Measure with `tala eval agent` before trusting a model, and keep
|
|
223
|
+
mutating tools on `ask`.
|
|
224
|
+
|
|
225
|
+
See [CHANGELOG](CHANGELOG.md) and the decision records in [.10x/adrs](.10x/adrs). Maintainers: releasing
|
|
226
|
+
is described in [docs/publishing.md](docs/publishing.md).
|
|
227
|
+
|
|
228
|
+
## License
|
|
229
|
+
|
|
230
|
+
Copyright 2026 Achintha Bandara. Licensed under the [Apache License, Version 2.0](LICENSE): you may use,
|
|
231
|
+
modify and distribute it, including commercially, as long as you keep the copyright and [NOTICE](NOTICE)
|
|
232
|
+
files and state significant changes. It includes an explicit patent grant and comes with no warranty.
|
tala_ai-3.0.0/README.md
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# Tala
|
|
2
|
+
|
|
3
|
+
A local, OS-agnostic AI assistant for your PC. Chat in plain language; a local model (via
|
|
4
|
+
[Ollama](https://ollama.com)) picks and runs **tools** defined in simple YAML files called **packs**.
|
|
5
|
+
Nothing leaves your machine, and nothing risky runs without your approval.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
You: how much free disk space do I have?
|
|
9
|
+
→ disk_free (read_only) powershell -NoProfile ... Get-PSDrive ...
|
|
10
|
+
✓ disk_free · 1093 ms
|
|
11
|
+
Assistant: Drive C has 9.2 GB free and drive D has 66.9 GB free.
|
|
12
|
+
|
|
13
|
+
You: stop the docker container web
|
|
14
|
+
╭──────────── Approval needed ────────────╮
|
|
15
|
+
│ docker_stop mutating │
|
|
16
|
+
│ command: /usr/bin/docker stop web │
|
|
17
|
+
╰─────────────────────────────────────────╯
|
|
18
|
+
Run it? [y/N]
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Why it is built this way
|
|
22
|
+
|
|
23
|
+
| Goal | How |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| **Add capabilities with YAML only** | Drop a file in a pack directory. No Python, no restart of design. See [pack authoring](docs/pack-authoring.md). |
|
|
26
|
+
| **Works on Windows, Linux and macOS** | One *logical* tool (`ping_host`) with per-OS command variants. Tools whose executable is missing are never offered to the model. |
|
|
27
|
+
| **Safe by default** | Mandatory risk level per tool, approval policy, exact command shown, no shell, argument constraints, untrusted-output fencing, audit log. See [safety](docs/safety.md). |
|
|
28
|
+
| **Runs on small local models** | Hybrid keyword + vector tool retrieval offers the model 4-8 tools instead of 100; arguments are validated and repaired; chat never loads the tool machinery. |
|
|
29
|
+
| **Engineered to grow** | LangChain + LangGraph agent, typed event API for any front end, layered architecture enforced by tests. See [architecture](docs/architecture.md). |
|
|
30
|
+
|
|
31
|
+
## Quick start
|
|
32
|
+
|
|
33
|
+
You need [Ollama](https://ollama.com/download) running locally.
|
|
34
|
+
|
|
35
|
+
**One-line install** (installs into an isolated environment, then starts the setup wizard):
|
|
36
|
+
|
|
37
|
+
```powershell
|
|
38
|
+
irm https://raw.githubusercontent.com/AchinthaShiran/Tala/main/install.ps1 | iex # Windows
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
curl -fsSL https://raw.githubusercontent.com/AchinthaShiran/Tala/main/install.sh | sh # macOS / Linux
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Or from PyPI** (needs Python 3.11 or newer, not a specific version):
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
pipx install tala-ai # or: uv tool install tala-ai
|
|
49
|
+
tala setup
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**From a clone:**
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
python -m venv .venv && . .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
56
|
+
pip install -e ".[dev]"
|
|
57
|
+
tala setup # pick Default or Advanced; detects your hardware and warns about heavy models
|
|
58
|
+
tala chat # start talking
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
`tala setup` offers three setups: **Default** (one fixed, conservative configuration, the same everywhere),
|
|
62
|
+
**Recommended** (tailored to your detected hardware) and **Advanced** (choose models, context size, memory
|
|
63
|
+
use, approval rules and speed options from curated sets, with warnings when a choice will strain your
|
|
64
|
+
machine). Whichever you pick, the full settings are shown and you confirm before anything is applied. It
|
|
65
|
+
also offers itself the first time you run `tala chat`. Details: [docs/setup.md](docs/setup.md).
|
|
66
|
+
`tala doctor` re-checks everything at any time.
|
|
67
|
+
|
|
68
|
+
Other commands:
|
|
69
|
+
|
|
70
|
+
| Command | Purpose |
|
|
71
|
+
| --- | --- |
|
|
72
|
+
| `tala setup [--default\|--recommended\|--advanced] [--check]` | First-run wizard: hardware-aware setup and model downloads |
|
|
73
|
+
| `tala ask "..."` | One question, then exit |
|
|
74
|
+
| `tala packs list [--all]` | Tools available here (and why others are not) |
|
|
75
|
+
| `tala packs show NAME` | Full definition of a tool |
|
|
76
|
+
| `tala packs validate [PATH...] [--strict]` | Lint packs (use in CI for your own packs) |
|
|
77
|
+
| `tala packs trust [DIR] [--revoke]` | Allow packs from `<DIR>/.tala/packs` (untrusted by default) |
|
|
78
|
+
| `tala facts add/list/remove` | Things the assistant should always remember ("my phone is 192.168.1.20") |
|
|
79
|
+
| `tala audit` | Recent tool executions |
|
|
80
|
+
| `tala eval retrieval [--embeddings]` / `tala eval agent` | Measure tool-selection quality on the golden set |
|
|
81
|
+
|
|
82
|
+
Inside `tala chat`: `/tools`, `/history`, `/reset`, `/exit`. Sessions are saved and resume automatically
|
|
83
|
+
(`tala chat --session work`).
|
|
84
|
+
|
|
85
|
+
## Add your own tool in two minutes
|
|
86
|
+
|
|
87
|
+
Create `~/.config/tala/packs/mine.yaml` (Windows: `%LOCALAPPDATA%\tala\packs\`;
|
|
88
|
+
run `tala doctor` to see the exact path), or `./.tala/packs/` for a per-project pack (project packs load only after `tala packs trust`,
|
|
89
|
+
because a pack defines what may run on your machine):
|
|
90
|
+
|
|
91
|
+
```yaml
|
|
92
|
+
pack: mine
|
|
93
|
+
tools:
|
|
94
|
+
- name: git_branch_list
|
|
95
|
+
description: List the local git branches of the current repository.
|
|
96
|
+
risk: read_only
|
|
97
|
+
examples: [which branches do I have, list my git branches]
|
|
98
|
+
run:
|
|
99
|
+
any: {exe: git, args: [branch, --list]}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
tala packs validate # catches mistakes before the model ever sees the tool
|
|
104
|
+
tala chat # "which branches do I have?"
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Configuration
|
|
108
|
+
|
|
109
|
+
Optional `config.yaml` (location shown by `tala doctor`). Everything has a default; override only what
|
|
110
|
+
you need. Environment variables use `TALA__SECTION__KEY=value`.
|
|
111
|
+
|
|
112
|
+
```yaml
|
|
113
|
+
models:
|
|
114
|
+
main: {name: "gemma4:e4b", num_ctx: 8192} # shared by chat, executor, summarizer
|
|
115
|
+
router: {name: "granite4.1:3b", num_ctx: 2048}
|
|
116
|
+
agents:
|
|
117
|
+
executor: {model: main, temperature: 0.1}
|
|
118
|
+
runtime:
|
|
119
|
+
max_steps: 3 # tool rounds per request
|
|
120
|
+
direct_output_chars: 600 # fastest: show small results without a summary
|
|
121
|
+
safety:
|
|
122
|
+
tool_overrides: {git_status: auto, docker_ps: ask}
|
|
123
|
+
packs:
|
|
124
|
+
dirs: [~/team-packs]
|
|
125
|
+
disabled_tools: [kill_process]
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Full reference: [docs/configuration.md](docs/configuration.md). For response speed (time to first output,
|
|
129
|
+
fast path, warm-up) see [docs/performance.md](docs/performance.md).
|
|
130
|
+
|
|
131
|
+
## Project layout
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
src/assistant/
|
|
135
|
+
domain/ pure models: ToolSpec, risk levels, events, errors
|
|
136
|
+
packs/ YAML loading, lint, per-OS availability registry
|
|
137
|
+
tools/ argument validation, argv rendering, bounded subprocess runner, LangChain tools
|
|
138
|
+
retrieval/ hybrid BM25 + vector tool index with confidence tiers
|
|
139
|
+
safety/ approval policy, audit log, output fencing
|
|
140
|
+
llm/ model factory (Ollama; pluggable), health checks
|
|
141
|
+
memory/ session checkpoints, history budgeting, long-term facts
|
|
142
|
+
agent/ LangGraph: route -> executor -> authorize -> run -> summarize
|
|
143
|
+
service.py Assistant.send()/resume() -> typed events (the only front-end contract)
|
|
144
|
+
bootstrap.py composition root
|
|
145
|
+
cli/ thin Typer/rich front end
|
|
146
|
+
builtin_packs/ 95 tools (system, processes, network, files, git, docker, adb, npm, winget ...)
|
|
147
|
+
tests/ unit, pack quality gate, integration (scripted model), architecture
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Renaming or rebranding
|
|
151
|
+
|
|
152
|
+
The product name, command, environment-variable prefix and folder names live in one file:
|
|
153
|
+
[`src/assistant/domain/branding.py`](src/assistant/domain/branding.py). Change the constants there, rename
|
|
154
|
+
the console script and project name in `pyproject.toml`, and search-replace the Markdown docs. A test
|
|
155
|
+
(`tests/test_branding.py`) fails if the code base hard-codes any of these elsewhere.
|
|
156
|
+
|
|
157
|
+
## Development
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
pytest # 251 tests, fully offline (93% coverage)
|
|
161
|
+
ruff check . && ruff format --check .
|
|
162
|
+
mypy # strict
|
|
163
|
+
lint-imports # layer contracts (also part of pytest)
|
|
164
|
+
tala eval retrieval -v # tool-selection regression check
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
CI runs all of the above on Windows, Linux and macOS (`.github/workflows/ci.yml`).
|
|
168
|
+
|
|
169
|
+
## Status and limits (v3.0)
|
|
170
|
+
|
|
171
|
+
- Front end: CLI. The service API is front-end agnostic; an HTTP/WebSocket or tray adapter is the next step.
|
|
172
|
+
- Long-running/interactive programs (GUI apps, `scrcpy` mirroring) are not supported as tools yet.
|
|
173
|
+
- Commands are not OS-sandboxed; protection comes from approval policy, constraints and bounded execution.
|
|
174
|
+
- Small models (2-4B) make mistakes. Measure with `tala eval agent` before trusting a model, and keep
|
|
175
|
+
mutating tools on `ask`.
|
|
176
|
+
|
|
177
|
+
See [CHANGELOG](CHANGELOG.md) and the decision records in [.10x/adrs](.10x/adrs). Maintainers: releasing
|
|
178
|
+
is described in [docs/publishing.md](docs/publishing.md).
|
|
179
|
+
|
|
180
|
+
## License
|
|
181
|
+
|
|
182
|
+
Copyright 2026 Achintha Bandara. Licensed under the [Apache License, Version 2.0](LICENSE): you may use,
|
|
183
|
+
modify and distribute it, including commercially, as long as you keep the copyright and [NOTICE](NOTICE)
|
|
184
|
+
files and state significant changes. It includes an explicit patent grant and comes with no warranty.
|