aetheris 1.2.0__tar.gz → 1.3.1__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 (177) hide show
  1. {aetheris-1.2.0 → aetheris-1.3.1}/.github/workflows/ci.yml +0 -8
  2. {aetheris-1.2.0 → aetheris-1.3.1}/ARCHITECTURE.md +67 -34
  3. {aetheris-1.2.0 → aetheris-1.3.1}/CHANGELOG.md +239 -0
  4. {aetheris-1.2.0 → aetheris-1.3.1}/MANIFEST.in +1 -1
  5. {aetheris-1.2.0/aetheris.egg-info → aetheris-1.3.1}/PKG-INFO +4 -4
  6. {aetheris-1.2.0 → aetheris-1.3.1}/README.md +3 -3
  7. {aetheris-1.2.0 → aetheris-1.3.1}/TODO.md +8 -2
  8. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/__init__.py +3 -5
  9. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/app.py +1704 -557
  10. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/atomic.py +5 -4
  11. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/attacca.py +1 -5
  12. aetheris-1.3.1/aetheris/background.py +238 -0
  13. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/channel.py +9 -13
  14. aetheris-1.3.1/aetheris/commands.py +150 -0
  15. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/config.py +156 -18
  16. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/connect.py +57 -11
  17. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/context.py +90 -4
  18. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/deepthink.py +1 -5
  19. aetheris-1.3.1/aetheris/events.py +39 -0
  20. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/git_ops.py +196 -11
  21. aetheris-1.3.1/aetheris/hooks.py +240 -0
  22. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/keystore.py +1 -7
  23. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/llm_client.py +66 -16
  24. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/mcp_client.py +39 -35
  25. aetheris-1.3.1/aetheris/modes.py +100 -0
  26. aetheris-1.3.1/aetheris/netguard.py +73 -0
  27. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/paths.py +2 -3
  28. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/permissions.py +160 -27
  29. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/promptkeys.py +79 -10
  30. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/providers.py +208 -9
  31. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/remote.py +29 -21
  32. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/renderer.py +31 -0
  33. aetheris-1.3.1/aetheris/scheduler.py +232 -0
  34. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/screen.py +43 -2
  35. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/session.py +71 -2
  36. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/shell_session.py +29 -10
  37. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/skills.py +2 -7
  38. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/sse.py +0 -4
  39. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/subagent.py +72 -17
  40. aetheris-1.3.1/aetheris/symbols.py +200 -0
  41. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/systemprompt.py +86 -15
  42. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/tools.py +759 -44
  43. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/toolspec.py +32 -10
  44. aetheris-1.3.1/aetheris/transcript.py +294 -0
  45. aetheris-1.3.1/aetheris/trust.py +116 -0
  46. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/tui.py +221 -39
  47. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/update.py +93 -6
  48. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/vault.py +40 -17
  49. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/verify.py +102 -13
  50. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/vm.py +104 -17
  51. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/websearch.py +10 -4
  52. aetheris-1.3.1/aetheris/worktree.py +134 -0
  53. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/zyris.py +0 -4
  54. {aetheris-1.2.0 → aetheris-1.3.1/aetheris.egg-info}/PKG-INFO +4 -4
  55. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris.egg-info/SOURCES.txt +27 -1
  56. {aetheris-1.2.0 → aetheris-1.3.1}/docs/configuration.md +36 -2
  57. {aetheris-1.2.0 → aetheris-1.3.1}/docs/deepthink.md +2 -1
  58. aetheris-1.3.1/docs/demo.md +207 -0
  59. {aetheris-1.2.0 → aetheris-1.3.1}/docs/design.md +63 -56
  60. {aetheris-1.2.0 → aetheris-1.3.1}/docs/features.md +9 -3
  61. aetheris-1.3.1/docs/hooks.md +79 -0
  62. {aetheris-1.2.0 → aetheris-1.3.1}/docs/permissions.md +71 -3
  63. {aetheris-1.2.0 → aetheris-1.3.1}/docs/running-commands.md +30 -2
  64. {aetheris-1.2.0 → aetheris-1.3.1}/docs/setup.md +18 -1
  65. {aetheris-1.2.0 → aetheris-1.3.1}/docs/skills-and-mcp.md +40 -0
  66. {aetheris-1.2.0 → aetheris-1.3.1}/docs/slash-commands.md +27 -12
  67. {aetheris-1.2.0 → aetheris-1.3.1}/docs/tools.md +52 -5
  68. {aetheris-1.2.0 → aetheris-1.3.1}/docs/undo-and-verify.md +30 -1
  69. {aetheris-1.2.0 → aetheris-1.3.1}/requirements.txt +0 -2
  70. aetheris-1.3.1/tests/test_btw.py +253 -0
  71. aetheris-1.3.1/tests/test_commands.py +140 -0
  72. aetheris-1.3.1/tests/test_compact.py +126 -0
  73. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_compat.py +2 -2
  74. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_deepthink.py +24 -0
  75. aetheris-1.3.1/tests/test_diff.py +122 -0
  76. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_docs.py +8 -7
  77. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_durability.py +59 -0
  78. aetheris-1.3.1/tests/test_fork.py +100 -0
  79. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_git_ops.py +75 -0
  80. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_headless.py +115 -0
  81. aetheris-1.3.1/tests/test_hooks.py +202 -0
  82. aetheris-1.3.1/tests/test_instructions.py +96 -0
  83. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_interrupt.py +34 -0
  84. aetheris-1.3.1/tests/test_isolation.py +234 -0
  85. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_memory.py +0 -1
  86. aetheris-1.3.1/tests/test_modes.py +229 -0
  87. aetheris-1.3.1/tests/test_multi_edit.py +215 -0
  88. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_permissions.py +86 -0
  89. aetheris-1.3.1/tests/test_project_dirs.py +121 -0
  90. aetheris-1.3.1/tests/test_pull.py +122 -0
  91. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_registry.py +3 -2
  92. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_remote.py +10 -1
  93. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_resume.py +7 -0
  94. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_retry.py +60 -0
  95. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_rewind.py +1 -1
  96. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_search.py +23 -0
  97. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_select.py +77 -12
  98. aetheris-1.3.1/tests/test_session_ops.py +119 -0
  99. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_settings.py +18 -2
  100. aetheris-1.3.1/tests/test_symbols.py +133 -0
  101. aetheris-1.3.1/tests/test_tasks.py +343 -0
  102. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_tdd.py +17 -0
  103. aetheris-1.3.1/tests/test_transcript.py +338 -0
  104. aetheris-1.3.1/tests/test_trust.py +306 -0
  105. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_update.py +74 -0
  106. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_usage.py +5 -5
  107. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_vault.py +25 -0
  108. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_verify.py +97 -0
  109. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_vm.py +34 -0
  110. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_wrap.py +38 -0
  111. aetheris-1.2.0/aetheris/transcript.py +0 -87
  112. aetheris-1.2.0/requirements-lock.txt +0 -79
  113. aetheris-1.2.0/tests/test_btw.py +0 -116
  114. aetheris-1.2.0/tests/test_transcript.py +0 -160
  115. {aetheris-1.2.0 → aetheris-1.3.1}/.github/check_dist.py +0 -0
  116. {aetheris-1.2.0 → aetheris-1.3.1}/.github/check_version.py +0 -0
  117. {aetheris-1.2.0 → aetheris-1.3.1}/.github/workflows/publish.yml +0 -0
  118. {aetheris-1.2.0 → aetheris-1.3.1}/.gitignore +0 -0
  119. {aetheris-1.2.0 → aetheris-1.3.1}/.mcp.json.example +0 -0
  120. {aetheris-1.2.0 → aetheris-1.3.1}/.permissions.json.example +0 -0
  121. {aetheris-1.2.0 → aetheris-1.3.1}/LICENSE +0 -0
  122. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/__main__.py +0 -0
  123. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/images.py +0 -0
  124. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/mentions.py +0 -0
  125. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/notes.py +0 -0
  126. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/py.typed +0 -0
  127. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/qr.py +0 -0
  128. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/rewind.py +0 -0
  129. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/terms.py +0 -0
  130. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris/todos.py +0 -0
  131. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris.egg-info/dependency_links.txt +0 -0
  132. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris.egg-info/entry_points.txt +0 -0
  133. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris.egg-info/requires.txt +0 -0
  134. {aetheris-1.2.0 → aetheris-1.3.1}/aetheris.egg-info/top_level.txt +0 -0
  135. {aetheris-1.2.0 → aetheris-1.3.1}/bench/.gitignore +0 -0
  136. {aetheris-1.2.0 → aetheris-1.3.1}/bench/fixtures/stats.py +0 -0
  137. {aetheris-1.2.0 → aetheris-1.3.1}/bench/run.py +0 -0
  138. {aetheris-1.2.0 → aetheris-1.3.1}/docs/agents.md +0 -0
  139. {aetheris-1.2.0 → aetheris-1.3.1}/docs/library.md +0 -0
  140. {aetheris-1.2.0 → aetheris-1.3.1}/docs/providers.md +0 -0
  141. {aetheris-1.2.0 → aetheris-1.3.1}/docs/remote.md +0 -0
  142. {aetheris-1.2.0 → aetheris-1.3.1}/docs/web-search.md +0 -0
  143. {aetheris-1.2.0 → aetheris-1.3.1}/pyproject.toml +0 -0
  144. {aetheris-1.2.0 → aetheris-1.3.1}/setup.cfg +0 -0
  145. {aetheris-1.2.0 → aetheris-1.3.1}/skills/README.md +0 -0
  146. {aetheris-1.2.0 → aetheris-1.3.1}/skills/code-review/SKILL.md +0 -0
  147. {aetheris-1.2.0 → aetheris-1.3.1}/skills/git-commit/SKILL.md +0 -0
  148. {aetheris-1.2.0 → aetheris-1.3.1}/skills/git-commit/types.md +0 -0
  149. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_attacca.py +0 -0
  150. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_bench.py +0 -0
  151. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_caching.py +0 -0
  152. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_channel.py +0 -0
  153. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_copy.py +0 -0
  154. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_dist.py +0 -0
  155. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_encoding.py +0 -0
  156. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_hashline_edit.py +0 -0
  157. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_images.py +0 -0
  158. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_keys.py +0 -0
  159. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_loops.py +0 -0
  160. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_malformed_state.py +0 -0
  161. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_mcp_lazy.py +0 -0
  162. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_mentions.py +0 -0
  163. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_native_tools.py +0 -0
  164. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_notes.py +0 -0
  165. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_paths.py +0 -0
  166. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_platform.py +0 -0
  167. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_qr.py +0 -0
  168. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_read_range.py +0 -0
  169. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_resize.py +0 -0
  170. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_sse.py +0 -0
  171. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_subagent.py +0 -0
  172. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_terms.py +0 -0
  173. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_todos.py +0 -0
  174. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_tool_parsing.py +0 -0
  175. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_tool_reporting.py +0 -0
  176. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_window_effort.py +0 -0
  177. {aetheris-1.2.0 → aetheris-1.3.1}/tests/test_zyris.py +0 -0
@@ -44,14 +44,6 @@ jobs:
44
44
  python -m pip install --upgrade pip
45
45
  pip install -r requirements.txt
46
46
 
47
- - name: Import every module
48
- # 5.2 in ARCHITECTURE.md: `config.py` builds the system prompt at import
49
- # time, so a module-level `import config` anywhere below it stops the
50
- # whole program from importing. That failure has to be caught here.
51
- run: |
52
- python -c "from aetheris import app, llm_client, tools, toolspec, providers, context, session, permissions, skills, websearch, mcp_client, renderer, tui, deepthink, git_ops, subagent, channel, atomic, sse, shell_session, connect, systemprompt, config, paths, terms, vault, vm, remote, qr, zyris, attacca, keystore"
53
- python -c "import aetheris.__main__"
54
-
55
47
  - name: Tests
56
48
  shell: bash
57
49
  env:
@@ -12,9 +12,9 @@ mistakes are.
12
12
 
13
13
  ## 1. What this is
14
14
 
15
- A terminal AI assistant, ~24,900 lines of Python, no framework. It talks to
15
+ A terminal AI assistant, ~32,500 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 43 tools, and runs them with the user's approval. It can also hand whole
17
+ model 46 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
 
@@ -136,11 +136,17 @@ to *all* tools belongs here and nowhere else.
136
136
  1. **Normalise** — a string `arguments` is JSON-parsed; anything else becomes `{}`.
137
137
  2. **Display** — `_fmt_tool_call`.
138
138
  3. **Deepthink read-only gate** — refuses a world-changing tool during a
139
- planning stage (§7).
139
+ planning stage (§7). `_changes_things` decides: `_CHANGES_THINGS` for the
140
+ built-ins, and every MCP tool not marked `readOnlyHint`.
141
+ Then `_writes_harness_control`: a write to a home file that decides what the
142
+ harness may run (`settings.json`, `permissions.json`, `hooks.json`,
143
+ `mcp.json`, `trusted-configs.json`) is refused before any rule is read.
140
144
  4. **Another agent's claim** — `_claimed_by_another` refuses a write to a file
141
145
  a different harness in this project is in the middle of changing (§8).
142
146
  5. **Permission rules** — `deny` returns without reaching the handler; `allow`
143
147
  sets `config.POLICY_AUTO_ALLOW` so the handler's approval prompt passes.
148
+ Then the person's `pre_tool` hooks (`hooks.py`): one that exits non-zero
149
+ refuses the call with `[System]` before any approval prompt is drawn.
144
150
  6. **Run** — `_run_tool` looks the name up in `toolspec`, binds the arguments
145
151
  through it, calls the handler. MCP tools and the two MCP resource tools are
146
152
  handled after that lookup fails.
@@ -151,7 +157,8 @@ to *all* tools belongs here and nowhere else.
151
157
  ask. Both this and the commit read `_paths_written`, so they cannot disagree
152
158
  about what a call actually wrote.
153
159
  9. **Note it for auto-verify** — `verify.note_written`, reading the same
154
- `_paths_written`. Noted, not run: the project's check belongs after the
160
+ `_paths_written`. Then the `post_tool` hooks: a failing one cannot undo the
161
+ call, so what it printed is appended to the result as `[Hook] ...`. Noted, not run: the project's check belongs after the
155
162
  whole reply's tool calls, not between two of them, so `chat_turn` runs it
156
163
  (§7a).
157
164
  10. **Name the failure** — `_name_the_failure` puts the call in front of an
@@ -180,11 +187,14 @@ first dispatch if a tool has no handler, a handler is undescribed, or a
180
187
  handler's arity does not match its spec. Never hardcode a tool list anywhere
181
188
  else.
182
189
 
183
- **5.2 `config.py` builds the system prompt at import time** (`SYSTEM_PROMPT = syp()`).
184
- So everything `systemprompt.py` reaches at module level - `toolspec`,
185
- `mcp_client`, `skills` - **must not import `config` at module level.** They read
186
- it lazily inside functions instead. Add a module-level `import config` to any of
187
- them and the whole program stops importing.
190
+ **5.2 `config.py` is the base of the import graph, and importing it runs
191
+ nothing.** It imports `atomic` and `paths`, defines the settings and reads
192
+ `settings.json` over them. The system prompt is built by
193
+ `app._compose_system_prompt` when a conversation starts, never at import: built
194
+ there it ran `systemprompt` - and through it `providers`, `mcp_client`,
195
+ `skills` and `vault` - against a `config` that was half defined, and nothing
196
+ read the result before `app` built it again. Keep `config` importing nothing
197
+ above it.
188
198
 
189
199
  **5.3 History is plain text, always.** No structured tool blocks, no
190
200
  provider-specific shapes. Native tool calls are rendered back to `<tool_call>`
@@ -263,8 +273,8 @@ Writing the first group relative to the working directory is what this used to
263
273
  do, and it only looked harmless while the harness was run as `python app.py`
264
274
  from its own checkout: as an installed command it scattered files wherever you
265
275
  happened to start, and split one memory into one per directory. `paths.py` is
266
- stdlib-only and imports nothing local, so the modules below `config` can use it
267
- without breaking 5.2.
276
+ stdlib-only and imports nothing local, so `config` and every module that must
277
+ load without it can use it (5.2).
268
278
 
269
279
  Nothing is ever moved on the user's behalf. `sessions` and `memory.json` are
270
280
  ordinary enough names that acting on sight would eventually destroy real work,
@@ -426,9 +436,9 @@ rather than a table - so a rename there renames a key in somebody's saved
426
436
  text whatever protocol produced it (§2), so renaming one does not just change a
427
437
  prompt: it stops an old session from replaying. Nothing else inside
428
438
  `aetheris.*` is covered - the modules are an implementation. `__init__.py`
429
- exports the library lazily, through `__getattr__`, so it still imports nothing
430
- (5.2). The parts read their timeouts through `_cfg`, so their first call loads
431
- `config` after all - late, when nothing is half-imported, and writing nothing.
439
+ exports the library lazily, through `__getattr__`, so it still imports
440
+ nothing. The parts read their timeouts through `_cfg`, so their first call loads
441
+ `config` after all - late, and writing nothing.
432
442
 
433
443
  While the major version is 0 this is a record rather than a guarantee, and
434
444
  `CHANGELOG.md` says so in as many words. It exists from 0.6.0 so that 1.0.0 can
@@ -466,11 +476,8 @@ Three things make it safe to put there:
466
476
  rebuild, the same as loading a skill - and the prompt is deliberately not
467
477
  rebuilt every turn, so it costs nothing until then.
468
478
 
469
- It is read in `_compose_system_prompt` rather than inside `systemprompt()` for
470
- an import reason and not a design one: `config` builds the system prompt at
471
- import time, and `session` imports `config`, so `systemprompt` cannot reach
472
- `session` without a cycle. Composing is where every other per-conversation
473
- piece already goes.
479
+ It is read in `_compose_system_prompt` rather than inside `systemprompt()`
480
+ because composing is where every other per-conversation piece already goes.
474
481
 
475
482
  **5.16 What is true about a project is kept per project, as markdown, and the
476
483
  file is the record.** 5.15 put what the model knows about the *person* in front
@@ -638,6 +645,9 @@ app.py the loop, slash commands, session lifecycle
638
645
  └ verify.py the project's own check, run after a turn that wrote a file
639
646
  └ deepthink.py the six-stage chain
640
647
  └ subagent.py spawn_agent's own conversation loop
648
+ └ worktree.py the git worktree an isolated sub-agent works in
649
+ └ scheduler.py /loop and /schedule: what is due, and when
650
+ └ background.py run_cmd's background jobs, and which have ended
641
651
  └ channel.py the board the harnesses in one project share
642
652
  └ remote.py the token-locked door a browser drives this session through
643
653
  └ qr.py a QR encoder, stdlib only, for the link that door prints
@@ -649,9 +659,9 @@ app.py the loop, slash commands, session lifecycle
649
659
  └ sse.py server-sent events, read as they arrive
650
660
  └ atomic.py crash-safe writes
651
661
  └ config.py every setting and its default, the saved overrides read
652
- over them, plus SYSTEM_PROMPT built at import
653
- └ systemprompt.py the prompt text, both protocol variants
654
- └ toolspec.py the tool table (stdlib only, imports nothing local)
662
+ over them (imports only atomic and paths)
663
+ └ systemprompt.py the prompt text, both protocol variants
664
+ └ toolspec.py the tool table (stdlib only, imports nothing local)
655
665
  ```
656
666
 
657
667
  | File | Owns | Do **not** put here |
@@ -663,7 +673,10 @@ app.py the loop, slash commands, session lifecycle
663
673
  | `tools.py` | Handlers, dispatch, approval prompts, the hashline anchor (5.12) | Tool descriptions - those are in `toolspec` |
664
674
  | `systemprompt.py` | Prompt text; `tool_rules(native)` shared with `subagent` | A second copy of anything |
665
675
  | `deepthink.py` | Stage list, stage instructions, stage gating, when the chain repeats | Tool logic |
666
- | `subagent.py` | The sub-agent's own loop and prompt | A second protocol |
676
+ | `subagent.py` | The sub-agent's own loop and prompt, the model it runs on, the `SUBAGENT_MODELS` block | A second protocol |
677
+ | `worktree.py` | Making the worktree and branch an isolated sub-agent works in, and putting it away: the branch kept only when something is on it | Running the sub-agent - `subagent.run` moves the working directory there and back |
678
+ | `background.py` | Jobs `run_cmd` started with `background`: draining their output, their state, and the queue of ended ones the model has yet to hear about (`take_finished`) | When the model hears it - `chat_turn` mid-turn, `app` at the prompt |
679
+ | `scheduler.py` | The `/loop` and `/schedule` tasks: reading an interval or a time, what is due, and moving a loop on. Stdlib only, importing nothing local | Typing the line - `app._maybe_task_turn` does, only into an empty prompt |
667
680
  | `git_ops.py` | Commit, undo, diff. Never raises | Anything not about git |
668
681
  | `verify.py` | Which check a project declares, running it, and the wording of a failure | When to run it or how many times - that is `chat_turn` |
669
682
  | `channel.py` | Who else is running here, what they said, what they hold | Anything about one conversation |
@@ -678,15 +691,21 @@ app.py the loop, slash commands, session lifecycle
678
691
  | `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 |
679
692
  | `mentions.py` | `@path` in a typed message: what it names, and what it attaches | Printing - the caller does that |
680
693
  | `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 |
681
696
  | `shell_session.py` | Live commands, waiting-vs-busy detection | |
682
697
  | `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` |
683
698
  | `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` |
699
+ | `symbols.py` | `find_symbol`'s project-wide table: definitions per file, cached on mtime and size, and identifier references | Parsing or what a definition is - that is `tools._walk_skeleton`, shared with `get_code_skeleton` |
700
+ | `netguard.py` | Whether an unapproved request may go to an address: public only, resolved, at every redirect | Asking - a request that may go anywhere is `call_api`'s, which asks |
684
701
  | `websearch.py` | Retrieval, extraction, BM25 reranking | |
685
702
  | `skills.py` | Skill discovery and loading | |
703
+ | `commands.py` | The person's own slash commands: which files are commands, and the message one expands to | Which names are built in - `tui.reserved_names` says |
686
704
  | `tui.py` / `renderer.py` | Terminal chrome and markdown | Decisions |
687
705
  | `screen.py` | The ledger of printed rows, selection by block, the clipboard (5.19) | Reading the terminal - it is told what was printed, never asks |
688
706
  | `promptkeys.py` | The prompt's paste placeholder, mouse reports, and Ctrl+O | What a row *is* - `screen` knows that |
689
707
  | `transcript.py` | The last turn recorded whole - thinking, arguments, results - and printing it for Ctrl+O | The conversation history - thinking never goes there |
708
+ | `events.py` | The `stream-json` event sink: who is listening, and sending one event | Writing it out - `app._headless` does |
690
709
  | `update.py` | Asking PyPI for the newest version, once a day, and `/update` | Installing without a yes |
691
710
  | `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` | |
692
711
  | `terms.py` | What the harness does to this machine, asked once before it does it | |
@@ -998,10 +1017,10 @@ drops `_asked_by` with them - a question nobody can read any more is not still
998
1017
  outstanding.
999
1018
 
1000
1019
  **The agent's own id is in the system prompt.** `channel.prompt_section()`,
1001
- composed in `app._compose_system_prompt` alongside memory and notes - not in
1002
- `systemprompt()`, because `config` builds that at import time and this session
1003
- has not joined a board yet. `main` calls `_refresh_system_prompt` once, straight
1004
- after `channel.join`, while nothing has been sent. Everything else about the
1020
+ composed in `app._compose_system_prompt` alongside memory and notes. `main`
1021
+ calls `_refresh_system_prompt` once, straight after `channel.join`, while
1022
+ nothing has been sent - the first prompt was built before this session had an
1023
+ id. Everything else about the
1005
1024
  board is a tool call away; an id is the one fact with no question that returns
1006
1025
  it, and without it `a1, are you done with parser.py?` is addressed to a name the
1007
1026
  model has never been given.
@@ -1436,19 +1455,32 @@ for t in tests/*.py; do python "$t" || echo "FAILED: $t"; done
1436
1455
  | `test_registry.py` | The tool table, the prompt and the handlers still describe the same tools (5.1) |
1437
1456
  | `test_native_tools.py` | Each vendor's tool-call wire format; both protocols reach the same place (5.3, 5.5) |
1438
1457
  | `test_deepthink.py` | Stage sequencing, both early exits, read-only really read-only (§7) |
1439
- | `test_git_ops.py` | Commit and undo against real repositories, including undo refusing (5.8) |
1458
+ | `test_git_ops.py` | Commit and undo against real repositories, including undo refusing (5.8); that a signing setup cannot stall or stop an AI commit |
1440
1459
  | `test_durability.py` | Atomic writes, including killing a writer mid-write; the token estimate (5.7) |
1441
1460
  | `test_subagent.py` | What a sub-agent may do, and that only its report crosses back |
1442
1461
  | `test_platform.py` | Waiting-for-input detection on *this* machine. Run it on any new one, especially Windows |
1443
- | `test_permissions.py` | What an allow rule covers, and the two ways one used to cover more than it said |
1462
+ | `test_permissions.py` | What an allow rule covers, and the two ways one used to cover more than it said; that `run_cmd(git *)` does not cover git running another program; that a path rule is about the file however it is spelled - `./`, `..`, absolute, a symlink - and that `copy_file` needs its `dst` allowed too |
1463
+ | `test_compact.py` | That `/compact` puts the summary in the system prompt and keeps the last exchange, that a focus reaches the summariser, that an earlier summary is summarised rather than lost, and that a failed summary changes nothing |
1464
+ | `test_instructions.py` | That the instructions files are the person's own, then one per directory from the repository root down to the current one, nearest last; that outside a repository only the current directory's is read; and that a huge file is cut |
1465
+ | `test_pull.py` | That `/connect ollama <model>` offers to pull a model the daemon lacks and only that, streams the progress, drops the cached answers so the model is ready at once, and that no means nothing is downloaded |
1466
+ | `test_symbols.py` | That `find_symbol` finds definitions and not mentions, names a method's class and signature, honours `.gitignore`, lists references without comments or strings, and re-reads a file that changed |
1467
+ | `test_commands.py` | That a file in a commands directory is `/<name>`, that `$ARGUMENTS` and `$1`..`$9` take what was typed, that a project's file wins, that no file takes over a built-in, and that the menu offers them |
1468
+ | `test_diff.py` | That `/diff` lists only the AI's commits this session with their line counts, shows one commit's patch and the net change to the files it touched, and drops a commit `/undo` took back |
1469
+ | `test_fork.py` | That `/fork` moves the conversation to a new file and title, that what follows goes to the copy while the original keeps exactly what it had, and that both can be loaded |
1470
+ | `test_session_ops.py` | That `/sessions delete` deletes only after a yes and never the open session, that a typed name cannot reach a file outside the sessions directory, and that `/sessions rename` moves the file to its new title |
1471
+ | `test_tasks.py` | That `/loop` and `/schedule` read intervals and times as written, that a loop held up runs once rather than catching up, that a task is typed only into an empty prompt, and that a background job's ending - output and exit code - reaches the model mid-turn or by a turn of its own, once |
1472
+ | `test_isolation.py` | That a sub-agent in a worktree changes nothing here and leaves a branch only when it changed something, that one with no worktree is not started, that `provider:model` runs it elsewhere and an unusable provider is refused before any request |
1473
+ | `test_project_dirs.py` | That `/init` writes the instructions file the directory already has, or the AGENTS one, and the prompt reads it after; that `/add-dir` makes reads there unasked and tells the model |
1474
+ | `test_hooks.py` | That a failing `pre_tool` hook refuses a call before it runs and says why, that a `post_tool` hook's complaint travels with the result, that `match` is a permission rule, that no hook gets the provider keys, and that a project's `.hooks.json` runs nothing until trusted |
1475
+ | `test_trust.py` | That a project's `.mcp.json` starts nothing and its `.permissions.json` allows nothing until trusted, that a no lasts the session and a yes lasts until the file changes; that `get_url` is never handed a secret, never reaches this machine or its network (checked at each redirect), and asks before a long URL; that a read outside the project is asked about; that no file tool writes the home's control files, even under `/automode` or through a symlink |
1444
1476
  | `test_paths.py` | That state resolves under `~/.aetheris` and never into the working directory |
1445
1477
  | `test_terms.py` | That the terms are shown before anything runs, asked once, and never assumed from a pipe |
1446
1478
  | `test_tool_parsing.py` | The text protocol's repair engine: the shapes it reads, and the ones it refuses |
1447
1479
  | `test_retry.py` | That a 429, a 5xx or a dropped connection is retried with backoff or `Retry-After`, a 4xx is not, and a reply that has started is never started over |
1448
1480
  | `test_sse.py` | That an event stream is read whether or not it came gzipped, still event by event, and that a gzipped Anthropic reply comes through as text |
1449
- | `test_headless.py` | That `-p` writes only the answer or one JSON object to stdout, with every tool call and its outcome, and fails with an exit status |
1481
+ | `test_headless.py` | That `-p` writes only the answer or one JSON object to stdout, with every tool call and its outcome, and fails with an exit status; that `stream-json` is one event per line, start to result, with each tool call announced before its result |
1450
1482
  | `test_bench.py` | That the benchmark graders pass a right answer and fail the wrong ones small models give, and that the edit fixture still carries its bug |
1451
- | `test_search.py` | That `search_in_file` honours `.gitignore`, skips binaries, narrows by glob, shows context, and says the same with or without ripgrep |
1483
+ | `test_search.py` | That `search_in_file` honours `.gitignore`, skips binaries, narrows by glob, shows context, and says the same with or without ripgrep; that a symlink out of the project is neither searched nor listed |
1452
1484
  | `test_loops.py` | That the same call a third time is warned and a fourth refused, that a write resets the count, and that refusals in a row still end the turn |
1453
1485
  | `test_todos.py` | That the checklist is read in any shape, reminded on what is sent but never stored in the history, and kept with the session |
1454
1486
  | `test_resume.py` | That `--resume` and `-c` resolve on the command line, and refuse rather than guess |
@@ -1471,13 +1503,13 @@ for t in tests/*.py; do python "$t" || echo "FAILED: $t"; done
1471
1503
  | `test_caching.py` | That the cache breakpoints reach Anthropic, that all three hosted providers' cache counters are read back, and that the prefix this harness builds is byte-stable enough to cache |
1472
1504
  | `test_verify.py` | That auto-verify picks the right check, runs it once per turn, refuses one it cannot run, and turns off a suite that will not finish (§7a) |
1473
1505
  | `test_mcp_lazy.py` | That a big MCP server is announced rather than described, that asking for it hands over the parameters, that a call to an unloaded one still works, and that names and schemas cannot come apart (5.13) |
1474
- | `test_tdd.py` | That `/tdd` reaches a test file however its path is written, refuses in `dispatch_tool`, holds nothing on disk, and lifts itself (§7a) |
1506
+ | `test_tdd.py` | That `/tdd` reaches a test file however its path is written, refuses in `dispatch_tool` - a shell command that writes one too -, holds nothing on disk, and lifts itself (§7a) |
1475
1507
  | `test_malformed_state.py` | State that is not the shape the code assumed: a message with no content, a hand-edited `memory.json`, a setting of nought - and that writing a file through a tool is atomic and leaves its line endings alone (5.7) |
1476
1508
  | `test_memory.py` | That a memory marked `important` reaches the prompt a session opens on, that the mark survives being saved over, and that the block is capped and byte-stable (5.15) |
1477
1509
  | `test_images.py` | That an image is recognised by extension and by its bytes, that a large one is resized and relabelled as what it became, that all four wire shapes are right with the cache breakpoint still on the text, and that a model which cannot see is found out before the request (5.17) |
1478
1510
  | `test_notes.py` | That a note is one markdown file whose name is its id, that projects do not share notes while a subdirectory shares one, that a model-chosen id cannot write outside the notes directory, and that the prompt gets sorted titles only (5.16) |
1479
1511
  | `test_keys.py` | The harness's own keys: hidden in every tool result and never filled back in, `providers.json` refused to every tool by any path, absent from the model's environment, moved into a (fake) keyring with the file as fallback, and the home closed to other accounts |
1480
- | `test_vault.py` | That a `.env` value never reaches the model by any route, that a placeholder reaches the shell as the real key, and that a file is neither how it gets out nor how it is lost (§8b) |
1512
+ | `test_vault.py` | That a `.env` value never reaches the model by any route, nor a credential in the environment, that a placeholder reaches the shell as the real key, and that a file is neither how it gets out nor how it is lost (§8b) |
1481
1513
  | `test_docs.py` | That this file, `README.md` and `docs/` still describe the program that exists, and that README stays a short page |
1482
1514
  | `test_compat.py` | That the commands, settings, tool names and files people build habits on are still there under the same names (5.14) |
1483
1515
 
@@ -1494,7 +1526,8 @@ it.
1494
1526
 
1495
1527
  ## 11. Things that surprise people
1496
1528
 
1497
- - **`config.py` imports `systemprompt`**, not the other way round. See 5.2.
1529
+ - **Importing `config` builds no prompt.** `app._compose_system_prompt` does,
1530
+ each time a conversation starts or is refreshed. See 5.2.
1498
1531
  - **There is no `tool` message role.** Tool results are user messages.
1499
1532
  - **`toolspec.py` imports nothing local** and must stay that way.
1500
1533
  - **`git_ops._git` never raises.** No git installed is a "no", not a crash.
@@ -32,6 +32,245 @@ own, and out to a package of its own only when someone needs it there.
32
32
 
33
33
  ---
34
34
 
35
+ ## 1.3.1 - 2026-11-20
36
+
37
+ - **`/update` works on Windows.** pip could not replace `Scripts\aetheris.exe`
38
+ while it was the program running the session, and stopped with WinError 32.
39
+ The launcher is now renamed aside before pip runs - Windows allows that for a
40
+ running `.exe` - and put back if pip fails; the old one is deleted on a later
41
+ start. If even the rename is refused, pip is not run and the command to run
42
+ after quitting is shown instead. The fix is in the version that runs
43
+ `/update`, so getting to 1.3.1 itself from 1.3.0 or earlier on Windows still
44
+ takes quitting Aetheris and running
45
+ `python -m pip install --upgrade aetheris` once.
46
+
47
+ ## 1.3.0 - 2026-11-20
48
+
49
+ Aetheris that works while nobody is typing, and that asks less while somebody
50
+ is. `/loop` and `/schedule` send prompts on a timer, `run_cmd` runs a command
51
+ in the background and tells the model when it ends, and a sub-agent can work
52
+ on another provider's model or in a git worktree of its own. Shift+Tab cycles
53
+ the permission modes, with a new `accept-edits`; hooks run the person's own
54
+ commands around tool calls; `/compact`, `/diff`, `/fork`, `/init`, `/add-dir`
55
+ and user-defined slash commands join the prompt, and `multi_edit` and
56
+ `find_symbol` the tools. Most of the rest is the security pass: a cloned
57
+ project's `.mcp.json` and `.permissions.json` are asked about before they are
58
+ used, `get_url` stays on public addresses, credentials stay out of the
59
+ conversation, and `/undo` puts back exactly what was there. One promised
60
+ surface changed in how it is used - those two project files are read only once
61
+ trusted - and nothing in the Compatibility table was removed or renamed.
62
+
63
+ - **Permission modes, on Shift+Tab.** `manual`, `plan`, `accept-edits`,
64
+ `deepthink` and `auto` are one cycle at the prompt, and the mode in force is
65
+ shown under it; `/mode` lists or picks one. `accept-edits` is new: writes,
66
+ edits, copies and moves inside the project run without asking, while
67
+ commands, deletes, paths outside the project and anything under a `.git` -
68
+ git runs what its config and hooks name - still ask. A mode changes this
69
+ session only.
70
+ - **`multi_edit`**: several edits, in one file or across several, made all
71
+ together or not at all - one approval with the whole diff, one commit, one
72
+ `/undo`. Every edit is anchored to the lines `read_file` gave, so two edits
73
+ that change a file's length can be sent together.
74
+ - **`/btw` answers in a panel of their own**, dismissed with Esc, Enter or
75
+ Space, instead of streaming into the conversation it was meant to stay out
76
+ of.
77
+ - **`/btw` can be kept.** `f` on the answer panel adds the question and the
78
+ answer to the conversation as a turn; Esc, Enter or Space still dismiss it
79
+ unkept. Either way the session is saved at once, so an aside asked just
80
+ before leaving is in the record Ctrl+O and `/load` draw from - it used to be
81
+ saved only with the next message.
82
+ - **`/sessions delete` and `/sessions rename`.** Pick a saved conversation from
83
+ the list and delete it, after a yes, or give it a new title. The open one is
84
+ never deleted, and a typed name cannot reach a file outside `sessions/`.
85
+ - **`/loop`, `/schedule` and `/tasks`.** A prompt sent now and on an interval,
86
+ or once at a time, typed into the prompt only when it is empty and never
87
+ mid-turn. They last as long as the session. `/tasks` lists them with the
88
+ background commands, `/tasks stop` ends one. A date and time that has
89
+ already passed is refused rather than run at once.
90
+ - **Background commands.** `run_cmd` takes `background`, returns a job id at
91
+ once, and the model is told when the command ends - before its next request
92
+ mid-turn, or by a turn of its own at an empty prompt (`BACKGROUND_WAKE`). A new
93
+ tool, `read_background`, reads one's output; `end_process` stops one.
94
+ `BACKGROUND_MAX_JOBS` and `BACKGROUND_OUTPUT_CHARS` bound them. What the
95
+ model is told when one ends is redacted like any tool result.
96
+ - **Sub-agents: the model, and a worktree.** `spawn_agent`'s `model` takes
97
+ `provider:model` to run the job on another provider, refused up front when
98
+ that provider cannot be used; `SUBAGENT_MODELS` lists the choices in the
99
+ system prompt. `isolation="worktree"` runs it in a git worktree on a branch of
100
+ its own, kept afterwards only when it changed something. Work that cannot be
101
+ committed there - no git identity on the machine - is left in the checkout
102
+ and named in the report, never removed with it.
103
+ - **`/init` and `/add-dir`.** `/init` has the model write the project's
104
+ instructions file, or improve the one there, and the system prompt reads it
105
+ as soon as that turn ends. `/add-dir` makes another directory part of the
106
+ project for the session: reads there are not asked about, and accept-edits
107
+ covers it.
108
+
109
+ - **Hooks.** `~/.aetheris/hooks.json` and a trusted `.hooks.json` run the
110
+ person's own commands before a tool call (`pre_tool`, which can refuse it),
111
+ after one (`post_tool`, whose complaint is added to the result) and when a
112
+ turn ends (`turn_end`). `match` is a permission rule. The call arrives as
113
+ JSON on stdin, with no provider keys in the environment. A project's file is
114
+ asked about like `.mcp.json`. `/hooks` lists them - see `docs/hooks.md`.
115
+ - **`/compact [focus]`** summarises the conversation when the person decides
116
+ to, not only when the window is nearly full, and keeps the last exchange.
117
+ The focus tells the summariser what it must keep in full.
118
+ - **Instructions files follow the repository.** The conventions file (the
119
+ same four names as before) is read in every directory from the top of the
120
+ git working tree down to the current one, so a terminal in `src/` keeps the
121
+ repository's rules. One in `~/.aetheris/` holds the person's own and is read
122
+ in every project. Each file is cut at 20,000 characters - see
123
+ `docs/configuration.md`.
124
+ - **`/connect` pulls a missing Ollama model.** A model the daemon does not
125
+ have is offered for download, with a progress line, instead of only being
126
+ told to run `ollama pull`.
127
+ - **`find_symbol`**, the 45th tool: where a function, class or method is
128
+ defined anywhere in the project, with its signature and class, from a
129
+ Tree-sitter symbol table cached per file. `references=true` adds where the
130
+ name is used as an identifier, leaving out comments and strings.
131
+ - **Your own slash commands.** A prompt saved as
132
+ `~/.aetheris/commands/<name>.md`, or in a project's `.aetheris/commands/`,
133
+ is `/<name>`, with `$ARGUMENTS` and `$1`..`$9` filled in from what follows
134
+ it. A file cannot replace a built-in. `/commands` lists them.
135
+ - **`/diff`** shows what the AI committed since the harness started: each
136
+ commit with lines added and removed per file, `/diff <n>` for one patch,
137
+ `/diff all` for the net change. The person's own commits are left out.
138
+ - **`-p --output-format stream-json`** writes the turn as it runs, one JSON
139
+ object per line: `start`, `text`, `tool_use`, `tool_result`, and a final
140
+ `result` that is the `--json` report. `--output-format json` is `--json`.
141
+ - **`/fork [title]`** carries on in a copy of the conversation under a new id;
142
+ the original stays saved as it was, for `/load`.
143
+ - **Ctrl+O shows the whole conversation**, every thought and tool result in
144
+ full, and the next press puts the screen back exactly as it was. The record
145
+ is saved with the session, so a loaded conversation has its thinking too, and
146
+ a reply whose thinking was hidden says "thought for 2.3s · Ctrl+O shows it".
147
+ - **`run_python` keeps its files per session**, in
148
+ `~/.aetheris/vm/session-<pid>`, removed on exit or `/clear`, and a call that
149
+ wrote files says they are there and not in the project.
150
+ - **Auto-verify finds tests without a config file.** A `test_*.py` or
151
+ `*_test.py` marks a Python project, so a directory of `calc.py` and
152
+ `test_calc.py` has its tests run after an edit.
153
+ - **`-p` draws nothing but the answer.** The spinner, thinking and token line
154
+ went to stderr; now only a question or a warning does, and `--verbose`
155
+ draws the turn as plain text.
156
+ - **A second compression no longer loses the first.** The summary already in
157
+ the system prompt was left out of what was summarised, so it was replaced
158
+ by a summary of only what came after it.
159
+
160
+ Security and data-safety fixes. One of them changes how a project file in the
161
+ Compatibility table is used: `.mcp.json` and `.permissions.json` are still read
162
+ from the working directory, but now only once they have been trusted.
163
+
164
+ - **A symlink out of the project is not searched.** `search_in_file`,
165
+ `find_symbol` and `find_files` read the project without asking, and followed
166
+ a link into `~/.ssh` to quote what it pointed at.
167
+ Files whose real path is outside the project are now left out.
168
+ - **A message that begins like a command is a message.** `/system`, `/export`,
169
+ `/load` and `/skill` matched as a bare prefix, so "/systemd keeps
170
+ restarting" set the persona to "d keeps restarting" and "/exporter" wrote a
171
+ file called "er". Each now matches its whole name only.
172
+ - **`/export` never writes over a file.** `/export README.md` replaced the
173
+ README with the conversation. It now refuses a name that exists, as `/copy`
174
+ already did.
175
+ - **`get_url` reaches public addresses only, and asks before a long URL.** It
176
+ runs without a question, so a page that told the model what to fetch could
177
+ reach this machine, its network or `169.254.169.254` (a cloud VM's
178
+ credentials), and a URL carrying a file it had read sent the file away.
179
+ Now every hop of a redirect is resolved and refused unless public
180
+ (`URL_ALLOW_PRIVATE` to change that; `call_api` asks and goes anywhere), a
181
+ URL over `GET_URL_QUIET_CHARS` characters is asked about, the pages
182
+ `search_web` reads follow the same rule, and a `search_web` query is capped
183
+ at `SEARCH_QUERY_MAX_CHARS`.
184
+ - **The planning stages refuse MCP tools that write.** Deepthink's read-only
185
+ stages blocked the built-in tools that change things and let every MCP tool
186
+ through, so a server's `write_file` could edit during planning. An MCP tool
187
+ now counts as changing things unless its server marks it `readOnlyHint`.
188
+ - **No file tool writes the harness's own controls.** `settings.json`,
189
+ `permissions.json`, `hooks.json`, `mcp.json` and `trusted-configs.json` in the
190
+ home decide what may run, and a tool allowed to write files could rewrite
191
+ them - `AUTO_ALLOW` on, `run_cmd` allowed. They are now refused to every file
192
+ tool, through a symlink too and under `/automode`, as `providers.json` was.
193
+ - **Credentials in your environment stay out of the conversation.** `run_cmd`
194
+ keeps them (so `gh` and `aws` work), but `env` printed every `GH_TOKEN` and
195
+ AWS key to the model and the provider. A variable whose name says it holds a
196
+ credential is now `[hidden: $NAME]` in every tool result.
197
+ - **`run_cmd(git *)` no longer covers git running another program.** The rule
198
+ the docs used as an example allowed `git -c core.pager='sh -c ...'`,
199
+ `git config alias.x '!...'`, `rebase --exec` and `submodule foreach` with no
200
+ question. Those options and subcommands now go to the approval prompt unless
201
+ the rule names them.
202
+ - **A signing setup cannot stall an AI commit.** With `commit.gpgsign` on, git
203
+ asked for a passphrase in the middle of a tool call, and no git call had a
204
+ time limit. AI commits are now unsigned, and every git call has a 60-second
205
+ ceiling and `GIT_TERMINAL_PROMPT=0`.
206
+ - **`/tdd` refuses the shell detour.** The test files were locked to the file
207
+ tools only, so `sed -i`, a redirect or `git checkout` through `run_cmd`
208
+ edited the test anyway. A command that names a locked test file and writes
209
+ is now refused too.
210
+ - **A relative allow rule works on Windows.** The resolved path was measured
211
+ from the working directory as spelled, which on Windows is often an 8.3 name
212
+ (`RUNNER~1`) that `realpath` writes out in full, so `edit_file(src/*)` covered
213
+ nothing and every such call was asked about. Both ends are now resolved.
214
+ - **A project's `.mcp.json` and `.permissions.json` are asked about first.**
215
+ A cloned repository's `.mcp.json` started its commands at launch with the
216
+ person's environment filled in, and its `.permissions.json` could allow
217
+ `run_cmd` outright. Each is now shown and asked about (`Trust this file?
218
+ [y/N]`). A yes is kept in `~/.aetheris/trusted-configs.json` against the
219
+ file's sha256, so a changed file is asked about again; a no lasts the
220
+ session. An untrusted permission file keeps its `deny` rules. Under `-p`
221
+ nothing is asked and an untrusted file is not used.
222
+ - **`get_url` is never handed a secret.** It runs without an approval prompt,
223
+ yet `{{env:NAME}}` in its URL was filled in from `.env` - so one line of
224
+ prompt injection could send a key anywhere. It now refuses a placeholder and
225
+ points at `call_api`, which asks.
226
+ - **Auto-verify is approved like `run_cmd`.** It runs the project's tests,
227
+ including test code the model just wrote, so it is asked about once per
228
+ project and session, honours `deny` rules, and no longer gets the provider
229
+ keys in its environment.
230
+ - **`/undo` restores what was there.** The AI commit swept up the person's
231
+ uncommitted changes to the same file and `/undo` took them with it; an
232
+ untracked file the AI overwrote was deleted by `/undo`. The content before
233
+ each write is now kept as a git object and put back exactly. A file name
234
+ that is not ASCII came back from git quoted, so `/undo` of a Korean file
235
+ name did nothing and said it had.
236
+ - **Permission rules match the file, not the spelling.** `write_file(*/.env)`
237
+ missed `.env`; `edit_file(src/*)` allowed `src/../../etc/passwd`; an allow
238
+ on `copy_file`'s source let it write `dst` anywhere; a symlink led out of an
239
+ allowed directory. Paths are normalised, resolved, and every path a call
240
+ names must be allowed.
241
+ - **Reading outside the project asks.** `read_file`, `list_dir`, `view_image`
242
+ and the code-structure tools ask before reading outside the working
243
+ directory.
244
+ - **Writing through a symlink keeps the link.** An atomic write replaced the
245
+ link with a separate file and left the target unchanged.
246
+ - **Remote control.** The `Host` check took any hex-letter name such as
247
+ `deadbeef.cafe` for an IP address; it parses addresses now. Three wrong
248
+ pairing codes also shut that address out for `REMOTE_LOCKOUT` seconds, so
249
+ codes cannot be cycled through three guesses at a time.
250
+ - **Ollama, stopped or missing a model.** A stopped daemon is one error with
251
+ how to start it, not three retries of httpx's words - on Windows too, where a
252
+ closed port takes two seconds to refuse - and a model that was never pulled
253
+ is no longer shown as connected.
254
+ - **A small window no longer compresses every turn.** At `NUM_CTX` 12k the
255
+ reply reserve left about 4k tokens for a prompt that needs 7.8k, so every turn
256
+ announced the limit and summarised. The reserve is capped at a quarter of the
257
+ window, and a prompt too big for it is said once.
258
+ - **Answers wrap by display cells** at a space, with later rows hung under the
259
+ text after a bullet or number, so Korean is not cut mid-word at the last
260
+ column.
261
+ - **The mouse wheel scrolls in place** and leaves the drag selection working; a
262
+ blank line in a thought copies as a blank line, not its border.
263
+ - **Ctrl+C at a settings question says "Cancelled."**, and the startup panel
264
+ counts new files apart from modified ones.
265
+ - **Removed: the April Fools banner and `/aether`**, which opened a website on
266
+ one day a year. It was never listed or documented.
267
+ - **Removed: `requirements-lock.txt`**, a freeze of one machine with 32
268
+ packages this project does not use. `requirements.txt` is the one list.
269
+ - **The welcome banner fits a 20-row terminal** with the prompt_toolkit tip.
270
+ - **A paste reads `[Pasted text ...]`** rather than `[Copied text ...]`.
271
+
272
+ ---
273
+
35
274
  ## 1.2.0 - 2026-11-11
36
275
 
37
276
  Aetheris without a person at the keyboard, and a small model that loses its
@@ -3,7 +3,7 @@
3
3
  # come too. `.github/check_dist.py` fails the build when a tracked file is left
4
4
  # out, so a new one at the top level needs a line here.
5
5
  include CHANGELOG.md ARCHITECTURE.md TODO.md
6
- include requirements.txt requirements-lock.txt
6
+ include requirements.txt
7
7
  include .mcp.json.example .permissions.json.example .gitignore
8
8
  graft tests
9
9
  graft docs
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aetheris
3
- Version: 1.2.0
3
+ Version: 1.3.1
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
@@ -145,15 +145,15 @@ It is also a typed library: `aetheris.MCPServer` (MCP without an SDK) and `aethe
145
145
 
146
146
  | Topic | |
147
147
  | :--- | :--- |
148
- | [Features](docs/features.md) | Everything it does, in one list |
148
+ | [A real turn](docs/demo.md) · [Features](docs/features.md) | `gemma4:e4b` fixing a failing test, unedited; everything it does, in one list |
149
149
  | [Setup and models](docs/setup.md) | Which models work, tests, the benchmark |
150
150
  | [Tools](docs/tools.md) | The model's tools, the call format, hashline editing |
151
151
  | [Providers](docs/providers.md) | Ollama, Anthropic, OpenAI, Gemini, Attacca, keys, reasoning models |
152
152
  | [Running commands](docs/running-commands.md) | `run_cmd`, live prompts, the Python VM |
153
153
  | [Undo and verify](docs/undo-and-verify.md) | A commit per edit, `/undo`, auto-verify, `/tdd` |
154
- | [Permissions and secrets](docs/permissions.md) | Allow/deny rules, approvals, `.env` redaction |
154
+ | [Permissions and secrets](docs/permissions.md) · [Hooks](docs/hooks.md) | Allow/deny rules, approvals, `.env` redaction; your own commands around a tool call |
155
155
  | [Deepthink](docs/deepthink.md) | Plan, check, build, review, verify |
156
- | [Skills and MCP](docs/skills-and-mcp.md) | `SKILL.md` packs and MCP servers |
156
+ | [Skills and MCP](docs/skills-and-mcp.md) | `SKILL.md` packs, your own `/commands`, MCP servers |
157
157
  | [Web search](docs/web-search.md) | How results are found and ranked |
158
158
  | [Agent channel](docs/agents.md) · [Remote control](docs/remote.md) | Several agents in one project; driving a session from a phone |
159
159
  | [Configuration](docs/configuration.md) · [Slash commands](docs/slash-commands.md) | Every setting and every command |
@@ -94,15 +94,15 @@ It is also a typed library: `aetheris.MCPServer` (MCP without an SDK) and `aethe
94
94
 
95
95
  | Topic | |
96
96
  | :--- | :--- |
97
- | [Features](docs/features.md) | Everything it does, in one list |
97
+ | [A real turn](docs/demo.md) · [Features](docs/features.md) | `gemma4:e4b` fixing a failing test, unedited; everything it does, in one list |
98
98
  | [Setup and models](docs/setup.md) | Which models work, tests, the benchmark |
99
99
  | [Tools](docs/tools.md) | The model's tools, the call format, hashline editing |
100
100
  | [Providers](docs/providers.md) | Ollama, Anthropic, OpenAI, Gemini, Attacca, keys, reasoning models |
101
101
  | [Running commands](docs/running-commands.md) | `run_cmd`, live prompts, the Python VM |
102
102
  | [Undo and verify](docs/undo-and-verify.md) | A commit per edit, `/undo`, auto-verify, `/tdd` |
103
- | [Permissions and secrets](docs/permissions.md) | Allow/deny rules, approvals, `.env` redaction |
103
+ | [Permissions and secrets](docs/permissions.md) · [Hooks](docs/hooks.md) | Allow/deny rules, approvals, `.env` redaction; your own commands around a tool call |
104
104
  | [Deepthink](docs/deepthink.md) | Plan, check, build, review, verify |
105
- | [Skills and MCP](docs/skills-and-mcp.md) | `SKILL.md` packs and MCP servers |
105
+ | [Skills and MCP](docs/skills-and-mcp.md) | `SKILL.md` packs, your own `/commands`, MCP servers |
106
106
  | [Web search](docs/web-search.md) | How results are found and ranked |
107
107
  | [Agent channel](docs/agents.md) · [Remote control](docs/remote.md) | Several agents in one project; driving a session from a phone |
108
108
  | [Configuration](docs/configuration.md) · [Slash commands](docs/slash-commands.md) | Every setting and every command |
@@ -23,7 +23,7 @@
23
23
  * [x] Waiting-for-input detection per platform (/proc on Linux, CPU elsewhere) + tests/test_platform.py
24
24
  * [x] Decode command output by what it actually is (UTF-8, else the console code page)
25
25
  * [x] /connect: Anthropic, OpenAI (+compatible), Gemini alongside Ollama
26
- * [x] Pin dependencies to the versions that were actually tested (+ requirements-lock.txt)
26
+ * [x] Pin dependencies to the versions that were actually tested
27
27
  * [x] Atomic file writes, so a crash cannot empty a session, the memory or the saved API keys
28
28
  * [x] Token estimate that knows Korean from English, and calibrates against what providers report
29
29
  * [x] One tool table (toolspec.py): the prompt is rendered from it, dispatch binds through it, drift is a startup error
@@ -68,8 +68,14 @@
68
68
  * [x] Deepthink stage 1 names all six stages
69
69
  * [x] Ctrl+O: the last turn uncut
70
70
  * [x] /update and a once-a-day check against PyPI
71
+ * [x] Whole-project Tree-sitter index (symbol table): find_symbol, definitions and references
72
+ * [x] /btw f keeps the aside in the conversation; the aside is saved at once
73
+ * [x] /sessions delete and /sessions rename
74
+ * [x] /loop, /schedule and /tasks: prompts sent on an interval or at a time, while the session is open
75
+ * [x] run_cmd background: a job id at once, and the model told when it ends (read_background)
76
+ * [x] spawn_agent: provider:model and SUBAGENT_MODELS, and isolation="worktree"
77
+ * [x] /init writes the instructions file; /add-dir widens the project for the session
71
78
 
72
79
  ## next
73
80
 
74
- * [ ] Whole-project Tree-sitter index (symbol table) instead of plain text search
75
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)
@@ -1,9 +1,7 @@
1
1
  """Aetheris - a terminal AI assistant built for small local models.
2
2
 
3
- Nothing is imported here on purpose. `config` builds the system prompt at import
4
- time (ARCHITECTURE 5.2), so anything this file pulled in would be dragged into
5
- every `from aetheris import ...` in the package, and the import order that
6
- invariant depends on would stop being obvious.
3
+ Nothing is imported here on purpose: anything this file pulled in would be
4
+ dragged into every `from aetheris import ...` in the package.
7
5
 
8
6
  The names in `__all__` are the library: the parts that work on their own and
9
7
  are promised to keep working the same way until the next major version
@@ -14,7 +12,7 @@ harness's implementation and changes when the harness needs it to.
14
12
 
15
13
  from typing import TYPE_CHECKING
16
14
 
17
- __version__ = "1.2.0"
15
+ __version__ = "1.3.1"
18
16
 
19
17
  __all__ = ["MCPError", "MCPServer", "ShellSession", "start_shell"]
20
18