aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2026-11-09attach: file and image blocks carry the pathDanilo M.1-2/+7
Images get a one-line block so a tool (redact) can learn their path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09tools: redact, review fixesDanilo M.1-18/+87
CropBox honoured, /Rotate page size from the render, letter-spaced text joined, valid IBAN/card found inside an absorbed match, more landline formats, read-only folder message, curly apostrophes, lowercase IBAN and codice fiscale. A rule match fully covered by an earlier one is not counted twice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09tools: redact.tomlDanilo M.1-0/+12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09tools: redact, text PDFs to a pixels-only redacted copyDanilo M.1-0/+199
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09tools: redact, PII detection over wordsDanilo M.1-0/+101
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09docs: redact tool planDanilo M.1-0/+631
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09docs: redact tool designDanilo M.1-0/+108
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30cloud: retry a failed key_cmd on the next models requestDanilo M.1-5/+15
Keys were read once at startup. At login the smartcard PIN is often not entered within key_cmd's timeout, so that provider was left out for the whole run and its models stayed missing until a restart. send_models now asks again for every provider without a key. It runs off the lock on purpose: route() holds it and must not wait on a PIN prompt. The refusal message says to open the model list to retry, and the self-check covers a key that fails at startup and loads on the next models request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30AGENTS: local-chat is archivedDanilo M.1-4/+4
Point the prior-art reference at its archived path and state that the canvas has replaced llamachat. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24docs: mygram tool live checkDanilo M.1-0/+17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24tools: mygram, Foldergram scan status via sync-mygram --statusDanilo M.1-0/+4
Read-only: runs the sync script's status mode, which prints whether a library rescan is running, its phase and progress, and the last completed scan. Allowed in cloud chats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23usage: save each turn's token usage in turns.usageDanilo M.1-1/+3
The daemon used the API's usage block only for the live context meter and threw it away, so llm-cost-dashboard had nothing to track. stream() now keeps each request's last usage chunk (Hetzner sends running totals on every chunk) and answer() saves them per turn as JSON {ts, provider, model, rounds}. Existing databases gain the column. Titles and transcriptions are not counted: always local, $0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23cloud: the context size from the provider's /modelsDanilo M.3-27/+80
Hetzner runs vLLM, whose /models reports max_model_len per model (262144); OpenRouter names it context_length. Read when the chat's model changes, as /props is for a local one, so the meter shows a cloud chat's fill and its attachment budget is half of what is free instead of a fixed 24000 characters. Image input already went through: a cloud model's inputs count as unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23docs: cloud models spec done, both sidesDanilo M.1-1/+1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23titles: always from the local model, also in a cloud chatDanilo M.3-8/+20
A cloud model gets no enable_thinking switch and reasoned over the title for about 12 s; the local one answers it with thinking off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23cloud: one ctx event per request; docs: live check with HetznerDanilo M.2-4/+38
Hetzner sends usage on every chunk, which made the daemon emit a ctx event per token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23docs: reflow the cloud lines, To .md stays localDanilo M.3-5/+7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23cloud: one-line keys only, a refused pick keeps the chat's modelDanilo M.1-7/+39
key_cmd's first line is the key, as pass stores it; anything else with whitespace would reach the Authorization header, and http.client's refusal quotes the whole value into the log and the socket. A pick that cannot be asked is refused before it replaces the chat's model. Titles and writes no longer move the context meter, a provider's error body has the key masked, and an empty cloud model id is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23docs: cloud models, example provider and cloud toolsDanilo M.8-5/+36
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23cloud: a chat's model routes its requests, cloud chats get cloud tools onlyDanilo M.1-45/+163
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23history: keep the model a conversation is asked withDanilo M.1-4/+19
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23cloud: provider keys from key_cmd, routing by model prefix, --cloud-modelsDanilo M.1-1/+96
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23config: [[cloud]] providers and the tool cloud flagDanilo M.1-0/+48
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23docs: plan cloud models, daemon sideDanilo M.1-0/+806
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23docs: spec cloud models, chosen per chatDanilo M.1-0/+152
Providers are OpenAI-compatible [[cloud]] tables with a key_cmd; a chat stores its model; cloud chats get only tools marked cloud = true, and audio is always transcribed locally. Replaces the everything-local rule with no silent cloud fallback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23titles: let the model name a conversation after its first replyDanilo M.2-2/+44
A new conversation is still saved under the first six words of the question, then the model is asked for a title of at most six words in the conversation's language, thinking off, and the row is renamed. The request runs after done under the reply's turn, through ask(), so the next ask, stop, new or open hangs it up through interrupt(): a title never holds the next reply back, and a dropped one leaves the six words. A failure is logged only, since the reply is already saved. The self-check's fake llama-server answers title requests apart from the scripted replies, so a title can never take a reply meant for an ask in the test that follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20clone tool: fail instead of prompting, lowercase host, update only on 1Danilo M.2-1/+14
A missing or private https repo made git ask for a username through SSH_ASKPASS, which on this desktop is pinentry-qt: a login dialog popped up and the tool waited up to its 300 s timeout. SSH_ASKPASS is now unset and GIT_TERMINAL_PROMPT=0, so the clone fails in about 0.2 s with "terminal prompts disabled". The host is lowercased before the map lookup, so GitHub.com finds GITHUB. update pulls only when it is 1, so a model passing 0 gets the question, not a pull. test-clone.sh checks all three; the new checks fail on the previous script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19clone tool: name the target owner-repoDanilo M.4-21/+54
A generic repo such as evgen2571/wallpapers cloned into wallpapers; the target now takes the owner's name, collapsing when owner and repo match and falling back to the bare name when the URL has none.
2026-10-19docs: clone tool, tested through the modelDanilo M.1-0/+8
Known host clone, repeat asking to update plus update=1, unknown host asking to create the folder, to= cloning and the map append, and a remembered host cloning with no question, all driven through a second daemon on scratch dirs.
2026-10-19clone tool: clone a public repo into the host's folderDanilo M.5-0/+325
A public URL is cloned into ~/Programming/GIT/<host-folder>/<repo>, the folder chosen by host from ~/.config/desktop-assistant/clone-hosts (github.com, gitlab.com, forge.slackware.nl seeded). An unknown host or an already-cloned repo stops and asks with a concrete action; approving a new host folder appends it to the map, so later clones of that host ask nothing. Update pulls with --ff-only, never clones over the folder. test-clone.sh stubs git and uses a scratch tree and map.
2026-10-19docs: the new project tool, live checkDanilo M.2-1/+29
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19project tool: end the prompt with a period, plan-friendly opencode promptDanilo M.2-4/+10
The model sends the description without a final period, so the prompt read "...tool Fill in". opencode now starts in its plan agent, which cannot edit, so its prompt asks for a proposal instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19project tool: start a new project and open an agent on itDanilo M.7-1/+1254
project.sh makes a folder in ~/Programming/GIT with AGENTS.md, CLAUDE.md, README.md and LICENSE (GPLv2 only, GPLv2+, GPLv3 or MIT, texts shipped in licenses/), commits it signed, and opens Claude Code or opencode in a kitty tab, or a new window when no kitty listens. The tool description asks the model to confirm before calling. Check: test-project.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19docs: plan the new project tool, agent choice in the specDanilo M.2-15/+274
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19docs: spec the new project toolDanilo M.1-0/+119
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19docs: voice input works end to end with the canvas micDanilo M.1-3/+4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19voice input: ask takes a WAV, the model transcribes itDanilo M.4-13/+130
An ask with audio sends a transcribing state, has the loaded model transcribe the clip (thinking off, no tools, the prompt naming Italian or English), then answers the transcript as a typed question, so the user event, history and search hold the words. A stop while transcribing ends the turn like any reply. Refused: a relative path, a file that is not a WAV, over 60 s (the ubatch bound, untried for audio), a model without audio input, and an empty transcript. The length comes from the file size, since a recording stopped by a signal leaves the header's length unset. Live: 10/10 clips heard right, the right tool each time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19docs: spec voice input, the model transcribesDanilo M.2-0/+118
Gemma4 heard 10/10 short clips right as a transcript, but answered straight from the audio in Estonian or Spanish 5 times in 6. So the daemon transcribes first and asks the words as text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19docs: the desktop modes tool, live checkDanilo M.2-2/+24
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19mode tool: read and set the desktop modesDanilo M.4-0/+198
dnd, presentation, nolock and quiet through statusctl. The output is read back after a set, so a set that did not land is not reported as done, and a running game's hold on presentation is named. test-mode.sh checks it against a scratch runtime dir. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19docs: spec the desktop modes toolDanilo M.1-0/+72
The first tool that changes something: dnd, presentation, nolock and quiet through statusctl, applied with no confirmation since a mode is one bit and undone by asking again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17the ctx event carries the modelDanilo M.1-1/+3
The model name reached clients only in hello. The router can swap the model after that, and context_size() notices on the next request, but the ctx event that follows said only used and max, so the quickshell canvas kept showing the hello's name while another model answered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17--defaults prints the built-in config as JSONDanilo M.2-2/+12
For the quickshell settings window's Assistant page, which shows each default as the placeholder of its field and falls back to it when a field is emptied. Reading them from here keeps one copy of the defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17docs: autostart logs to the runtime dir, and whyDanilo M.1-0/+10
Moved from a comment in hypr-theme's autostart.lua, which no longer carries comments now that the quickshell settings window edits it. The log holds the questions asked, so it belongs somewhere private that is gone at reboot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16write: always end with an outcome; empty replies and the meterDanilo M.1-12/+28
From review. A write ended by anything other than its own stop (an ask, a new conversation, another client's stop) sent only state idle, so the canvas waited for written or an error forever; interrupt() now sends error stopped with turn. A refused write carries turn too. An empty reply is refused instead of saved, a document made of several code blocks is no longer stripped as one fence, the write sizes its budget on the whole context since no history goes with it, and its usage no longer moves the chat's context meter. The file is written as UTF-8 whatever the locale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16Write a reply to a file: the write commandDanilo M.3-5/+129
For the canvas's To .md: a one-off request with attachments, no history, no thinking and no tools, whose reply is written to the first free name in a folder instead of the conversation. It streams progress as a character count, unwraps a reply the model fenced whole, and shares the turn counter, so it stops a reply in flight and stop ends it with no file left behind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16Spec the write commandDanilo M.1-0/+45
A one-off request with attachments whose reply goes to a file, for the canvas's To .md: no history, no thinking, a free name, nothing written when stopped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16Hang up on llama-server at once when a reply is stoppedDanilo M.1-11/+68
A stop was noticed at the reply's next chunk, and llama-server stops a task only when its client hangs up. Through a long prompt pass, measured at 12232 tokens for a file with page images, no chunk comes, so the GPU kept working after Stop until the first one. interrupt() now shuts the reply's socket from the stop handler; the request goes through http.client, which exposes it. A fake server that stays silent records the hang-up within a second of the stop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16Read a nameless file's content to tell whether it is textDanilo M.1-2/+34
A file whose name gives no type, such as a shebang script or a Makefile, was refused as not text. When mimetypes knows nothing, the first 4 KB decide: no NUL and valid UTF-8 (a character cut by the window allowed) is text. A name that does say something, even application/octet-stream, is still taken at its word. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16Docs: images past the ubatch kill the model; the preset fixDanilo M.1-0/+11
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>