Repository navigation
Added
- Slow & locked keeps a week, by code. What
db_activityrecords (slow queries, lock waits) stays forDATABASE_ACTIVITY_RETENTION_SECONDS(a week by default) on one capped list, each record carrying its container's host and the service or component that owns its code. Overseer > Database > Slow & locked filters it by kind, by the Services picker Logs and Errors share, and by text; groups it by code site (count, time held in all and at most, last seen, processes); then lists the newest 200 rows, live. The database health check carries the last hour's eight costliest code sites, and the Flet tab shows the same groups.
- Editable approval cards, and what an approval does after it lands. A change type can let the reader correct a card before approving it (
ChangeExecutor.editable, narrowed byedits, withchoicesdrawing a select): the card offers Edit, the one dialog prefilled with what was proposed, andchange_queue.reviserevalidates the payload against the type's contract (alsoPOST /changes/{id}/revise, and the agents'revisetool for "it is X, not Y" across every waiting card).after_commitruns a type's follow-up once the approval's transaction commits, over exactly the rows that action landed;scannames the stored pictures a card shows (/partials/changes/{id}/scan);expire_namingsets aside the waiting cards aimed at something about to be removed, saying why. - Memory writes are approval cards.
save_memoryandreplace_memory, and the newupdate_memoryandforget_memory(a saved fact named by a quote of it), file a card on the change queue; nothing is remembered or forgotten until the user approves it. A batch card folds rows that say the same thing under one "Skip all"; a decided card folds to its outcome and says why; a card no longer in the queue says so instead of failing its load;pendingredraws cards only when asked (draw=True). - Agents that extend another, and a guarded sandbox. An agent row's
extendsnames its parent, one level deep: the child's prompt goes first, then the parent's, and the tools, context modules and knowledge bases it leaves empty come from the parent; model, sampling and code mode stay its own. Code mode's scripts are held toAI_CODE_MODE_MAX_SECONDS(10 s) andAI_CODE_MODE_MAX_MEMORY_BYTES(64 MiB), one per user at a time, and a script that calls a write tool is told to call it directly. Every*_centsinteger a tool or a script returns reaches the model with its*_usdbeside it. - A chat that keeps its place. Turns that fall out of the history window are folded on the worker into a running summary that rides ahead of the history; it moves only when the window's cut does, so a local engine's prompt cache holds between turns. Each replayed answer carries its steps (tool calls, scripts, card ids), so "try again" does not re-query; a day line marks where each day starts in place of a per-answer date. A conversation keeps the agent it was talking to: a follow-up that names none, or a call's look, answers as that agent.
- Pastes and PDFs out of the thread. Text over 2,000 characters and an attached PDF (read by the documents service, on the worker) become a one-line marker with a chip that opens them;
pastedreads them back, for their owner only. The composer's accepted types, size and count come from the server. While the model is quiet the answer shows why and for how long ("loading - 12s"), read from the inference engine. - What a call costs, as it runs. An engine priced by the minute is billed by the second; the call bar shows the running cost, voice and thinking, to an operator. Overseer AI > Costs gains Models (each model by what it was used for) and Calls (each call with the answers it handed off), and
ai costsprints both. - What is inside a service, on a card. Asked how a service is built, the assistant draws a path card with
inside: the map's own zoom into that service, each piece in its lane. A service's wiring card now stops at its own lines and what its sub-services reach outside it, instead of every line its sub-services draw inside. A queue opens up into its tasks only on a wiring that holds it (Redis, the queue itself), and tasks calling a part are drawn from their queue: the AI service's wiring went from 125 lines to 25. - Papers and a desk. A voice's working sound can be papers shuffled (
papers) or keys and papers mixed (desk), beside key taps, in the chat, on calls and from the meetings bot; it starts only once a wait is long enough to notice. - A stage for a live call. Beside the chat's phone, a full-screen page (
<chat mount>/stage) holds the call on the same socket: the assistant's figure in the middle shows her listening, speaking and pulling data up. Once she draws a card she steps aside as a speaker tile (her name and the sentence she is on) and the card takes the stage, one at a time: a tab strip below names every card she drew, the one up underlined, and a click puts another up. A map shows at full strength there, and the part she names lights with what it joins, only the unrelated dimming (in the chat too). It carries on the conversation the chat had open, so the thread stays the record.
- MCP tokens without auth. With MCP and a database, the webserver serves
/mcpand tokens can be made, listed and revoked (Overseer's MCP page,mcp-tokens, the token API) without the auth service. Such a token is the operator's: its calls act forMCP_OWNER_USER_IDand reach the admin reads, as stdio's do, and it is made on the CLI anywhere or on the local dev build. With auth nothing changes; a token made before auth was added is refused once it is.
aegis initfrom a checkout you name. WithAEGIS_TEMPLATE_PATHset to a clone of the repo, an installedaegis initrenders that template and does not clone it from GitHub, asaegis updatealready did.- Voice that runs in the app.
ai[voice]can speak with Kokoro (TTS_PROVIDER=kokoro) and hear with NVIDIA Parakeet v3 (STT_PROVIDER=parakeet) in its own process, on the CPU, with no key and no server. Their packages are opt-in (uv add kokoro-onnx,uv add "onnx-asr[cpu,hub]" av) and each fetches its int8 model on first use. Kokoro's 28 English voices are in the catalog, the voice designer and the Overseer's voice models, and usage is recorded at no cost.
-
A speech server you run.
inference[kokoro_fastapi]tracks Kokoro-FastAPI on the host, or as a compose service withinference[docker,kokoro_fastapi], atSPEECH_BASE_URL, and the inference health check carries it.ai[voice]speaks through it as thelocal_serverprovider, with every voice it lists and no cost. Overseer > Inference > Speech shows the server whole: its version, model state, device, requests, memory and voices; Unload and Reload; each voice played from the server, with or withoutai[voice]; and charts of its memory, its requests and how long each line took.my-app inference speech,speakandspeech-model, and/api/v1/inference/speech, do the same. -
A run says which agent ran it. A runner says which agent it runs when it claims (the program its command starts,
claude), the run keeps it (runner_run.agent), and Overseer > Runner marks each run, and each fold whose runs share one, with that agent's icon; the drawer names it beside its runner.claude,gemini,opencodeandclinehave an icon of their own (Claude Code's mark, the rest from the icons the web frontend ships); any other program, and a run answered in the app, get a plain mark. Runs a runner took before this recorded no agent: the update marks themclaude, what the command a runner is given by default runs. -
The runner is in Overseer. Overseer > Runner lists the newest runs, each by what was asked: how long it took, what it cost and how it went (Waiting, Running with what its agent is doing, Answered, No answer, Done, Failed), under how the queue stands and what the last 7 days cost. Runs asked in one place of one action fold into a row that holds them (a meeting's questions;
data_tablerows that unfold can sit besideflatones that do not). A run opens in a drawer with what came back, the worktree and session to pick it up with, and the prompt it was sent. Whatever asks a run says what a reader calls it (runs.ask(title=..., source=...), two new columns onrunner_run); meetings passes the question and its meeting, and the runner's revision names the runs meetings asked before, so an updated stack lists them by question too.data_table'sstatuscell takes asubline, as a link does (status_cell(sub=)), andrendering.chipsbuilds a filter's chip row. The component has a health check (runs waiting, runs a runner has, whether a runner is listening; a warning when a run waits and no runner that takes its owner's runs is listening) and the dashboard card and modal that go with it. -
A run says what it is doing. While a run of the runner component is going, the app keeps the agent's last step on it (
activity,activity_at): the tool about to run and what it is on, or that the agent waits on someone; nothing once the agent ends its turn. Claude Code's hooks post each step toPOST /api/v1/runner/runs/activity, signed with the runner's token, and the app finds the run by the agent's session, which every claimed run now has. The runner fills the hooks in where its command says{hooks}(the dev runner's defaults do), andrunner hooksprints them for a session picked up in a terminal. -
Runner tokens are an operator's to make on a stack without auth. Making or revoking one over the API is let through only where an operator's change is (the local dev build), as MCP's tokens already were; both routes take the one rule (
get_token_holder). The CLI is unchanged, and with auth a token is still its maker's own. -
A run that is work: a worktree that stays, a session to pick up, and what it cost. A run of the runner component can be asked on a branch and in a session (
runs.ask(..., branch=, session_id=runs.new_session())). Its runner keeps the worktree on that branch (<repo>-worktrees/<branch>, or--worktrees), and the run says where from the moment it is claimed; the app knows the agent's session before the agent answers, so the work can be taken over from a terminal (claude --resume <session>); and a later run of the same session continues it (--resume-command). A command that answers with Claude Code's JSON result says what its session has cost, and each run keeps what it added (coston the run). A command is given--timeoutseconds (15 minutes by default) and is then stopped with everything it started; a claimed run is waited for twice that. The dev runner's default command names the session and asks for that result, so every answer has a cost; it still only reads (--permission-mode plan), andRUNNER_COMMANDwithRUNNER_RESUME_COMMANDgive a runner whose runs change code. What the runner and the app say to each other is declared once (app/components/runner/protocol.py). -
A runner component: work the app sends out to a coding agent. The queue of runs, the runner that answers them and its tokens were part of the meetings service; they are a component of their own (
aegis add runner), so any service can ask a run of a coding agent, about something of its own (runs.ask(..., kind=, subject_id=)), without the meeting bot. Meetings requires it and asks its questions of it, as before. The commands and routes moved with it:meetings runnerisrunner run,meetings runner-tokenisrunner token, and/api/v1/meetings/runsand/runner-tokensare/api/v1/runner/runsand/runner/tokens. A stack updated across the change keeps its runs and tokens (the migration carries them intorunner_runandrunner_token), and its dev service (nowrunner) still reads.env.meetings-runnerand theMEETINGS_RUNNER_*names until they are moved to.env.runner. The dev service's container and logs moved from the Meetings page to Overseer > Runner.
Fixed
-
aegis deploykeeps a server's own files. The deploy ships the tracked tree withrsync --delete, so an untrackedsecrets/on the server was wiped on every deploy.secrets/is now kept, as.envis;server.keepin.aegis/deploy.ymlnames any other server-only paths; and the deploy andaegis deploy rollbacklist whatever--deleteremoved. A rollback spares the same server-only paths (it still restores.envanddata/). Deploy output streams as rsync runs.secrets/is in the generated.dockerignore. (#2124) -
aegis removeandremove-servicerefuse a part an installed one still requires, naming it (aegis remove runnerwith meetings installed, or a service a plugin requires);--forceremoves it with a warning. Components, services and plugins share one check. The worker still takes its redis. (#2104) -
aegis add,removeandupdateread a project's answers the same way. An add on a project older than a question no longer saves the template's default as its answer (a pre-split meetings project keptinclude_runner: false);update --dry-runpreviews the answers the update will use; and every one of them turns on what an installed part requires, options included (ai[sqlite]brings the database; htmx turns deploy on, which adds the socket proxy), saying so. (#2106) -
Switching a component's option on an older project brings its files.
aegis add inference[llamacpp]on a project generated before the engine files existed took them for deletions and brought none; it now lists the template at the project's own commit (from GitHub whenaegisis installed from PyPI). An add no longer deletes an emptyapp/main.py(or any empty file it did not render). (#2127) -
A model that points at the user table loads it. Every process loads the app's full model metadata on its first ORM use, so
runner token create, the change queue and MCP tokens no longer fail withNoReferencedTableErrorwhen the command imported only their own models. The runner's paths have one home inprotocol.pyfor the router, the client and its hooks. (#2136) -
Insights retries a passing ClickHouse 5xx, three tries 5 and 10 seconds apart; the PyPI collector's own copy of the query is gone, so it retries too. (#2125)
-
Postgres gets 256 MB of shared memory (
shm_size), so parallel vacuum and parallel queries no longer fail on Docker's 64 MB. The next deploy recreates the Postgres container once. (#2020) -
A route that hands its work to its component's own module is thin.
route.thincounted only a service as somewhere to hand work to, so a route callingapp.components.runner.tokens(where the CLI shares the work) was flagged. A component's module outside the API now counts; the map's Service step still counts services only. (#2108) -
An Overseer drawer opened on an item that is gone stays closed instead of reopening empty. (#2110)
-
Illiana's known debt survives a template rename, and writes are not reads. A finding on a renamed function's
defline matches its known entry, so a template update no longer flags it as new;reads-in-queriesleaves outdelete,updateandinsert. (#2019) -
A link in a model's answer leads to a page or a mailbox, or nowhere. Markdown a model wrote (a chat reply, a meeting answer, what a run came back with) kept a link's address whatever it was, so a
javascript:ordata:address would run as whoever clicked it. Those now render with no address;http,https,mailtoand the site's own paths are kept. -
The app keeps a page's worth of what a run came back with, whoever posts it: the runner cut a long result before posting, but the app stored whatever it was sent.
-
A failed run reads as it was said in the dashboard's meetings pane. It was rendered as markdown, which ate an error's stars and underscores; the web already showed it plain. (#2111)
-
Models. A model that refuses
temperatureis retried once without it and never sent one again, on every provider; a local engine gets a 600-second timeout and no retries (a retry re-reads the whole prompt); lab icons are fetched throughsafe_fetch; the catalog's lab lookups are batched. CLI hints name the project's own command, not{{ project_slug }}oraidb. -
A map card in the chat no longer stalls the first open. Drawing the Server opened up asked which services open up by reading every import between their pieces, and the parts report under it parsed every module on first use: seconds after each start or reload, with the page's loader creeping. Which services open up now reads their pieces alone, and the startup warm-up reads the parts report right after the model, off the loop, from what the model already parsed; two first asks wait on one build (
concurrency.once) instead of each parsing it. -
A killed dev webserver comes back. With reload on, uvicorn's supervisor restarted the process serving requests only on a change: one killed (out of memory) left it holding the port with nothing serving it, every request hanging, and the container, its main process alive, never restarted. It now starts a new one at once and logs an error, which Overseer's Errors page shows; one that exited itself (code that fails to import) still waits for the change that fixes it. A live call dropped that way says so instead of hanging up in silence.
-
A killed dev scheduler or worker comes back. The scheduler and the arq and taskiq workers reloaded under watchfiles' CLI, which restarts only on a change: one killed left the container up with nothing running. They now run under
app/entrypoints/reloading.py, which restarts on a change, starts a new process at once when one was killed, and logs the error, as the webserver's supervisor does. -
A container that runs out of memory is an error in Overseer. The kernel's kill writes no log line, and the container's memory flag is inspect's, which the socket proxy refuses. The proxy now also answers
GET /events, and the error collector records each of the project's containers'oomevents on Overseer's Errors page, in dev and production, for every container (webserver, worker, scheduler). -
No
InvalidStateErrorwhen the webserver stops. A followed log (or any Docker read through the socket proxy) cancelled as data arrived had uvloop settle anyio's cancelled socket wait, and the loop loggedInvalidStateErroron shutdown and hot reload. The deploy component guards anyio's wait so it settles only a future still waiting.aegis updatebrings it to an existing project. -
A TaskIQ queue no longer fills Redis with finished jobs. TaskIQ acks a finished job and leaves it in its stream, which has no TTL, so every job ever run stayed until Redis refused the next enqueue. Each worker now trims its streams once a minute to the oldest job still held; nothing waiting or running is dropped. A job that hung would hold that floor for good, so a TaskIQ job now ends at its queue's
timeout_seconds(WORKER_QUEUES, 300s by default, 60s onload_test) unless its task names its owntimeout; before, it had none. arq reads itsjob_timeoutfrom the same setting, and a Dramatiq actor with notime_limittakes it in place of ten minutes. The Redis page no longer counts a job queue's last minute and hour from what it holds.aegis updatebrings it to an existing project. -
A project's CI no longer counts as its clones. GitHub counts every checkout as a clone, and a generated project's CI checked out in each of its five or six jobs on every push. One job fetches now and hands the rest a copy; CodeQL is a CI job, so
security.ymlis gone; and a new push to a pull request cancels the run it replaces.aegis updatebrings it to an existing project. -
Local Whisper is no longer offered when it cannot run. Whisper (Local) and faster-whisper were listed and accepted with their packages absent, then failed on the first transcription. Their packages stay opt-in; until added, the provider shows its install line in place of a Use, and the voice settings and the provider refuse it with that line.
-
A voice profile's hearing model brings its provider. The profile form offered only OpenAI's models and kept the provider as it was, so saving a profile hearing through Groq or a local model asked that provider for an OpenAI model. It offers every hearing model now, each with its own provider.
-
A memory AI can move to a database.
aegis add-service "ai[sqlite]"(orai[postgres]) on a project made with the memory backend refused it as a conflict, and there was no other way off the default. It is an upgrade now: the database comes with it, and every table, read, page and command the memory backend leaves out arrives, because those files are the AI spec'sai_persistencegroup rather than a hand-kept list in init's cleanup. The project keeps its framework and providers: an upgrade no longer writes a fresh install's defaults over what the request does not name. Asking forai[memory]once persisted is satisfied; sqlite and postgres stay a conflict, since each holds data. -
The scheduler's persistence follows the same gate. Its memory-backend cleanup was a second hand-kept list that had lost two test files; init, add and remove now read the scheduler spec's
scheduler_persistencegroup, and thebackend_variantspecial case inget_component_filesis gone. Init removes every selected part's off extras group in one loop, so rag's inline list went too.
Installation
pip install aegis-stack==0.21.0Or run directly:
uvx aegis-stack init my-projectLinks
What's Changed
- Generated images keep dependencies cached across README and code edits by @lbedner in #2043
- add-service: move a memory AI to a database, gated by the manifest by @lbedner in #2051
- ai[voice]: voice that runs in the app (Kokoro, Parakeet), local providers refused until installed by @lbedner in #2060
- Inference engines, part one: a cache-friendly chat prompt, and Ollama behind one engine interface by @lbedner in #2069
- inference[kokoro_fastapi]: a local speech server, its TTS provider, and an Overseer > Inference > Speech page by @lbedner in #2070
- Stack Matrix: fetch the repo once per run, not once per job by @lbedner in #2073
- CI: fetch the repo once per run; a new PR push cancels the old run by @lbedner in #2074
- CI: one clone per run, here and in every generated project by @lbedner in #2076
- finance: recurring-detection tests no longer read the real date by @lbedner in #2077
- The deploy-agent image's install is reported to PyPI as automation by @lbedner in #2078
- TaskIQ: trim finished jobs from the queue streams; every queue has a job timeout by @lbedner in #2079
- deps(deps): bump typer from 0.27.3 to 0.29.1 by @dependabot[bot] in #2080
- ai[evals]: add a case without YAML, and an agent that reads and proposes by @lbedner in #2082
- llama.cpp beside Ollama: llama-server as the second inference engine (#2066) by @lbedner in #2083
- mcp: tokens and HTTP /mcp with a database, auth no longer required by @lbedner in #2084
- Switch an installed inference engine in place, and name the engine where Ollama was hard-coded by @lbedner in #2085
- deploy: no InvalidStateError when the webserver stops by @lbedner in #2086
- Switch an engine only when asked, and finish naming the engine by @lbedner in #2087
- ai[voice]: a stage for a live call, and a killed process that comes back by @lbedner in #2089
- One chat: the template takes Steward's best (#2088) by @lbedner in #2090
- Change queue: editable cards, follow-ups, pictures, expiry (#2091) by @lbedner in #2094
- Change queue: what Steward's switch-over needed by @lbedner in #2095
- RN-01: runner component: the run queue, the runner and its tokens, out of meetings by @lbedner in #2107
- The Flet chat draws the cards a reply drew (#2092) by @lbedner in #2096
- Runner: a run that is work, what it is doing, tokens without auth, and its place in Overseer (RN-02 to RN-05) by @lbedner in #2109
- RN-10: a run says which agent ran it, and the list marks it with its icon by @lbedner in #2121
- Slow & locked keeps a week, by code, filtered and live by @lbedner in #2126
- Local chat turns think within a budget and answer short (#2122) by @lbedner in #2123
- Steward backports: light mode, scheduler options, macro kit, mail import by @lbedner in #2133
- Stage follow-ups: GPT-Live hears the thread, a card strip, working sounds, and a service's insides by @lbedner in #2134
- Mail hooks are found on disk (mail_hooks.py) by @lbedner in #2135
- inference[speech]: an installed inference takes a speech server later by @lbedner in #2146
- inference: make kokoro, and docs for make llama and a speech server added in place by @lbedner in #2147
- inference: make kokoro serves Kokoro-FastAPI from its checkout by @lbedner in #2148
- A live call runs on a local model (cascade) by @lbedner in #2150
- Release fixes for 0.21.0 by @lbedner in #2151
- Release 0.21.0rc1 by @lbedner in #2160
- A live call's setup shows what hears, thinks and speaks by @lbedner in #2161
- Release 0.21.0 by @lbedner in #2163
Full Changelog: v0.20.0...v0.21.0