Repository navigation
Releases
v0.9.0
Added
-
Named subagents defined in markdown, in the same format as Claude Code and Antigravity CLI
(agy): a file under.agents/agents/,.claude/agents/,~/.quark/agents/,
~/.claude/agents/or~/.gemini/config/agents/(<name>.mdor<name>/agent.md) with
name,descriptionand optionaltools,disallowedTools,modelandmaxTurnsin its
frontmatter, and its instructions as the body. With--subagents-mode ask/auto,
spawn_agentlists them and takes anagentargument to run one: its own instructions, its
tools (Claude Code's, agy's or Quark's tool names) and its model (inherit,sonnet/opus/
haiku/fableon Anthropic,flash/proon Gemini, or a full model id). -
--shell-sandboxnow works on macOS too, using the built-in Seatbelt sandbox (sandbox-exec):
run_shellcommands can read everything but write only inside the workspace, the temp
directories and/dev. Linux keeps using bubblewrap. -
--shell-network off(alsoQUARK_SHELL_NETWORK=off, orshell_networkin
~/.quark/config.json) cuts the network forrun_shell:bwrap --unshare-neton Linux,
(deny network*)on macOS. It implies--shell-sandbox, and where no sandbox can enforce it
commands are refused instead of run with the network. Defaulton. -
File checkpoints. Quark snapshots the workspace before the agent runs any tool that can
change files, and/rewindnow puts back the files the dropped messages changed (created
files are removed, deleted ones come back; files you edited by hand since are left alone).
New/undoundoes the last turn, messages and file changes.--keep-fileson either rewinds
only the conversation. Works inquark tui,quark chat,quark sessions rewind, the
desktop app (including editing an earlier message) and Telegram. Snapshots are kept in a
private git repository under~/.quark/checkpoints/, inside or outside a git project,
without touching the project's own repository. Newquark checkpoints list|restore <id>;
every restore can itself be undone. Off with--no-checkpoints,QUARK_CHECKPOINTS=0or
"checkpoints": false. -
quark acp: Quark as an Agent Client Protocol agent, so
it runs inside Zed, JetBrains IDEs, Neovim (CodeCompanion, avante.nvim) and any other ACP
editor. Each editor thread is a Quark session for the opened folder (listable, reloadable
with its history, and shared withquark tui); replies, reasoning and tool calls stream in,
file edits come with diffs, approvals (run_shell, MCP, subagents, plugins) become the
editor's permission prompts with "always allow in this session", writes go through the
editor's buffers when it offers that, and Build/Plan modes, the model,/compact,/init
and custom commands are available from the editor. MCP servers the editor passes are started
for the session. Setup for each editor is indocs/editors.md. -
web_fetchtool: downloads a web page and returns its readable content as Markdown (HTML
converted with the standard library, JSON pretty-printed, text as-is), up to 2 MB downloaded
and 40,000 characters per call with anoffsetto continue. Hosts on loopback, private or
link-local addresses are refused unlessQUARK_WEB_FETCH_ALLOW_PRIVATE=1. On by default next
toweb_search, and part of thewebtopic with--progressive-tools. -
OAuth for remote MCP servers, following the MCP authorization spec (2026-07-28):
quark mcp login <name>discovers the authorization server (RFC 9728 Protected Resource
Metadata, RFC 8414 / OpenID discovery), registers Quark (pre-registered client, Client ID
Metadata Document, or Dynamic Client Registration), and signs in through the browser with
PKCE (S256), the RFC 8707resourceparameter and RFC 9207isschecks. Tokens are kept in
~/.quark/mcp-auth.json(mode 600), sent on every request and refreshed automatically; a
403 insufficient_scopeis remembered so the next login asks for the extra scopes.
--port,--no-browserand--pastecover remote machines.quark mcp logout <name>
forgets the tokens. -
quark mcp add <name> --url <url>adds a remote (HTTP) MCP server that isn't in the catalog. -
Quark's OAuth Client ID Metadata Document, served at
https://rmoya81.github.io/Quark/oauth/client-metadata.json(docs/oauth/). -
bench/: a reproducible Quark vs pi benchmark with four
coding tasks, hidden tests and a runner (bench/run.py) that records pass/fail, requests,
tool calls and tokens for each agent. -
packaging/: a Homebrew formula and cask (for thermoya81/quarktap) and winget manifests
forrmoya81.Quark(quark.exe) andrmoya81.Quark.Desktop(the desktop app installer). -
README: code signing policy.
v0.8.1
Fixed
- OpenAI-compatible providers: an empty assistant message without tool calls (left in a saved
session by a failed turn) was sent as"content": null, which Ollama rejects with a 400
("invalid message content type: ") on every later request in that session. It's now
sent as an empty string. quark telegram: when Quark can't start (no API key, bad configuration) the bot now says so
in the chat instead of staying silent, and failed replies are also written to the service log.
v0.8.0
Added
- Quark desktop app for Windows, macOS and Linux (Tauri + Svelte, in
desktop/). It runs
Quark's own core throughquark serve, one process per window: streaming chat, tool cards,
inline approvals, the session tree, a model picker, a command palette,@files,/commands,
pasted images and a first-run setup screen. The Python core is bundled inside, so nothing
else needs installing. Every GitHub Release now carries the installers, built and
launch-checked on each OS:Quark-<version>-windows-x64-setup.exeand.msi,
Quark-<version>-macos-arm64.dmgandmacos-x64.dmg, andQuark-<version>-linux-x86_64
.AppImage,.deband.rpm, each with a.sha256. The installers aren't code-signed
yet, so Windows SmartScreen and macOS Gatekeeper will warn on first launch. quark serve: the agent over line-delimited JSON on stdin/stdout, for front ends. It builds
the same agent asquark tui(providers, tools, session tree, side agents, plugins, MCP) and
exposes it as requests and events: streaming turns with tool calls, approvals answered by
the client, queued messages, cancel, modes, models, fork/clone/rewind/edit-from, compact
and init.quark telegram: talk to Quark from Telegram through your own bot. Replies stream into the
chat, tool calls show as they run, and approvals (run_shellinaskmode, MCP tools) come
with ✅/❌ buttons. It's the same core asquark serveand the same session asquark tui.
quark telegram pairsaves the bot token and allows your account with a one-time code; only
private chats with paired users are served. Commands:/stop,/status,/new,/plan,
/build,/sh <command>(asks before destructive ones) and your custom slash commands.
Optional fallback models take over when the main one fails before replying. Long polling
only: no open port, no new dependency. English and Spanish.
Changed
- The system prompt now names the model and provider Quark is running on, read on every
request, so asking "which model are you?" gets a straight answer (and a/modelswitch
shows up on the next turn) instead of the agent searching config files. - New demo GIFs for Linux, Windows and macOS (README and docs site), each recorded on that OS
by the new Demo GIFs workflow: a realrun_shellcall in that OS's shell, a side agent
writing tests and merging them back,/forkand/tree.scripts/record_demo.pynow draws
each OS's own terminal window around the screen and animates the typing. spawn_agentnow merges its changes back automatically outside a git repository too
(before, only git workspaces did; elsewhere you got a temp copy to merge by hand, which
is why earlier benchmark rounds lost parallel side agents' work). A second copy of the
workspace taken at spawn time is the common ancestor, and the merge is the same 3-way
git merge-fileper file, with the same conflict markers and the same handling of files
that can't be merged. Only ifgitisn't installed at all is the copy handed back as before.
Fixed
spawn_agent: files the side agent created inside a new directory (e.g. a newtests/
folder) were silently dropped instead of merged back —git statusonly listed the
directory. Every created, changed or deleted file is now listed individually.spawn_agent: the side agent started from the last commit, so it couldn't see the main
agent's (or your) uncommitted work, and could redo or undo it. It now starts from the
workspace as it is right now — uncommitted, new and deleted files included — and that
snapshot is the common ancestor for the merge back. The worktree is detached, so no
quark-agent-*branch is created, and the snapshot commit disappears with it.spawn_agentwith a workspace that's a subdirectory of the repository: the side agent
worked at the repository root (outside--workspace) and its changes were merged back
to the wrong paths. It now works in the same subdirectory and merges back there.spawn_agent: a file that can't be text-merged (a binary file changed on both sides) was
overwritten with an empty file. It's now left untouched and reported, and the side agent's
worktree is kept so its version isn't lost. Conflict markers now sayworkspace/side agentinstead of temporary file paths.edit_file:editssent as a JSON string (common with local models) is now accepted, and a
malformededitslist gets a clear error instead of a Python exception message.
v0.7.1
Added
THIRD-PARTY-LICENSES.txtis now attached to every GitHub Release next to
quark-windows-x64.exe: the name, version, declared license and full license text of every
package the standalone executable bundles, plus the Python runtime's own license. The MIT/BSD
licenses of Quark's dependencies require those notices to accompany binary copies too.
scripts/third_party_licenses.pygenerates it from the build environment, and
scripts/build_exe.pyruns it after every build.
Changed
- The copyright holder in
LICENSEis nowrmoya81, matching the package's author on PyPI. pyproject.tomlno longer repeats the license as aLicense ::classifier next to
license = "MIT", as PEP 639 asks.
v0.7.0
Added
- Native Windows support, tested in CI on Windows and macOS as well as Linux. On Windows,
run_shellruns commands in Git Bash when Git for Windows is installed (never WSL's
bash.exe), and otherwise in PowerShell; the tool description tells the model which
one, so it writes the right syntax. Before, commands went tocmd.exe, which
understands neither. Command output is now decoded as UTF-8 on every platform. - A standalone
quark-windows-x64.exe(built with PyInstaller, no Python needed) is
attached to every GitHub Release, with its SHA-256, andinstall.ps1installs it:
irm https://raw.githubusercontent.com/rmoya81/Quark/main/install.ps1 | iex. quark --version.spawn_agent's file changes are now merged back into the real workspace automatically
when it finishes, in a git workspace, instead of being left behind in an isolated
worktree for the user to merge by hand. A head-to-head benchmark against pi with a
local model found this the hard way: the side agent did its job correctly, but its
result stayed isolated, so the main agent kept re-reading unchanged files in a loop
until the loop detector stopped it — 0 bugs actually fixed. The merge is per file with
git merge-file(a real 3-way merge against the workspace's HEAD at spawn time as the
common ancestor), notgit apply/git merge, since those refuse when the real
workspace's working tree doesn't already match its own index — exactly the case here,
since the main agent keeps working while the side agent runs. A file that doesn't
apply cleanly (including a genuine conflict between two sequential side agents) is
left with normal conflict markers instead of silently failing or being dropped.edit_filenow acceptsedits(a list ofold_text/new_textpairs) alongside the
existing single-pair form, applying them to the same file in one call instead of one
round trip per change — applied in order and atomically (nothing is written if any one
of them fails to match). Measured against pi head-to-head on the same task: pi's own
editalready batches several changes per call, which is most of why it finished in
about half the turns Quark needed for an equivalent multi-location edit.- Full session tree:
/clone <name>(alsoquark sessions clone) copies a session's whole
active branch into a new, independent one, alongside the existing/fork. Every forked or
cloned session now records where it came from (parent name, fork vs. clone, and the message
it branched at), and/tree(alsoquark sessions tree) prints that lineage across the
workspace's saved sessions as a tree, with the current one marked. /rewind <messages-back>(alsoquark sessions rewind): drops a session's last N messages
in place instead of switching to a new one, saving them first as<name>-abandoned(so
nothing's lost —/treeshows it) and, inquark tui/quark chat, asking the model for a
one-line summary of what that abandoned attempt was doing.- A plugin can now register a provider or an MCP server, not just tools:
Plugin.providers()
returns a{name: factory}map, makingnameselectable with--provider, wherefactory
takes(api_key, model, base_url)the same wayget_provider()'s built-ins do — a plugin
provider manages its own credentials (same pattern asBedrockProvider), so it's never
asked for a Quark-managed key.Plugin.mcp_servers()returns extramcpServers-shaped
entries, started byload_mcp()'s newextra_serversparam; the user's ownmcp.json
always wins a name collision. Both run while plugins load, incli.build_agent(), before
the provider is built — plugins are now loaded once, early, and passed into
default_registry(plugins=...)instead of being imported a second time.--providerno
longer restricts itschoicesto the built-in names, since a plugin's name isn't known
until after plugins load. quark plugin install <source>: fetches a plugin instead of writing one from scratch — a
local*.pyfile, an http(s) URL to one, or a git repo (#path/to/plugin.pyto disambiguate
one that doesn't have exactly one*.pyat its root). Validated withload_plugin()before
being kept; a source that doesn't define a workingPLUGINis removed again, not left
half-installed.- Two intercepting plugin hooks, for when the observation-only ones below aren't enough:
Plugin.before_tool_call(name, arguments)can return{"arguments": {...}}to rewrite a
tool call before it runs, or{"block": True, "reason": "..."}to stop it from running at
all;Plugin.before_request(messages, tools, system)can override any of those three before
they're sent to the provider. Both no-ops by default;run_before_tool_call_hooks()/
run_before_request_hooks()chain multiple plugins (each sees the previous one's override)
and isolate a broken plugin's exception the same wayfire_hook()does. - Plugins can now observe a turn as it happens, not just contribute tools or system-prompt
text: four optional lifecycle hooks onPlugin—on_turn_start(session)/
on_turn_end(session, result)around eachAgent.step()call, and
on_tool_call(name, arguments)/on_tool_result(name, arguments, output)around each tool
run inside it. All no-ops by default (existing plugins unaffected); observation only, a hook
can't change, cancel or replace what's happening.fire_hook(plugins, hook_name, *args, **kwargs)calls a named hook on every plugin, each in its own try/except, matching the
existingtools_from_plugins()/system_prompt_from_plugins()error-isolation style. - Plugins can now add to the agent's system prompt, not just contribute tools:
Plugin.system_prompt(self, workspace) -> str | None(optional, additive — existing
plugins with onlytools()are unaffected).load_plugins()/tools_from_plugins()
split out ofbuild_plugin_tools()(still there, as a shorthand) so a caller can get
at the loadedPlugininstances;default_registry()'s result now exposes them as
registry.plugins. - 3 more providers:
--provider huggingface(Hugging Face's Inference Providers router,
HUGGINGFACE_API_KEY) and--provider moonshot(Moonshot AI's Kimi models,
MOONSHOT_API_KEY) are both the sameOpenAIProvider-with-base_url pattern as the other
OpenAI-compatible providers;--provider cloudflare(Cloudflare Workers AI,CLOUDFLARE_API_KEY)
is the same pattern too but, likecustom, needs--base-url(its URL encodes your Cloudflare
account id, so there's no single default endpoint). 19 providers now. --progressive-toolsnow groups its unlockable tools by topic (files,web, and —
when enabled —shell,agents,skills,plugins) instead of one flat
request_more_toolsescape hatch for mutating file tools alone. The newrequest_tools(topic)
tool's description is the index: one line per topic, naming its tools and when to use them,
so the model sees what exists without paying for every tool's full schema upfront. A topic's
tools are also built lazily — a plugin isn't imported, a skill isn't read from disk — until its
topic is actually unlocked. Real (tiktoken) baseline cost: 529 tokens (system prompt + 4
tools) vs. 832 for loading everything upfront; unlocking one topic (e.g.files) converges
back to the same cost as having loaded it directly, never more.- AWS Bedrock (
--provider bedrock) and Vertex AI (--provider vertex) providers. Both reach
what those platforms need without actually needing their heavy SDKs (boto3,google-auth):
Bedrock is called over HTTPS with a from-scratch AWS SigV4 signer (hmac/hashlibonly)
against its Converse API, including thevnd.amazon.eventstreamstreaming format decoded by
hand; Vertex reusesAnthropicProvideralmost unchanged, since its Anthropic passthrough
endpoint accepts the same request shape as Anthropic's native API, authenticating with a
bearer token the user refreshes themselves (gcloud auth application-default print-access-token) instead of pulling in a token-refreshing SDK. 16 providers now. - Azure OpenAI (
--provider azure, its ownAzureOpenAIProvider— different auth header and
URL shape than plain OpenAI, so not just abase_urlswap) and--provider custom(an
OpenAIProvideralias with no default endpoint, for any other OpenAI-compatible server —
already possible via--provider openai --base-url, now with a clearer name and no default to
accidentally fall back to). 14 providers built in now. - 7 more providers, all the same
OpenAIProviderpointed at that service's own OpenAI-compatible
endpoint — no new provider code:--provider mistral,groq,xai,deepseek,fireworks,
together,cerebras(MISTRAL_API_KEY,GROQ_API_KEY,XAI_API_KEY,DEEPSEEK_API_KEY,
FIREWORKS_API_KEY,TOGETHER_API_KEY,CEREBRAS_API_KEY). 12 providers built in now. Offered
inquark init's provider picker too. - Documentation site redesign: a real landing page (hero, feature cards, a GIF of the actual
terminal UI) instead of the README dumped as one long page, split into separate
Getting started / Configuration & tools / Architecture & development pages (still sourced from
the README via snippets, so there's still one copy to maintain), plus an original logo/favicon,
a deep-purple palette, and light/dark mode (already built into Material, now themed). scripts/record_demo.py: renders real screenshots and a GIF ofquark tuiwithout a live LLM
provider — drives the actual app with Textual's headless pilot and a scripted fake provider, so
the UI, agent loop andrun_shellcall are all genuine, only the model's replies are canned.
Needs Playwright's Chromium (already used for nothing else in this project) to convert the
SVG screenshots it captures into PNGs/GIF.
Changed
- The default system prompt now asks the model to work i...
v0.6.0
Added
- TUI header: a live status readout (context tokens, % of the compaction threshold, and this
session's estimated cost when the model's price is known), refreshed after every tool call and
at the end of each reply. quark sessions fork <name> <new-name>(--at N,--force): branches a saved session into a
new, independent one — optionally from an earlier point in it (--at Nkeeps only its first N
messages). Also available mid-conversation as/fork <name> [messages-back]inquark tui/quark chat, which switches to the new branch right away.--provider geminiand--provider openrouter: Google's and OpenRouter's own OpenAI-compatible
endpoints, the same way--provider ollamaalready worked — no new provider code, just their
default base URLs and API key env vars (GEMINI_API_KEY,OPENROUTER_API_KEY). Offered in
quark init's provider picker too.--shell-sandbox(alsoQUARK_SHELL_SANDBOX, orshell_sandboxin~/.quark/config.json):
confinesrun_shellto writing only inside the workspace, using bubblewrap (bwrap) on Linux
— the rest of the filesystem is bound read-only, network is unaffected. Falls back to
unsandboxed (with a one-time warning) ifbwrapisn't installed or the platform isn't Linux.- Documentation site (MkDocs Material,
pip install -e ".[docs]"+mkdocs serve), rendering
this README and the changelog as pages with no separate copy to maintain.
.github/workflows/docs.ymldeploys it to thegh-pagesbranch on every relevant push to
main; see the README's "Documentation site" section for the one-time GitHub Pages setup. - README: a "Coming from pi or Claude Code" section mapping concepts for people arriving from
either tool. docs/demo.tape+docs/demo.md: a VHS script and
instructions for recording a shortquark tuidemo GIF.
v0.5.0
Added
.github/workflows/release.yml: a version bump merged tomainnow tags the release, cuts the
GitHub Release (with that version's changelog section as its notes) and triggers the existing
PyPI publish workflow automatically; publishing a release no longer needs a manual step beyond
the version bump itself.quark plugin init <name>(--userfor~/.quark/plugins/,--forceto overwrite): scaffolds
a starter plugin file instead of starting from a blank one.PLUGINS.mdis a plain index for
community-written plugins to find and copy from.quark mcp list/quark mcp add <name> [path]: a short catalog of the official reference MCP
servers (filesystem, fetch, git, memory, time, sequential-thinking), so adding one of them to
~/.quark/mcp.jsonis a one-liner instead of hand-written JSON.quark mcp import <path>: merges MCP server entries from another tool's config (Claude
Desktop/Code'smcpServers, Cursor's.cursor/mcp.json, VS Code's.vscode/mcp.json) into
~/.quark/mcp.json, since the per-server shape is already the same one Quark understands.- README: documented that Quark's
SKILL.mdskills already use the same shape as Agent Skills
(Claude Code, claude.ai, Claude Cowork plugins) — no conversion needed either direction. - Custom slash commands: a
<name>.mdfile under.agents/commands/,.claude/commands/,
.cursor/commands/or~/.quark/commands/becomes a/<name>command inquark chat/quark tui, with$ARGUMENTS/$1.../$9substituted into its body before it's sent as the next
message — the same file Claude Code or Cursor already run. No mode flag; always on.
v0.4.0
The biggest release since 0.1.0: seven features aimed at closing the gap with other minimal coding agents, plus two months of work that had been accumulating unreleased.
Highlights
- MCP code mode (
--mcp-code-mode): onerun_mcp_codetool instead of a JSON-schema tool per remote MCP tool. The model writes a short, sandboxed Python script that calls MCP tools as plain functions — no imports, no file or network access beyond the listed calls — cutting context overhead when several MCP servers are configured. Each call still goes through the usual per-call approval. - Typed Python plugins (
--plugins-mode): register your own tools from a*.pyfile, off by default. spawn_agent: delegate a bounded sub-task to a side agent in an isolated git worktree.quark usage: persistent token and estimated-cost tracking per session.- TUI
@filefuzzy-search dropdown: ranked matches instead of a single guess. - Smarter compaction: stale re-reads are collapsed before falling back to trimming or an LLM summary.
- Real startup benchmarks (
scripts/bench_startup.py): no network, no API key.
Also in this release
Skills (--skills-mode), MCP servers (--mcp-mode), Build/Plan modes, read-only --read-dir, web_search, retries with backoff, --max-tokens, Anthropic prompt caching, and a round of security hardening (restricted project .env, read-before-edit enforcement, atomic safe writes, loop guards). Full list in CHANGELOG.md.
v0.3.0
Added
quarkwith no subcommand now launches the interactive TUI by default
(matching howclaudebehaves), falling back to the plainquark chat
REPL iftextualis somehow missing.textualis now a core
dependency instead of the optional[tui]extra, sopip install quark-aipulls it in automatically.quark chatandquark tuikeep
their existing behavior.- In-session TUI commands:
/model,/compact, and/new. - Per-command approval for
run_shell, instead of an all-or-nothing switch. search_filestool: recursive filename/content search confined to the
workspace, filling the clearest gap against comparable minimal agents.
Supportsmode(filename/content/both), case-insensitive matching by
default, skips common generated/vendor directories and symlinks, and
caps results at 200.quark init: interactive first-run setup wizard. Asks for provider,
model, workspace, tool mode, and whether to allowrun_shell, then
saves your answers to~/.quark/config.json(API keys go to
~/.quark/.envinstead, never the JSON config).
Fixed
quark/__init__.py's__version__was stuck at0.1.0while
pyproject.tomlhad already moved to0.2.0; both now report0.3.0.