aether-agent-framework 1.3.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 (38) hide show
  1. aether_agent_framework-1.3.0/LICENSE +21 -0
  2. aether_agent_framework-1.3.0/MANIFEST.in +6 -0
  3. aether_agent_framework-1.3.0/PKG-INFO +254 -0
  4. aether_agent_framework-1.3.0/README.md +217 -0
  5. aether_agent_framework-1.3.0/aether/__init__.py +9 -0
  6. aether_agent_framework-1.3.0/aether/__main__.py +4 -0
  7. aether_agent_framework-1.3.0/aether/agent.py +222 -0
  8. aether_agent_framework-1.3.0/aether/cli.py +118 -0
  9. aether_agent_framework-1.3.0/aether/config.py +98 -0
  10. aether_agent_framework-1.3.0/aether/llm.py +227 -0
  11. aether_agent_framework-1.3.0/aether/memory.py +45 -0
  12. aether_agent_framework-1.3.0/aether/planner.py +31 -0
  13. aether_agent_framework-1.3.0/aether/tools/__init__.py +101 -0
  14. aether_agent_framework-1.3.0/aether/tools/base.py +72 -0
  15. aether_agent_framework-1.3.0/aether/tools/data.py +199 -0
  16. aether_agent_framework-1.3.0/aether/tools/delegate.py +163 -0
  17. aether_agent_framework-1.3.0/aether/tools/files.py +150 -0
  18. aether_agent_framework-1.3.0/aether/tools/knowledge.py +247 -0
  19. aether_agent_framework-1.3.0/aether/tools/loader.py +85 -0
  20. aether_agent_framework-1.3.0/aether/tools/net.py +141 -0
  21. aether_agent_framework-1.3.0/aether/tools/productivity.py +250 -0
  22. aether_agent_framework-1.3.0/aether/tools/python_exec.py +59 -0
  23. aether_agent_framework-1.3.0/aether/tools/shell.py +121 -0
  24. aether_agent_framework-1.3.0/aether/tools/web.py +113 -0
  25. aether_agent_framework-1.3.0/aether/web/__init__.py +18 -0
  26. aether_agent_framework-1.3.0/aether/web/__main__.py +62 -0
  27. aether_agent_framework-1.3.0/aether/web/server.py +321 -0
  28. aether_agent_framework-1.3.0/aether/web/static/index.html +470 -0
  29. aether_agent_framework-1.3.0/aether_agent_framework.egg-info/PKG-INFO +254 -0
  30. aether_agent_framework-1.3.0/aether_agent_framework.egg-info/SOURCES.txt +36 -0
  31. aether_agent_framework-1.3.0/aether_agent_framework.egg-info/dependency_links.txt +1 -0
  32. aether_agent_framework-1.3.0/aether_agent_framework.egg-info/entry_points.txt +3 -0
  33. aether_agent_framework-1.3.0/aether_agent_framework.egg-info/requires.txt +16 -0
  34. aether_agent_framework-1.3.0/aether_agent_framework.egg-info/top_level.txt +1 -0
  35. aether_agent_framework-1.3.0/config.example.yaml +39 -0
  36. aether_agent_framework-1.3.0/pyproject.toml +57 -0
  37. aether_agent_framework-1.3.0/requirements.txt +3 -0
  38. aether_agent_framework-1.3.0/setup.cfg +4 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Atikur Rahman
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,6 @@
1
+ include LICENSE
2
+ include README.md
3
+ include config.example.yaml
4
+ include requirements.txt
5
+ recursive-include aether/web/static *
6
+ recursive-exclude tests *
@@ -0,0 +1,254 @@
1
+ Metadata-Version: 2.4
2
+ Name: aether-agent-framework
3
+ Version: 1.3.0
4
+ Summary: Free autonomous agent framework: plan-act-observe loop, 20 built-in tools, multi-agent handoffs, live Web UI, any OpenAI-compatible API or local Ollama model
5
+ Author: Atikur Rahman
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Atikur-rahman-ar/Localrepo
8
+ Project-URL: Repository, https://github.com/Atikur-rahman-ar/Localrepo
9
+ Project-URL: Issues, https://github.com/Atikur-rahman-ar/Localrepo/issues
10
+ Keywords: agent,llm,autonomous-agent,ai,tools,ollama,openai
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
20
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: requests>=2.31.0
25
+ Requires-Dist: PyYAML>=6.0.1
26
+ Provides-Extra: web
27
+ Requires-Dist: Flask>=3.0; extra == "web"
28
+ Provides-Extra: charts
29
+ Requires-Dist: matplotlib>=3.7; extra == "charts"
30
+ Provides-Extra: dev
31
+ Requires-Dist: pytest>=8.0; extra == "dev"
32
+ Requires-Dist: build>=1.2; extra == "dev"
33
+ Provides-Extra: all
34
+ Requires-Dist: Flask>=3.0; extra == "all"
35
+ Requires-Dist: matplotlib>=3.7; extra == "all"
36
+ Dynamic: license-file
37
+
38
+ # Aether
39
+
40
+ A free, fully autonomous agent framework. Give it a task; it plans, acts with real tools (shell, files, web, code execution), observes the results, recovers from failures, and reports back when the job is done.
41
+
42
+ ```
43
+ TASK -> PLAN -> [ ACT -> OBSERVE -> THINK ] x N -> RESULT
44
+ ```
45
+
46
+ ## What it does
47
+
48
+ - **Autonomous loop** - the agent chains tool calls on its own until the task is finished, with a configurable hard stop (`max_iterations`).
49
+ - **Planning** - every task starts with a checklist the agent follows and adapts (disable with `--no-plan`).
50
+ - **19 built-in tools + sub-agents** - shell, file read/write/edit, directory listing, Python execution, DuckDuckGo web search, URL fetching, generic HTTP calls, file downloads, Wikipedia/arXiv/GitHub search, SQLite queries, chart rendering, long-term memory (remember/recall), email sending, calendar event files - and `delegate_task` for handing subtasks to sub-agents.
51
+ - **Live Web UI** - `python -m aether.web` and watch the agent think and act in real time: plan, tool calls, observations and the final result stream into your browser as they happen.
52
+ - **Multi-agent handoffs** - the agent can spawn sub-agents with fresh context and their own loop budget for self-contained subtasks; depth and iteration limits keep the tree bounded, and sub-agent activity streams into the same dashboard.
53
+ - **Any LLM backend** - any OpenAI-compatible API (Z.ai, OpenRouter, Groq, Google AI Studio, llama.cpp, vLLM...) and local Ollama. If it speaks tool-calling, Aether can drive it. A built-in `mock` backend runs a scripted demo with zero network access.
54
+ - **Stuck detection** - repeating the same failed action 3 times triggers an automatic strategy-change nudge instead of an infinite loop.
55
+ - **Long-term memory** - durable notes persist across sessions in plain Markdown under `.aether/notes.md`; every session is transcribed to JSONL for replay/audit.
56
+ - **Safety model** - a hard blocklist that *never* runs catastrophic commands, plus a confirmation tier for impactful ones.
57
+
58
+ ## Why it is free
59
+
60
+ Aether is just Python and two tiny dependencies (`requests`, `PyYAML`); the Web UI adds one more (`Flask`). The cost depends entirely on the backend you plug in:
61
+
62
+ | Backend | Cost | Notes |
63
+ | --- | --- | --- |
64
+ | Ollama (local) | Free, offline | `ollama pull llama3.1` / `qwen2.5-coder` / any tool-calling model |
65
+ | Z.ai GLM Flash models | Free tier | `base_url: https://api.z.ai/api/paas/v4` |
66
+ | OpenRouter `:free` models | Free tier | `base_url: https://openrouter.ai/api/v1` |
67
+ | Groq | Free tier | very fast inference |
68
+ | Google AI Studio | Free tier | OpenAI-compatible endpoint available |
69
+ | llama.cpp / vLLM server | Free, local | any GGUF / served model |
70
+
71
+ ## Installation
72
+
73
+ From PyPI (recommended):
74
+
75
+ ```bash
76
+ pip install aether-agent-framework # core: CLI + all keyless tools
77
+ pip install "aether-agent-framework[web]" # + the live dashboard (Flask)
78
+ pip install "aether-agent-framework[all]" # + charts (matplotlib) + web
79
+ ```
80
+
81
+ That installs two commands: `aether` (one-shot tasks + REPL) and `aether-web` (the dashboard).
82
+
83
+ From source:
84
+
85
+ ```bash
86
+ git clone https://github.com/Atikur-rahman-ar/Localrepo aether
87
+ cd aether
88
+ pip install -e ".[web]"
89
+ ```
90
+
91
+ ## Quickstart
92
+
93
+ ```bash
94
+ git clone https://github.com/Atikur-rahman-ar/Localrepo aether
95
+ cd aether
96
+ pip install -r requirements.txt
97
+
98
+ # Hosted backend (pick a free-tier model from your provider)
99
+ export AETHER_API_KEY="your-key"
100
+ python -m aether --model glm-4.7-flash "scaffold a flask todo app with tests and run the tests"
101
+
102
+ # 100% free and offline with Ollama
103
+ ollama pull llama3.1
104
+ python -m aether --provider ollama --model llama3.1 \
105
+ --workspace ./demo "write a fib.py with memoization and prove it with tests"
106
+ ```
107
+
108
+ With no task argument you get the interactive REPL:
109
+
110
+ ```
111
+ $ python -m aether --provider ollama
112
+ aether> analyze the csv in ./data and plot monthly totals
113
+ ```
114
+
115
+ REPL commands: `/reset` new conversation, `/notes` show long-term memory, `/forget` wipe notes, `/tools` list tools, `/help`, `/exit`.
116
+
117
+ ## Live Web UI
118
+
119
+ ```bash
120
+ python -m aether.web --workspace ./demo
121
+ # open http://127.0.0.1:5000
122
+ ```
123
+
124
+ A local dashboard where you type tasks and watch the loop execute:
125
+
126
+ - every step streams live over Server-Sent Events: **task → plan → thinking → tool calls with arguments → results → final answer**;
127
+ - per-run overrides for provider, `base_url`, model and `max_iterations` (API keys stay in the server environment - never typed in the browser);
128
+ - run history in the sidebar, click any past run to replay its full trace;
129
+ - a **Stop** button that halts the agent before its next model turn or tool call;
130
+ - no key at hand? pick the `mock` provider for an offline scripted demo.
131
+
132
+ Optional hardening: set `AETHER_WEB_TOKEN` and every API call must present it (the UI asks for it once and stores it in `localStorage`). The server binds to `127.0.0.1` by default - it is a personal dashboard, not something to expose to the internet.
133
+
134
+ ## Multi-agent handoffs
135
+
136
+ Big tasks decompose well when focused pieces can be handed off completely. The `delegate_task` tool spawns a **sub-agent** with:
137
+
138
+ - a **fresh conversation** - the child does not inherit the parent's context (pass what it needs via the `context` argument);
139
+ - its **own loop budget** (`delegate_max_iterations`, default 15) - a delegation can never outlive its parent;
140
+ - the **same toolbelt** minus further delegation once `max_delegate_depth` is reached;
141
+ - the parent's **stop flag** - stopping a run stops the whole agent tree;
142
+ - live **sub-agent events** in the Web UI, labelled with their nesting depth.
143
+
144
+ ```yaml
145
+ # config.yaml
146
+ max_delegate_depth: 1 # 0 disables delegation; 2 allows sub-agents to delegate too
147
+ delegate_max_iterations: 15 # loop budget per sub-agent
148
+ ```
149
+
150
+ Defaults are deliberately conservative: depth 1 means the top-level agent may delegate, sub-agents may not. Raise it when a task genuinely needs fan-out (e.g. "refactor these five modules" delegating one module each). The parent sees the child's final report as the tool result, prefixed with its depth.
151
+
152
+ ## Configuration
153
+
154
+ Precedence: CLI flags > environment variables (`AETHER_PROVIDER`, `AETHER_BASE_URL`, `AETHER_API_KEY`, `AETHER_MODEL`, `AETHER_MAX_ITERATIONS`, `AETHER_AUTO_APPROVE`, `AETHER_WORKSPACE`, `AETHER_CUSTOM_TOOLS`, `AETHER_MAX_DELEGATE_DEPTH`, `AETHER_DELEGATE_MAX_ITERATIONS`) > `config.yaml` > defaults. See `config.example.yaml`.
155
+
156
+ For `send_email`, the SMTP settings are also environment variables: `AETHER_SMTP_HOST`, `AETHER_SMTP_PORT`, `AETHER_SMTP_USER`, `AETHER_SMTP_PASS` (use an app-specific password where offered).
157
+
158
+ ## Built-in tools
159
+
160
+ | Tool | What it does |
161
+ | --- | --- |
162
+ | `run_command` | shell in the workspace, stdout/stderr/exit code back to the model |
163
+ | `read_file` | read text files, optional line ranges |
164
+ | `write_file` | create/overwrite files, auto-creates directories |
165
+ | `edit_file` | exact-string replacement with uniqueness check |
166
+ | `list_dir` | recursive listing with noise dirs skipped |
167
+ | `execute_python` | run Python in a subprocess for math/data/scripts |
168
+ | `web_search` | DuckDuckGo search, no API key |
169
+ | `fetch_url` | fetch a page, return readable text |
170
+ | `remember` | write a durable fact to long-term notes |
171
+ | `recall` | search long-term notes |
172
+ | `http_request` | call any HTTP API: method, headers, raw or JSON body, status + body back |
173
+ | `download_file` | download binary/text files into the workspace (200 MB cap) |
174
+ | `search_wikipedia` | Wikipedia search with snippets; optional full article extract |
175
+ | `search_arxiv` | paper search: titles, authors, abstracts, PDF links |
176
+ | `search_github` | repo/issue/user search via the public GitHub API (no key) |
177
+ | `run_sqlite` | one SQL statement against a local SQLite file; read-only by default |
178
+ | `render_chart` | line/bar/scatter/pie/histogram charts saved as PNG |
179
+ | `send_email` | SMTP email; credentials from env only; `dry_run=true` previews without sending |
180
+ | `create_calendar_event` | writes an RFC 5545 `.ics` file into `workspace/calendar/`, importable everywhere |
181
+ | `delegate_task` | spawns a sub-agent for a self-contained subtask; depth/iteration capped; result returns to the parent |
182
+
183
+ Everything runs keyless on `requests` alone. Optional extras: `render_chart` uses matplotlib and the Web UI uses Flask - `pip install matplotlib flask` (a clear error is returned if missing).
184
+
185
+ ## Tests & CI
186
+
187
+ ```bash
188
+ pip install -e ".[dev,web]"
189
+ pytest
190
+ ```
191
+
192
+ 74 tests cover the config loader, memory, the tool registry, file-tool sandboxing, the custom-tool loader, the agent loop (with a scripted LLM and the offline mock backend), multi-agent delegation, the productivity tools and every Web UI endpoint - all without network access. The offline `mock` provider exists precisely so the full loop is testable anywhere.
193
+
194
+ GitHub Actions runs the suite on Python 3.10-3.12 plus a build job that compiles the sdist/wheel, validates metadata with twine and smoke-tests the wheel in a clean venv (`.github/workflows/ci.yml`).
195
+
196
+ ## Safety model
197
+
198
+ Three tiers:
199
+
200
+ 1. **Hard blocklist (never runs, even with `--auto`)** - recursive `rm` of `/`, `~`, `$HOME` or system directories, `mkfs`, raw disk writes (`dd of=/dev/...`), fork bombs, `shutdown`/`reboot`, global `chmod 777`.
201
+ 2. **Confirmation tier** - `sudo`, package installs, `git push`, `curl | sh`, `docker` ask you `y/N` first. Skip prompts with `--auto` (the blocklist still applies).
202
+ 3. **Everything else** - runs directly in the workspace.
203
+
204
+ ### A note on "uncensored"
205
+
206
+ Aether itself puts **no restrictions on what tasks you can give it**. Two things remain by design and are not bugs:
207
+
208
+ - Your chosen LLM provider's usage policy still applies to the model's outputs. Aether is an agent harness, not a jailbreak tool.
209
+ - The destructive-command blocklist exists so a confused model cannot wipe your disk.
210
+
211
+ ## Architecture
212
+
213
+ See [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for the full loop, message format and design decisions.
214
+
215
+ ```
216
+ aether/
217
+ agent.py # the act-observe-think loop, stuck detection, event stream, stop flag
218
+ cli.py # one-shot + interactive mode
219
+ config.py # YAML + env + CLI flag merging
220
+ llm.py # OpenAI-compatible, Ollama and mock backends, retries
221
+ memory.py # session JSONL transcripts + notes.md
222
+ planner.py # checklist generation
223
+ web/ # live Web UI: Flask server, SSE streaming, run manager
224
+ tools/ # base registry, all built-in tools, delegate.py (sub-agents)
225
+ tests/ # pytest suite (offline: scripted LLM + mock provider)
226
+ ```
227
+
228
+ ## Add your own tools
229
+
230
+ The zero-code way: create a folder, drop in plain Python files, point Aether at it.
231
+
232
+ ```python
233
+ # ~/aether-tools/shout.py
234
+ from aether.tools.base import Tool
235
+
236
+ class Shout(Tool):
237
+ name = "shout"
238
+ description = "Repeat a message in capital letters."
239
+ parameters = {
240
+ "type": "object",
241
+ "properties": {"text": {"type": "string"}},
242
+ "required": ["text"],
243
+ }
244
+ def run(self, args: dict) -> str:
245
+ return args["text"].upper() + "!"
246
+ ```
247
+
248
+ Then either `export AETHER_CUSTOM_TOOLS=~/aether-tools` or set `custom_tools_dir` in `config.yaml`. Every `*.py` file is imported at startup and every `Tool` subclass found is registered - a tool whose name collides with a built-in replaces it (handy for overrides). Broken files are skipped with a warning instead of killing the run.
249
+
250
+ Alternatively register tools directly in `build_default_tools()` in `aether/tools/__init__.py`. That is the whole extension contract.
251
+
252
+ ## License
253
+
254
+ MIT - see [LICENSE](LICENSE).
@@ -0,0 +1,217 @@
1
+ # Aether
2
+
3
+ A free, fully autonomous agent framework. Give it a task; it plans, acts with real tools (shell, files, web, code execution), observes the results, recovers from failures, and reports back when the job is done.
4
+
5
+ ```
6
+ TASK -> PLAN -> [ ACT -> OBSERVE -> THINK ] x N -> RESULT
7
+ ```
8
+
9
+ ## What it does
10
+
11
+ - **Autonomous loop** - the agent chains tool calls on its own until the task is finished, with a configurable hard stop (`max_iterations`).
12
+ - **Planning** - every task starts with a checklist the agent follows and adapts (disable with `--no-plan`).
13
+ - **19 built-in tools + sub-agents** - shell, file read/write/edit, directory listing, Python execution, DuckDuckGo web search, URL fetching, generic HTTP calls, file downloads, Wikipedia/arXiv/GitHub search, SQLite queries, chart rendering, long-term memory (remember/recall), email sending, calendar event files - and `delegate_task` for handing subtasks to sub-agents.
14
+ - **Live Web UI** - `python -m aether.web` and watch the agent think and act in real time: plan, tool calls, observations and the final result stream into your browser as they happen.
15
+ - **Multi-agent handoffs** - the agent can spawn sub-agents with fresh context and their own loop budget for self-contained subtasks; depth and iteration limits keep the tree bounded, and sub-agent activity streams into the same dashboard.
16
+ - **Any LLM backend** - any OpenAI-compatible API (Z.ai, OpenRouter, Groq, Google AI Studio, llama.cpp, vLLM...) and local Ollama. If it speaks tool-calling, Aether can drive it. A built-in `mock` backend runs a scripted demo with zero network access.
17
+ - **Stuck detection** - repeating the same failed action 3 times triggers an automatic strategy-change nudge instead of an infinite loop.
18
+ - **Long-term memory** - durable notes persist across sessions in plain Markdown under `.aether/notes.md`; every session is transcribed to JSONL for replay/audit.
19
+ - **Safety model** - a hard blocklist that *never* runs catastrophic commands, plus a confirmation tier for impactful ones.
20
+
21
+ ## Why it is free
22
+
23
+ Aether is just Python and two tiny dependencies (`requests`, `PyYAML`); the Web UI adds one more (`Flask`). The cost depends entirely on the backend you plug in:
24
+
25
+ | Backend | Cost | Notes |
26
+ | --- | --- | --- |
27
+ | Ollama (local) | Free, offline | `ollama pull llama3.1` / `qwen2.5-coder` / any tool-calling model |
28
+ | Z.ai GLM Flash models | Free tier | `base_url: https://api.z.ai/api/paas/v4` |
29
+ | OpenRouter `:free` models | Free tier | `base_url: https://openrouter.ai/api/v1` |
30
+ | Groq | Free tier | very fast inference |
31
+ | Google AI Studio | Free tier | OpenAI-compatible endpoint available |
32
+ | llama.cpp / vLLM server | Free, local | any GGUF / served model |
33
+
34
+ ## Installation
35
+
36
+ From PyPI (recommended):
37
+
38
+ ```bash
39
+ pip install aether-agent-framework # core: CLI + all keyless tools
40
+ pip install "aether-agent-framework[web]" # + the live dashboard (Flask)
41
+ pip install "aether-agent-framework[all]" # + charts (matplotlib) + web
42
+ ```
43
+
44
+ That installs two commands: `aether` (one-shot tasks + REPL) and `aether-web` (the dashboard).
45
+
46
+ From source:
47
+
48
+ ```bash
49
+ git clone https://github.com/Atikur-rahman-ar/Localrepo aether
50
+ cd aether
51
+ pip install -e ".[web]"
52
+ ```
53
+
54
+ ## Quickstart
55
+
56
+ ```bash
57
+ git clone https://github.com/Atikur-rahman-ar/Localrepo aether
58
+ cd aether
59
+ pip install -r requirements.txt
60
+
61
+ # Hosted backend (pick a free-tier model from your provider)
62
+ export AETHER_API_KEY="your-key"
63
+ python -m aether --model glm-4.7-flash "scaffold a flask todo app with tests and run the tests"
64
+
65
+ # 100% free and offline with Ollama
66
+ ollama pull llama3.1
67
+ python -m aether --provider ollama --model llama3.1 \
68
+ --workspace ./demo "write a fib.py with memoization and prove it with tests"
69
+ ```
70
+
71
+ With no task argument you get the interactive REPL:
72
+
73
+ ```
74
+ $ python -m aether --provider ollama
75
+ aether> analyze the csv in ./data and plot monthly totals
76
+ ```
77
+
78
+ REPL commands: `/reset` new conversation, `/notes` show long-term memory, `/forget` wipe notes, `/tools` list tools, `/help`, `/exit`.
79
+
80
+ ## Live Web UI
81
+
82
+ ```bash
83
+ python -m aether.web --workspace ./demo
84
+ # open http://127.0.0.1:5000
85
+ ```
86
+
87
+ A local dashboard where you type tasks and watch the loop execute:
88
+
89
+ - every step streams live over Server-Sent Events: **task → plan → thinking → tool calls with arguments → results → final answer**;
90
+ - per-run overrides for provider, `base_url`, model and `max_iterations` (API keys stay in the server environment - never typed in the browser);
91
+ - run history in the sidebar, click any past run to replay its full trace;
92
+ - a **Stop** button that halts the agent before its next model turn or tool call;
93
+ - no key at hand? pick the `mock` provider for an offline scripted demo.
94
+
95
+ Optional hardening: set `AETHER_WEB_TOKEN` and every API call must present it (the UI asks for it once and stores it in `localStorage`). The server binds to `127.0.0.1` by default - it is a personal dashboard, not something to expose to the internet.
96
+
97
+ ## Multi-agent handoffs
98
+
99
+ Big tasks decompose well when focused pieces can be handed off completely. The `delegate_task` tool spawns a **sub-agent** with:
100
+
101
+ - a **fresh conversation** - the child does not inherit the parent's context (pass what it needs via the `context` argument);
102
+ - its **own loop budget** (`delegate_max_iterations`, default 15) - a delegation can never outlive its parent;
103
+ - the **same toolbelt** minus further delegation once `max_delegate_depth` is reached;
104
+ - the parent's **stop flag** - stopping a run stops the whole agent tree;
105
+ - live **sub-agent events** in the Web UI, labelled with their nesting depth.
106
+
107
+ ```yaml
108
+ # config.yaml
109
+ max_delegate_depth: 1 # 0 disables delegation; 2 allows sub-agents to delegate too
110
+ delegate_max_iterations: 15 # loop budget per sub-agent
111
+ ```
112
+
113
+ Defaults are deliberately conservative: depth 1 means the top-level agent may delegate, sub-agents may not. Raise it when a task genuinely needs fan-out (e.g. "refactor these five modules" delegating one module each). The parent sees the child's final report as the tool result, prefixed with its depth.
114
+
115
+ ## Configuration
116
+
117
+ Precedence: CLI flags > environment variables (`AETHER_PROVIDER`, `AETHER_BASE_URL`, `AETHER_API_KEY`, `AETHER_MODEL`, `AETHER_MAX_ITERATIONS`, `AETHER_AUTO_APPROVE`, `AETHER_WORKSPACE`, `AETHER_CUSTOM_TOOLS`, `AETHER_MAX_DELEGATE_DEPTH`, `AETHER_DELEGATE_MAX_ITERATIONS`) > `config.yaml` > defaults. See `config.example.yaml`.
118
+
119
+ For `send_email`, the SMTP settings are also environment variables: `AETHER_SMTP_HOST`, `AETHER_SMTP_PORT`, `AETHER_SMTP_USER`, `AETHER_SMTP_PASS` (use an app-specific password where offered).
120
+
121
+ ## Built-in tools
122
+
123
+ | Tool | What it does |
124
+ | --- | --- |
125
+ | `run_command` | shell in the workspace, stdout/stderr/exit code back to the model |
126
+ | `read_file` | read text files, optional line ranges |
127
+ | `write_file` | create/overwrite files, auto-creates directories |
128
+ | `edit_file` | exact-string replacement with uniqueness check |
129
+ | `list_dir` | recursive listing with noise dirs skipped |
130
+ | `execute_python` | run Python in a subprocess for math/data/scripts |
131
+ | `web_search` | DuckDuckGo search, no API key |
132
+ | `fetch_url` | fetch a page, return readable text |
133
+ | `remember` | write a durable fact to long-term notes |
134
+ | `recall` | search long-term notes |
135
+ | `http_request` | call any HTTP API: method, headers, raw or JSON body, status + body back |
136
+ | `download_file` | download binary/text files into the workspace (200 MB cap) |
137
+ | `search_wikipedia` | Wikipedia search with snippets; optional full article extract |
138
+ | `search_arxiv` | paper search: titles, authors, abstracts, PDF links |
139
+ | `search_github` | repo/issue/user search via the public GitHub API (no key) |
140
+ | `run_sqlite` | one SQL statement against a local SQLite file; read-only by default |
141
+ | `render_chart` | line/bar/scatter/pie/histogram charts saved as PNG |
142
+ | `send_email` | SMTP email; credentials from env only; `dry_run=true` previews without sending |
143
+ | `create_calendar_event` | writes an RFC 5545 `.ics` file into `workspace/calendar/`, importable everywhere |
144
+ | `delegate_task` | spawns a sub-agent for a self-contained subtask; depth/iteration capped; result returns to the parent |
145
+
146
+ Everything runs keyless on `requests` alone. Optional extras: `render_chart` uses matplotlib and the Web UI uses Flask - `pip install matplotlib flask` (a clear error is returned if missing).
147
+
148
+ ## Tests & CI
149
+
150
+ ```bash
151
+ pip install -e ".[dev,web]"
152
+ pytest
153
+ ```
154
+
155
+ 74 tests cover the config loader, memory, the tool registry, file-tool sandboxing, the custom-tool loader, the agent loop (with a scripted LLM and the offline mock backend), multi-agent delegation, the productivity tools and every Web UI endpoint - all without network access. The offline `mock` provider exists precisely so the full loop is testable anywhere.
156
+
157
+ GitHub Actions runs the suite on Python 3.10-3.12 plus a build job that compiles the sdist/wheel, validates metadata with twine and smoke-tests the wheel in a clean venv (`.github/workflows/ci.yml`).
158
+
159
+ ## Safety model
160
+
161
+ Three tiers:
162
+
163
+ 1. **Hard blocklist (never runs, even with `--auto`)** - recursive `rm` of `/`, `~`, `$HOME` or system directories, `mkfs`, raw disk writes (`dd of=/dev/...`), fork bombs, `shutdown`/`reboot`, global `chmod 777`.
164
+ 2. **Confirmation tier** - `sudo`, package installs, `git push`, `curl | sh`, `docker` ask you `y/N` first. Skip prompts with `--auto` (the blocklist still applies).
165
+ 3. **Everything else** - runs directly in the workspace.
166
+
167
+ ### A note on "uncensored"
168
+
169
+ Aether itself puts **no restrictions on what tasks you can give it**. Two things remain by design and are not bugs:
170
+
171
+ - Your chosen LLM provider's usage policy still applies to the model's outputs. Aether is an agent harness, not a jailbreak tool.
172
+ - The destructive-command blocklist exists so a confused model cannot wipe your disk.
173
+
174
+ ## Architecture
175
+
176
+ See [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for the full loop, message format and design decisions.
177
+
178
+ ```
179
+ aether/
180
+ agent.py # the act-observe-think loop, stuck detection, event stream, stop flag
181
+ cli.py # one-shot + interactive mode
182
+ config.py # YAML + env + CLI flag merging
183
+ llm.py # OpenAI-compatible, Ollama and mock backends, retries
184
+ memory.py # session JSONL transcripts + notes.md
185
+ planner.py # checklist generation
186
+ web/ # live Web UI: Flask server, SSE streaming, run manager
187
+ tools/ # base registry, all built-in tools, delegate.py (sub-agents)
188
+ tests/ # pytest suite (offline: scripted LLM + mock provider)
189
+ ```
190
+
191
+ ## Add your own tools
192
+
193
+ The zero-code way: create a folder, drop in plain Python files, point Aether at it.
194
+
195
+ ```python
196
+ # ~/aether-tools/shout.py
197
+ from aether.tools.base import Tool
198
+
199
+ class Shout(Tool):
200
+ name = "shout"
201
+ description = "Repeat a message in capital letters."
202
+ parameters = {
203
+ "type": "object",
204
+ "properties": {"text": {"type": "string"}},
205
+ "required": ["text"],
206
+ }
207
+ def run(self, args: dict) -> str:
208
+ return args["text"].upper() + "!"
209
+ ```
210
+
211
+ Then either `export AETHER_CUSTOM_TOOLS=~/aether-tools` or set `custom_tools_dir` in `config.yaml`. Every `*.py` file is imported at startup and every `Tool` subclass found is registered - a tool whose name collides with a built-in replaces it (handy for overrides). Broken files are skipped with a warning instead of killing the run.
212
+
213
+ Alternatively register tools directly in `build_default_tools()` in `aether/tools/__init__.py`. That is the whole extension contract.
214
+
215
+ ## License
216
+
217
+ MIT - see [LICENSE](LICENSE).
@@ -0,0 +1,9 @@
1
+ """Aether - a free, fully autonomous agent framework.
2
+
3
+ Plug in any OpenAI-compatible API or a local Ollama model and let the agent
4
+ plan, act (run commands, write code, browse the web), observe and iterate
5
+ until the task is done. Subtasks can be handed off to sub-agents via the
6
+ delegate_task tool; a local dashboard streams every step of the loop.
7
+ """
8
+
9
+ __version__ = "1.3.0"
@@ -0,0 +1,4 @@
1
+ from .cli import main
2
+
3
+ if __name__ == "__main__":
4
+ raise SystemExit(main())