anytau 0.1.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.
Files changed (474) hide show
  1. anytau-0.1.0/.github/CODEOWNERS +1 -0
  2. anytau-0.1.0/.github/dependabot.yml +11 -0
  3. anytau-0.1.0/.github/workflows/ci.yml +84 -0
  4. anytau-0.1.0/.github/workflows/docs.yml +65 -0
  5. anytau-0.1.0/.github/workflows/release.yml +29 -0
  6. anytau-0.1.0/.gitignore +29 -0
  7. anytau-0.1.0/.python-version +1 -0
  8. anytau-0.1.0/.tau/extensions/ask_user_question.py +95 -0
  9. anytau-0.1.0/AGENTS.md +81 -0
  10. anytau-0.1.0/CONTRIBUTING.md +155 -0
  11. anytau-0.1.0/LICENSE +21 -0
  12. anytau-0.1.0/PKG-INFO +250 -0
  13. anytau-0.1.0/README.md +228 -0
  14. anytau-0.1.0/TODO.md +17 -0
  15. anytau-0.1.0/dev-notes/README.md +42 -0
  16. anytau-0.1.0/dev-notes/adr/0001-use-textual-for-tui.md +30 -0
  17. anytau-0.1.0/dev-notes/adr/0002-keep-tool-docs-hand-written.md +76 -0
  18. anytau-0.1.0/dev-notes/adr/0003-unify-skill-discovery-on-agent-skills-spec.md +120 -0
  19. anytau-0.1.0/dev-notes/anthropic-stream-error-recovery.md +43 -0
  20. anytau-0.1.0/dev-notes/anyshell-embedding.md +16 -0
  21. anytau-0.1.0/dev-notes/architecture/auto-session-naming.md +36 -0
  22. anytau-0.1.0/dev-notes/architecture/bundled-self-knowledge.md +37 -0
  23. anytau-0.1.0/dev-notes/architecture/cli-bad-model-error.md +86 -0
  24. anytau-0.1.0/dev-notes/architecture/codex-runtime-model-limits.md +153 -0
  25. anytau-0.1.0/dev-notes/architecture/config-driven-provider-catalog.md +135 -0
  26. anytau-0.1.0/dev-notes/architecture/dynamic-provider-registry.md +234 -0
  27. anytau-0.1.0/dev-notes/architecture/extension-installer.md +100 -0
  28. anytau-0.1.0/dev-notes/architecture/index.md +70 -0
  29. anytau-0.1.0/dev-notes/architecture/multimodal-read-results.md +42 -0
  30. anytau-0.1.0/dev-notes/architecture/oauth-provider-parity.md +144 -0
  31. anytau-0.1.0/dev-notes/architecture/phase-1-core-types-and-events.md +249 -0
  32. anytau-0.1.0/dev-notes/architecture/phase-10-system-prompt.md +157 -0
  33. anytau-0.1.0/dev-notes/architecture/phase-11-print-event-rendering.md +135 -0
  34. anytau-0.1.0/dev-notes/architecture/phase-12-textual-tui.md +149 -0
  35. anytau-0.1.0/dev-notes/architecture/phase-13-paths-agents-resources.md +140 -0
  36. anytau-0.1.0/dev-notes/architecture/phase-14-session-manager-resume.md +187 -0
  37. anytau-0.1.0/dev-notes/architecture/phase-15-slash-command-registry.md +164 -0
  38. anytau-0.1.0/dev-notes/architecture/phase-16-resource-discovery.md +102 -0
  39. anytau-0.1.0/dev-notes/architecture/phase-17-5-transcript-wrapping.md +84 -0
  40. anytau-0.1.0/dev-notes/architecture/phase-17-tui-autocomplete.md +104 -0
  41. anytau-0.1.0/dev-notes/architecture/phase-18-provider-config-foundation.md +194 -0
  42. anytau-0.1.0/dev-notes/architecture/phase-19-context-discovery.md +112 -0
  43. anytau-0.1.0/dev-notes/architecture/phase-2-ai-provider-layer.md +178 -0
  44. anytau-0.1.0/dev-notes/architecture/phase-20-1-context-accounting.md +82 -0
  45. anytau-0.1.0/dev-notes/architecture/phase-20-2-thinking-controls.md +160 -0
  46. anytau-0.1.0/dev-notes/architecture/phase-20-3-skill-invocation.md +90 -0
  47. anytau-0.1.0/dev-notes/architecture/phase-20-4-session-export.md +82 -0
  48. anytau-0.1.0/dev-notes/architecture/phase-20-installation-docs.md +64 -0
  49. anytau-0.1.0/dev-notes/architecture/phase-21-extensions.md +740 -0
  50. anytau-0.1.0/dev-notes/architecture/phase-22-compaction-foundation.md +147 -0
  51. anytau-0.1.0/dev-notes/architecture/phase-23-tui-polish.md +224 -0
  52. anytau-0.1.0/dev-notes/architecture/phase-24-session-tree-branching.md +64 -0
  53. anytau-0.1.0/dev-notes/architecture/phase-25-system-command.md +41 -0
  54. anytau-0.1.0/dev-notes/architecture/phase-28-rpc.md +37 -0
  55. anytau-0.1.0/dev-notes/architecture/phase-3-agent-loop.md +243 -0
  56. anytau-0.1.0/dev-notes/architecture/phase-4-agent-harness.md +196 -0
  57. anytau-0.1.0/dev-notes/architecture/phase-5-coding-tools.md +126 -0
  58. anytau-0.1.0/dev-notes/architecture/phase-6-local-inference-hardening.md +99 -0
  59. anytau-0.1.0/dev-notes/architecture/phase-6-print-mode-cli.md +127 -0
  60. anytau-0.1.0/dev-notes/architecture/phase-7-session-tree.md +138 -0
  61. anytau-0.1.0/dev-notes/architecture/phase-8-coding-session.md +146 -0
  62. anytau-0.1.0/dev-notes/architecture/phase-9-skills-prompts.md +217 -0
  63. anytau-0.1.0/dev-notes/architecture/pre-extension-hardening.md +116 -0
  64. anytau-0.1.0/dev-notes/architecture/project-trust-runtime.md +63 -0
  65. anytau-0.1.0/dev-notes/architecture/provider-catalog-live-validation.md +300 -0
  66. anytau-0.1.0/dev-notes/architecture/provider-model-safety.md +48 -0
  67. anytau-0.1.0/dev-notes/architecture/provider-retries.md +52 -0
  68. anytau-0.1.0/dev-notes/architecture/queued-steering-follow-ups.md +73 -0
  69. anytau-0.1.0/dev-notes/architecture/read-image-processing.md +93 -0
  70. anytau-0.1.0/dev-notes/architecture/resume-picker-background-loading.md +43 -0
  71. anytau-0.1.0/dev-notes/architecture/resume-picker-project-navigation.md +46 -0
  72. anytau-0.1.0/dev-notes/architecture/resume-picker-search.md +70 -0
  73. anytau-0.1.0/dev-notes/architecture/searchable-skills-picker.md +11 -0
  74. anytau-0.1.0/dev-notes/architecture/socks-proxy-support.md +46 -0
  75. anytau-0.1.0/dev-notes/architecture/startup-update-check.md +66 -0
  76. anytau-0.1.0/dev-notes/architecture/structured-assistant-content.md +64 -0
  77. anytau-0.1.0/dev-notes/architecture/trusted-built-in-extensions.md +163 -0
  78. anytau-0.1.0/dev-notes/architecture/tui-long-transcript-performance.md +85 -0
  79. anytau-0.1.0/dev-notes/architecture/tui-terminal-tab-title.md +69 -0
  80. anytau-0.1.0/dev-notes/architecture/tui-turn-notifications.md +54 -0
  81. anytau-0.1.0/dev-notes/architecture/user-config-forward-compatibility.md +61 -0
  82. anytau-0.1.0/dev-notes/architecture/zai-thinking-serialization.md +41 -0
  83. anytau-0.1.0/dev-notes/astro-website.md +50 -0
  84. anytau-0.1.0/dev-notes/catalog-model-safety.md +37 -0
  85. anytau-0.1.0/dev-notes/chat-stream-channels.md +27 -0
  86. anytau-0.1.0/dev-notes/child-session-seam.md +85 -0
  87. anytau-0.1.0/dev-notes/claude-opus-5-model-support.md +48 -0
  88. anytau-0.1.0/dev-notes/cli-mirror-pi-flags.md +105 -0
  89. anytau-0.1.0/dev-notes/codex-live-model-catalog.md +109 -0
  90. anytau-0.1.0/dev-notes/codex-stream-error-recovery.md +58 -0
  91. anytau-0.1.0/dev-notes/custom-message-session-entries.md +65 -0
  92. anytau-0.1.0/dev-notes/design/00-roadmap.md +71 -0
  93. anytau-0.1.0/dev-notes/design/01-architecture.md +37 -0
  94. anytau-0.1.0/dev-notes/design/02-agent-loop.md +24 -0
  95. anytau-0.1.0/dev-notes/design/03-tools.md +327 -0
  96. anytau-0.1.0/dev-notes/design/04-sessions.md +89 -0
  97. anytau-0.1.0/dev-notes/design/05-core-types-and-events.md +66 -0
  98. anytau-0.1.0/dev-notes/design/602-session-preparation-lifecycle.md +418 -0
  99. anytau-0.1.0/dev-notes/design/agent-loop.md +35 -0
  100. anytau-0.1.0/dev-notes/design/component-seam-experiment.md +933 -0
  101. anytau-0.1.0/dev-notes/design/edit-prompts-modal.md +24 -0
  102. anytau-0.1.0/dev-notes/design/harness.md +65 -0
  103. anytau-0.1.0/dev-notes/design/pi-event-migration-audit.md +254 -0
  104. anytau-0.1.0/dev-notes/design/project-trust.md +728 -0
  105. anytau-0.1.0/dev-notes/design/rpc-runtime-interchangeability-plan.md +113 -0
  106. anytau-0.1.0/dev-notes/drop-leaf-session-entries.md +36 -0
  107. anytau-0.1.0/dev-notes/exit-resume-hint.md +58 -0
  108. anytau-0.1.0/dev-notes/export-transcript-notice.md +25 -0
  109. anytau-0.1.0/dev-notes/export-usage-event-markers.md +26 -0
  110. anytau-0.1.0/dev-notes/extension-prompt-sections.md +58 -0
  111. anytau-0.1.0/dev-notes/extension-session-metadata.md +32 -0
  112. anytau-0.1.0/dev-notes/extension-sidebar-sections.md +95 -0
  113. anytau-0.1.0/dev-notes/first-kept-compaction.md +71 -0
  114. anytau-0.1.0/dev-notes/google-stream-completion.md +49 -0
  115. anytau-0.1.0/dev-notes/herdr-textual-mouse-compatibility.md +46 -0
  116. anytau-0.1.0/dev-notes/hugging-face-automatic-route-failover.md +95 -0
  117. anytau-0.1.0/dev-notes/hugging-face-model-parity.md +35 -0
  118. anytau-0.1.0/dev-notes/hugging-face-response-provider-metadata.md +39 -0
  119. anytau-0.1.0/dev-notes/hugging-face-sticky-routing.md +88 -0
  120. anytau-0.1.0/dev-notes/install-scripts.md +31 -0
  121. anytau-0.1.0/dev-notes/kimi-k2-7-model-catalog.md +21 -0
  122. anytau-0.1.0/dev-notes/kimi-k3-model-catalog.md +40 -0
  123. anytau-0.1.0/dev-notes/live-system-prompt-html-export.md +50 -0
  124. anytau-0.1.0/dev-notes/llama-cpp-phase-5.md +86 -0
  125. anytau-0.1.0/dev-notes/llama-cpp-phase-7.md +92 -0
  126. anytau-0.1.0/dev-notes/models-dev-catalog.md +94 -0
  127. anytau-0.1.0/dev-notes/openai-reasoning-summary-boundaries.md +29 -0
  128. anytau-0.1.0/dev-notes/per-entry-session-labels.md +71 -0
  129. anytau-0.1.0/dev-notes/portable-tool-call-ids.md +70 -0
  130. anytau-0.1.0/dev-notes/print-mode-session-ids.md +62 -0
  131. anytau-0.1.0/dev-notes/print-mode-session-resume.md +32 -0
  132. anytau-0.1.0/dev-notes/prompt-caching.md +236 -0
  133. anytau-0.1.0/dev-notes/provider-anchored-context-recovery.md +56 -0
  134. anytau-0.1.0/dev-notes/provider-error-recovery.md +50 -0
  135. anytau-0.1.0/dev-notes/provider-settings-v2-migration.md +63 -0
  136. anytau-0.1.0/dev-notes/push-based-persistence.md +95 -0
  137. anytau-0.1.0/dev-notes/reactive-model-selection.md +18 -0
  138. anytau-0.1.0/dev-notes/release-notes-startup.md +21 -0
  139. anytau-0.1.0/dev-notes/release-process.md +61 -0
  140. anytau-0.1.0/dev-notes/resource-conflict-startup-alert.md +22 -0
  141. anytau-0.1.0/dev-notes/response-timing-and-speed.md +65 -0
  142. anytau-0.1.0/dev-notes/session-and-project-archiving.md +18 -0
  143. anytau-0.1.0/dev-notes/session-export-usage-tab.md +43 -0
  144. anytau-0.1.0/dev-notes/startup-thinking-level-fallback.md +58 -0
  145. anytau-0.1.0/dev-notes/summary-request-usage.md +61 -0
  146. anytau-0.1.0/dev-notes/system-prompt-cli-controls.md +53 -0
  147. anytau-0.1.0/dev-notes/system-prompt-files.md +65 -0
  148. anytau-0.1.0/dev-notes/system-prompt-sidebar.md +36 -0
  149. anytau-0.1.0/dev-notes/tau-home-profiles.md +71 -0
  150. anytau-0.1.0/dev-notes/tiered-model-pricing.md +15 -0
  151. anytau-0.1.0/dev-notes/tool-history-recovery.md +78 -0
  152. anytau-0.1.0/dev-notes/tool-turn-finalization.md +81 -0
  153. anytau-0.1.0/dev-notes/tools-reference-modal.md +9 -0
  154. anytau-0.1.0/dev-notes/tui-coding-agent-footprint.md +1153 -0
  155. anytau-0.1.0/dev-notes/tui-compact-bash-invocations.md +60 -0
  156. anytau-0.1.0/dev-notes/tui-eof-guard.md +82 -0
  157. anytau-0.1.0/dev-notes/tui-file-drop.md +93 -0
  158. anytau-0.1.0/dev-notes/tui-grouped-read-calls.md +79 -0
  159. anytau-0.1.0/dev-notes/tui-latency-fixes.md +106 -0
  160. anytau-0.1.0/dev-notes/tui-option-arrow-navigation.md +31 -0
  161. anytau-0.1.0/dev-notes/tui-prompts-picker.md +15 -0
  162. anytau-0.1.0/dev-notes/tui-session-modal-selection-copy.md +35 -0
  163. anytau-0.1.0/dev-notes/tui-sidebar-file-editor.md +44 -0
  164. anytau-0.1.0/dev-notes/tui-sidebar-session-insights.md +104 -0
  165. anytau-0.1.0/dev-notes/tui-sidebar-visibility-toggle.md +29 -0
  166. anytau-0.1.0/dev-notes/tui-system-prompt-viewer.md +39 -0
  167. anytau-0.1.0/dev-notes/tui-tool-batches.md +68 -0
  168. anytau-0.1.0/dev-notes/tui-transcript-spacing-and-tool-runs.md +131 -0
  169. anytau-0.1.0/docs/assets/tau-header.svg +60 -0
  170. anytau-0.1.0/examples/extensions/ask_user_question.py +95 -0
  171. anytau-0.1.0/examples/extensions/hello_tool.py +35 -0
  172. anytau-0.1.0/examples/extensions/permission_gate.py +45 -0
  173. anytau-0.1.0/examples/extensions/prompt_section.py +19 -0
  174. anytau-0.1.0/examples/extensions/sidebar_status.py +39 -0
  175. anytau-0.1.0/examples/extensions/structured_output.py +67 -0
  176. anytau-0.1.0/landing.html +573 -0
  177. anytau-0.1.0/plans/602-built-in-local-inference.md +1773 -0
  178. anytau-0.1.0/pyproject.toml +67 -0
  179. anytau-0.1.0/scripts/generate_models.py +78 -0
  180. anytau-0.1.0/src/anytau/__init__.py +6 -0
  181. anytau-0.1.0/src/anytau/py.typed +0 -0
  182. anytau-0.1.0/src/tau_agent/__init__.py +71 -0
  183. anytau-0.1.0/src/tau_agent/events.py +87 -0
  184. anytau-0.1.0/src/tau_agent/harness.py +262 -0
  185. anytau-0.1.0/src/tau_agent/loop.py +458 -0
  186. anytau-0.1.0/src/tau_agent/messages.py +317 -0
  187. anytau-0.1.0/src/tau_agent/provider.py +37 -0
  188. anytau-0.1.0/src/tau_agent/provider_events.py +107 -0
  189. anytau-0.1.0/src/tau_agent/py.typed +0 -0
  190. anytau-0.1.0/src/tau_agent/session/__init__.py +53 -0
  191. anytau-0.1.0/src/tau_agent/session/entries.py +144 -0
  192. anytau-0.1.0/src/tau_agent/session/jsonl.py +171 -0
  193. anytau-0.1.0/src/tau_agent/session/memory.py +208 -0
  194. anytau-0.1.0/src/tau_agent/session/storage.py +301 -0
  195. anytau-0.1.0/src/tau_agent/session/tree.py +40 -0
  196. anytau-0.1.0/src/tau_agent/tool_history.py +169 -0
  197. anytau-0.1.0/src/tau_agent/tools.py +119 -0
  198. anytau-0.1.0/src/tau_agent/turns.py +33 -0
  199. anytau-0.1.0/src/tau_agent/types.py +8 -0
  200. anytau-0.1.0/src/tau_ai/__init__.py +45 -0
  201. anytau-0.1.0/src/tau_ai/_provider_events.py +93 -0
  202. anytau-0.1.0/src/tau_ai/anthropic.py +788 -0
  203. anytau-0.1.0/src/tau_ai/content.py +45 -0
  204. anytau-0.1.0/src/tau_ai/env.py +158 -0
  205. anytau-0.1.0/src/tau_ai/events.py +37 -0
  206. anytau-0.1.0/src/tau_ai/fake.py +41 -0
  207. anytau-0.1.0/src/tau_ai/google.py +527 -0
  208. anytau-0.1.0/src/tau_ai/http.py +81 -0
  209. anytau-0.1.0/src/tau_ai/http_errors.py +65 -0
  210. anytau-0.1.0/src/tau_ai/mistral.py +530 -0
  211. anytau-0.1.0/src/tau_ai/model_catalog.py +53 -0
  212. anytau-0.1.0/src/tau_ai/model_limits.py +48 -0
  213. anytau-0.1.0/src/tau_ai/openai_cache.py +20 -0
  214. anytau-0.1.0/src/tau_ai/openai_codex.py +1205 -0
  215. anytau-0.1.0/src/tau_ai/openai_compatible.py +1388 -0
  216. anytau-0.1.0/src/tau_ai/provider.py +5 -0
  217. anytau-0.1.0/src/tau_ai/py.typed +0 -0
  218. anytau-0.1.0/src/tau_ai/retry.py +71 -0
  219. anytau-0.1.0/src/tau_ai/stream.py +232 -0
  220. anytau-0.1.0/src/tau_ai/tool_call_ids.py +24 -0
  221. anytau-0.1.0/src/tau_coding/__init__.py +317 -0
  222. anytau-0.1.0/src/tau_coding/branch_summary.py +222 -0
  223. anytau-0.1.0/src/tau_coding/built_in_extensions.py +114 -0
  224. anytau-0.1.0/src/tau_coding/catalog_loader.py +796 -0
  225. anytau-0.1.0/src/tau_coding/cli.py +1468 -0
  226. anytau-0.1.0/src/tau_coding/codex_model_store.py +206 -0
  227. anytau-0.1.0/src/tau_coding/codex_version.py +146 -0
  228. anytau-0.1.0/src/tau_coding/commands.py +924 -0
  229. anytau-0.1.0/src/tau_coding/context.py +95 -0
  230. anytau-0.1.0/src/tau_coding/context_window.py +353 -0
  231. anytau-0.1.0/src/tau_coding/credentials.py +260 -0
  232. anytau-0.1.0/src/tau_coding/data/catalog.toml +6882 -0
  233. anytau-0.1.0/src/tau_coding/data/docs/README.md +19 -0
  234. anytau-0.1.0/src/tau_coding/data/docs/architecture.md +75 -0
  235. anytau-0.1.0/src/tau_coding/data/docs/cli.md +85 -0
  236. anytau-0.1.0/src/tau_coding/data/docs/extensions.md +237 -0
  237. anytau-0.1.0/src/tau_coding/data/docs/local-inference.md +242 -0
  238. anytau-0.1.0/src/tau_coding/data/docs/models.md +192 -0
  239. anytau-0.1.0/src/tau_coding/data/docs/security.md +67 -0
  240. anytau-0.1.0/src/tau_coding/data/docs/skills.md +32 -0
  241. anytau-0.1.0/src/tau_coding/data/docs/tui.md +142 -0
  242. anytau-0.1.0/src/tau_coding/data/examples/extensions/ask_user_question.py +95 -0
  243. anytau-0.1.0/src/tau_coding/data/examples/extensions/hello_tool.py +41 -0
  244. anytau-0.1.0/src/tau_coding/data/examples/extensions/prompt_section.py +19 -0
  245. anytau-0.1.0/src/tau_coding/data/examples/extensions/sidebar_status.py +39 -0
  246. anytau-0.1.0/src/tau_coding/data/examples/extensions/structured_output.py +67 -0
  247. anytau-0.1.0/src/tau_coding/data/models-dev-catalog.json +15937 -0
  248. anytau-0.1.0/src/tau_coding/data/release-notes/releases.json +650 -0
  249. anytau-0.1.0/src/tau_coding/diagnostics.py +183 -0
  250. anytau-0.1.0/src/tau_coding/events.py +91 -0
  251. anytau-0.1.0/src/tau_coding/extension_installer.py +200 -0
  252. anytau-0.1.0/src/tau_coding/extensions/__init__.py +239 -0
  253. anytau-0.1.0/src/tau_coding/extensions/api.py +1236 -0
  254. anytau-0.1.0/src/tau_coding/extensions/builtins/__init__.py +1 -0
  255. anytau-0.1.0/src/tau_coding/extensions/builtins/llama_cpp/__init__.py +87 -0
  256. anytau-0.1.0/src/tau_coding/extensions/builtins/llama_cpp/huggingface.py +217 -0
  257. anytau-0.1.0/src/tau_coding/extensions/builtins/llama_cpp/router.py +340 -0
  258. anytau-0.1.0/src/tau_coding/extensions/builtins/llama_cpp/service.py +1781 -0
  259. anytau-0.1.0/src/tau_coding/extensions/builtins/llama_cpp/state.py +411 -0
  260. anytau-0.1.0/src/tau_coding/extensions/loader.py +405 -0
  261. anytau-0.1.0/src/tau_coding/extensions/provider_registry.py +650 -0
  262. anytau-0.1.0/src/tau_coding/extensions/providers.py +527 -0
  263. anytau-0.1.0/src/tau_coding/extensions/runtime.py +1350 -0
  264. anytau-0.1.0/src/tau_coding/image_processing.py +253 -0
  265. anytau-0.1.0/src/tau_coding/local_backends.py +1299 -0
  266. anytau-0.1.0/src/tau_coding/models_dev.py +327 -0
  267. anytau-0.1.0/src/tau_coding/models_dev_store.py +207 -0
  268. anytau-0.1.0/src/tau_coding/oauth.py +527 -0
  269. anytau-0.1.0/src/tau_coding/oauth_anthropic.py +285 -0
  270. anytau-0.1.0/src/tau_coding/oauth_device.py +109 -0
  271. anytau-0.1.0/src/tau_coding/oauth_github_copilot.py +285 -0
  272. anytau-0.1.0/src/tau_coding/oauth_registry.py +55 -0
  273. anytau-0.1.0/src/tau_coding/oauth_types.py +127 -0
  274. anytau-0.1.0/src/tau_coding/paths.py +179 -0
  275. anytau-0.1.0/src/tau_coding/project_trust.py +703 -0
  276. anytau-0.1.0/src/tau_coding/prompt_templates.py +285 -0
  277. anytau-0.1.0/src/tau_coding/provider_catalog.py +111 -0
  278. anytau-0.1.0/src/tau_coding/provider_config.py +2650 -0
  279. anytau-0.1.0/src/tau_coding/provider_runtime.py +506 -0
  280. anytau-0.1.0/src/tau_coding/py.typed +0 -0
  281. anytau-0.1.0/src/tau_coding/reload.py +31 -0
  282. anytau-0.1.0/src/tau_coding/rendering/__init__.py +35 -0
  283. anytau-0.1.0/src/tau_coding/rendering/base.py +27 -0
  284. anytau-0.1.0/src/tau_coding/rendering/json.py +26 -0
  285. anytau-0.1.0/src/tau_coding/rendering/plain.py +38 -0
  286. anytau-0.1.0/src/tau_coding/rendering/transcript.py +106 -0
  287. anytau-0.1.0/src/tau_coding/resources.py +377 -0
  288. anytau-0.1.0/src/tau_coding/rpc.py +799 -0
  289. anytau-0.1.0/src/tau_coding/self_docs.py +23 -0
  290. anytau-0.1.0/src/tau_coding/session.py +5329 -0
  291. anytau-0.1.0/src/tau_coding/session_export.py +1780 -0
  292. anytau-0.1.0/src/tau_coding/session_manager.py +534 -0
  293. anytau-0.1.0/src/tau_coding/session_preparation.py +88 -0
  294. anytau-0.1.0/src/tau_coding/session_stats.py +206 -0
  295. anytau-0.1.0/src/tau_coding/session_usage.py +982 -0
  296. anytau-0.1.0/src/tau_coding/shell_config.py +74 -0
  297. anytau-0.1.0/src/tau_coding/skills.py +255 -0
  298. anytau-0.1.0/src/tau_coding/system_prompt.py +393 -0
  299. anytau-0.1.0/src/tau_coding/thinking.py +93 -0
  300. anytau-0.1.0/src/tau_coding/tools.py +1294 -0
  301. anytau-0.1.0/src/tau_coding/tui/__init__.py +69 -0
  302. anytau-0.1.0/src/tau_coding/tui/adapter.py +177 -0
  303. anytau-0.1.0/src/tau_coding/tui/app.py +9190 -0
  304. anytau-0.1.0/src/tau_coding/tui/autocomplete.py +632 -0
  305. anytau-0.1.0/src/tau_coding/tui/config.py +211 -0
  306. anytau-0.1.0/src/tau_coding/tui/file_drop.py +83 -0
  307. anytau-0.1.0/src/tau_coding/tui/local_backends.py +1313 -0
  308. anytau-0.1.0/src/tau_coding/tui/project_trust.py +200 -0
  309. anytau-0.1.0/src/tau_coding/tui/state.py +1030 -0
  310. anytau-0.1.0/src/tau_coding/tui/terminal_notification.py +115 -0
  311. anytau-0.1.0/src/tau_coding/tui/terminal_title.py +124 -0
  312. anytau-0.1.0/src/tau_coding/tui/themes/__init__.py +516 -0
  313. anytau-0.1.0/src/tau_coding/tui/themes/high-contrast.json +48 -0
  314. anytau-0.1.0/src/tau_coding/tui/themes/tau-dark.json +48 -0
  315. anytau-0.1.0/src/tau_coding/tui/themes/tau-light.json +48 -0
  316. anytau-0.1.0/src/tau_coding/tui/widgets.py +3362 -0
  317. anytau-0.1.0/src/tau_coding/update_check.py +419 -0
  318. anytau-0.1.0/src/tau_coding/updater.py +387 -0
  319. anytau-0.1.0/src/tau_coding/version.py +16 -0
  320. anytau-0.1.0/tests/conftest.py +35 -0
  321. anytau-0.1.0/tests/fixtures/__init__.py +0 -0
  322. anytau-0.1.0/tests/fixtures/legacy_compaction.jsonl +5 -0
  323. anytau-0.1.0/tests/fixtures/models_dev_catalog.json +67 -0
  324. anytau-0.1.0/tests/fixtures/ollama_adapter_spike.py +169 -0
  325. anytau-0.1.0/tests/pi_event_helpers.py +60 -0
  326. anytau-0.1.0/tests/test_agent_harness.py +358 -0
  327. anytau-0.1.0/tests/test_agent_loop.py +579 -0
  328. anytau-0.1.0/tests/test_agent_turns.py +391 -0
  329. anytau-0.1.0/tests/test_agent_types.py +199 -0
  330. anytau-0.1.0/tests/test_anthropic_sse.py +49 -0
  331. anytau-0.1.0/tests/test_anthropic_usage.py +145 -0
  332. anytau-0.1.0/tests/test_chat_channels.py +58 -0
  333. anytau-0.1.0/tests/test_cli.py +2197 -0
  334. anytau-0.1.0/tests/test_cli_terminal.py +197 -0
  335. anytau-0.1.0/tests/test_codex_model_store.py +72 -0
  336. anytau-0.1.0/tests/test_codex_resume.py +413 -0
  337. anytau-0.1.0/tests/test_codex_version.py +127 -0
  338. anytau-0.1.0/tests/test_coding_session.py +7507 -0
  339. anytau-0.1.0/tests/test_coding_tools.py +561 -0
  340. anytau-0.1.0/tests/test_commands.py +624 -0
  341. anytau-0.1.0/tests/test_context.py +53 -0
  342. anytau-0.1.0/tests/test_context_window.py +181 -0
  343. anytau-0.1.0/tests/test_credentials.py +103 -0
  344. anytau-0.1.0/tests/test_cross_provider_history.py +144 -0
  345. anytau-0.1.0/tests/test_example_extensions.py +226 -0
  346. anytau-0.1.0/tests/test_extension_installer.py +183 -0
  347. anytau-0.1.0/tests/test_extension_providers.py +1588 -0
  348. anytau-0.1.0/tests/test_extensions.py +3541 -0
  349. anytau-0.1.0/tests/test_http.py +45 -0
  350. anytau-0.1.0/tests/test_image_processing.py +146 -0
  351. anytau-0.1.0/tests/test_llama_cpp_extension.py +1602 -0
  352. anytau-0.1.0/tests/test_local_backends.py +575 -0
  353. anytau-0.1.0/tests/test_models_dev.py +89 -0
  354. anytau-0.1.0/tests/test_models_dev_store.py +144 -0
  355. anytau-0.1.0/tests/test_multimodal_provider_payloads.py +125 -0
  356. anytau-0.1.0/tests/test_oauth.py +110 -0
  357. anytau-0.1.0/tests/test_oauth_providers.py +417 -0
  358. anytau-0.1.0/tests/test_oauth_tui.py +153 -0
  359. anytau-0.1.0/tests/test_ollama_adapter_spike.py +103 -0
  360. anytau-0.1.0/tests/test_package_metadata.py +59 -0
  361. anytau-0.1.0/tests/test_paths.py +99 -0
  362. anytau-0.1.0/tests/test_phase6_hardening.py +311 -0
  363. anytau-0.1.0/tests/test_pi_event_protocol.py +120 -0
  364. anytau-0.1.0/tests/test_project_trust.py +1276 -0
  365. anytau-0.1.0/tests/test_prompt_caching.py +316 -0
  366. anytau-0.1.0/tests/test_prompt_templates.py +205 -0
  367. anytau-0.1.0/tests/test_provider_catalog.py +816 -0
  368. anytau-0.1.0/tests/test_provider_config.py +1957 -0
  369. anytau-0.1.0/tests/test_provider_runtime.py +451 -0
  370. anytau-0.1.0/tests/test_rendering.py +230 -0
  371. anytau-0.1.0/tests/test_resources.py +192 -0
  372. anytau-0.1.0/tests/test_rpc.py +584 -0
  373. anytau-0.1.0/tests/test_session.py +877 -0
  374. anytau-0.1.0/tests/test_session_export.py +427 -0
  375. anytau-0.1.0/tests/test_session_manager.py +437 -0
  376. anytau-0.1.0/tests/test_session_stats.py +287 -0
  377. anytau-0.1.0/tests/test_session_usage.py +235 -0
  378. anytau-0.1.0/tests/test_shell_config.py +49 -0
  379. anytau-0.1.0/tests/test_skills.py +381 -0
  380. anytau-0.1.0/tests/test_system_prompt.py +236 -0
  381. anytau-0.1.0/tests/test_tau_ai.py +3979 -0
  382. anytau-0.1.0/tests/test_terminal_notification.py +122 -0
  383. anytau-0.1.0/tests/test_terminal_title.py +105 -0
  384. anytau-0.1.0/tests/test_thinking.py +43 -0
  385. anytau-0.1.0/tests/test_tool_history.py +137 -0
  386. anytau-0.1.0/tests/test_tool_turn_extensions.py +126 -0
  387. anytau-0.1.0/tests/test_tui_adapter.py +1087 -0
  388. anytau-0.1.0/tests/test_tui_app.py +13423 -0
  389. anytau-0.1.0/tests/test_tui_autocomplete.py +830 -0
  390. anytau-0.1.0/tests/test_tui_chat_channels.py +26 -0
  391. anytau-0.1.0/tests/test_tui_components.py +520 -0
  392. anytau-0.1.0/tests/test_tui_config.py +243 -0
  393. anytau-0.1.0/tests/test_tui_file_drop.py +211 -0
  394. anytau-0.1.0/tests/test_tui_local_backends.py +623 -0
  395. anytau-0.1.0/tests/test_tui_terminal_keys.py +69 -0
  396. anytau-0.1.0/tests/test_tui_themes.py +396 -0
  397. anytau-0.1.0/tests/test_update_check.py +384 -0
  398. anytau-0.1.0/tests/test_updater.py +463 -0
  399. anytau-0.1.0/tests/website/copy-code.test.mjs +213 -0
  400. anytau-0.1.0/uv.lock +733 -0
  401. anytau-0.1.0/website/.prettierignore +10 -0
  402. anytau-0.1.0/website/.prettierrc.json +4 -0
  403. anytau-0.1.0/website/assets/css/main.css +767 -0
  404. anytau-0.1.0/website/assets/js/copy-code.js +52 -0
  405. anytau-0.1.0/website/assets/js/nav-toggle.js +112 -0
  406. anytau-0.1.0/website/assets/js/theme-toggle.js +84 -0
  407. anytau-0.1.0/website/astro.config.mjs +18 -0
  408. anytau-0.1.0/website/content/_index.md +6 -0
  409. anytau-0.1.0/website/content/concepts.md +75 -0
  410. anytau-0.1.0/website/content/contributing.md +88 -0
  411. anytau-0.1.0/website/content/guides/_index.md +8 -0
  412. anytau-0.1.0/website/content/guides/context.md +126 -0
  413. anytau-0.1.0/website/content/guides/extensions.md +893 -0
  414. anytau-0.1.0/website/content/guides/local-inference.md +278 -0
  415. anytau-0.1.0/website/content/guides/print-mode.md +121 -0
  416. anytau-0.1.0/website/content/guides/project-instructions.md +53 -0
  417. anytau-0.1.0/website/content/guides/project-trust.md +107 -0
  418. anytau-0.1.0/website/content/guides/providers-and-models.md +597 -0
  419. anytau-0.1.0/website/content/guides/sessions.md +240 -0
  420. anytau-0.1.0/website/content/guides/skills-and-prompts.md +165 -0
  421. anytau-0.1.0/website/content/guides/themes.md +83 -0
  422. anytau-0.1.0/website/content/guides/tui.md +374 -0
  423. anytau-0.1.0/website/content/internals/_index.md +8 -0
  424. anytau-0.1.0/website/content/internals/agent-loop.md +152 -0
  425. anytau-0.1.0/website/content/internals/architecture.md +85 -0
  426. anytau-0.1.0/website/content/internals/custom-frontend.md +110 -0
  427. anytau-0.1.0/website/content/internals/design-principles.md +55 -0
  428. anytau-0.1.0/website/content/quickstart.md +153 -0
  429. anytau-0.1.0/website/content/reference/_index.md +8 -0
  430. anytau-0.1.0/website/content/reference/cli.md +180 -0
  431. anytau-0.1.0/website/content/reference/configuration.md +496 -0
  432. anytau-0.1.0/website/content/reference/keybindings.md +61 -0
  433. anytau-0.1.0/website/content/reference/rpc.md +79 -0
  434. anytau-0.1.0/website/content/reference/slash-commands.md +64 -0
  435. anytau-0.1.0/website/content/reference/tools.md +123 -0
  436. anytau-0.1.0/website/content/releases.md +7 -0
  437. anytau-0.1.0/website/content/roadmap.md +7 -0
  438. anytau-0.1.0/website/content/what-is-tau.md +57 -0
  439. anytau-0.1.0/website/content/why-tau.md +8 -0
  440. anytau-0.1.0/website/data/roadmap.yaml +164 -0
  441. anytau-0.1.0/website/data/sidebar.yaml +60 -0
  442. anytau-0.1.0/website/package-lock.json +7199 -0
  443. anytau-0.1.0/website/package.json +33 -0
  444. anytau-0.1.0/website/src/admonitions.mjs +33 -0
  445. anytau-0.1.0/website/src/components/Docs.astro +83 -0
  446. anytau-0.1.0/website/src/components/Footer.astro +43 -0
  447. anytau-0.1.0/website/src/components/Home.astro +923 -0
  448. anytau-0.1.0/website/src/components/Navbar.astro +167 -0
  449. anytau-0.1.0/website/src/components/Releases.astro +79 -0
  450. anytau-0.1.0/website/src/components/Roadmap.astro +103 -0
  451. anytau-0.1.0/website/src/components/WhyTau.astro +423 -0
  452. anytau-0.1.0/website/src/content.config.ts +16 -0
  453. anytau-0.1.0/website/src/data.ts +43 -0
  454. anytau-0.1.0/website/src/layouts/Base.astro +124 -0
  455. anytau-0.1.0/website/src/pages/404.astro +18 -0
  456. anytau-0.1.0/website/src/pages/[...slug].astro +38 -0
  457. anytau-0.1.0/website/src/pages/index.xml.ts +19 -0
  458. anytau-0.1.0/website/src/pages/robots.txt.ts +7 -0
  459. anytau-0.1.0/website/src/pages/sitemap.xml.ts +9 -0
  460. anytau-0.1.0/website/static/CNAME +1 -0
  461. anytau-0.1.0/website/static/android-chrome-192x192.png +0 -0
  462. anytau-0.1.0/website/static/android-chrome-512x512.png +0 -0
  463. anytau-0.1.0/website/static/apple-touch-icon.png +0 -0
  464. anytau-0.1.0/website/static/favicon-16x16.png +0 -0
  465. anytau-0.1.0/website/static/favicon-32x32.png +0 -0
  466. anytau-0.1.0/website/static/favicon.ico +0 -0
  467. anytau-0.1.0/website/static/images/huggingface-logo.svg +37 -0
  468. anytau-0.1.0/website/static/images/og-image.png +0 -0
  469. anytau-0.1.0/website/static/install.ps1 +68 -0
  470. anytau-0.1.0/website/static/install.sh +72 -0
  471. anytau-0.1.0/website/static/landing.js +401 -0
  472. anytau-0.1.0/website/static/site.webmanifest +11 -0
  473. anytau-0.1.0/website/tests/site.test.mjs +146 -0
  474. anytau-0.1.0/website/tsconfig.json +5 -0
@@ -0,0 +1 @@
1
+ * @alejandro-ao
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ cooldown:
8
+ default-days: 7
9
+ groups:
10
+ actions:
11
+ patterns: ["*"]
@@ -0,0 +1,84 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - main
8
+ workflow_dispatch:
9
+
10
+
11
+ concurrency:
12
+ group: ci-${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ permissions: {}
16
+
17
+ jobs:
18
+ python:
19
+ permissions:
20
+ contents: read
21
+ name: Python checks
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - name: Check out repository
25
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26
+
27
+ - name: Set up Python
28
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
29
+ with:
30
+ python-version-file: .python-version
31
+
32
+ - name: Set up uv
33
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
34
+ with:
35
+ enable-cache: true
36
+
37
+ - name: Install dependencies
38
+ run: uv sync --dev --locked
39
+
40
+ - name: Run tests
41
+ run: uv run pytest
42
+
43
+ - name: Run Ruff lint
44
+ run: uv run ruff check .
45
+
46
+ - name: Check formatting
47
+ run: uv run ruff format --check .
48
+
49
+ - name: Run mypy
50
+ run: uv run mypy
51
+
52
+ docs:
53
+ permissions:
54
+ contents: read
55
+ name: Documentation build
56
+ runs-on: ubuntu-latest
57
+ defaults:
58
+ run:
59
+ working-directory: website
60
+ steps:
61
+ - name: Check out repository
62
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
63
+
64
+ - name: Set up Node
65
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
66
+ with:
67
+ node-version: "22"
68
+ cache: npm
69
+ cache-dependency-path: website/package-lock.json
70
+
71
+ - name: Install dependencies
72
+ run: npm ci
73
+
74
+ - name: Check types
75
+ run: npm run check
76
+
77
+ - name: Check formatting
78
+ run: npm run format:check
79
+
80
+ - name: Build documentation and search index
81
+ run: npm run build
82
+
83
+ - name: Test website
84
+ run: npm test
@@ -0,0 +1,65 @@
1
+ name: Deploy documentation
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ workflow_dispatch:
8
+
9
+
10
+ concurrency:
11
+ group: pages
12
+ cancel-in-progress: false
13
+
14
+ defaults:
15
+ run:
16
+ working-directory: website
17
+
18
+ permissions: {}
19
+
20
+ jobs:
21
+ build:
22
+ permissions:
23
+ contents: read
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - name: Checkout
27
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
28
+
29
+ - name: Set up Node
30
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
31
+ with:
32
+ node-version: "22"
33
+ cache: npm
34
+ cache-dependency-path: website/package-lock.json
35
+
36
+ - name: Install dependencies
37
+ run: npm ci
38
+
39
+ - name: Check types and formatting
40
+ run: npm run check && npm run format:check
41
+
42
+ - name: Build documentation and search index
43
+ run: npm run build
44
+
45
+ - name: Test website
46
+ run: npm test
47
+
48
+ - name: Upload artifact
49
+ uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
50
+ with:
51
+ path: website/dist
52
+
53
+ deploy:
54
+ permissions:
55
+ id-token: write
56
+ pages: write
57
+ environment:
58
+ name: github-pages
59
+ url: ${{ steps.deployment.outputs.page_url }}
60
+ runs-on: ubuntu-latest
61
+ needs: build
62
+ steps:
63
+ - name: Deploy to GitHub Pages
64
+ id: deployment
65
+ uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
@@ -0,0 +1,29 @@
1
+ name: Publish Python package
2
+
3
+ on:
4
+ release:
5
+ types:
6
+ - published
7
+
8
+
9
+ permissions: {}
10
+
11
+ jobs:
12
+ publish:
13
+ permissions:
14
+ contents: read
15
+ id-token: write
16
+ name: Publish to PyPI
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - name: Check out repository
20
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21
+
22
+ - name: Set up uv
23
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
24
+
25
+ - name: Build package
26
+ run: uv build
27
+
28
+ - name: Publish package
29
+ run: uv publish
@@ -0,0 +1,29 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+ .mypy_cache/
9
+
10
+ # Virtual environments
11
+ .venv
12
+
13
+ # Website build output and dependencies
14
+ website/public/
15
+ website/resources/
16
+ website/node_modules/
17
+ website/dist/
18
+ website/.astro/
19
+
20
+ # System files
21
+ .DS_Store
22
+
23
+ # Export artifacts (hex-named test export files)
24
+ [0-9a-f]*.html
25
+
26
+ # Agent tools
27
+ .firecrawl/
28
+ # Local scratch tooling
29
+ scripts/analyze_session.py
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,95 @@
1
+ """Let the agent ask the user a multiple-choice question.
2
+
3
+ Install by copying into `~/.tau/extensions/`, or run:
4
+
5
+ tau -e examples/extensions/ask_user_question.py
6
+ """
7
+
8
+ from collections.abc import Mapping
9
+
10
+ from tau_agent.messages import TextContent
11
+ from tau_agent.tools import (
12
+ AgentTool,
13
+ AgentToolResult,
14
+ ToolCancellationToken,
15
+ ToolUpdateCallback,
16
+ )
17
+ from tau_agent.types import JSONValue
18
+ from tau_coding.extensions import ExtensionAPI
19
+
20
+
21
+ def _result(text: str, *, selected: str | None = None) -> AgentToolResult:
22
+ return AgentToolResult(
23
+ content=[TextContent(text=text)],
24
+ details={"selected": selected},
25
+ )
26
+
27
+
28
+ def setup(tau: ExtensionAPI) -> None:
29
+ """Register the ask_user_question tool."""
30
+
31
+ async def ask_user_question(
32
+ tool_call_id: str,
33
+ arguments: Mapping[str, JSONValue],
34
+ signal: ToolCancellationToken | None = None,
35
+ on_update: ToolUpdateCallback | None = None,
36
+ ) -> AgentToolResult:
37
+ del tool_call_id, signal, on_update
38
+
39
+ question = arguments.get("question")
40
+ if not isinstance(question, str) or not question.strip():
41
+ return _result("The question must be a non-empty string.")
42
+
43
+ raw_options = arguments.get("options")
44
+ if not isinstance(raw_options, list) or len(raw_options) < 2:
45
+ return _result("At least two options are required.")
46
+
47
+ options: list[str] = []
48
+ for option in raw_options:
49
+ if not isinstance(option, str) or not option.strip():
50
+ return _result("Every option must be a non-empty string.")
51
+ options.append(option.strip())
52
+ if len(set(options)) != len(options):
53
+ return _result("Options must be unique.")
54
+
55
+ selected = await tau.context.ui.select(question.strip(), options)
56
+ if selected is None:
57
+ return _result("The user did not select an option.")
58
+ return _result(f"The user selected: {selected}", selected=selected)
59
+
60
+ tau.register_tool(
61
+ AgentTool(
62
+ name="ask_user_question",
63
+ label="ask user question",
64
+ description=(
65
+ "Ask the user one multiple-choice question and wait for their selection. "
66
+ "Use this when user input is needed before proceeding."
67
+ ),
68
+ parameters={
69
+ "type": "object",
70
+ "properties": {
71
+ "question": {
72
+ "type": "string",
73
+ "minLength": 1,
74
+ "description": "The question to show the user.",
75
+ },
76
+ "options": {
77
+ "type": "array",
78
+ "minItems": 2,
79
+ "uniqueItems": True,
80
+ "items": {"type": "string", "minLength": 1},
81
+ "description": "The available answers.",
82
+ },
83
+ },
84
+ "required": ["question", "options"],
85
+ "additionalProperties": False,
86
+ },
87
+ execute_fn=ask_user_question,
88
+ execution_mode="sequential",
89
+ prompt_snippet="Ask the user a multiple-choice question when their input is needed.",
90
+ prompt_guidelines=(
91
+ "When ask_user_question reports no selection, do not assume an answer; "
92
+ "ask how the user wants to proceed.",
93
+ ),
94
+ )
95
+ )
anytau-0.1.0/AGENTS.md ADDED
@@ -0,0 +1,81 @@
1
+ # Tau Agent Instructions
2
+
3
+ Tau is a Python implementation of Pi's minimalist coding-agent harness architecture. The goal is to develop it incrementally, with each phase clearly documented and tested.
4
+
5
+ ## Project Roadmap
6
+
7
+ The implementation roadmap is tracked in GitHub issue #1:
8
+
9
+ - https://github.com/huggingface/tau/issues/1
10
+
11
+ Use that issue as the primary reference for phase ordering and architectural intent.
12
+
13
+ ## Architecture Principles
14
+
15
+ Preserve Pi's core separation of concerns:
16
+
17
+ ```text
18
+ AgentHarness = reusable agent brain
19
+ AgentSession = coding-agent environment
20
+ TUI = one possible frontend
21
+ ```
22
+
23
+ Tau should be organized around these layers:
24
+
25
+ ```text
26
+ tau_ai provider/model streaming layer
27
+ tau_agent portable agent harness, loop, tools, events, sessions
28
+ tau_coding CLI app, resources, skills, extensions, commands, TUI integration
29
+ ```
30
+
31
+ Keep the core agent package independent of CLI, Textual, Rich rendering, session file locations, and application-specific resource loading.
32
+
33
+ ## TUI Direction
34
+
35
+ Use Textual for the full interactive TUI, but only behind an adapter boundary. The agent harness should emit events; UI layers should consume those events.
36
+
37
+ Early phases should prioritize:
38
+
39
+ 1. print-mode CLI
40
+ 2. Rich renderers
41
+ 3. Textual interactive app
42
+
43
+ Do not let Textual become a dependency of the reusable agent harness.
44
+
45
+ ## Development Workflow
46
+
47
+ - Work in small, documented phases.
48
+ - Keep changes aligned with the roadmap issue.
49
+ - Add or update docs when introducing architectural concepts.
50
+ - Add tests for behavior before expanding features.
51
+ - Run tests and Python commands through `uv` (for example, `uv run pytest` or `uv run python ...`) so they use the project environment.
52
+ - Prefer simple, explicit abstractions over framework-heavy designs.
53
+ - Keep commits atomic: one coherent feature, fix, docs update, refactor, or cleanup per commit.
54
+
55
+ ## GitHub Issue and PR Formatting
56
+
57
+ - When creating or editing GitHub issues and pull requests from the CLI, write multiline Markdown bodies through a temporary file or heredoc and pass them with `--body-file`.
58
+ - Do not pass escaped newlines like `\n` inside quoted `--body` strings; GitHub will render them literally instead of as line breaks.
59
+ - Use Markdown headings, blank lines, bullets, and backticks for commands/paths so issue and PR descriptions are readable.
60
+ - After creating or editing a GitHub issue or PR body, verify the rendered source with `gh issue view ... --json body` or `gh pr view ... --json body` when practical.
61
+
62
+ ## Python Guidelines
63
+
64
+ - Target the Python version declared in `pyproject.toml`.
65
+ - Prefer typed dataclasses or schema models for core messages, events, tools, and sessions.
66
+ - Keep async boundaries explicit.
67
+ - Use fake providers and fake tools for deterministic agent-loop tests.
68
+ - Avoid provider-specific assumptions in core agent code.
69
+
70
+ ## Documentation Expectations
71
+
72
+ Each substantial phase should leave behind beginner-friendly notes under `dev-notes/` (build journals, design docs, ADRs), explaining:
73
+
74
+ - what was added
75
+ - why it exists
76
+ - how it maps to Pi's design
77
+ - how to test or use it
78
+
79
+ When a phase adds or changes user-facing behavior, also update the published docs
80
+ under `website/content/` (the "Use Tau" guides and reference).
81
+
@@ -0,0 +1,155 @@
1
+ # Contributing to Tau
2
+
3
+ Thanks for helping improve Tau. Tau is both a usable terminal coding agent and a teaching codebase for understanding how coding agents are built. Contributions should preserve that dual purpose: make the tool better while keeping the architecture small, readable, and easy to learn from.
4
+
5
+ ## Project philosophy
6
+
7
+ Tau is organized around three layers:
8
+
9
+ ```text
10
+ tau_ai provider/model streaming layer
11
+ tau_agent portable agent harness, loop, tools, events, sessions
12
+ tau_coding CLI app, resources, skills, extensions, commands, TUI integration
13
+ ```
14
+
15
+ The key boundary is:
16
+
17
+ ```text
18
+ AgentHarness = reusable agent brain
19
+ AgentSession = coding-agent environment
20
+ TUI = one possible frontend
21
+ ```
22
+
23
+ Please keep these principles in mind:
24
+
25
+ - **Small layers beat magic.** Each package should have one clear job.
26
+ - **Events are the contract.** The harness emits typed events; UI and renderers consume them.
27
+ - **The core stays portable.** `tau_agent` should not depend on the CLI, Textual, Rich, local config paths, or Tau-specific resource loading.
28
+ - **Tools are ordinary typed functions.** Prefer explicit schemas and structured results.
29
+ - **Sessions are durable and inspectable.** Avoid changes that make history hard to read, resume, or export.
30
+ - **Documentation follows implementation.** User-facing behavior and architectural decisions should be documented.
31
+
32
+ ## Local development
33
+
34
+ Use `uv` for Python commands so they run in the project environment.
35
+
36
+ ```bash
37
+ uv sync --dev
38
+ uv run tau --version
39
+ ```
40
+
41
+ Run Tau from the checkout:
42
+
43
+ ```bash
44
+ uv run tau
45
+ uv run tau -p "explain this repo"
46
+ ```
47
+
48
+ To expose the checkout as a global `tau` command, use:
49
+
50
+ ```bash
51
+ uv tool install --editable --force .
52
+ ```
53
+
54
+ Repeat that command after `git pull`. The editable link makes source changes
55
+ live, but uv must reinstall the tool to refresh package metadata (including the
56
+ version), dependencies, and entry points.
57
+
58
+ ## Checks before submitting
59
+
60
+ Run the relevant focused tests while developing, then run the full checks before opening a pull request when practical:
61
+
62
+ ```bash
63
+ uv run pytest
64
+ uv run ruff check .
65
+ uv run ruff format --check .
66
+ uv run mypy
67
+ ```
68
+
69
+ For the documentation site (a [Hugo](https://gohugo.io/) project):
70
+
71
+ ```bash
72
+ cd website
73
+ hugo server -D
74
+ hugo --minify
75
+ ```
76
+
77
+ ## Where changes belong
78
+
79
+ Use the layer boundaries to decide where code should live:
80
+
81
+ - Provider integrations, model adapters, and provider-neutral streaming belong in `tau_ai`.
82
+ - Agent loop behavior, tool abstractions, events, messages, harnesses, and portable session primitives belong in `tau_agent`.
83
+ - CLI behavior, slash commands, TUI integration, local config, resources, skills, prompt templates, and coding-specific tools belong in `tau_coding`.
84
+ - Textual-specific code should stay behind the TUI layer.
85
+ - Rich rendering should not leak into the reusable agent harness.
86
+
87
+ If a change crosses layers, prefer adding a small typed boundary instead of importing app-specific details into core code.
88
+
89
+ ## Adding a provider or model
90
+
91
+ The built-in provider catalog is data, not code: edit
92
+ `src/tau_coding/data/catalog.toml` and open a PR — no Python changes needed.
93
+ Each `[[providers]]` table declares the provider's name, kind
94
+ (`openai-compatible`, `anthropic`, or `openai-codex`), base URL, models,
95
+ default model, context windows, and thinking configuration. Validation happens
96
+ at load time, so a typo fails tests with a pointed error message.
97
+
98
+ For personal or unreleased providers, create `~/.tau/catalog.toml` with the
99
+ same schema — it is overlaid on the built-in catalog (your values win, models
100
+ are unioned) and needs no PR at all.
101
+
102
+ ## Testing expectations
103
+
104
+ - Add or update tests for behavior changes.
105
+ - Use fake providers and fake tools for deterministic agent-loop tests.
106
+ - Keep core tests free of provider-specific assumptions.
107
+ - Add regression tests for bugs.
108
+ - Prefer focused tests that describe the behavior being protected.
109
+
110
+ ## Documentation expectations
111
+
112
+ For substantial architectural or phase-oriented work, add beginner-friendly notes under `dev-notes/` explaining:
113
+
114
+ - what changed
115
+ - why it exists
116
+ - how it maps to Tau's architecture
117
+ - how to test or use it
118
+
119
+ For user-facing behavior, update the published docs under:
120
+
121
+ ```text
122
+ website/content/
123
+ ```
124
+
125
+ ## Release process
126
+
127
+ Tau is published to PyPI as `tau-ai`. Publishing is a production release action,
128
+ not a side effect of every commit merged to `main`.
129
+
130
+ To prepare a release, intentionally bump `[project].version` in `pyproject.toml`
131
+ and merge that change through a pull request. The PyPI workflow publishes only
132
+ when it detects that version change, or when a maintainer uses an explicit
133
+ release trigger such as a published GitHub Release or manual workflow dispatch.
134
+ See [dev-notes/release-process.md](dev-notes/release-process.md) for the full
135
+ process.
136
+
137
+ ## Pull request guidelines
138
+
139
+ Good Tau pull requests are small, focused, and easy to review. Please include:
140
+
141
+ - the motivation for the change
142
+ - a summary of behavior changes
143
+ - tests or checks you ran
144
+ - screenshots or terminal output for TUI/CLI changes when useful
145
+ - notes about compatibility, migrations, config changes, or provider-specific behavior
146
+
147
+ Avoid unrelated refactors in feature or bug-fix PRs. If a larger design change is needed, open an issue or discussion first.
148
+
149
+ ## Roadmap alignment
150
+
151
+ Tau is developed incrementally. For larger changes, check the roadmap issue before starting:
152
+
153
+ <https://github.com/huggingface/tau/issues/1>
154
+
155
+ When in doubt, favor the smallest step that preserves the architecture and teaches the design clearly.
anytau-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alejandro AO
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.