Strap in!
pipx install qor-harness

Core strength for your agents. Your tests. Your models.

qor harness puts a coding agent where you already work: in the terminal, with your project in front of it. It's pronounced “core”.

Linux, macOS and Windows 11 · Python 3.12 or newer · or uv tool install qor-harness

First launch, recorded in a terminal. Pick “Ollama, on this machine”, keep http://127.0.0.1:11434/v1, choose a default model and start.

Three lines to the starting line

Not another pile of code to copy out of a chat window. qor gives the model tools to try the change, and a test suite that doesn't care how confident the answer sounds. Read the code. Make the change. Run the tests. Keep moving.

$ pipx install qor-harness
$ cd /path/to/your/project
$ qor

The first launch walks you through connecting a model and choosing a default. Bring a model server you already run, or an account you already have. qor never downloads a model or installs a server behind your back.

Then give it a real job:

Find out why this test is failing. Read the relevant code, make the smallest fix, and run the test again. Tell me what changed and what you checked.

The model is the jet engine. This is the cockpit.

qor starts in your project directory and reads its AGENTS.md. When a test fails again, the failure goes straight back to the model for the next try, and you see the command and its output as it happens.

Real tools

read, search, edit, write, fetch and bash, or pwsh on Windows. fetch reads web pages as Markdown and shows images right in the transcript.

Steer or stop

If a two-line fix starts turning into a refactor, type a follow-up. It reaches the model after the current step. Esc or Ctrl+C stops the run.

Background jobs

Long builds and test suites run in the background without holding up the conversation. qor tells the model when they finish. /jobs shows the log.

Pick up where you left off

Every session is saved as it goes. /resume brings one back, including the finished steps of a run you cancelled.

No TUI needed

qor run "Explain how to run this project's tests." prints the final reply. Add --jsonl to stream every event to a script.

Plugins

Turn on web search (DuckDuckGo, SearXNG or Brave) in /plugins, or write your own tools and status lines in plain Python.

Never compact again

You know the story. Your local model is close to a solution, and then: compaction time. See you in a few minutes, and the model has forgotten what it just learned.

Coding sessions collect baggage: test output, file listings, the same file read three times. It's useful when it arrives and dead weight in every request after. The usual fix asks the model to summarize the conversation. That costs a request, and the summary can drop the one error message you need later. qor files the old output away instead.

Deterministic Context Management

DCM turns older tool output into a one-line note with a recall ID. A 400-line test run becomes a stub, and the full text stays in the session journal, one recall away. Filing costs no model request, and your messages and the model's replies never change.

Adaptive Context Management

ACM lets the model choose. As context fills, qor gives it a heads-up to pick what to file away. The model's own note and the recall ID stay in view. If that isn't enough, DCM clears more space. Turn it on per model in /model edit.

Forget about forgetting

Three models, an in-depth task and a small context. Each fixed two bugs in a sample inventory app, added features to a spec and wrote tests. The last prompt asked for a report from the session: the original test failures word for word, the numbers, and every changed file.

−68%uncached input and output tokens, Qwen 3.8 with DCM
3×faster than traditional compaction on the same task
94.3%prompt cache reuse across a 105M-token local session
ModelModeRequests Uncached input + outputTimeReport correct
Qwen 3.8 27B IQ3Traditional compaction77681K1h 16m0/1
Qwen 3.8 27B IQ3DCM60 −22%220K −68%23m 15s −69%1/1 pass
Qwen 3.8 27B IQ3ACM49 −36%230K −66%25m 58s −66%1/1 pass
Particle-1Traditional compaction77240K4m 26s2/3
Particle-1DCM65 −16%203K −15%3m 38s −18%3/3 +33 pp
Particle-1ACM65 −16%158K −34%3m 54s −12%3/3 +33 pp
GPT-6.1 TerraTraditional compaction45132K4m 46s3/3
GPT-6.1 TerraDCM41 −9%73K −45%3m 13s −33%3/3
GPT-6.1 TerraACM39 −13%86K −35%3m 20s −30%3/3

Traditional compaction burned 232K output tokens on 12 summaries for Qwen and still lost both original test failures. DCM and ACM both got the report right. /search finds anything in a session, even after it's filed, and /recall opens the original.

Bring your model

qor isn't tied to one vendor. Pick a model on first launch, add more with /providers add, and switch mid-conversation with /model.

  • OllamaYour server at 127.0.0.1:11434. No key. qor finds your models and what they support.
  • llama.cppllama-server on 127.0.0.1:8080, or behind an HTTPS proxy or a router.
  • OpenAI APIWith a key in OPENAI_API_KEY.
  • Google AI StudioGemini, with a key in GEMINI_API_KEY.
  • OpenRouterWith a key in OPENROUTER_API_KEY. /stats shows costs and credit left.
  • Any OpenAI-compatible serverType its address and key, plus custom auth headers if it needs them.
  • ChatGPT planqor login signs in with your ChatGPT account. Your subscription, not API billing.
  • Google AI Pro planqor login google runs through the official agy CLI. No API key.

Your terminal. Real permissions.

qor runs with your user account's permissions. By default it edits files and runs commands without asking each time. For a more careful first run:

$ qor --review

Review mode shows the full diff or command before it runs, and you approve or deny it. It is not a sandbox. qor --chat turns workspace tools off for planning.

With a hosted model, file excerpts and command output in the model's context go to that provider, and the local session journal keeps them too. Keep that in mind before you point qor at a project with secrets.

Commands you'll use

/model
Switch models. Ctrl+S saves the default.
/thinking
Pick a reasoning level, or press Shift+Tab.
/resume
Continue a saved session.
/search
Find words anywhere in the session.
/recall
Open a filed result in full.
/stats
Tokens, time and rework for a session.
/jobs
List, tail or stop background commands.
/plugins
Choose tools and status lines.
/chat, /coding
Plan without tools, then switch back.
/paste
Attach a screenshot from the clipboard.

Type / for the full menu, and /help for keys.

Strap in!

pipx install qor-harness

Already installed? pipx upgrade qor-harness. Want the opening titles again? qor --intro.