Haldwani Times
Haldwani Times
Technology

quark-ai 0.8.1

quark-ai 0.8.1
Photo / Illustration: Haldwani Times Editorial Desk

Skip to main content Switch to mobile version quark-ai 0.8.1 Lightning-fast micro-agent. A stripped-down alternative to heavy AI agents, executing tasks with minimal prompt overhead.

pip install quark-ai==0.8.1 Copy PIP instructions

Lightning-fast micro-agent. A stripped-down alternative to heavy AI agents, executing tasks with minimal prompt overhead.

Quark is a minimal CLI agent loop: send a message, let the model call tools (read/edit/write files, list directories, search file names/contents, optionally run shell commands), and get an answer back — with conversation history persisted to disk between runs. It talks to any LLM provider through a small abstraction layer (Anthropic, OpenAI, Azure OpenAI, Ollama, Gemini, OpenRouter, Mistral, Groq, xAI, DeepSeek, Fireworks, Together, Cerebras, AWS Bedrock, Vertex AI, Cloudflare Workers AI, Hugging Face, Moonshot, or any other OpenAI-compatible endpoint via --provider custom) instead of depending on a heavy vendor SDK.

Two things it optimizes for on purpose:

Lightweight: no framework, no heavy SDKs (just httpx), a short default system prompt, and an edit_file tool so the model can make targeted changes instead of re-sending whole files.

Productive by default, secure by default: file tools are confined to a workspace directory (symlink escapes included), run_shell is off unless you opt in, and if a QUARK.md/AGENTS.md file exists it's folded into the system prompt automatically so the agent already knows about your project.

Coming from pi or Claude Code

If you've used another terminal coding agent, most of what you know carries over directly — Quark just makes different defaults and keeps a smaller footprint:

From pi: same idea (a small, dependency-light agent loop instead of a framework), but Quark adds a few things pi doesn't: a terminal UI (quark tui) alongside the one-shot/REPL modes, a full session tree (/fork, /clone, /rewind, /tree) with lineage tracked across saved sessions and abandoned branches auto-summarized, a live status bar (context/cost), --shell-sandbox (bubblewrap write-confinement for run_shell), and a typed Python plugin system (~/.quark/plugins/) in addition to skills and MCP. Startup is in the same ballpark — see scripts/bench_startup.py for real numbers instead of marketing ones.

From Claude Code: QUARK.md/AGENTS.md plays the role of CLAUDE.md (auto-loaded project context); .agents/skills/ and .agents/commands/ work the same way as Claude Code's SKILL.md skills and custom slash commands (Quark reads both its own folders and Claude Code's/Cursor's, so nothing needs converting); spawn_agent is the rough equivalent of subagents; ~/.quark/mcp.json is Claude Code's MCP config, same shape. The main differences: Quark isn't tied to one provider (19 built in — Anthropic, OpenAI, Azure OpenAI, Ollama, Gemini, OpenRouter, Mistral, Groq, xAI, DeepSeek, Fireworks, Together, Cerebras, AWS Bedrock, Vertex AI, Cloudflare Workers AI, Hugging Face, Moonshot, plus --provider custom for any other OpenAI-compatible endpoint), ships no bundled subscription/billing, and is meant to be read end-to-end — the whole agent loop is a few thousand lines, not a black box.

Requires Python 3.10+ (or nothing at all on Windows, with the standalone quark.exe below). Tested on Linux, macOS and Windows; WSL2 works like Linux.

pip install quark-ai This installs the quark command (the PyPI distribution name doesn't have to match the console script it installs), including the terminal UI (textual) — see Terminal UI below.

On Debian/Ubuntu (including most current WSL2 distros), a bare pip install is blocked by default with externally-managed-environment (PEP 668). Use pipx instead — it installs CLI tools like Quark in their own isolated environment and puts them on your PATH:

sudo apt install pipx pipx ensurepath # open a new terminal (or: source ~/.bashrc) pipx install quark-ai Windows

Quark runs natively on Windows (no WSL needed). Either pip install quark-ai with Python 3.10+, or use the standalone quark.exe, which needs no Python: in PowerShell,

irm https://raw.githubusercontent.com/rmoya81/Quark/main/install.ps1 | iex This downloads quark-windows-x64.exe from the latest GitHub Release, checks its SHA-256, installs it as %LOCALAPPDATA%\Programs\Quark\quark.exe and adds that folder to your user PATH (open a new terminal afterwards). Run it again to update. For a specific release, download install.ps1 and run .\install.ps1 -Version v0.7.0. To uninstall, delete that folder and remove it from PATH. You can also download the .exe from the release page by hand; the browser may show a SmartScreen warning because it isn't code-signed. Python plugins (~/.quark/plugins/) can use the standard library and Quark's own dependencies (httpx, textual), but not other packages, since the .exe has no pip.

On Windows, run_shell runs commands in Git Bash when Git for Windows is installed (found in its usual install folders or next to git on PATH; WSL's bash.exe is never used), so the bash commands models usually write just work. Without Git Bash it uses PowerShell, and tells the model so, so that it writes PowerShell instead of bash.

For local development, clone the repo instead:

./install.sh Creates .venv, installs Quark editable with dev deps, and copies .env.example to .env if you don't already have one. Safe to re-run (reuses the venv, never overwrites an existing .env).

python3 -m venv .venv source .venv/bin/activate pip install -e ".[dev]" Configure

Interactive setup (recommended)

The first time you run quark chat or quark tui, if nothing has been configured yet, Quark asks a short series of questions — provider, model (for Ollama it detects your locally pulled models and lets you pick one), workspace, tool mode, whether to allow run_shell — and saves your answers to ~/.quark/config.json so you never have to repeat the same flags again. Entirely local: this wizard never contacts a model or sends any context anywhere, except one optional ping to your own Ollama server to list its models.

quark chat "hola" # first run only: asks a few questions, then answers quark chat "qué hora es" # every run after: no questions, uses what you picked Re-run it anytime with quark init, or edit ~/.quark/config.json directly. Any --flag or env var still overrides a saved value for a single run — saved config is just the fallback default. If an API key is entered during setup, it's saved to ~/.quark/.env (chmod 600), never into config.json.

Skipped automatically for non-interactive use (piped input, CI, no tty) so it can never hang waiting on a prompt that can't arrive.

Manual configuration

Alternatively, copy .env.example to .env (done automatically by install.sh) and fill in the key(s) for the provider(s) you want to use:

cp .env.example .env ANTHROPIC_API_KEY=sk-ant-... OPENAI_API_KEY=sk-... GEMINI_API_KEY=... OPENROUTER_API_KEY=sk-or-... MISTRAL_API_KEY=... GROQ_API_KEY=gsk_... XAI_API_KEY=xai-... DEEPSEEK_API_KEY=sk-... FIREWORKS_API_KEY=... TOGETHER_API_KEY=... CEREBRAS_API_KEY=csk-... QUARK_PROVIDER=anthropic .env is loaded automatically from the current working directory, then ~/.quark/.env as a fallback. You can also export the variables directly, or pass --api-key on the command line.

Because the current directory can be a repository you didn't write, its .env is restricted: it may set API keys (*_API_KEY), QUARK_PROVIDER, QUARK_COMPACT_THRESHOLD, QUARK_CONTEXT_WINDOW, QUARK_MINIMAL_TOOLS and QUARK_PROGRESSIVE_TOOLS, and nothing else. Any other QUARK_* setting in it (QUARK_SHELL_MODE, QUARK_MCP_MODE, QUARK_SKILLS_MODE, QUARK_SUBAGENTS_MODE, QUARK_PLUGINS_MODE, QUARK_READ_DIRS, QUARK_BASE_URL, ...) is ignored with a warning, since those grant capabilities or decide where your API key is sent. Put them in ~/.quark/.env, ~/.quark/config.json or the real environment, which are always trusted. A real environment variable always wins over either file.

# One-shot message, prints the reply and exits quark chat "list the files in this directory" # Interactive REPL (Ctrl+D or 'exit' to quit) quark chat # Choose a provider/model quark --provider openai --model gpt-4o chat "what's in README.md?" quark --provider gemini chat "what's in README.md?" quark --provider openrouter --model anthropic/claude-sonnet-4.5 chat "what's in README.md?" # Run fully locally against Ollama (ollama serve + ollama pull llama3.2 first) — no API key needed quark --provider ollama chat "what's in README.md?" # Named sessions keep separate histories on disk quark --session project-a chat "remember that we're using Postgres" quark --session project-a chat "what database are we using?" # Confine file tools to a specific directory (default: cwd) quark --workspace ./my-project chat "list the files here" # Opt in to the run_shell tool (off by default), approving each command quark --allow-shell chat "run the test suite" # Let the model delegate bounded sub-tasks to a short-lived side agent (off by default) quark --subagents-mode ask chat "add docstrings to every function in utils.py" # Load your own Python plugins from ~/.quark/plugins/ or ./.agents/plugins/ (off by default) quark --plugins-mode ask chat "use the word_count tool on README.md" # Let run_shell run commands without asking (e.g. for scripts or CI) quark --shell-mode auto chat "run the test suite" # Read-only mode: only read_file + list_dir, smallest tool-schema footprint, no escape hatch quark --minimal-tools chat "what does this project do?" # Progressive mode: starts like --minimal-tools, but the model can unlock # write_file/edit_file/delete_file itself the moment it actually needs them quark --progressive-tools chat "fix the typo in README.md" # Plan mode: read, list and search only; the model proposes changes instead of making them quark --plan chat "how would you add a --verbose flag?" # Print the full reply at once instead of streaming it token by token quark --no-stream chat "what's in README.md?" # Lower the threshold for auto-summarizing older turns (in estimated tokens) quark --compact-threshold 4000 chat "..." # Redo the interactive setup, or set it up for the first time without waiting for a prompt quark init # Manage sessions quark sessions list quark sessions clear project-a # Branch a session: 'branch' starts as a copy of 'project-a', independent from here on quark sessions fork project-a branch quark sessions fork project-a branch --at 5 # only the first 5 messages quark sessions clone project-a copy # full, independent copy of the active branch quark sessions tree # how saved sessions branch off each other # Token usage and an estimated cost for a session, from the provider's own reported counts quark usage project-a quark usage --all Sessions belong to the workspace: they're stored as JSON under ~/.quark/sessions/-/.json, so default in one project never mixes with default in another. Files are written atomically and readable only by you (600); a damaged file is set aside as .corrupt.json instead of crashing. Session names may use letters, digits, ., _ and -. Sessions saved by older versions stay in ~/.quark/sessions/ and are no longer listed.

quark sessions fork copies a session's messages and usage totals into a new, independent one — the two don't affect each other afterward. --at N keeps only the first N messages, for going back to an earlier point in the conversation and branching from there instead of continuing where it left off; without it, the whole history is copied. --force overwrites if it's already a session. quark sessions clone is the same, but always for the whole active branch (no --at) — useful for a snapshot you want to diverge from without touching the original. quark sessions rewind is different: instead of switching to a new session, it drops the last N messages in place, so you keep working under the same name — but the dropped tail isn't lost, it's saved as -abandoned (-2, -3, ... if you rewind more than once) first. Every saved session remembers where it branched from (its parent's name, whether it was a fork, a clone or a rewind's abandoned tail, and at which message), and quark sessions tree prints that as a tree across the whole workspace. The same four are available mid-conversation as /fork [messages-back], /clone , /rewind and /tree in quark tui/quark chat — see Terminal UI, where /rewind also asks the model for a one-line summary of what it's abandoning.

Each session also keeps a running total of the input/output tokens the provider reported for it, per provider/model (switching models with /model keeps both totals). quark usage [name] prints it with an estimated dollar cost, from a small, hand-maintained price table (quark/pricing.py) that only covers well-known Anthropic/OpenAI models and will drift out of date — treat the number as a ballpark, not a bill. Ollama and other unlisted models show the token counts with no guessed cost. quark usage --all covers every saved session in the workspace.

quark Running quark with no subcommand launches the terminal UI by default — a scrollable chat with rendered markdown (real tables, not raw | pipes |), colored bubbles per role, a fixed input box, and streaming replies — the same way running bare claude does. You can also ask for it explicitly with quark tui. All the usual flags apply (--provider, --model, --session, --workspace, etc.):

quark --provider ollama --model qwen3.5-4b-coder-128k:latest It's a thin view on top of the same Agent used everywhere else — no separate request/tool/session logic, so anything that works in quark chat works in the TUI. textual is a core dependency, so pip install quark-ai pulls it in automatically; if it's somehow missing, bare quark falls back to the plain quark chat REPL instead of erroring out.

Modes: Tab switches between Build and Plan (see Build and Plan modes); the header shows the mode, provider/model, and a live status readout: context tokens (~ while estimated; once the provider reports usage, the real count), the percentage of the compaction threshold that represents, and this session's estimated cost so far (when the model's price is known — see quark usage above). It updates after every tool call and at the end of each reply, not just once per turn.

Input: Enter sends, Ctrl+J adds a line (pasted text keeps its lines), ↑/↓ on the first/last line browse what you sent before. While a reply is running you can keep typing: messages are queued and sent in order, each in the mode (Build/Plan) it was sent in; the header shows Running: Plan when the running reply's mode differs from the selected one (Esc stops the reply and drops the queue). /plan, /build, /read-dir, /model and /exit also work during a reply. Typing / suggests a command (→ accepts it).

Reasoning: if the model streams its reasoning (reasoning_content on OpenAI-compatible endpoints, thinking on Anthropic), it shows in gray above the answer. It is display only and isn't kept in the history.

Tool calls: each one appears inside the reply as it runs (▸ read_file(path='README.md')), then with its outcome (✓ 1,234 chars or ✗ and the error).

Stopping: Esc stops the reply that's streaming; any partial answer is kept in the conversation and you can send a correction.

Attaching files: type @ and part of a file name to open a dropdown of fuzzy matches, ranked by how well each workspace path fits what you typed (↑/↓ to pick one, Enter or → to accept, Esc to dismiss). On sending, each @path that names a workspace file gets its contents attached, up to 8 files, through read_file (so the same limits apply and the file counts as read for later edits). This also works in the quark chat REPL, which completes to the single best match instead of listing them. The file index for suggestions is built locally on first use, capped at 10,000 entries, and never sent to the model.

Images: @shot.png, or an image path written as is (also an absolute path outside the workspace, e.g. dragged into the terminal), is sent as an image to models that accept them: png, jpg, gif, webp, up to 5 MB, 4 per message. For a text-only model, use --no-images (or QUARK_IMAGES=0, or "images": false in the config); it then says so instead of attaching it. Only images can come from outside the workspace this way; the model still can't read outside text files. Images cost about 1,500 tokens each in the estimate.

Models: /model opens a selector with what the provider's /models endpoint offers (↑/↓ and Enter to switch, Esc to close); in the quark chat REPL it prints a numbered list. /model NUMBER or /model NAME switches directly. When the catalog reports a context window or image support (Anthropic, OpenRouter-style endpoints), compaction and image handling adapt; otherwise the configured values stay and it says so. Switching to a text-only model is refused while the conversation has images (/new first).

Commands: /model [number|name], /compact [focus], /new, /fork [messages-back], /clone , /rewind , /tree, /plan, /build, /init [focus], /read-dir [add|remove PATH], /exit.

Shell approval: in ask mode each run_shell command opens a dialog (y runs it, n/Esc rejects it).

quark sessions list/clear has no TUI equivalent; use the regular CLI for those. /fork and /clone (also in the quark chat REPL) do: /fork saves the conversation so far into a new session called and switches to it, so you can keep going in a different direction without losing the original; /fork 2 does the same but first drops the last 2 messages, for going back to an earlier point before branching. /clone is the same but always copies the whole active branch, for a snapshot you want to diverge from. Either way the session you branched from is left exactly as it was. /tree shows every saved session in the workspace indented under the one it was forked, cloned or rewound from, with the current session marked — the full picture /fork//clone//rewind build up one branch at a time.

/rewind is for when you don't want a new session name at all — just to go back and try something different right here. It drops the last N messages from the session you're in, saves them first as -abandoned (so nothing is lost — it shows up in /tree), and, since the model is right there, asks it for a one-line summary of what that abandoned attempt was doing, so a /tree later tells you at a glance whether it's worth going back to. The summary is best-effort: if it fails, the rewind itself still succeeded.

quark telegram lets you talk to Quark from your phone while it runs on your computer: send it a task, watch the reply being written, see each tool call, and approve or deny commands with buttons. It's the same agent as quark tui in that workspace, on the same session, so a conversation started in one continues in the other.

quark telegram pair # once: paste your bot token, then send the bot the code it shows quark telegram # start the bot (Ctrl+C to stop) Create a bot with @BotFather (/newbot) and copy its token.

Run quark telegram pair. It checks the token, shows a one-time code, and waits for you to send /pair to your bot from your own Telegram account. Your numeric user id and the token are saved to ~/.quark/telegram.json (readable only by you). Run it again from another account to allow a second one. The token can also come from QUARK_TELEGRAM_TOKEN.

Run quark telegram with the same flags as quark tui (--workspace, --provider, --model, --shell-mode, --session, …).

In the chat, plain text goes to the agent. /stop stops the reply in progress, /status shows the model, session, context and cost, /new clears the session, /plan and /build switch mode, and your custom slash commands work too. /sh runs a shell command directly in the workspace (90 s limit); commands that look destructive (reboot, mkfs, rm -rf /, …) ask for confirmation first. Messages, buttons and replies are in English or Spanish, following your Telegram language (or "language" in the file).

How it stays private:

It uses long polling, so there's no web server, no open port and nothing to expose; it works behind NAT.

Only private chats with the paired users are served. Anyone else gets "This is a private bot" and nothing else; a button pressed by someone else does nothing. Group chats are ignored.

Approvals follow --shell-mode / --mcp-mode as in the TUI. In ask mode each request arrives with ✅/❌ buttons, and an unanswered one is denied after 10 minutes (approval_timeout).

Messages that arrived while the bot was off and are more than 10 minutes old are skipped, so an old instruction doesn't run when it starts.

Telegram does not encrypt chats with bots end to end, and the bot token is a password: anyone with it can read what the bot receives. Don't send anything you wouldn't put in a cloud service.

Optional settings in ~/.quark/telegram.json:

{ "language": "es", "approval_timeout": 600, "shell_command": true, "shell_timeout": 90, "notify_start": true, "fallbacks": [ {"provider": "custom", "model": "qwen3", "base_url": "http://localhost:8082/v1"} ] } fallbacks are tried in order when a reply fails before anything was written (the server is off, a quota ran out, …); the bot says which model it switched to, and goes back to the main one after 30 minutes. "shell_command": false turns /sh off.

To keep it running on Linux, a systemd user service works (systemctl --user enable --now quark-telegram):

# ~/.config/systemd/user/quark-telegram.service [Unit] Description=Quark on Telegram After=network-online.target [Service] ExecStart=%h/.local/bin/quark --workspace %h/projects/my-app telegram Restart=on-failure RestartSec=10 [Install] WantedBy=default.target Local models and every OpenAI-compatible provider

ollama serve # if not already running ollama pull llama3.2 # or whatever model you want quark --provider ollama chat "hola" --provider ollama, gemini, openrouter, mistral, groq, xai, deepseek, fireworks, together, cerebras, huggingface and moonshot are all the same OpenAIProvider pointed at that service's own OpenAI-compatible endpoint — no provider-specific code, so anything that works against OpenAI works against them too, including /model's model listing. ollama needs no API key, just a running server; the rest need their own key (GEMINI_API_KEY, OPENROUTER_API_KEY, MISTRAL_API_KEY, GROQ_API_KEY, XAI_API_KEY, DEEPSEEK_API_KEY, FIREWORKS_API_KEY, TOGETHER_API_KEY, CEREBRAS_API_KEY, HUGGINGFACE_API_KEY, MOONSHOT_API_KEY) like any other provider. huggingface talks to Hugging Face's Inference Providers router (https://router.huggingface.co/v1), which fans out to whichever backend actually serves that model — not a single company's own API. Override any of their endpoints with --base-url (also QUARK_BASE_URL) — useful for a proxy.

For anything else that speaks the same OpenAI Chat Completions API — vLLM, LM Studio, a company's internal gateway — --provider custom --base-url https://wherever/v1 is the same OpenAIProvider again, just with no built-in default endpoint to fall back on, so --base-url is required. CUSTOM_API_KEY is used if the server needs one; most self-hosted ones don't.

Cloudflare Workers AI (--provider cloudflare --base-url https://api.cloudflare.com/client/v4/accounts//ai/v1) is the same OpenAI-compatible pattern too, but its URL encodes your Cloudflare account id, so unlike the providers above there's no single default endpoint to fall back on — --base-url is required, the same way it is for custom. --model is a Workers AI model id like @cf/meta/llama-3.1-8b-instruct. Needs CLOUDFLARE_API_KEY.

Azure OpenAI (--provider azure --base-url https://your-resource.openai.azure.com --model your-deployment-name) is its own AzureOpenAIProvider, not just OpenAIProvider under another name: Azure sends the key as an api-key header instead of Authorization: Bearer, and its URL encodes the deployment name and an API version instead of just appending /chat/completions to base_url. --model is the deployment name you created in Azure, not the underlying model's name — Azure doesn't expose model listing the way /model expects, so that's unavailable here. Needs AZURE_OPENAI_API_KEY; the API version defaults to 2024-10-21 and can be overridden with AZURE_OPENAI_API_VERSION.

AWS Bedrock (--provider bedrock --model anthropic.claude-sonnet-4-5-20250929-v1:0) talks to Bedrock's Converse API directly over HTTPS, signed with AWS SigV4 implemented by hand (hmac/hashlib, nothing more) — no boto3, so this doesn't add a heavy dependency to every install just for the handful of people who need it. Reads the same env vars the AWS CLI does: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN (for temporary credentials), and the region from --region/AWS_REGION/AWS_DEFAULT_REGION (default us-east-1). --model is whatever Bedrock model id you're granted access to (Anthropic, Amazon Nova, etc.) — model listing isn't available here either, since that's a separate (IAM-gated) Bedrock API.

Vertex AI (--provider vertex --model claude-sonnet-4-5@20250929 --vertex-project your-gcp-project) uses Vertex's Anthropic passthrough endpoint, which accepts the same request/response shape as Anthropic's own native API — so VertexProvider is a thin subclass of AnthropicProvider, swapping the URL, the auth header, and two payload fields. api_key here is a short-lived OAuth bearer token, not a real API key: get one with gcloud auth application-default print-access-token and set it as VERTEX_ACCESS_TOKEN (or --api-key), refreshing it yourself when it expires — pulling in google-auth just to automate that refresh would be a heavy dependency for what one gcloud command already does. --region/VERTEX_REGION picks the region (default us-east5); --vertex-project/VERTEX_PROJECT is required.

Tool-calling quality with a local Ollama model depends entirely on that model: not every one supports it well, so results with write_file/edit_file/etc. will vary more than with a frontier hosted model.

If a QUARK.md or AGENTS.md file exists at the workspace root, its contents (up to 64KB) are appended to the system prompt automatically — a cheap way to give the agent standing context (stack, conventions, gotchas) without repeating it every session. It's reread before every request, so edits apply from the next message.

/init [focus] (in quark tui and the quark chat REPL) writes that guide for you. The model investigates the workspace with read_file, list_dir, and search_files only (each call is shown), then Quark saves its answer to the existing QUARK.md, else the existing AGENTS.md, else a new QUARK.md. Nothing is saved if the model read no files, produced nothing usable, was stopped with Esc, or the guide changed on disk meanwhile. An empty workspace gets a minimal guide. /init isn't available in Plan mode, since it writes a file. (quark init, the command, is the setup wizard, unrelated.)

Build and Plan modes

Quark starts in Build mode with every tool you enabled. In Plan mode the model only gets read_file, list_dir, and search_files, plus an instruction to investigate and propose changes (steps, affected files, interfaces, expected behavior) rather than write full implementations. Any other tool the model calls in Plan mode is refused before it runs, even one outside the catalog it was shown.

Switch with Tab in quark tui, or /plan and /build in quark tui and the quark chat REPL; --plan starts in Plan mode. Both modes share the conversation, so a plan made in Plan mode is there to implement after switching to Build. A switch during a reply applies to the next message.

Read-only directories

quark --read-dir ~/Documents --read-dir ~/notes tui Also QUARK_READ_DIRS (separated like PATH) or "read_dirs": [...] in ~/.quark/config.json. In quark tui and the quark chat REPL, /read-dir lists them, /read-dir add PATH adds one and /read-dir remove PATH removes it, for the current session, from the next message on.

read_file, list_dir, search_files and @file attachments work in them, given an absolute (or ~) path; relative paths still mean the workspace. The model is told which directories it may read.

write_file, edit_file and delete_file never reach them, and symlinks inside them that point elsewhere are refused.

run_shell isn't limited by them: with the shell enabled, commands can read whatever your account can.

--shell-mode (also QUARK_SHELL_MODE, or shell_mode in ~/.quark/config.json) decides what run_shell may do:

--allow-shell, QUARK_ALLOW_SHELL=1, and allowing the shell in quark init all mean ask.

Sandboxing run_shell

--shell-sandbox (also QUARK_SHELL_SANDBOX=1, or shell_sandbox in ~/.quark/config.json) confines what run_shell commands can write. On Linux, with bubblewrap (bwrap) installed, each command runs with the whole filesystem bound read-only and only the workspace re-bound read-write — the command can still read anything it could before (so pip, git, curl etc. keep working, and network access is unaffected), but a write anywhere outside the workspace fails instead of landing on $HOME, /etc, or another project. It's defense-in-depth on top of approval and the workspace-as-cwd default, not a replacement for either: a command you approve can still read broadly and do anything network-reachable. If bwrap isn't installed, or you're not on Linux, Quark warns once and runs commands unsandboxed, same as without this flag.

Skills are folders of instructions the model can load when a task matches them. With --skills-mode ask or auto (also QUARK_SKILLS_MODE, or skills_mode in ~/.quark/config.json; default off), Quark looks for /SKILL.md in ~/.quark/skills/, then the workspace's skills/, then .agents/skills/ (the first skill with a given name wins, up to 24):

--- name: release description: Steps to cut a release of this project --- 1. Bump the version in pyproject.toml ... The model sees only the names and descriptions (each shortened to 160 characters, 8KB in all), inside the description of one load_skill tool. It calls load_skill(name) for the instructions (up to 64KB) or load_skill(name, path) for a file bundled in the skill's folder (up to 32KB, never outside it). In ask mode each load needs your approval, in auto it doesn't, and off skips discovery so the tool doesn't exist. Plan mode never loads skills. A skill is text the model will follow, so only enable skills from sources you trust: a workspace's skills/ folder comes with the repository.

This is the same SKILL.md shape used by Agent Skills (Claude Code, claude.ai, Claude Cowork plugins): a folder with a SKILL.md whose frontmatter has name and description, plus whatever bundled files it references. A skill written for one of those drops straight into ~/.quark/skills// or the workspace's skills/ — no conversion needed — and one written for Quark works there too.

With --mcp-mode ask or auto (also QUARK_MCP_MODE, or mcp_mode in ~/.quark/config.json; default off), Quark starts the servers listed in ~/.quark/mcp.json and offers their tools to the model as mcp____. Local servers use stdio, remote ones Streamable HTTP:

{ "mcpServers": { "project-tools": {"command": "node", "args": ["/path/to/server.mjs"], "cwd": "/path/to/project", "env": {}}, "remote-tools": {"url": "http://127.0.0.1:3000/mcp", "headers": {}} } } ask approves each call (a [y/N] prompt, or a dialog in the TUI); auto runs them directly; off starts nothing.

A server that fails to start is skipped with a warning. At most 32 tools are offered; a tool whose input schema is over 8KB is skipped, all definitions together are capped at 64KB, and server instructions (folded into the system prompt) at 8KB.

Results keep their text (up to 48,000 characters, beginning and end); images and audio are noted but not passed on, since Quark sends text only.

An executed MCP call forgets what the model had read (like run_shell), since a server may change files. Plan mode never calls MCP tools, and --minimal-tools doesn't load them.

MCP servers run with your account's permissions; only configure servers you trust.

Servers start in parallel. They don't inherit your provider API keys (*_API_KEY) or anything loaded from a .env file; give a server the keys it needs in its env.

With many MCP servers configured, sending a full JSON-schema tool definition per remote tool on every turn adds up. --mcp-code-mode (also QUARK_MCP_CODE_MODE, or mcp_code_mode in the saved config; default off) replaces that with a single run_mcp_code tool: its description lists every available call as mcp..(...) with a one-line summary, and the model writes a short Python script that calls them as plain functions (print(mcp.project_tools.search(query="..."))) instead of one tool call per MCP call. The script runs with no imports, no file or network access, and no builtins beyond basic types and control flow — the only thing it can do is call the listed mcp.* functions, each of which still goes through --mcp-mode's own per-call approval exactly as if the model had called it directly.

With --subagents-mode ask or auto (also QUARK_SUBAGENTS_MODE, or subagents_mode in ~/.quark/config.json; default off), Quark offers a spawn_agent tool so the model can delegate a bounded, self-contained sub-task — "add docstrings to every function in utils.py", "write unit tests for parser.py" — to a short-lived side agent instead of doing it inline.

The side agent never sees this conversation and works alone in its own isolated copy of the workspace: a throwaway, detached git worktree when the workspace is a git repository — with your uncommitted changes (modified, new and deleted files; not ignored ones) copied in, so it starts from what you see right now, not from the last commit — or a plain directory copy under your temp directory otherwise. If the workspace is a subdirectory of the repository, the side agent works in that same subdirectory of its copy and never above it. It gets the same provider/model and the default (non-minimal) file tools, but no shell, no skills, no MCP servers, and no spawn_agent of its own — one level of delegation only — plus a lower tool-call budget (12 rounds) than a normal session, since it's meant for one sub-task, not an open-ended conversation.

Its file changes are merged back into the real workspace automatically once it finishes — a 3-way merge per file (git merge-file, with the snapshot the side agent started from as the common ancestor: a snapshot commit in a git workspace, a second copy of the workspace otherwise), including files it creates in new directories, so it works even if you, the main agent or another side agent changed the workspace in the meantime. In a git workspace your index is never touched, and no branch or commit is left behind. A change that applies cleanly just lands in the file; one that doesn't is left with normal <<<<<<< workspace/=======/>>>>>>> side agent conflict markers to resolve, the same as a merge conflict, and spawn_agent's result says which files landed cleanly and which didn't. A file that can't be merged at all (a binary file changed on both sides, or one you deleted meanwhile) is left exactly as it is in your workspace, and the worktree (or copy) is kept so the side agent's version isn't lost — the result names the files and what to remove afterwards. Otherwise it's cleaned up. Only if git isn't installed at all is the copy left under your temp directory for you to merge by hand. ask approves each spawn (a [y/N] prompt, or a dialog in the TUI); auto runs it directly; off doesn't offer the tool at all.

With --plugins-mode ask or auto (also QUARK_PLUGINS_MODE, or plugins_mode in ~/.quark/config.json; default off), Quark loads Python plugins: *.py files directly under ~/.quark/plugins/ or the workspace's .agents/plugins/ (first match per filename wins), each defining a module-level PLUGIN = MyPlugin() that contributes its own Tool subclasses — for when a skill (text) or an MCP server (a separate process) isn't enough and you're willing to write Python that runs inside Quark itself:

# ~/.quark/plugins/word_count.py from quark.plugins import Plugin from quark.tools.base import Tool class WordCountTool(Tool): name = "word_count" description = "Count words in a string." parameters = {"type": "object", "properties": {"text": {"type": "string"}}, "required": ["text"]} def run(self, text: str) -> str: return str(len(text.split())) class WordCountPlugin(Plugin): name = "word-count" def tools(self, workspace): return [WordCountTool()] PLUGIN = WordCountPlugin() A plugin can also override system_prompt(self, workspace) -> str | None to add its own instructions to the agent's system prompt, for when the tool's name/description alone isn't enough context for the model to use it well (e.g. "always check with word_count before summarizing anything longer than a paragraph"). Most plugins don't need this — it's additive, so existing plugins with only tools() keep working unchanged.

A plugin's code runs in Quark's own process with its full permissions the instant the file is imported — unlike a skill or an MCP call, there's no per-call approval the model can be asked for, since importing is running it. ask mode only lists candidate files by name (nothing is imported yet) and asks once before importing any of them; auto imports them directly; off doesn't even look. Only enable this for plugins you wrote yourself or fully trust. A plugin that fails to import, or doesn't define a valid PLUGIN, is skipped with a warning instead of stopping Quark; at most 16 plugin files are loaded.

quark plugin init scaffolds a starter file like the one above (into ./.agents/plugins/, or ~/.quark/plugins/ with --user) so you don't start from a blank file; --force overwrites one that's already there. PLUGINS.md is a plain index of plugins people have written, to find and copy from — Quark doesn't load anything from it itself.

quark plugin install fetches someone else's instead: a local *.py path, an http(s) URL to one, or a git repo URL (append #path/to/plugin.py when the repo doesn't have exactly one *.py file at its root). It's written to ~/.quark/plugins/ (--project for the workspace's .agents/plugins/ instead, --name to pick its filename, --force to overwrite) — but only once it's actually been imported and shown to define a working PLUGIN; a source that fails that check is removed again instead of being left half-installed. Same trust model as any other plugin: installing doesn't load it, --plugins-mode still does.

A plugin can also override four lifecycle hooks to observe a turn as it happens, instead of only contributing tools: on_turn_start(session) and on_turn_end(session, result) bracket each agent.step() call, and on_tool_call(name, arguments)/on_tool_result(name, arguments, output) bracket each tool run inside it. These are observation points, not interception — a hook can't change, cancel or replace what's happening (unlike a plugin's own Tool, whose output does feed back into the conversation); they're for logging, metrics, or notifications. All four are no-ops by default, so existing plugins are unaffected, and one plugin's broken hook is caught and logged without affecting another plugin's or stopping the agent.

Two more hooks genuinely change what happens, for when observing isn't enough: before_tool_call(name, arguments) runs just before on_tool_call, and can return {"arguments": {...}} to replace a call's arguments, or {"block": True, "reason": "..."} to stop it from running at all (its result becomes that reason, reported to the model as an error) — handy for a policy plugin that refuses run_shell with certain commands, say. before_request(messages, tools, system) runs just before the provider is asked to complete, and can return a dict with any of those three keys to override it for that request only — e.g. to append something to the system prompt based on what's in the conversation so far. Both are no-ops by default; when more than one plugin defines one, each sees the previous plugin's override, and a plugin's own exception is caught and logged rather than breaking the turn, same as the observation-only hooks. A plugin that intercepts like this can still break your workflow if it's buggy or malicious — exactly why --plugins-mode defaults to off.

A plugin can also register a whole provider or MCP server, not just tools. providers(self) -> dict[str, factory] makes a name selectable with --provider , where factory takes (api_key, model, base_url) and returns a Provider — a plugin provider manages its own credentials (reading its own environment variable, the same way the built-in Bedrock provider does), since it's never asked for a Quark-managed API key. mcp_servers(self) -> dict[str, dict] contributes extra entries shaped like mcp.json's mcpServers, started the same way a hand-written one is — your own ~/.quark/mcp.json always wins a name collision, so a plugin can add a server but never override one you configured yourself. Both default to {} (nothing contributed) and are read once, while plugins load — well before any tool runs, since the provider itself may need to already exist:

class AcmeProvider(Plugin): name = "acme" def tools(self, workspace): return [] def providers(self): def build(api_key, model, base_url): from acme_sdk import AcmeClientProvider return AcmeClientProvider(model=model) return {"acme": build} def mcp_servers(self): return {"acme-search": {"command": "acme-mcp-server"}} PLUGIN = AcmeProvider() Standard MCP servers from a built-in catalog

Hand-writing ~/.quark/mcp.json entries works, but quark mcp list and quark mcp add [path] make the common case — one of the official reference MCP servers — a one-liner: quark mcp add fetch, or quark mcp add filesystem ~/code for one that needs a directory/repository path. It writes the same mcpServers entry you'd otherwise type by hand; starting it is still --mcp-mode ask/auto as usual. --force overwrites an entry that's already configured under that name; without it, mcp add leaves an existing entry alone.

Importing MCP servers from another tool

~/.quark/mcp.json's {"mcpServers": {...}} shape is the same one Claude Desktop, Claude Code (.mcp.json) and Cursor (.cursor/mcp.json) use, and close enough to VS Code's .vscode/mcp.json (which calls the table servers instead) that quark mcp import reads either: quark mcp import ~/.cursor/mcp.json merges every entry that has a command or url into ~/.quark/mcp.json, leaving entries already configured under the same name alone unless you pass --force. Nothing is started by importing it — that's still --mcp-mode ask/auto.

Custom slash commands

A .md file under .agents/commands/ (workspace), .claude/commands/ (Claude Code), .cursor/commands/ (Cursor) or ~/.quark/commands/ (user-wide) becomes a / command in quark chat and quark tui — no mode flag, no opt-in; it's just a stored prompt, same as typing it out by hand:

--- description: Review the current diff for security issues --- Review the current diff for security issues, focusing on: $ARGUMENTS Typing /security-review auth,payments sends that body to the model as the next message, with $ARGUMENTS replaced by everything after the command name and $1, $2, ... by its whitespace-split parts (quote to keep one together: /review "the auth module" → $1 is the auth module). A file in a subdirectory is namespaced with : to match Claude Code — review/security.md becomes /review:security. The four directories are searched in that order, first match per name wins, and this is the same file Claude Code or Cursor already run, so a command written for either works here unchanged, and one written for Quark works there too.

Progressive tool disclosure

--progressive-tools (also QUARK_PROGRESSIVE_TOOLS=1) starts a turn with just read_file, list_dir, search_files, and one cheap extra tool, request_tools(topic). Its description is the index: one line per topic (files, web, and — only when enabled — shell, agents, skills, plugins), each naming the tools it bundles and what they're for. The model reads that index, picks a topic, and Quark registers just that topic's tools on the spot, shrinks the index (or drops request_tools entirely once every topic is unlocked), and the same agent.step() call retries with the expanded set — so the model still gets everything it needs, in the same turn, it just asks for a topic at a time instead of loading every tool's full schema upfront.

This is deliberately not a heuristic: matching intent from text (keywords, embeddings, a classifier) always trades accuracy for cost and can silently withhold a tool the model actually needed on some phrasing you didn't anticipate. Letting the model itself request a topic can't misfire that way — the only cost is one extra round trip, and only for topics actually used. A topic's tools are also built lazily (a plugin isn't even imported, a skill isn't even read from disk, until its topic is unlocked), so an unused topic costs nothing beyond its one line in the index, not just hidden schemas. shell/agents/skills/plugins topics only appear at all when --allow-shell/--subagents-mode/--skills-mode/--plugins-mode enable them — the index never lists a topic you can't unlock.

--minimal-tools is the stricter sibling: same read_file/list_dir/search_files starting set, but with no request_tools escape hatch at all, for when you want a hard read-only guarantee. Passing both flags together, --minimal-tools wins.

read_file: up to 500 lines or 64 KB per call with offset to continue; a single line longer than that is shown in pieces with column. Files over 10 MiB are refused, and a file that changes while being read is reported instead of returned.

list_dir: 500 entries by default (limit up to 10,000); symlinks are shown as l and never followed.

search_files: 100 results by default (limit up to 500), content hits as path:line:column, files up to 10 MiB, 64 MiB read in total and 15 seconds per search; Esc stops it and keeps the partial results. Binary and unreadable files are skipped and counted.

edit_file: takes either a single old_text/new_text pair, or edits — a list of pairs applied to the same file in one call instead of one round trip each. They're applied in order (a later edit can target text a previous one in the same call left behind) and atomically: if any of them doesn't match (not found, or matches more than once), none of them are written, and the error names which one failed.

A single reply may request at most 16 tool calls; a response asking for more gets an error for every call and none of them run. A turn may take at most 32 rounds of tool calls. Tool calls whose arguments aren't a valid JSON object are never run: the model gets an error and can resend them, and the turn stops after two such corrections. Calling the same tool with the same arguments and getting the same result is flagged to the model on the second time and stops the turn on the third.

Quark waits up to one hour for the model's next bytes (--request-timeout, also QUARK_REQUEST_TIMEOUT, or request_timeout in ~/.quark/config.json; connecting still gives up after 30 seconds), because a local model can take minutes to read a long prompt before its first token. Overloaded, rate-limited and dropped requests (408, 409, 429, 5xx, connection errors) are retried up to four times with backoff, honouring retry-after, but only while nothing has been shown yet; an error in the middle of a reply is reported instead of being saved as the answer.

Replies may use up to 32,000 output tokens on Anthropic (--max-tokens, also QUARK_MAX_TOKENS or max_tokens in ~/.quark/config.json; OpenAI-compatible servers use their own default unless set). A reply cut off by that limit is marked, and tool calls it contained are not run, so a half-written file never lands on disk. With Ollama, Quark reads the context size the server actually loaded and compacts earlier if it is smaller than expected, with a hint to raise OLLAMA_CONTEXT_LENGTH. run_shell commands time out after 120 seconds by default (the model can ask for more) and don't see your provider API keys or anything loaded from a .env file. On a timeout, or when you press Esc, the command and every process it started are killed, not just the shell; Esc also stops a command that is still running.

The provider's own usage report (prompt_tokens/input_tokens plus output) replaces the character-based estimate once a reply has come back, and the estimate only covers messages added since. Compaction decisions still use the estimate, which is deliberately conservative.

Replies print as the model generates them — both providers use stream: true and parse server-sent events, calling back into the CLI for each text chunk. Tool calls are accumulated silently (their JSON arguments arrive fragmented) and only run once complete; nothing changes about tool behavior, just how text reaches your terminal. Pass --no-stream to wait for the full reply and print it in one shot instead (e.g. for piping output into another program).

Quark estimates the session's token count (a len(text) // 4 heuristic — no tokenizer dependency) plus the system prompt and tool schemas sent with every request. Once history is over the budget, it asks the model for a summary of the older turns (file paths, decisions, your preferences, unfinished work, and what was verified) and folds it into the oldest turn it keeps. It only ever cuts at a turn boundary — right after a completed assistant reply, never mid-tool-call — so this can't break the strict user/assistant alternation Anthropic's API requires. It keeps up to the last three turns, fewer if they're bigger than ~20,000 tokens (or a quarter of the budget), but always the last one.

Budget: set --context-window (also QUARK_CONTEXT_WINDOW, or context_window in ~/.quark/config.json) to your model's real context limit and the budget becomes that window minus room for the reply (16,384 tokens or a quarter of the window, whichever is smaller). Without it, the budget is --compact-threshold (default 20000, also QUARK_COMPACT_THRESHOLD), which also overrides the window when both are set. --compact-threshold 0 disables compaction.

Within a turn: once the budget is exceeded, Quark first looks for a cheaper, semantic cut before resorting to blind trimming: an older read_file or list_dir result for a path the model has since read or listed again is replaced outright with a one-line note, since the file could have changed in between and the newer call is what's actually current — this also runs before the LLM is asked to summarize anything, so a session full of re-reads never has to pay for summarizing them. Only then are any remaining older tool results shortened to their beginning and end. Either way, the latest round's results and the pairing of calls and results are kept.

Long outputs: any single tool result over 64,000 characters keeps its beginning and end, with the omission marked. The transcript sent for summarizing shortens each tool result the same way.

What survives: which files the model has read in their current state (tracked separately, per path, since write_file/edit_file/delete_file only touch files read that way) isn't part of the history, so compaction doesn't make it reread files.

In the TUI: /compact [focus] summarizes the whole conversation on demand, optionally steering the summary, and reports history and total context before and after. The header shows the current estimate.

No network call, no API key, just importing Quark's own modules — measured by scripts/bench_startup.py (median of 7 runs, on the machine these docs were written on; your numbers will differ but should land in the same order of magnitude):

Almost all of quark chat's own startup cost is httpx's import, not Quark's code; quark tui costs more because of textual. Run python scripts/bench_startup.py yourself to reproduce these (it also prints the default system prompt's token count, see below).

On the first turn (empty session), before the model generates anything, Quark sends the system prompt plus the JSON schema of every registered tool. The default system prompt itself is about 30 tokens; tool schemas are the rest. Rough token counts (tiktoken cl100k_base, an approximation — Claude's real tokenizer isn't public — but the right order of magnitude either way):

--minimal-tools is cheapest but can never write/edit/delete. --progressive-tools costs a little more than minimal before unlocking anything (529 vs 414) but is capability-equivalent to the default the moment a topic is actually needed, and converges back to exactly the default's cost once every topic in use has been unlocked — it only pays for a topic's tools on turns that actually use that topic. search_files is in every mode, including minimal, since searching never mutates anything. Every subsequent turn in a session also carries the accumulated conversation history on top of these numbers.

quark/ message.py Internal Message/ToolCall representation session.py Persistent, named conversation history, and its cumulative token usage pricing.py Per-model $/1M-token table backing `quark usage`'s cost estimate agent.py The chat + tool-calling loop compact.py History summarization: semantic collapse of stale re-reads, then token-threshold trimming and LLM summary providers/ Provider abstraction (unified request/response shape) base.py anthropic.py Anthropic Messages API, streamed (SSE) openai.py OpenAI Chat Completions API, streamed (SSE) — also backs --provider ollama tools/ Built-in tools the agent can call base.py Tool + ToolRegistry workspace.py Path confinement (resolve_within) evidence.py What the model has read, required before edits fs.py read_file / write_file / edit_file / delete_file / delete_directory / list_dir search.py search_files (literal filename/content search) shell.py run_shell (opt-in) winshell.py Which shell run_shell uses on Windows (Git Bash, else PowerShell) meta.py request_tools, the topic index (--progressive-tools) approval.py Approval prompts shared by run_shell, skills, MCP and side agents skills.py Skill discovery and load_skill mcp.py MCP client (stdio and Streamable HTTP) and MCP tools subagent.py spawn_agent: isolated git worktree / copy, and the side Agent run in it plugins.py Typed Python plugins (*.py under ~/.quark/plugins or ./.agents/plugins), plus `quark plugin init` scaffolding mcp_catalog.py Built-in catalog of standard MCP servers, backing `quark mcp list`/`add`/`import` user_commands.py Markdown slash command discovery (.claude/commands, .cursor/commands, ...) and $ARGUMENTS/$N rendering cli.py argparse-based entry point onboarding.py Interactive first-run setup (quark init) attachments.py @file attachments and the local index for @ suggestions commands.py /read-dir, shared by the TUI and the REPL init_project.py /init: investigate the workspace and write QUARK.md evaluation.py Live model evaluation tasks (quark eval --live) tui.py Textual UI (default bare `quark` invocation, also `quark tui`) server.py `quark serve`: the agent over line-delimited JSON (the desktop app's core) telegram.py `quark telegram`: the same core driven from a private Telegram chat Adding a provider means implementing Provider.complete() in quark/providers/ and registering it in quark/providers/__init__.py. Adding a tool means subclassing Tool in quark/tools/ and adding it to default_registry().

read_file, write_file, edit_file, delete_file, and list_dir are confined to --workspace (default: the current directory); paths that escape it, including via symlinks, are rejected. Read-only directories you add with --read-dir or /read-dir extend only what can be read, listed and searched.

run_shell executes arbitrary shell commands and is off by default. --allow-shell enables it with approval for every command; --shell-mode auto skips approval and should only be used when you trust the prompts/provider you're running against. See Shell permissions.

write_file, edit_file, and delete_file only touch existing files the model has read in their current state, and every write is atomic (temp file + rename) and verified on disk. Symlinks, special files and files with other hard links are refused, delete_directory deletes non-empty folders only after every file inside was read in its current state, and API keys/tokens are masked in search results and tool-output previews. They still mutate the filesystem inside the workspace without asking for confirmation, and run_shell commands can change files regardless of these checks. Only point Quark at trusted providers/prompts, and run it in an environment you're comfortable with an autonomous agent touching.

If you enter an API key during quark init, it's written in plaintext to ~/.quark/.env (permissions set to 600, readable only by you) — never to ~/.quark/config.json, which holds only non-secret preferences (provider, model, workspace, tool mode).

pip install -e ".[dev]" pytest Tests mock the HTTP layer (httpx.stream), so the suite runs offline with no API keys required. The TUI test uses Textual's headless run_test() (via pytest-asyncio, a dev-only dependency) and sticks to a smoke check — mount, type, submit, see the bubble — since asserting on the agent's actual reply would mean waiting on a background worker thread from the test, which is a source of flaky CI. Agent.step() itself already has non-flaky coverage in tests/test_agent.py and tests/test_compact.py.

scripts/bench_startup.py backs the Startup time numbers above; also offline, no API key needed.

Live model evaluation

quark eval --live runs five tasks against the configured provider and model (the usual --provider/--model/--base-url/--api-key apply), each in its own temporary workspace and a session that isn't saved:

It prints JSON with each task's success, elapsed time, requests, tool calls, invalid and repeated calls, read-before-edit refusals, Plan mode violations, and an estimate of input tokens (estimated from text length, not provider-reported usage). It exits non-zero if any task fails. Without --live it only lists the tasks, and --task NAME (repeatable) picks some. These send real API requests; the unit tests never do. Keep the model (and quantization, for local models) fixed when comparing runs: the tasks measure these specific behaviors, not overall model quality.

Published as quark-ai. .github/workflows/publish.yml publishes to PyPI via Trusted Publishing (OIDC) whenever a GitHub Release is published — no API token stored in the repo. The pending-publisher setup (PyPI project quark-ai, owner rmoya81, repository Quark, workflow publish.yml, environment pypi) is already done. A release is now a single step:

Bump version in pyproject.toml (and add a matching ## [x.y.z] section to CHANGELOG.md) and merge that to main.

.github/workflows/release.yml watches for that change on main: it runs the test suite, tags the new version (vX.Y.Z), cuts a GitHub Release with that version's changelog section as its notes, and triggers publish.yml, which builds and publishes the sdist/wheel. It also calls windows-exe.yml, which builds quark-windows-x64.exe from the new tag on a Windows runner, checks it, and attaches it (with its .sha256 and THIRD-PARTY-LICENSES.txt, the licenses of everything the .exe bundles) to the Release. (It triggers publish.yml explicitly via workflow_dispatch rather than relying on the release event firing automatically, since a release/tag created with the workflow's own GITHUB_TOKEN doesn't itself start other workflows — only workflow_dispatch/repository_dispatch are exempt from that rule.) If a tag for that version already exists, it does nothing, so re-running or re-merging is harmless.

(quark and quark-agent were already taken by unrelated projects on PyPI, which is why the distribution name is quark-ai instead — the installed command is still quark.)

The docs site (MkDocs + Material) is a proper landing page (hero, feature cards, the demo GIF) plus this README split into topic pages (docs/getting-started.md, docs/reference.md, docs/architecture.md, each a pymdownx.snippets section of this file — one source of truth, not a second copy to keep in sync) and docs/changelog.md (the whole CHANGELOG.md). The logo/favicon are in docs/assets/, and docs/stylesheets/extra.css holds the hero/card styling on top of Material's own theme.

pip install -e ".[docs]" mkdocs serve # live preview at http://127.0.0.1:8000 .github/workflows/docs.yml rebuilds and pushes the site to the gh-pages branch on every push to main that touches docs/, mkdocs.yml, README.md or CHANGELOG.md (also triggerable by hand via workflow_dispatch). One-time setup, done once in the repo's settings (not by this workflow): after the workflow has run at least once and created gh-pages, go to Settings → Pages, set Source to "Deploy from a branch", pick the gh-pages branch and / (root), and save. The site is then published at https://rmoya81.github.io/Quark/.

Released: Dec 5, 2026

Both files in this release have provenance metadata.

View provenance details

MIT View SPDX License List

Development Status 3 - Alpha

Intended Audience Developers

Programming Language Python :: 3

Topic Software Development :: Libraries

Release files for quark-ai 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Built distribution (wheel)

Total release size: 4.2 MB

Release files / quark_ai-0.8.1.tar.gz

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Release files / quark_ai-0.8.1-py3-none-any.whl

Security for quark-ai 0.8.1

Both files in this release have been uploaded with provenance metadata.

With provenance quark_ai-0.8.1.tar.gz Dec 5, 2026

With provenance quark_ai-0.8.1-py3-none-any.whl Dec 5, 2026

Attestation for quark_ai-0.8.1.tar.gz

Attestation for quark_ai-0.8.1-py3-none-any.whl

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Dec 5, 2026 2 release files Full provenance

Dec 4, 2026 2 release files Full provenance

Dec 3, 2026 2 release files Full provenance

Oct 2, 2026 2 release files Full provenance

Oct 1, 2026 2 release files Full provenance

Sep 30, 2026 2 release files Full provenance

"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.

© 2026 Python Software Foundation

Deployed from 4d99e05

Source Attribution: This report incorporates information referenced or syndicated from Pypi.org. Read original coverage at Pypi.org.

More from Technology →
Haldwani Times
Haldwani Times Independent News & Editorial
Login
MARKETS & FINANCE
BRENT CRUDE: $78.40 -0.52% SENSEX: 81,450.20 +0.42% NIFTY 50: 24,820.15 +0.38% GOLD (24K): ₹74,500/10g -0.18% USD/INR: ₹95.54 +0.10%

ADMINISTRATIVE LEADERSHIP

Mr. Narendra Modi
Mr. Narendra Modi
Mr. Lt. Gen. Gurmit Singh
Mr. Lt. Gen. Gurmit Singh
Mr. Pushkar S. Dhami
Mr. Pushkar S. Dhami
Mr. Lalit M. Rayal
Mr. Lalit M. Rayal
Mr. Gajraj S. Bisht
Mr. Gajraj S. Bisht

Top Headlines & Breaking Stories

View All News →
बागेश्वर में मातृशक्ति सम्मेलन, सीएम धामी ने महिलाओं के सशक्तिकरण को बताया सरकार की प्राथमिकता
Haldwani

बागेश्वर में मातृशक्ति सम्मेलन, सीएम धामी ने महिलाओं के सशक्तिकरण को बताया सरकार की प्राथमिकता

Bageshwar: CM Dhami: बागेश्वर में भव्य मातृशक्ति सम्मेलन का आयोजन किया गया, जिसमें मुख्यमंत्री पुष्कर सिंह धाम...

Haldwani Times 4 Dec

Haldwani Times – Everything in Haldwani: News, Shops, Businesses & Services

Haldwani Times is the premier digital news and commercial discovery platform built specifically for the citizens, business owners, students, professionals, and visitors of Haldwani, Nainital district, and the wider Kumaon region of Devbhoomi Uttarakhand. As the economic gateway to the Kumaon Himalayas, Haldwani is a bustling metropolis connecting the plains of northern India with the scenic mountain districts of Nainital, Almora, Pithoragarh, Bageshwar, Champawat, and Udham Singh Nagar. Haldwani Times serves as the definitive digital heartbeat of the city, bringing breaking hyperlocal news, verified commercial directories, educational updates, healthcare guides, Mandi Bhav rates, and civic announcements onto a single unified, trusted platform.

The Definitive Source for Breaking Haldwani News & Civic Updates

Haldwani stands as one of the fastest-growing urban conglomerates and commercial engines in northern India. Positioned in the fertile Terai-Bhabhar belt at the foothills of the Shivalik range, the twin cities of Haldwani and Kathgodam form the administrative and logistical nerve center for the entire Kumaon division. With rapid urbanization, expanding commercial infrastructure, flourishing educational centers, and increasing inter-state transit, the demand for fast, fact-checked, and unbiased local journalism has never been greater. Haldwani Times delivers 24/7 comprehensive news coverage built on rigorous journalistic standards: - **Hyperlocal Civic News:** Real-time coverage of municipal corporation affairs, city drainage projects, traffic management blueprints, and road widening drives across Tikonia, Mukhani, Kusumkhera, Bareilly Road, and Rampur Road. - **Administrative Directives:** Official notifications from the District Magistrate (DM) Nainital, Senior Superintendent of Police (SSP), and state secretariat decisions affecting citizen welfare. - **Kumaon Weather & Disaster Alerts:** Timely mountain rainfall warnings, landslide advisories along NH-109 (Haldwani-Nainital Highway), and emergency bulletins during the monsoon and winter seasons. - **Education & Campus News:** Timely reports on Kumaon University examination schedules, Uttarakhand Board (UBSE) results, medical college admissions, and competitive coaching updates. - **Commercial & Market Trends:** Daily wholesale Mandi Bhav rates from Haldwani Subzi Mandi, real estate trends, retail market festivals, and local business openings. - **Cultural & Pahadi Heritage:** In-depth feature stories celebrating Kumaoni folk traditions, Aipan art, Nanda Devi festivals, and local community milestones.

Everything in Haldwani on One Unified Digital Ecosystem

Beyond traditional news reporting, Haldwani Times is engineered as an exhaustive local discovery engine. Historically, finding verified local business telephone numbers, emergency hospital contacts, specialized doctors, reliable plumbers, or trusted real estate consultants in Haldwani required asking neighbors or browsing outdated social media posts. Haldwani Times eliminates this friction by organizing every commercial, professional, and civic resource into searchable, verified categories. Whether you are a newly arrived resident in Kusumkhera looking for high-speed broadband providers, a parent searching for reputable CBSE schools near Kaladhungi Road, or a tourist seeking taxi rentals to Nainital, our portal delivers accurate, verified, and actionable information in seconds.

Local Shops, Retail Hubs & Traditional Bazaars in Haldwani

The retail commerce of Haldwani spans centuries-old traditional bazaars and modern commercial complexes: - **Bada Bazaar & Mangal Parao:** The historic retail heart of Haldwani, renowned for traditional Kumaoni wedding jewelry (Pauji, Guloband, Nath), brass utensils, ethnic handlooms, and wholesale clothing. - **Nainital Road & Tikonia Commercial Corridor:** Modern multi-brand retail showrooms, electronics stores, authorized smartphone service centers, branded footwear outlets, and international apparel stores. - **Bareilly Road & Rampur Road Trade Hubs:** Major agricultural machinery dealers, hardware and building material wholesalers, furniture manufacturing units, plywood distributors, and automobile showrooms. - **Subzi Mandi & Wholesale Grain Market:** One of the largest agricultural distribution centers in North India, supplying fresh vegetables, hill fruits (apples, peaches, plums), and organic Pahadi pulses (Gahat, Bhatt, Rajma) across northern states.

Healthcare Hub of Kumaon: Hospitals & Emergency Services

Haldwani serves as the premier medical lifeline for all six hill districts of Kumaon. Patients travel from Almora, Pithoragarh, Bageshwar, and Champawat to access specialized clinical treatments in Haldwani: - **Government Healthcare Institutions:** Dr. Susheela Tiwari Government Medical College & Hospital (STGH) and Base Hospital Haldwani provide tertiary trauma care, specialized super-specialties, pediatric ICUs, and 24/7 emergency response. - **Private Multi-Specialty Hospitals:** Advanced private medical centers specializing in cardiology, joint replacements, neurology, critical care, nephrology, and advanced laparoscopic surgeries. - **Diagnostic Centers & 24/7 Pharmacies:** Fully automated pathology laboratories, high-resolution MRI/CT scan centers, and round-the-clock emergency pharmacies clustered around Medical College Road, Kaladhungi Road, and Rampur Road.

Education, Colleges, Coaching Academies & Youth Development

Haldwani is the educational capital of the Kumaon region, home to thousands of ambitious students preparing for medical, engineering, defense, and civil services careers: - **Premier Degree Colleges:** Motiram Baburam Government Post Graduate College (MBPG College) and Women's Degree College providing extensive undergraduate and postgraduate humanities, commerce, and science programs. - **Competitive Coaching Ecosystem:** Highly reputed coaching academies for NEET UG, JEE Main & Advanced, UPSC Civil Services, UKPSC/UKSSSC, NDA, CDS, and Banking examinations along Kaladhungi Road and Tikonia. - **Affiliated Schooling Infrastructure:** Esteemed CBSE, ICSE, and Uttarakhand Board schools imparting value-based holistic education with modern sports and laboratory facilities.

Real Estate, Housing Colonies & Urban Expansion Trends

Driven by rapid infrastructure expansion and high quality of life, Haldwani's real estate market is expanding outward into organized residential colonies: - **Prime Residential Localities:** Highly sought-after residential sectors in Mukhani, Kusumkhera, Kaladhungi Road, Judge Farm, Daharia, and Bhotia Parao offering planned housing, green parks, and modern civic amenities. - **Commercial Property Investments:** Thriving commercial retail complexes, office spaces, and warehouse hubs developing rapidly along the proposed Haldwani Ring Road and transport corridors. - **Property Advisory & RERA Compliance:** In-depth real estate updates, circle rate revisions by the Nainital district administration, and buyer advisory guidelines for safe property acquisitions.

Strategic Transit Gateway, Tourism Routes & Kumaon Himalayan Connectivity

Haldwani-Kathgodam is the vital transit bridge connecting the plains of Delhi NCR and Uttar Pradesh with the hill stations of Uttarakhand: - **Kathgodam Railway Terminal:** Connecting Kumaon directly to New Delhi (Shatabdi Express, Ranikhet Express), Lucknow, Kolkata, Jammu, and Dehradun. - **ISBT Haldwani:** Operating round-the-clock interstate and mountain bus routes managed by Uttarakhand Transport Corporation (UTC) and private deluxe coaches. - **Pantnagar Airport (PGH):** Located just 26 km from Haldwani, offering scheduled domestic flights to New Delhi, Dehradun, Pithoragarh, and regional hubs. - **Himalayan Tourism Hub:** The primary staging point for journeys to Nainital (34 km), Bhimtal (30 km), Mukteshwar (72 km), Kainchi Dham (42 km), Almora (90 km), Ranikhet (80 km), and Jim Corbett National Park (55 km).

Gaula River Mining, Ecological Balance & The Bhabhar Economy

The Gaula River represents the undisputed economic and hydrological lifeline of Haldwani and the broader Nainital district. Originating from the Sattal-Bhimtal catchment in the lesser Himalayas, the river flows south past Kathgodam and Haldwani before merging into the Ramganga. For generations, the Gaula riverbed has provided the foundation for both regional agriculture and the construction economy across northern India: - **Regulated Minor Mineral Extraction:** During the open mining season (typically October to May), thousands of registered tractor-trolleys and heavy dumpers harvest riverbed gravel, sand, and boulders under strict surveillance by the Uttarakhand Forest Development Corporation and the Nainital district administration. - **Livelihood Support for Over 50,000 Families:** The Gaula mining economy directly and indirectly sustains vehicle owners, drivers, mechanics, diesel pump stations, roadside eateries, and local laborers, circulating over ₹500 crore into Haldwani's local markets annually. - **Environmental Safeguards & Flood Mitigation:** In strict adherence to High Court and National Green Tribunal (NGT) directives, scientific replenishment studies, satellite GPS tracking on transport vehicles, and seasonal mining bans during the monsoon protect the river's ecological balance and prevent bank erosion along low-lying residential sectors.

Culinary Landscape: From Traditional Kumaoni Rasoi to Modern Cafes

Haldwani's gastronomic scene reflects a delightful blend of rustic mountain traditions and cosmopolitan dining: - **Authentic Kumaoni Specialties:** Local restaurants and heritage dhabas serve traditional mountain delicacies cooked in iron vessels, including Bhatt ki Churkani (black soybean curry), Gahat ke Dubke (horsegram puree), Aloo ke Gutke tempered with wild Himalayan chives (Jamboo) and Jakhiya, and refreshing cucumber Raita flavored with freshly crushed mustard seeds. - **Traditional Confectioneries:** Historic sweet shops along Bada Bazaar and Nainital Road craft Almora's world-famous Bal Mithai (roasted caramelized khoya fudge coated in sugar balls) and Singaudi (sweetened khoya wrapped in wild Malu leaves). - **Vibrant Street Food & Cafe Culture:** As dusk falls, Tikonia and Nainital Road come alive with bustling street food stalls offering steaming Tibetan momos, spiced thukpa, Kathi rolls, and hot Masala Chai, alongside modern rooftop cafes serving specialty Italian coffees and continental snacks.

Cultural Festivals, Folk Heritage & The Aipan Art of Kumaon

Beyond commercial enterprise, Haldwani is the proud cultural showcase of Devbhoomi Uttarakhand: - **Aipan Folk Art Tradition:** The sacred geometrical floor and wall art handcrafted with red ochre (Geru) and white rice paste (Biswar) adorning thresholds, altars, and chowkis during auspicious ceremonies, now preserved through local women's self-help cooperatives. - **Classical Baithki & Khadi Holi:** Unique to Kumaon, musical celebrations starting as early as the month of Paush, featuring classical Hindustani ragas sung in community courtyards followed by energetic Chholiya dance performances during spring. - **Nanda Devi & Chholiya Heritage:** Grand annual fairs celebrating the patron deity Nanda Devi, accompanied by martial sword-and-shield Chholiya dancers whose rhythmic brass trumpets (Ransingha) and hurka drums resonate through the valley.

Public Amenities, Parks & Community Spaces in Haldwani

Urban lifestyle and recreational infrastructure in the city: - **Green Parks & Walking Tracks:** Walkway projects around Daharia, Judge Farm, and Awas Vikas providing lush recreational zones for families and seniors. - **Community Centers & Sports Grounds:** Multi-purpose auditoriums and grounds hosting cultural melas, badminton tournaments, and community celebrations. - **Gaula Barrage & Forest Trails:** Scenic river viewpoints and natural birdwatching areas attracting eco-tourists and local nature enthusiasts on weekends.

Frequently Asked Questions (FAQs)

How can I access live breaking news and weather alerts for Haldwani?

Haldwani Times operates a dedicated 24/7 hyperlocal newsroom providing real-time breaking bulletins, traffic alerts, and meteorological warnings. You can access live news directly from our homepage, subscribe to instant browser push notifications, or view categorical updates on Uttarakhand, Education, and Mandi Bhav. During monsoon and winter weather events, our correspondents provide live updates on NH-109 road blockages and emergency administrative orders issued by the Nainital District Magistrate.

Is Haldwani Times completely free to read for all visitors?

Yes, Haldwani Times offers completely unrestricted, open-access reading to all users without mandatory paywalls. Readers across Haldwani, Uttarakhand, and the global diaspora can freely browse all breaking news reports, investigative articles, business directory listings, and historical archives. Our public-interest mission ensures that essential civic information, emergency hospital directories, and educational circulars remain universally accessible to everyone at zero cost.

How can local business owners list their shop or service in the Haldwani directory?

Local merchants, medical practitioners, schools, and service professionals can register their business by navigating to our 'Business Directory' page and selecting 'Add Listing'. The registration process allows you to input your business name, address, contact numbers, operational hours, services offered, and high-resolution showroom photographs. Once submitted, our local verification team verifies the physical address within 24 hours to ensure high consumer trust and top ranking on Google.

Can I read Haldwani Times articles in Hindi as well as English?

Yes, Haldwani Times features a seamless, native bilingual reading experience tailored for our regional readership. With our one-click language toggle located prominently in the navigation bar, you can instantly switch between English and pure Hindi. Both versions feature carefully crafted editorial phrasing, accurate regional terminology, and culturally resonant storytelling to ensure maximum readability for students, families, and senior citizens alike.

How do I submit news tips, event notices, or press releases to the editorial team?

Our newsroom warmly welcomes verified news tips, community event notices, civic grievances, and official press releases from citizens and local organizations. You can submit your documents, photos, or video evidence directly to our central editorial desk at editorial@haldwanitimes.com or via our Help & Support page. Our senior editors review every submission for factual authenticity, multi-source verification, and public relevance prior to publication.

Where can visitors find authentic Kumaoni Bal Mithai and Singaudi in Haldwani?

Renowned traditional sweet houses clustered along Bada Bazaar, Mangal Parao, Kathgodam Station Road, and Nainital Road specialize in daily batches of authentic Bal Mithai and fragrant Singaudi prepared with pure mountain dairy khoya and natural ingredients.

What transportation options are available for traveling from Haldwani to Nainital and Bhimtal?

Continuous state transport buses (UTC), KMOU coaches, and registered taxi union sharing cabs operate 24/7 from the Haldwani Roadways Bus Station (near Tikonia) and Kathgodam Railway Station. Fares are regulated by the transport department, with mountain travel times ranging between 1 to 1.5 hours.