aetheris 1.3.0__tar.gz → 1.4.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 (212) hide show
  1. {aetheris-1.3.0 → aetheris-1.4.0}/.gitignore +2 -0
  2. {aetheris-1.3.0 → aetheris-1.4.0}/ARCHITECTURE.md +29 -4
  3. {aetheris-1.3.0 → aetheris-1.4.0}/CHANGELOG.md +195 -0
  4. {aetheris-1.3.0/aetheris.egg-info → aetheris-1.4.0}/PKG-INFO +13 -13
  5. {aetheris-1.3.0 → aetheris-1.4.0}/README.md +12 -12
  6. {aetheris-1.3.0 → aetheris-1.4.0}/TODO.md +52 -0
  7. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/__init__.py +1 -1
  8. aetheris-1.4.0/aetheris/agents.py +144 -0
  9. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/app.py +489 -87
  10. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/background.py +2 -2
  11. aetheris-1.4.0/aetheris/checkpoint.py +164 -0
  12. aetheris-1.4.0/aetheris/claudecompat.py +87 -0
  13. aetheris-1.4.0/aetheris/clipimage.py +134 -0
  14. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/commands.py +4 -1
  15. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/config.py +63 -2
  16. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/connect.py +21 -16
  17. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/context.py +8 -2
  18. aetheris-1.4.0/aetheris/diagnostics.py +79 -0
  19. aetheris-1.4.0/aetheris/doctor.py +223 -0
  20. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/git_ops.py +196 -2
  21. aetheris-1.4.0/aetheris/hooks.py +674 -0
  22. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/llm_client.py +131 -15
  23. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/mcp_client.py +127 -12
  24. aetheris-1.4.0/aetheris/mcp_oauth.py +474 -0
  25. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/modes.py +18 -2
  26. aetheris-1.4.0/aetheris/notebook.py +155 -0
  27. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/permissions.py +91 -15
  28. aetheris-1.4.0/aetheris/picker.py +403 -0
  29. aetheris-1.4.0/aetheris/plugins.py +283 -0
  30. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/promptkeys.py +57 -1
  31. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/providers.py +7 -0
  32. aetheris-1.4.0/aetheris/sandbox.py +372 -0
  33. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/screen.py +24 -0
  34. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/session.py +49 -0
  35. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/shell_session.py +15 -8
  36. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/skills.py +2 -1
  37. aetheris-1.4.0/aetheris/statusline.py +207 -0
  38. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/subagent.py +53 -15
  39. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/symbols.py +13 -6
  40. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/systemprompt.py +43 -15
  41. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/tools.py +680 -131
  42. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/toolspec.py +23 -2
  43. aetheris-1.4.0/aetheris/toolspin.py +193 -0
  44. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/trust.py +34 -1
  45. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/tui.py +381 -31
  46. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/update.py +92 -1
  47. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/vault.py +11 -7
  48. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/verify.py +5 -4
  49. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/vm.py +3 -2
  50. aetheris-1.4.0/aetheris/winsandbox.py +399 -0
  51. {aetheris-1.3.0 → aetheris-1.4.0/aetheris.egg-info}/PKG-INFO +13 -13
  52. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris.egg-info/SOURCES.txt +37 -0
  53. {aetheris-1.3.0 → aetheris-1.4.0}/docs/agents.md +52 -1
  54. {aetheris-1.3.0 → aetheris-1.4.0}/docs/configuration.md +25 -2
  55. {aetheris-1.3.0 → aetheris-1.4.0}/docs/design.md +24 -1
  56. {aetheris-1.3.0 → aetheris-1.4.0}/docs/features.md +3 -1
  57. aetheris-1.4.0/docs/hooks.md +167 -0
  58. {aetheris-1.3.0 → aetheris-1.4.0}/docs/permissions.md +52 -5
  59. {aetheris-1.3.0 → aetheris-1.4.0}/docs/running-commands.md +54 -0
  60. {aetheris-1.3.0 → aetheris-1.4.0}/docs/skills-and-mcp.md +62 -4
  61. {aetheris-1.3.0 → aetheris-1.4.0}/docs/slash-commands.md +12 -3
  62. aetheris-1.4.0/docs/superpowers/plans/2026-12-04-ask-user-picker.md +228 -0
  63. aetheris-1.4.0/docs/superpowers/plans/2026-12-04-claude-compat-and-sandbox.md +131 -0
  64. aetheris-1.4.0/docs/superpowers/plans/2026-12-04-terminal-extras.md +233 -0
  65. aetheris-1.4.0/docs/superpowers/specs/2026-12-04-ask-user-picker-design.md +142 -0
  66. aetheris-1.4.0/docs/superpowers/specs/2026-12-04-claude-code-compat-and-sandbox-design.md +384 -0
  67. {aetheris-1.3.0 → aetheris-1.4.0}/docs/tools.md +4 -2
  68. {aetheris-1.3.0 → aetheris-1.4.0}/docs/undo-and-verify.md +7 -2
  69. aetheris-1.4.0/tests/test_agents.py +255 -0
  70. aetheris-1.4.0/tests/test_checkpoint.py +104 -0
  71. aetheris-1.4.0/tests/test_claude_hooks.py +435 -0
  72. aetheris-1.4.0/tests/test_claudecompat.py +133 -0
  73. aetheris-1.4.0/tests/test_clipimage.py +206 -0
  74. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_compat.py +3 -1
  75. aetheris-1.4.0/tests/test_diagnostics.py +78 -0
  76. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_diff.py +7 -2
  77. aetheris-1.4.0/tests/test_doctor.py +135 -0
  78. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_hashline_edit.py +3 -2
  79. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_hooks.py +11 -0
  80. aetheris-1.4.0/tests/test_hunks.py +202 -0
  81. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_isolation.py +3 -1
  82. aetheris-1.4.0/tests/test_mcp_oauth.py +381 -0
  83. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_modes.py +15 -14
  84. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_native_tools.py +2 -0
  85. aetheris-1.4.0/tests/test_notebook.py +101 -0
  86. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_permissions.py +57 -0
  87. aetheris-1.4.0/tests/test_picker.py +421 -0
  88. aetheris-1.4.0/tests/test_plugins.py +321 -0
  89. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_registry.py +35 -3
  90. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_remote.py +14 -2
  91. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_resize.py +17 -0
  92. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_resume.py +21 -0
  93. aetheris-1.4.0/tests/test_sandbox.py +564 -0
  94. aetheris-1.4.0/tests/test_secret_input.py +157 -0
  95. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_select.py +3 -2
  96. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_settings.py +6 -0
  97. aetheris-1.4.0/tests/test_statusline.py +185 -0
  98. aetheris-1.4.0/tests/test_stream_spin.py +232 -0
  99. aetheris-1.4.0/tests/test_toolspin.py +92 -0
  100. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_trust.py +43 -0
  101. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_update.py +74 -0
  102. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_verify.py +3 -2
  103. aetheris-1.4.0/tests/test_vim_mode.py +87 -0
  104. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_wrap.py +4 -1
  105. aetheris-1.3.0/aetheris/hooks.py +0 -240
  106. aetheris-1.3.0/docs/hooks.md +0 -79
  107. {aetheris-1.3.0 → aetheris-1.4.0}/.github/check_dist.py +0 -0
  108. {aetheris-1.3.0 → aetheris-1.4.0}/.github/check_version.py +0 -0
  109. {aetheris-1.3.0 → aetheris-1.4.0}/.github/workflows/ci.yml +0 -0
  110. {aetheris-1.3.0 → aetheris-1.4.0}/.github/workflows/publish.yml +0 -0
  111. {aetheris-1.3.0 → aetheris-1.4.0}/.mcp.json.example +0 -0
  112. {aetheris-1.3.0 → aetheris-1.4.0}/.permissions.json.example +0 -0
  113. {aetheris-1.3.0 → aetheris-1.4.0}/LICENSE +0 -0
  114. {aetheris-1.3.0 → aetheris-1.4.0}/MANIFEST.in +0 -0
  115. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/__main__.py +0 -0
  116. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/atomic.py +0 -0
  117. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/attacca.py +0 -0
  118. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/channel.py +0 -0
  119. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/deepthink.py +0 -0
  120. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/events.py +0 -0
  121. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/images.py +0 -0
  122. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/keystore.py +0 -0
  123. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/mentions.py +0 -0
  124. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/netguard.py +0 -0
  125. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/notes.py +0 -0
  126. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/paths.py +0 -0
  127. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/py.typed +0 -0
  128. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/qr.py +0 -0
  129. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/remote.py +0 -0
  130. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/renderer.py +0 -0
  131. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/rewind.py +0 -0
  132. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/scheduler.py +0 -0
  133. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/sse.py +0 -0
  134. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/terms.py +0 -0
  135. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/todos.py +0 -0
  136. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/transcript.py +0 -0
  137. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/websearch.py +0 -0
  138. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/worktree.py +0 -0
  139. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris/zyris.py +0 -0
  140. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris.egg-info/dependency_links.txt +0 -0
  141. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris.egg-info/entry_points.txt +0 -0
  142. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris.egg-info/requires.txt +0 -0
  143. {aetheris-1.3.0 → aetheris-1.4.0}/aetheris.egg-info/top_level.txt +0 -0
  144. {aetheris-1.3.0 → aetheris-1.4.0}/bench/.gitignore +0 -0
  145. {aetheris-1.3.0 → aetheris-1.4.0}/bench/fixtures/stats.py +0 -0
  146. {aetheris-1.3.0 → aetheris-1.4.0}/bench/run.py +0 -0
  147. {aetheris-1.3.0 → aetheris-1.4.0}/docs/deepthink.md +0 -0
  148. {aetheris-1.3.0 → aetheris-1.4.0}/docs/demo.md +0 -0
  149. {aetheris-1.3.0 → aetheris-1.4.0}/docs/library.md +0 -0
  150. {aetheris-1.3.0 → aetheris-1.4.0}/docs/providers.md +0 -0
  151. {aetheris-1.3.0 → aetheris-1.4.0}/docs/remote.md +0 -0
  152. {aetheris-1.3.0 → aetheris-1.4.0}/docs/setup.md +0 -0
  153. {aetheris-1.3.0 → aetheris-1.4.0}/docs/web-search.md +0 -0
  154. {aetheris-1.3.0 → aetheris-1.4.0}/pyproject.toml +0 -0
  155. {aetheris-1.3.0 → aetheris-1.4.0}/requirements.txt +0 -0
  156. {aetheris-1.3.0 → aetheris-1.4.0}/setup.cfg +0 -0
  157. {aetheris-1.3.0 → aetheris-1.4.0}/skills/README.md +0 -0
  158. {aetheris-1.3.0 → aetheris-1.4.0}/skills/code-review/SKILL.md +0 -0
  159. {aetheris-1.3.0 → aetheris-1.4.0}/skills/git-commit/SKILL.md +0 -0
  160. {aetheris-1.3.0 → aetheris-1.4.0}/skills/git-commit/types.md +0 -0
  161. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_attacca.py +0 -0
  162. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_bench.py +0 -0
  163. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_btw.py +0 -0
  164. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_caching.py +0 -0
  165. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_channel.py +0 -0
  166. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_commands.py +0 -0
  167. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_compact.py +0 -0
  168. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_copy.py +0 -0
  169. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_deepthink.py +0 -0
  170. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_dist.py +0 -0
  171. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_docs.py +0 -0
  172. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_durability.py +0 -0
  173. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_encoding.py +0 -0
  174. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_fork.py +0 -0
  175. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_git_ops.py +0 -0
  176. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_headless.py +0 -0
  177. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_images.py +0 -0
  178. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_instructions.py +0 -0
  179. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_interrupt.py +0 -0
  180. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_keys.py +0 -0
  181. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_loops.py +0 -0
  182. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_malformed_state.py +0 -0
  183. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_mcp_lazy.py +0 -0
  184. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_memory.py +0 -0
  185. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_mentions.py +0 -0
  186. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_multi_edit.py +0 -0
  187. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_notes.py +0 -0
  188. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_paths.py +0 -0
  189. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_platform.py +0 -0
  190. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_project_dirs.py +0 -0
  191. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_pull.py +0 -0
  192. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_qr.py +0 -0
  193. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_read_range.py +0 -0
  194. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_retry.py +0 -0
  195. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_rewind.py +0 -0
  196. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_search.py +0 -0
  197. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_session_ops.py +0 -0
  198. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_sse.py +0 -0
  199. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_subagent.py +0 -0
  200. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_symbols.py +0 -0
  201. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_tasks.py +0 -0
  202. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_tdd.py +0 -0
  203. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_terms.py +0 -0
  204. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_todos.py +0 -0
  205. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_tool_parsing.py +0 -0
  206. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_tool_reporting.py +0 -0
  207. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_transcript.py +0 -0
  208. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_usage.py +0 -0
  209. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_vault.py +0 -0
  210. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_vm.py +0 -0
  211. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_window_effort.py +0 -0
  212. {aetheris-1.3.0 → aetheris-1.4.0}/tests/test_zyris.py +0 -0
@@ -22,3 +22,5 @@ build/
22
22
  dist/
23
23
  *.egg-info/
24
24
  *.egg-info
25
+ v.*
26
+ text.txt
@@ -12,9 +12,9 @@ mistakes are.
12
12
 
13
13
  ## 1. What this is
14
14
 
15
- A terminal AI assistant, ~32,500 lines of Python, no framework. It talks to
15
+ A terminal AI assistant, ~38,000 lines of Python, no framework. It talks to
16
16
  Ollama, Anthropic, OpenAI and Gemini over plain HTTP (no vendor SDKs), gives the
17
- model 46 tools, and runs them with the user's approval. It can also hand whole
17
+ model 48 tools, and runs them with the user's approval. It can also hand whole
18
18
  turns to an agent hosted on Attacca and run the tools that agent calls back
19
19
  for (§8d).
20
20
 
@@ -641,9 +641,14 @@ Layered by what may import what. A module may import anything above it.
641
641
  app.py the loop, slash commands, session lifecycle
642
642
  └ llm_client.py chat_turn / stream_reply / the JSON repair engine
643
643
  └ tools.py dispatch_tool + every tool handler
644
+ └ sandbox.py the OS sandbox around run_cmd, run_python, auto-verify
645
+ └ winsandbox.py its Windows half: a low-integrity token
644
646
  └ context.py token budget, trimming, compression
645
647
  └ verify.py the project's own check, run after a turn that wrote a file
646
648
  └ deepthink.py the six-stage chain
649
+ └ plugins.py Claude Code's installed plugins and /plugin folders
650
+ └ agents.py the agent files spawn_agent can hire
651
+ └ claudecompat.py Claude Code's names, both ways (imports nothing local)
647
652
  └ subagent.py spawn_agent's own conversation loop
648
653
  └ worktree.py the git worktree an isolated sub-agent works in
649
654
  └ scheduler.py /loop and /schedule: what is due, and when
@@ -691,8 +696,15 @@ app.py the loop, slash commands, session lifecycle
691
696
  | `images.py` | Recognising an image, resizing one too big for an API, and the base64 a provider sends (5.17) | The four wire shapes - `providers` builds those |
692
697
  | `mentions.py` | `@path` in a typed message: what it names, and what it attaches | Printing - the caller does that |
693
698
  | `permissions.py` | Rule loading and the allow/deny/ask decision | |
694
- | `hooks.py` | `hooks.json` and a trusted `.hooks.json`: which hook matches a call (by permission rule), running it with the call on stdin and no provider keys, and `turn_end` | Where in a call they run - that is `dispatch_tool` |
695
- | `trust.py` | Which project `.mcp.json` / `.permissions.json` the person trusted: a yes kept in the home against the file's sha256, a no for the session | Asking - `app._settle_trust` does, before either file is read |
699
+ | `hooks.py` | `hooks.json`, a trusted `.hooks.json`, and Claude Code's hooks (its settings files, plugins): which hook matches a call, running it with the call on stdin and no provider keys - Claude's exec form (`args`) directly, its shell form in `sh`, or Git Bash / PowerShell on Windows - and `turn_end` | Where in a call they run - that is `dispatch_tool` |
700
+ | `trust.py` | Which project files (`.mcp.json`, `.permissions.json`, hooks, agent files) and which plugins (by name, version and folder) the person trusted: a file's yes kept in the home against its sha256, a no for the session; a plugin's answer kept either way | Asking - `app._settle_trust` does, as one checklist, before any of them is read |
701
+ | `claudecompat.py` | Claude Code's vocabulary - tool names, argument names, hook matchers - both ways. Imports nothing local | Reading a Claude Code file - each caller reads its own |
702
+ | `plugins.py` | Which plugins there are (Claude Code's installed ones with `CLAUDE_COMPAT`, `/plugin add` folders), which are on, and the folders each adds | Asking - `app._settle_trust` does |
703
+ | `agents.py` | Agent files (`.aetheris/agents`, `.claude/agents`, the home's, plugins'): name, description, tools, model, prompt | Running one - `subagent` does |
704
+ | `sandbox.py` | Wrapping what the model runs in bubblewrap, `sandbox-exec` or a low-integrity token, and the session's scratch directory | Whether a command may run at all - `permissions` decides |
705
+ | `winsandbox.py` | The Windows token and the low labels on writable directories, put back after a crash. Over ctypes | |
706
+ | `vault.py` | `.env` values: kept out of what the model reads and sends, filled back in by the harness | |
707
+ | `mcp_oauth.py` | The MCP authorization flow (discovery, registration, PKCE), the stored tokens and `${user_config.*}` keys, and the pasted callback where no browser can open | Connecting - `mcp_client` asks it for a header |
696
708
  | `shell_session.py` | Live commands, waiting-vs-busy detection | |
697
709
  | `vm.py` | The scratch Python process: its wire protocol, its ceilings, and restarting it after it dies | How the result is worded - that is `tools.handle_run_python` |
698
710
  | `mcp_client.py` | MCP transports, JSON-RPC, MCP tool schemas, which servers are described now | Whether the *built-in* tools are shown - that is `toolspec` |
@@ -709,6 +721,19 @@ app.py the loop, slash commands, session lifecycle
709
721
  | `update.py` | Asking PyPI for the newest version, once a day, and `/update` | Installing without a yes |
710
722
  | `atomic.py`, `sse.py`, `paths.py` | One job each. Stdlib only, importing nothing local. `paths` also owns the two names derived from something that was not chosen to be a filename: `safe_name` and `workspace_slug` | |
711
723
  | `terms.py` | What the harness does to this machine, asked once before it does it | |
724
+ | `picker.py` | The arrow-key picker: `get_user_input`'s questions and the trust checklist. `Picker` takes key names and knows no terminal | Asking the old way - each caller falls back when it cannot be shown |
725
+ | `modes.py` | The permission mode (manual, plan, accept-edits, deepthink, auto) as a combination of settings, and Shift+Tab | Storing it - the settings are the storage |
726
+ | `connect.py` | `/connect`: picking a provider and a model, keys typed as `****` | The wire - that is `providers` |
727
+ | `doctor.py` | `/doctor`'s checks (`CHECKS`); read-only, and a check that throws is a `fail` line | Fixing anything |
728
+ | `checkpoint.py` | File snapshots for `/undo` where there is no commit to take back | Git's own undo - that is `git_ops` |
729
+ | `rewind.py` | `/rewind`: a snapshot of the history at each typed message | |
730
+ | `todos.py` | `update_todos`' list, kept with the session, and the reminder added to what is sent | The stored history - the reminder never goes there |
731
+ | `notebook.py` | `read_notebook` and `edit_notebook`: cells as code, the JSON written by the harness | Approval and `/undo` - the file tools' path does both |
732
+ | `diagnostics.py` | A linter on the one file a tool just wrote (ruff, else a syntax check) | The suite - that is `verify` |
733
+ | `toolspin.py` | The spinner while a tool runs, stopped by the tool's own first output | |
734
+ | `statusline.py` | The person's status line command, run off the prompt's thread | |
735
+ | `clipimage.py` | A copied picture from the clipboard, saved as a PNG for the next message | Pasting text - `promptkeys` does |
736
+ | `__main__.py` | `python -m aetheris` | |
712
737
 
713
738
  ---
714
739
 
@@ -32,6 +32,201 @@ own, and out to a package of its own only when someone needs it there.
32
32
 
33
33
  ---
34
34
 
35
+ ## 1.4.0 - 2026-12-06
36
+
37
+ - **Claude Code's hooks run here.** A `"hooks"` object in
38
+ `~/.claude/settings.json`, a trusted `.claude/settings.json` or
39
+ `settings.local.json`, or a trusted plugin is read in Claude Code's format:
40
+ `PreToolUse`, `PostToolUse`, `UserPromptSubmit`, `Stop`, `SubagentStop`,
41
+ `SessionStart`, `SessionEnd`, `PreCompact` and `Notification`, with Claude's
42
+ stdin JSON, exit code 2, `decision`, `permissionDecision` and
43
+ `updatedInput`. A rewritten call goes through the harness's guards and the
44
+ permission rules again. `CLAUDE_COMPAT` (on) turns it off. See
45
+ `docs/hooks.md`.
46
+ - **Claude Code's agents and plugins.** `spawn_agent` runs the agents in
47
+ `.claude/agents/` and `~/.claude/agents/` (`tools`, `model`), and a plugin -
48
+ Claude Code's installed ones or a folder added with `/plugin add` - brings
49
+ its skills, commands, agents, hooks and MCP servers. Nothing of a plugin is
50
+ used until you say yes to it, and a new version or another folder is asked
51
+ about again - so a plugin trusted under 1.3 is asked once more, while one
52
+ refused then stays refused (`/plugin` says so). At a
53
+ terminal every undecided plugin and project file is one checklist: the
54
+ arrows move, Space checks, `a` checks them all, Enter on Approve decides.
55
+ The welcome's skills row is cut to the terminal's width (`+5 more`).
56
+ - **Hooks run the way Claude Code runs them.** An entry with `args` (exec
57
+ form) starts `command` directly with those arguments and the path
58
+ placeholders filled in; the args used to be dropped, so `python3` ran
59
+ alone, which on Windows opened the Microsoft Store at every start and
60
+ `/clear`. On Windows a shell-form hook runs in Git Bash, or PowerShell
61
+ when there is none or `"shell": "powershell"` says so; cmd.exe knew
62
+ neither `${CLAUDE_PLUGIN_ROOT}` nor a `.sh` script.
63
+ - **Claude Code's names in rules and matchers.** `Bash(git push:*)`,
64
+ `Edit(/src/**)`, `Read(~/.ssh/**)` and `WebFetch(domain:example.com)` mean
65
+ here what they mean there: `:*` is a prefix, `Edit` covers every tool that
66
+ writes, `//`, `~/` and `/` anchor a path, and a domain is matched against
67
+ the host. A native write deny such as `write_file(*/.env)` now also holds
68
+ for `copy_file`, `move_file` and `edit_notebook`, but not `delete_file`:
69
+ add `delete_file(...)` to stop a removal. Hooks are told the current tool
70
+ names (`Agent`, `TaskStop`) and a matcher with an old one (`Task`,
71
+ `KillShell`) still matches.
72
+ - **A sandbox for what the model runs.** `/set SANDBOX on` confines
73
+ `run_cmd`, `run_python` and auto-verify: writes only in the project, the
74
+ `/add-dir` directories and a scratch dir, and no network unless
75
+ `SANDBOX_NETWORK` is on - bubblewrap on Linux, `sandbox-exec` on macOS, a
76
+ low-integrity token on Windows (no network block there). With the tool
77
+ missing a command is refused, never run bare. `sandbox: false` runs one
78
+ command outside, and always asks. A repository's `.git` config and hooks
79
+ stay read-only, so the harness's own git cannot be turned into a way out.
80
+ See `docs/running-commands.md`.
81
+ - **Files that run commands are not for tools to write.** Besides
82
+ `~/.aetheris/`'s control files, `~/.claude/settings.json` and a trusted
83
+ plugin's `hooks/hooks.json` and `.mcp.json` are refused to every file tool.
84
+ - **A better working brief for the model.** The system prompt gains a
85
+ "How to work" section: settle what is asked, finish all of it, check it
86
+ by running it, stay inside the request, and end with a report that says
87
+ what was not checked. Retrying stops after the same error twice, the
88
+ safety rule names the irreversible commands it means, and a surprising
89
+ tool result is reported rather than smoothed over. `/compact` summaries
90
+ now keep the goal, decisions, files, commands and results, and next
91
+ steps under fixed headings, with paths and errors quoted exactly.
92
+ - **Vim keys in the prompt.** `/set VIM_MODE on`: Esc for normal mode, `i`
93
+ back to insert, and the line under the prompt says which. Shift+Tab, Ctrl+O
94
+ and pastes still work in insert mode.
95
+ - **Pasting a picture.** Ctrl+V (Alt+V in Windows Terminal) reads a copied
96
+ image from the system clipboard and puts it in the box as `[Image #1]`; it
97
+ goes to the model the way `@shot.png` does. With no picture on the
98
+ clipboard it pastes the clipboard's text instead; in vi normal or visual
99
+ mode Ctrl+V stays visual block. No clipboard at all - over SSH, or no
100
+ display - and the key says so and leaves the box alone.
101
+ - **`/doctor`.** One screen of what is wrong and how to fix it: Python and the
102
+ version, whether the provider answers, config files that will not read or
103
+ wait to be trusted, MCP servers, `git`/`rg`, the clipboard, the terminal and
104
+ the status line command.
105
+ - **A status line of your own.** `STATUS_LINE_COMMAND` is run with the session
106
+ as JSON on stdin, and its first line is drawn over the mode line. The keys
107
+ are Claude Code's, and with `CLAUDE_COMPAT` on (the default) Claude Code's
108
+ own `statusLine` from `~/.claude/settings.json` is used when this is empty.
109
+ - **`/undo` works without git.** Outside a repository, or with `/autocommit`
110
+ off, each write tool's files are copied to `~/.aetheris/checkpoints/` just
111
+ before it runs, and `/undo` puts this session's newest checkpoint back -
112
+ never one another terminal in the same project made. As with the git path,
113
+ a file that changed after the tool wrote it is not overwritten.
114
+ - **Lint on edit.** A `.py` file a tool writes is checked right away - ruff if
115
+ installed, else pyright, else a syntax check - and the problems come back
116
+ with the tool's result, so the model fixes the line before building on it.
117
+ The linter runs in the sandbox when it is on, and never with the provider
118
+ keys. `LINT_ON_EDIT`, `LINT_TIMEOUT` and `LINT_OUTPUT_CHARS` control it.
119
+ - **A saved setting that cannot be used is said at start-up.** An entry in
120
+ `settings.json` with a value of the wrong kind - `"SANDBOX": "maybe"` - or a
121
+ file that will not parse is listed on the welcome screen with the value in
122
+ force instead, rather than quietly left at the default.
123
+ - **A diff at the approval prompt, and keeping part of it.** `write_file` and
124
+ `edit_file` show the change as a coloured diff before asking. When it has more
125
+ than one hunk, `h` asks about each one in turn; only the kept hunks are
126
+ written, and the model is told which were dropped. `multi_edit` stays one
127
+ change, approved or refused as a whole.
128
+ - **Jupyter notebooks.** `read_notebook` shows a `.ipynb` as numbered cells
129
+ with plain source and text outputs; `edit_notebook` replaces, inserts or
130
+ deletes one cell, and the harness writes the JSON. Replacing a code cell
131
+ clears its stale outputs. Both use the same guards, approval, `/undo` and
132
+ auto-commit as the file tools.
133
+ - **`/sessions` searches the conversation too.** Words that match no title
134
+ are looked for in what the person and the model said, and each hit shows the
135
+ passage it matched. `/load` and `--resume` still match ids and titles only.
136
+ - **MCP servers that need OAuth.** An HTTP server answering 401 now says
137
+ `needs a login - run /mcp login <name>`. `/mcp login` runs the MCP
138
+ authorization flow (protected resource and authorization server discovery,
139
+ dynamic registration or a configured `oauth.client_id`, PKCE in the
140
+ browser, `resource` on every request); tokens are stored owner-only in
141
+ `~/.aetheris/mcp-oauth.json`, hidden like the provider keys, and refreshed
142
+ when they expire or are refused. `/mcp logout` forgets them. Over SSH, or
143
+ with no display, no browser is started - Python's fallback is a text
144
+ browser that took over the terminal and wiped the address - and the
145
+ address the person's own browser ends on is pasted in instead. A server
146
+ that fails says so in a few words at start-up (`cloudflare mcp: 401 ·
147
+ /mcp login cloudflare`, `github mcp: timeout`); `/mcp <name>` shows that
148
+ server in full, an HTML error page read as text.
149
+ - **MCP servers that take an API key.** `${user_config.NAME}` anywhere in a
150
+ server's entry (a header, `env`, `args`) is filled with a key typed in at
151
+ `/mcp login <name>`, asked at the keyboard only and not shown as it is
152
+ typed. It is stored owner-only in
153
+ `~/.aetheris/mcp-oauth.json` per server and per config file, so a project's
154
+ `.mcp.json` reusing the name does not get it, hidden from tool output, and
155
+ filled in only when connecting. A server still missing one says
156
+ `needs NAME - run /mcp login <name>`; `/mcp logout` forgets the keys,
157
+ also once the `${user_config.*}` has left the entry. A server that wants
158
+ both keys and an OAuth login gets the login in the same `/mcp login`.
159
+ A name ending in `url`, `host`, `endpoint`, `base`, `region`, `user`, `id`
160
+ and the like is a plain value: typed in the clear and not hidden.
161
+ - **API keys are typed as `****`.** A provider key at `/connect` and an MCP
162
+ key at `/mcp login` no longer appear on the screen, in the scrollback or in
163
+ the rows Ctrl+O draws again. Backspace works, and the arrow and function
164
+ keys - escape sequences on a terminal, prefixed scan codes on Windows - no
165
+ longer end up inside the key as `^[[D`. End of input partway through a key
166
+ stores nothing, so half a key never replaces one that worked.
167
+ - **A question with fixed answers is asked again** until it gets one. An
168
+ approval's `[y/n/a]`, the tool-call limit's `[y/n]` and the rest no longer
169
+ read a typo or a stray Enter as no. The trust prompt is `[y/n]` for the same
170
+ reason: a blank answer asks again instead of declining. `/connect`'s
171
+ numbered lists ask again on a number that is not on the list.
172
+ - **A spinner while a tool runs.** A tool that takes longer than 0.3 s shows
173
+ a line with an animation for its kind of work - searching, reading, writing,
174
+ running - and what it is working on. The first thing the tool prints takes
175
+ it away, so approval prompts and command output are never drawn over. The
176
+ thinking spinner is unchanged.
177
+ - **The spinner says what the model is writing.** Once a tool call starts to
178
+ stream - as `<tool_call>` text or a native call - the thinking spinner
179
+ turns into the tool's (`Writing app.py · 2.7k chars`) instead of saying
180
+ "thinking" or nothing. A command that runs tests says Running tests, a
181
+ build says Compiling, and a refused request says Retrying while it waits.
182
+ - **Ctrl+O works while a reply streams.** It opens the reply's thinking where
183
+ it is, with what was thought so far, and folds it back to one line in
184
+ place - the screen is redrawn without it rather than a line printed about
185
+ it. Keys typed during
186
+ a reply are no longer echoed into the answer; they are put back on the next
187
+ prompt.
188
+ - **Edits show their diff under `/automode` too.** The diff was only drawn
189
+ above an approval prompt, so with auto-allow on - where nobody is asked - a
190
+ write, edit or `multi_edit` changed files without showing what changed.
191
+ - **The diff is the change, drawn like one.** Each changed line has its number
192
+ and a red or green background across the row, the changed words inside an
193
+ edited line are marked more strongly, and a line above says how much changed.
194
+ The approval box's `from:` / `to:` / `preview:` rows are gone, and the call
195
+ line counts a file tool's text instead of printing it again.
196
+ `/diff 2` and `/diff all` draw their patches the same way.
197
+ - **Esc stops a reply** so you can say what to do instead, the way one Ctrl+C
198
+ does, but it never counts towards quitting. Ctrl+O and Esc during a reply
199
+ work on Windows too.
200
+ - **The model's questions are a picker, the way Claude Code asks.**
201
+ `get_user_input` used to be a numbered list: type a number, press Enter,
202
+ and pick "Custom Input" first to type an answer of your own. Now ↑/↓ and
203
+ Enter (or a digit) choose, each option can carry a one-line description,
204
+ the last row, Other, is typed into in place, a `multiSelect` question has
205
+ checkboxes, and several questions are tabs that end in a Submit tab showing
206
+ every answer before it is sent. Old-style calls with plain string options
207
+ still work. From a phone, a pipe, or without prompt_toolkit the questions
208
+ stay a numbered list.
209
+ - **`SECRET_MIN_LENGTH` reaches the harness's own keys.** A provider or MCP
210
+ key was hidden from tool output only at 8 characters or more, whatever the
211
+ setting said. Lowering the setting now lowers that floor too; raising it
212
+ above 8 does not, so those keys stay hidden.
213
+ - **`/undo` takes back a write a `post_tool` formatter touched.** The
214
+ checkpoint noted the file before the hook ran, so `/undo` refused it as
215
+ changed by someone else. And `/sessions` search no longer stops on a
216
+ session file holding something that is not a message.
217
+
218
+ ## 1.3.1 - 2026-11-20
219
+
220
+ - **`/update` works on Windows.** pip could not replace `Scripts\aetheris.exe`
221
+ while it was the program running the session, and stopped with WinError 32.
222
+ The launcher is now renamed aside before pip runs - Windows allows that for a
223
+ running `.exe` - and put back if pip fails; the old one is deleted on a later
224
+ start. If even the rename is refused, pip is not run and the command to run
225
+ after quitting is shown instead. The fix is in the version that runs
226
+ `/update`, so getting to 1.3.1 itself from 1.3.0 or earlier on Windows still
227
+ takes quitting Aetheris and running
228
+ `python -m pip install --upgrade aetheris` once.
229
+
35
230
  ## 1.3.0 - 2026-11-20
36
231
 
37
232
  Aetheris that works while nobody is typing, and that asks less while somebody
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aetheris
3
- Version: 1.3.0
3
+ Version: 1.4.0
4
4
  Summary: A terminal AI assistant that works with small local models - two tool protocols, one tool table, and an undo for everything it writes.
5
5
  Author: minjun1177
6
6
  License-Expression: Apache-2.0
@@ -59,7 +59,9 @@ Dynamic: license-file
59
59
  A terminal AI assistant that works on your machine: it reads and writes files, runs
60
60
  commands and answers their prompts, searches the web, and can **undo** what it did.
61
61
  It is built for **small local models first** (Ollama), and talks to Anthropic, OpenAI,
62
- Gemini and Attacca with the same tools and the same approval prompts.
62
+ Gemini and Attacca with the same tools and the same approval prompts. It reads a
63
+ **Claude Code** setup as it is - hooks, agents, plugins, permission rules - and can run
64
+ what the model runs in an **OS sandbox**.
63
65
 
64
66
  ```text
65
67
  you ──► prompt box / aetheris -p ──► model (Ollama · Anthropic · OpenAI · Gemini)
@@ -97,7 +99,7 @@ Inside, these six cover most sessions - `/help` shows them, `/help all` shows th
97
99
  | `/connect` | Pick a provider and model (Ollama, Anthropic, OpenAI, Gemini, Attacca) |
98
100
  | `/sessions` | Open a saved conversation |
99
101
  | `/set NAME value` | Change a setting, e.g. `/set DEEPTHINK on`, `/set AUTO_ALLOW off` |
100
- | `/undo` | Take back the last file change the AI committed |
102
+ | `/undo` | Take back the last file change the AI made |
101
103
  | `/clear` | Start a fresh conversation |
102
104
  | `/exit` | Leave |
103
105
 
@@ -136,11 +138,6 @@ git diff | aetheris -p "review this" --json # piped input + JSON: text, tool
136
138
  aetheris -p "fix the test" --auto-allow # tools run without asking: scripts and CI
137
139
  ```
138
140
 
139
- ### Using the parts
140
-
141
- It is also a typed library: `aetheris.MCPServer` (MCP without an SDK) and `aetheris.start_shell`
142
- (a command you can answer while it runs). Only `aetheris.__all__` is promised - [docs/library.md](docs/library.md).
143
-
144
141
  ### Documentation
145
142
 
146
143
  | Topic | |
@@ -149,15 +146,16 @@ It is also a typed library: `aetheris.MCPServer` (MCP without an SDK) and `aethe
149
146
  | [Setup and models](docs/setup.md) | Which models work, tests, the benchmark |
150
147
  | [Tools](docs/tools.md) | The model's tools, the call format, hashline editing |
151
148
  | [Providers](docs/providers.md) | Ollama, Anthropic, OpenAI, Gemini, Attacca, keys, reasoning models |
152
- | [Running commands](docs/running-commands.md) | `run_cmd`, live prompts, the Python VM |
149
+ | [Running commands](docs/running-commands.md) | `run_cmd`, live prompts, the Python VM, the sandbox |
153
150
  | [Undo and verify](docs/undo-and-verify.md) | A commit per edit, `/undo`, auto-verify, `/tdd` |
154
- | [Permissions and secrets](docs/permissions.md) · [Hooks](docs/hooks.md) | Allow/deny rules, approvals, `.env` redaction; your own commands around a tool call |
151
+ | [Permissions and secrets](docs/permissions.md) · [Hooks](docs/hooks.md) | Allow/deny rules, approvals, `.env` redaction; your own commands around a tool call, in Aetheris's or Claude Code's format |
155
152
  | [Deepthink](docs/deepthink.md) | Plan, check, build, review, verify |
156
- | [Skills and MCP](docs/skills-and-mcp.md) | `SKILL.md` packs, your own `/commands`, MCP servers |
153
+ | [Skills and MCP](docs/skills-and-mcp.md) | `SKILL.md` packs, your own `/commands`, plugins, MCP servers and their logins |
157
154
  | [Web search](docs/web-search.md) | How results are found and ranked |
158
- | [Agent channel](docs/agents.md) · [Remote control](docs/remote.md) | Several agents in one project; driving a session from a phone |
155
+ | [Agent channel](docs/agents.md) · [Remote control](docs/remote.md) | Several agents in one project, agent files; driving a session from a phone |
159
156
  | [Configuration](docs/configuration.md) · [Slash commands](docs/slash-commands.md) | Every setting and every command |
160
157
  | [Design](docs/design.md) | Architecture overview, tests, how it differs from other harnesses |
158
+ | [Library](docs/library.md) | `aetheris.MCPServer` (MCP without an SDK), `aetheris.start_shell`; only `aetheris.__all__` is promised |
161
159
 
162
160
  ---
163
161
 
@@ -179,7 +177,7 @@ It is also a typed library: `aetheris.MCPServer` (MCP without an SDK) and `aethe
179
177
 
180
178
  ```text
181
179
  aetheris/
182
- ├── aetheris/ # the package: app.py, llm_client.py, tools.py, toolspec.py, ...
180
+ ├── aetheris/ # the package: the loop, tools, providers, MCP, sandbox, Claude Code compat
183
181
  ├── bench/ # run.py - measure a model on the documented tasks
184
182
  ├── docs/ # the user documentation
185
183
  ├── skills/ # bundled SKILL.md packs
@@ -197,5 +195,7 @@ aetheris/
197
195
  | :--- | :--- |
198
196
  | **Python** | 3.10 - 3.14 |
199
197
  | **OS** | **Linux**, **macOS**, **Windows** (waiting-for-input detection is best on Linux) |
198
+ | **Claude Code** | `~/.claude` and a trusted `.claude/` are read as they are: hooks, agents, installed plugins, rule syntax, status line. `/set CLAUDE_COMPAT off` ignores them |
199
+ | **Sandbox** | `/set SANDBOX on`: bubblewrap on **Linux**, `sandbox-exec` on **macOS**, a low-integrity token on **Windows** (no network block there) |
200
200
  | **Stable surface** | Slash commands, `/set` names, tool names, the `~/.aetheris` layout and `aetheris.__all__` - see `CHANGELOG.md` |
201
201
  | **License** | Apache-2.0 - see [LICENSE](LICENSE). Provided **"AS IS"**; the first run says what it can do to your machine and asks once |
@@ -8,7 +8,9 @@
8
8
  A terminal AI assistant that works on your machine: it reads and writes files, runs
9
9
  commands and answers their prompts, searches the web, and can **undo** what it did.
10
10
  It is built for **small local models first** (Ollama), and talks to Anthropic, OpenAI,
11
- Gemini and Attacca with the same tools and the same approval prompts.
11
+ Gemini and Attacca with the same tools and the same approval prompts. It reads a
12
+ **Claude Code** setup as it is - hooks, agents, plugins, permission rules - and can run
13
+ what the model runs in an **OS sandbox**.
12
14
 
13
15
  ```text
14
16
  you ──► prompt box / aetheris -p ──► model (Ollama · Anthropic · OpenAI · Gemini)
@@ -46,7 +48,7 @@ Inside, these six cover most sessions - `/help` shows them, `/help all` shows th
46
48
  | `/connect` | Pick a provider and model (Ollama, Anthropic, OpenAI, Gemini, Attacca) |
47
49
  | `/sessions` | Open a saved conversation |
48
50
  | `/set NAME value` | Change a setting, e.g. `/set DEEPTHINK on`, `/set AUTO_ALLOW off` |
49
- | `/undo` | Take back the last file change the AI committed |
51
+ | `/undo` | Take back the last file change the AI made |
50
52
  | `/clear` | Start a fresh conversation |
51
53
  | `/exit` | Leave |
52
54
 
@@ -85,11 +87,6 @@ git diff | aetheris -p "review this" --json # piped input + JSON: text, tool
85
87
  aetheris -p "fix the test" --auto-allow # tools run without asking: scripts and CI
86
88
  ```
87
89
 
88
- ### Using the parts
89
-
90
- It is also a typed library: `aetheris.MCPServer` (MCP without an SDK) and `aetheris.start_shell`
91
- (a command you can answer while it runs). Only `aetheris.__all__` is promised - [docs/library.md](docs/library.md).
92
-
93
90
  ### Documentation
94
91
 
95
92
  | Topic | |
@@ -98,15 +95,16 @@ It is also a typed library: `aetheris.MCPServer` (MCP without an SDK) and `aethe
98
95
  | [Setup and models](docs/setup.md) | Which models work, tests, the benchmark |
99
96
  | [Tools](docs/tools.md) | The model's tools, the call format, hashline editing |
100
97
  | [Providers](docs/providers.md) | Ollama, Anthropic, OpenAI, Gemini, Attacca, keys, reasoning models |
101
- | [Running commands](docs/running-commands.md) | `run_cmd`, live prompts, the Python VM |
98
+ | [Running commands](docs/running-commands.md) | `run_cmd`, live prompts, the Python VM, the sandbox |
102
99
  | [Undo and verify](docs/undo-and-verify.md) | A commit per edit, `/undo`, auto-verify, `/tdd` |
103
- | [Permissions and secrets](docs/permissions.md) · [Hooks](docs/hooks.md) | Allow/deny rules, approvals, `.env` redaction; your own commands around a tool call |
100
+ | [Permissions and secrets](docs/permissions.md) · [Hooks](docs/hooks.md) | Allow/deny rules, approvals, `.env` redaction; your own commands around a tool call, in Aetheris's or Claude Code's format |
104
101
  | [Deepthink](docs/deepthink.md) | Plan, check, build, review, verify |
105
- | [Skills and MCP](docs/skills-and-mcp.md) | `SKILL.md` packs, your own `/commands`, MCP servers |
102
+ | [Skills and MCP](docs/skills-and-mcp.md) | `SKILL.md` packs, your own `/commands`, plugins, MCP servers and their logins |
106
103
  | [Web search](docs/web-search.md) | How results are found and ranked |
107
- | [Agent channel](docs/agents.md) · [Remote control](docs/remote.md) | Several agents in one project; driving a session from a phone |
104
+ | [Agent channel](docs/agents.md) · [Remote control](docs/remote.md) | Several agents in one project, agent files; driving a session from a phone |
108
105
  | [Configuration](docs/configuration.md) · [Slash commands](docs/slash-commands.md) | Every setting and every command |
109
106
  | [Design](docs/design.md) | Architecture overview, tests, how it differs from other harnesses |
107
+ | [Library](docs/library.md) | `aetheris.MCPServer` (MCP without an SDK), `aetheris.start_shell`; only `aetheris.__all__` is promised |
110
108
 
111
109
  ---
112
110
 
@@ -128,7 +126,7 @@ It is also a typed library: `aetheris.MCPServer` (MCP without an SDK) and `aethe
128
126
 
129
127
  ```text
130
128
  aetheris/
131
- ├── aetheris/ # the package: app.py, llm_client.py, tools.py, toolspec.py, ...
129
+ ├── aetheris/ # the package: the loop, tools, providers, MCP, sandbox, Claude Code compat
132
130
  ├── bench/ # run.py - measure a model on the documented tasks
133
131
  ├── docs/ # the user documentation
134
132
  ├── skills/ # bundled SKILL.md packs
@@ -146,5 +144,7 @@ aetheris/
146
144
  | :--- | :--- |
147
145
  | **Python** | 3.10 - 3.14 |
148
146
  | **OS** | **Linux**, **macOS**, **Windows** (waiting-for-input detection is best on Linux) |
147
+ | **Claude Code** | `~/.claude` and a trusted `.claude/` are read as they are: hooks, agents, installed plugins, rule syntax, status line. `/set CLAUDE_COMPAT off` ignores them |
148
+ | **Sandbox** | `/set SANDBOX on`: bubblewrap on **Linux**, `sandbox-exec` on **macOS**, a low-integrity token on **Windows** (no network block there) |
149
149
  | **Stable surface** | Slash commands, `/set` names, tool names, the `~/.aetheris` layout and `aetheris.__all__` - see `CHANGELOG.md` |
150
150
  | **License** | Apache-2.0 - see [LICENSE](LICENSE). Provided **"AS IS"**; the first run says what it can do to your machine and asks once |
@@ -79,3 +79,55 @@
79
79
  ## next
80
80
 
81
81
  * [ ] Split a part out to its own PyPI package only when someone asks for it - `mcp_client` first (the library in `aetheris.__all__` comes before any split)
82
+
83
+ ## from the 1.4 reviews (P2, not blocking)
84
+
85
+ Left open on purpose after the pre-release fixes; each names where to start.
86
+
87
+ Tools, permissions, checkpoints
88
+ * [ ] `checkpoint.seal` reads a whole file to hash it: stream the hash, as `save` caps at 10 MB
89
+ * [ ] A dropped-hunk note points one line above the change (`tools.py`, `group[0][1] + 1`)
90
+ * [ ] `multi_edit` draws a diff but offers no hunk choice (`h`), unlike `edit_file`; the docs say it does
91
+ * [ ] `/sessions <word>` parses every session file per query, on the UI thread
92
+
93
+ Sandbox and git
94
+ * [ ] `sandbox.local_sockets()` walks `/run` and globs the home on every wrapped command; cache with a short TTL
95
+ * [ ] Only `TMPDIR` (or `TEMP` on Windows) is pointed at the sandbox's temp dir; set `TMP`/`TEMP` too
96
+ * [ ] SBPL string escaping handles `\` and `"` only; a newline in a path breaks the profile (fails closed)
97
+ * [ ] The "may be the sandbox" hint fires on everyday errors and disappears when there is no output
98
+ * [ ] Windows: `available()` is always true; `/doctor` does not try a real run
99
+ * [ ] Windows: `CreateProcessAsUserW` without a restricted token may fail for non-admins (unverified)
100
+ * [ ] Windows: job handles leak on failure paths; `icacls` failures are recorded as success; label store is not atomic; `/T` without `/L` may follow junctions
101
+ * [ ] Windows: `sandbox.release()` at start-up reverts labels another running instance set
102
+ * [ ] `git_ops.repo_root` caches "" after a refusal, so autocommit and `/undo` stay off for the session even once the cause is gone
103
+
104
+ Hooks, plugins, agents
105
+ * [ ] Aetheris-format hooks use `shell=True`; a timeout kills the shell, not its children (Claude-format hooks kill the group)
106
+ * [ ] A Claude-format hook whose stdout is a banner line plus JSON has its decision ignored (fail-open)
107
+ * [ ] `"shell": "bash"` is ignored on POSIX; the hook runs under `/bin/sh`
108
+ * [ ] Matchers use `re.fullmatch`; Claude Code matches partially (`Edit` vs `MultiEdit`)
109
+ * [ ] Stop hooks run `STOP_LIMIT + 1` times
110
+ * [ ] A Stop hook's block reason is saved as a `role: "user"` message, and shows in `/copy` and `/export`
111
+ * [ ] worktree isolation uses a process-wide `os.chdir`; other threads see the worktree, and `remove --force` can race them
112
+ * [ ] In a worktree, project agent files resolve to another real path and drop out of trust silently
113
+
114
+ MCP and OAuth
115
+ * [ ] Refresh: the expiry check is outside the lock (a single-use refresh token makes the second caller ask to log in again), and the network call holds the global lock
116
+ * [ ] `mcp-oauth.json` has a thread lock only; two processes overwrite each other's logins
117
+ * [ ] A malformed authorization server reply raises `ValueError`/`AttributeError`, not `OAuthError`
118
+ * [ ] `canonical()` and `_origin()` (mcp_oauth, mcp_client) do not drop default ports, so `https://h:443` is another origin than `https://h`
119
+ * [ ] OAuth discovery no longer follows redirects or another origin's metadata: say which URL refused and why, so a server that moved its `.well-known` is diagnosable
120
+ * [ ] The `sse` transport never sends the stored OAuth token
121
+ * [ ] A refresh that fails mid-session with 401 does not mark the server as needing login in `/mcp`
122
+
123
+ TUI, prompt, clipboard
124
+ * [ ] Right-click paste and drag-copy run clipboard tools on the prompt's event loop (up to 20 s on WSL)
125
+ * [ ] Ctrl+V images pile up in `~/.aetheris/clipboard` with no cleanup
126
+ * [ ] Long pasted text is kept for the life of the process
127
+ * [ ] WSL: no `powershell.exe` fallback for clipboard images (`screen._readers()` has one)
128
+ * [ ] The status line `stat`s `~/.claude/settings.json` every second on redraw
129
+ * [ ] TPS counts progress chunks, so it reads high
130
+ * [ ] `toolspin` rescans the accumulated JSON on every fragment
131
+
132
+ Settings and other
133
+ * [ ] `vault.own()` re-reads the token file per tool result; a non-numeric `SECRET_MIN_LENGTH` in `config.py` raises
@@ -12,7 +12,7 @@ harness's implementation and changes when the harness needs it to.
12
12
 
13
13
  from typing import TYPE_CHECKING
14
14
 
15
- __version__ = "1.3.0"
15
+ __version__ = "1.4.0"
16
16
 
17
17
  __all__ = ["MCPError", "MCPServer", "ShellSession", "start_shell"]
18
18
 
@@ -0,0 +1,144 @@
1
+ """Custom subagents: Claude Code's `agents/*.md` files, usable through `spawn_agent`.
2
+
3
+ An agent file is a name, a description, an optional tool list and model, and a
4
+ system prompt as the body. Aetheris reads the same files Claude Code does, from
5
+ `.aetheris/agents` and `.claude/agents` in the project and the matching
6
+ directories in the home. The first directory that defines a name wins.
7
+
8
+ A project's files are somebody else's instructions the moment the repository is
9
+ cloned, so each one is used only after the person has trusted it (`trust.py`).
10
+ """
11
+
12
+ import glob
13
+ import os
14
+ from dataclasses import dataclass
15
+
16
+ from aetheris import config
17
+ from aetheris import plugins
18
+ from aetheris import skills
19
+ from aetheris import toolspec
20
+ from aetheris import trust
21
+ from aetheris.claudecompat import to_aetheris
22
+
23
+ # The newest model of each family this build knows. `/v1/models` is not asked:
24
+ # resolving a name must not need the network.
25
+ FAMILIES = {"sonnet": "claude-sonnet-5-5", "opus": "claude-opus-5-5", "haiku": "claude-haiku-5-5"}
26
+
27
+
28
+ @dataclass
29
+ class Agent:
30
+ name: str
31
+ description: str
32
+ tools: list | None
33
+ model: str
34
+ body: str
35
+ path: str
36
+
37
+
38
+ def directories() -> list[tuple[str, str]]:
39
+ """(source, directory), highest precedence first. `project` ones need trust."""
40
+ home = os.path.expanduser("~")
41
+ found = [("project", os.path.abspath(os.path.join(".aetheris", "agents"))),
42
+ ("project", os.path.abspath(os.path.join(".claude", "agents"))),
43
+ ("user", os.path.join(home, ".aetheris", "agents"))]
44
+ if config.CLAUDE_COMPAT:
45
+ found.append(("user", os.path.join(home, ".claude", "agents")))
46
+ return found + plugins.contributions("agents")
47
+
48
+
49
+ def _translate(raw) -> tuple[list, list]:
50
+ """(Aetheris tool names, the Claude Code names that mean nothing here)."""
51
+ known = {tool.name for tool in toolspec.TOOLS}
52
+ kept, unknown = [], []
53
+ for name in skills._as_tool_list(raw):
54
+ ours = to_aetheris(name)
55
+ if ours in known or ours.startswith("mcp__"):
56
+ kept.append(ours)
57
+ else:
58
+ unknown.append(name)
59
+ return kept, unknown
60
+
61
+
62
+ def project_files() -> list[str]:
63
+ """Every agent file under the project directories, trusted or not."""
64
+ return [path for source, folder in directories() if source == "project"
65
+ for path in sorted(glob.glob(os.path.join(glob.escape(folder), "*.md")))]
66
+
67
+
68
+ def discover() -> tuple[dict, list]:
69
+ """({name: Agent}, problems). Never raises; a bad file is a problem line."""
70
+ found: dict = {}
71
+ problems: list = []
72
+ for source, folder in directories():
73
+ for path in sorted(glob.glob(os.path.join(glob.escape(folder), "*.md"))):
74
+ if source == "project" and not trust.is_trusted(path):
75
+ problems.append(f"{path} is not trusted, so it is not used")
76
+ continue
77
+ try:
78
+ with open(path, "r", encoding="utf-8-sig") as handle:
79
+ meta, body = skills._parse_frontmatter(handle.read())
80
+ except (OSError, UnicodeDecodeError) as error:
81
+ problems.append(f"{path} could not be read ({error})")
82
+ continue
83
+ name = str(meta.get("name") or os.path.basename(path)[:-3]).strip()
84
+ if not name or name in found:
85
+ continue
86
+ tools = None
87
+ if meta.get("tools") not in (None, ""):
88
+ tools, unknown = _translate(meta["tools"])
89
+ if unknown:
90
+ problems.append(f"{name}: no Aetheris tool for {', '.join(unknown)} (dropped)")
91
+ found[name] = Agent(
92
+ name=name,
93
+ description=" ".join(str(meta.get("description", "")).split()) or "(no description)",
94
+ tools=tools, model=str(meta.get("model") or "").strip(),
95
+ body=body.strip(), path=path)
96
+ return found, problems
97
+
98
+
99
+ def resolve_model(spec: str) -> str:
100
+ """The model to run an agent on: "" and "inherit" mean the current one."""
101
+ from aetheris import providers
102
+ spec = (spec or "").strip()
103
+ family = spec.lower()
104
+ if family in ("", "inherit"):
105
+ return providers.current().model
106
+ if family in FAMILIES:
107
+ provider = providers.build("anthropic")
108
+ if provider is not None and provider.api_key:
109
+ return f"anthropic:{FAMILIES[family]}"
110
+ print(f" note: model '{spec}' needs an Anthropic API key; "
111
+ "using the current model instead")
112
+ return providers.current().model
113
+ return spec
114
+
115
+
116
+ def catalog_prompt() -> str:
117
+ """Names and descriptions, like the skills catalogue. "" when none exist."""
118
+ found, _ = discover()
119
+ if not found:
120
+ return ""
121
+ lines = ["\n### AVAILABLE AGENTS:",
122
+ "Pre-written sub-agents. To use one, call `spawn_agent` with `agent` set to its name.",
123
+ ""]
124
+ for agent in found.values():
125
+ desc = agent.description
126
+ if len(desc) > skills.DESC_MAX_LENGTH:
127
+ desc = desc[:skills.DESC_MAX_LENGTH - 1].rstrip() + "…"
128
+ lines.append(f"- {agent.name}: {desc}")
129
+ lines.append("")
130
+ return "\n".join(lines)
131
+
132
+
133
+ def summary(path: str) -> list:
134
+ """What trusting an agent file means, as approval-box rows."""
135
+ try:
136
+ with open(path, "r", encoding="utf-8-sig") as handle:
137
+ meta, body = skills._parse_frontmatter(handle.read())
138
+ except (OSError, UnicodeDecodeError) as error:
139
+ return [("file", path), ("problem", f"cannot be read ({error})")]
140
+ tools = _translate(meta["tools"])[0] if meta.get("tools") else None
141
+ return [("file", path),
142
+ ("tools", ", ".join(tools) if tools is not None else "all of the parent's"),
143
+ ("model", str(meta.get("model") or "inherit")),
144
+ ("instructions", body.strip().splitlines()[0][:100] if body.strip() else "(none)")]