aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
AgeCommit message (Collapse)AuthorFilesLines
9 daystools: video, collapse whisper's repeated words; live checkDanilo M.1-0/+41
whisper turbo repeats words, often across two segments ("it's it's"), and loops over intro music: a word said twice in a row collapses to one, after the segments are joined. A transcript that fits the preview is labelled "full text"; the description forbids summarizing from the start alone. Live check findings in AGENTS.md: 0.18x real time on a real talk, stop kills whisper in 0.07 s, a summary works from the attached file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11docs: barcode tool live checkDanilo M.1-0/+18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09docs: redact tool live checkDanilo M.1-1/+34
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-23cloud: the context size from the provider's /modelsDanilo M.1-1/+7
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-23titles: always from the local model, also in a cloud chatDanilo M.1-1/+2
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.1-0/+28
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.1-2/+2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23docs: cloud models, example provider and cloud toolsDanilo M.1-2/+10
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23titles: let the model name a conversation after its first replyDanilo M.1-1/+1
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-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.1-0/+24
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.1-0/+28
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.1-1/+8
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.1-0/+32
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.1-1/+23
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>
2026-10-16Docs: the two-image retry after the render fixDanilo M.1-0/+3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16Docs: page render boundDanilo M.1-1/+1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16Docs: attachmentsDanilo M.1-0/+14
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16Final review: startup probe, error messages, refusal exit, docsDanilo M.1-4/+11
A startup probe that failed with anything but OSError (llama-server not in router mode, an empty model list) crashed the daemon at boot, against its own comment; it is caught like the per-request failures now. llama-server's reasons reach the client: an HTTP error carries its body and an error chunk mid-stream its message, where the client used to see 'choices'. A daemon that refuses to start, or fails before serving, exits 1 instead of 0. assistant.sh no longer mistakes a --test run for the daemon. AGENTS.md said every section from Hardware to Kokoro was voice-only, which included findings the daemon still applies; it now names the voice ones. It also claimed a stopped reply emits nothing after done, while a late ctx can. The spec lists every error message, the example config no longer shows a non-default temperature as the default, and the updates tool stops telling the model not to read lists aloud. The spec is marked implemented. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16Docs: desktop-assistant is a text daemon nowDanilo M.1-39/+61
README and AGENTS.md describe the socket protocol and the history instead of the voice pipeline; the voice-era findings stay, marked as such, since a return to voice starts from them and from the voice-v1 tag. The overlay spec is marked superseded, the daemon spec records what changed while planning, and the example tools lose their spoken announcements. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-28Let arecord die with the assistantDanilo M.1-0/+4
It was the only child started without PR_SET_PDEATHSIG. The assistant died with no log line and left arecord recording into the unlinked raw file for ~76 minutes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28Replace restart.sh with assistant.sh start|stop|restart|statusDanilo M.1-3/+3
start leaves a running assistant or overlay alone and starts only what is missing; restart is the old restart.sh. status lists each process with its uptime, memory and children, a stray arecord left by a dead assistant, the socket, the presentation/gaming pause flags and the log's last lines, and exits 1 if either process is down. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28Record the openWakeWord hey_jarvis trialDanilo M.1-0/+46
Logging-only trial, nothing wired into the assistant. The pretrained model catches every attempt in a quiet room and with quiet music, but only 3 of 8 under music at normal volume, and pipewire here has no echo canceller to remove it. The options are listed for a later decision. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28Keep tool calls in history, with placeholder resultsDanilo M.1-0/+22
History kept only what was said, so after a few factual answers the model saw no tool behind them and invented the next one: asked for pending updates it made up counts without calling the tool (1/10 on a replayed session). Keeping each turn's tool calls brings it back to 10/10. Their results are replaced by a placeholder, which scores the same and keeps the context close to what it was; a follow-up on an old result calls the tool again. The window is now the last 10 whole turns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28Record the HDMI sink suspend fix for the clipped first wordDanilo M.1-0/+6
The 0.3 s lead silence no longer covered the wake-up of the default sink, now on HDMI. A WirePlumber rule outside the repo keeps that sink from suspending. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26Use beam search in whisper, tell the model about misheard wordsDanilo M.1-0/+16
Whisper wrote "Che ori sono?" twice in one day and the model once answered with the weather. On 10 recorded short questions beam search (beam_size=5) gets 9 right against 8 for greedy, for 0.06 s more; an initial prompt also got 9 but lost one question entirely, so it is not used. The default system prompt now says the user's words come from speech recognition and should be read by how they sound: on "Che ori sono?" stray tool calls went from 1 in 10 to none, other tools unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26Stamp the time on each question, ask for digits, add a temperature keyDanilo M.1-0/+18
With the clock only in the system prompt, "what time is it?" asked again an hour later copied the old answer from history. The current question now carries the date and time too; history stays unstamped, because stamping every message made the model drop tool arguments (the finance account filter went from 6/6 to 0/6). Gemma garbles numbers it spells out in Italian ("trent settler"), 3 in 10 time answers. The default system prompt asks for digits, which Kokoro reads correctly: 20/20 clean. temperature in config.toml is sent with every request; unset keeps the llama-server preset's, which other clients share. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26Add a Slackware updates tool and a restart scriptDanilo M.1-1/+25
updates.py compares the -current ChangeLog with the installed package database: the newest batch holding an installed package is the last one applied, everything newer is pending. The spoken summary gives counts, security fixes and a kernel bump, never package lists; report=true writes a full markdown recap and opens it in MD_EDITOR, detached. restart.sh stops a running assistant and its quickshell overlay and starts both again in their own session. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26Document the overlay and record its findingsDanilo M.1-1/+29
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26Log the prompt token count of every LLM roundDanilo M.1-0/+17
Asks llama-server for usage in the stream, so the log shows how full the model's context is; history, tool definitions and tool results all count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26Read controller batteries, stop the model guessing system factsDanilo M.1-0/+24
- Game controllers report battery through their kernel driver, not BlueZ: bluetooth.sh falls back to the power supply named after the device address. - Asked for a VM's IP after a listing without one, the model made one up without calling a tool. The default system prompt now says facts about the user's computer, devices, accounts, mail, calendar or money come only from a tool, or it says it does not know. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26Pause during games too, not only in presentation modeDanilo M.1-2/+7
The status registry's effective presentation is the OR of the manual flag and status.gaming, which the shell's game detector writes; statusctl presentation get reads only the manual half and printed 0 with a game running. presenting() now reads both files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26Let a button press cut the current reply (barge-in)Danilo M.1-2/+22
Every press bumps a turn counter and kills the running aplay; queued audio from an older turn is dropped, and reply() now runs on its own thread and returns once its turn is stale, so the button loop is never blocked. A cut-off exchange is left out of history so user and assistant messages still alternate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26Fix mail counts and finance ranges found testing liveDanilo M.1-0/+31
- mail printed threads and the model called them emails; it now reports messages and threads. - finance spending takes a since date (default the first of the month) instead of a day count, and an optional asset account. The per-account listing needs an end date or the API rejects it; an unknown account name gets the user's accounts back. - Tool errors are capped at 2000 characters like normal output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26Document the config folder, the tools and the live testDanilo M.1-1/+38
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26Use the system kokoro-onnx package, drop the venvDanilo M.1-19/+5
kokoro-onnx is now packaged (python3-kokoro-onnx, without espeakng-loader) and finds the system espeak-ng with its default config, so the explicit EspeakConfig and the .venv setup go away. Tested live: two Italian questions answered and spoken correctly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26AGENTS.md: record removal of unused piper and whisper modelsDanilo M.1-5/+7
Piper voices and ggml-base/small are gone from /data/voice-models; the installed piper-tts and python3-pathvalidate packages remain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25Add push-to-talk voice assistant loopDanilo M.1-0/+397
The microphone's mute button is the push-to-talk: the ALSA Mic Capture Switch starts and stops a recording. whisper-server (large-v3-turbo, Vulkan on the Arc) transcribes it, the model already resident in llama-server answers, and Kokoro speaks the reply sentence by sentence. Only Italian and English are spoken, so detection is restricted to those two; the voice follows the language of the reply, not of the question. Presses are ignored while presentation mode is on, so calls keep the mic. AGENTS.md records the backend, model and voice comparisons behind these choices. Licensed GPLv2 only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>