Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ jobs:
printf '## Install\n\n'
printf 'macOS and Linux:\n\n```\ncurl -fsSL https://github.com/%s/releases/latest/download/install.sh | sh\n```\n\n' "$GITHUB_REPOSITORY"
printf 'Windows (PowerShell):\n\n```\nirm https://github.com/%s/releases/latest/download/install.ps1 | iex\n```\n\n' "$GITHUB_REPOSITORY"
printf 'Already installed? Run `quill update`, or `quill update <version>` to switch to another release.\n'
printf 'Already installed? Run `quill update`, or `quill update <version>` to switch to another release.\n\n'
} > ../notes.md
for id in $(gh api "repos/$GITHUB_REPOSITORY/releases" --paginate --jq ".[] | select(.draft and .tag_name == \"$TAG\") | .id"); do
echo "Replacing the earlier draft of $TAG"
gh api -X DELETE "repos/$GITHUB_REPOSITORY/releases/$id"
done
gh release create "$TAG" * --repo "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" --title "Quill Code $TAG" --notes-file ../notes.md --draft
gh release create "$TAG" * --repo "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" --title "${TAG#v}" --notes-file ../notes.md --generate-notes --draft
15 changes: 15 additions & 0 deletions .github/workflows/verify-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ on:
required: true

jobs:
attestation:
runs-on: ubuntu-latest
permissions:
contents: read
attestations: read
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.event.release.tag_name || inputs.version }}
steps:
- run: |
tag="v${TAG#v}"
gh release verify "$tag" --repo "$GITHUB_REPOSITORY"
gh release download "$tag" --repo "$GITHUB_REPOSITORY" --pattern SHA256SUMS --dir dist
gh release verify-asset "$tag" dist/SHA256SUMS --repo "$GITHUB_REPOSITORY"

install:
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ A terminal coding agent for local models. The binary is `quill`; the assistant i

CI (`.github/workflows/ci.yml`) builds, lints with `-D warnings` and tests on Windows, Linux and macOS, packs and installs a debug build with both install scripts, and runs `cargo deny check` once. All must stay green.

Releases (`.github/workflows/release.yml`) run on every push to `main` whose workspace version has no published release. The version needs a `## [<version>] - <YYYY-MM-DD>` section in `CHANGELOG.md`, whose body becomes the release notes. Windows (x64), Linux (x64 and ARM, static musl) and both macOS targets are built, packed by `scripts/package.sh` as `quill-<version>-<target>` with a checksum, and attached with `SHA256SUMS`, `install.sh` and `install.ps1` to a draft release `Quill Code v<version>` tagged `v<version>`. Merging again with the same version rebuilds and replaces the draft. It is published by hand, which runs `verify-release.yml`: it installs the release on every system and checks `quill --version`, `quill update` and `quill versions`. Keep the archive names and `SHA256SUMS` as they are, because `quill update <version>` installs old releases with the newest installer.
Releases (`.github/workflows/release.yml`) run on every push to `main` whose workspace version has no published release. The version needs a `## [<version>] - <YYYY-MM-DD>` section in `CHANGELOG.md`, whose body becomes the release notes. Windows (x64), Linux (x64 and ARM, static musl) and both macOS targets are built, packed by `scripts/package.sh` as `quill-<version>-<target>` with a checksum, and attached with `SHA256SUMS`, `install.sh` and `install.ps1` to a draft release named `<version>` and tagged `v<version>`. Its notes are the changelog section and the install commands, followed by GitHub's generated "What's Changed" and "Full Changelog". Merging again with the same version rebuilds and replaces the draft. It is published by hand, which runs `verify-release.yml`: it checks the release's attestation with `gh release verify` and `SHA256SUMS` against it with `gh release verify-asset`, installs the release on every system and checks `quill --version`, `quill update` and `quill versions`. The repository has immutable releases turned on, so a published release's files and tag can never change: everything must be attached while it is a draft, and a broken release is fixed with a new version. Keep the archive names and `SHA256SUMS` as they are, because `quill update <version>` installs old releases with the newest installer.

## Rules that do not bend

Expand Down
32 changes: 28 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.1] - 2026-10-19

### Changed

- Releases are named by their version alone, and their notes end with GitHub's list of what changed and a link to the full comparison with the previous release.
- `quill versions` lists each release's version and date without repeating its name.
- Dependencies are updated to their newest versions, including the bundled root certificates.
- `read_file` lists what a folder contains when it is given a folder, and calls to `list_dir`, `list_files` or `ls` go to it.
- Reading a path that does not exist opens the file when exactly one file in the project has that name; otherwise the error names the files with that name, or shows what the nearest folder contains.
- When `find_files`, or `grep` with a file filter, finds nothing, the reply lists the kinds of files the folder has, so a model that guessed the wrong language corrects itself.
- When an edit's text is not in the file, the error names the lines that are missing and shows the file's current lines at that spot, ready to copy.
- A failed PowerShell command that used `&&`, a Unix command such as `grep`, `head` or `touch`, or a Unix flag such as `rm -rf` now ends with the PowerShell way to do it.
- After renaming, moving or deleting something, Quill searches for the old name to make sure nothing still uses it.

### Fixed

- Glob patterns with a brace group, such as `**/*.{js,ts}`, no longer fail in `find_files` and `grep`.
- Writes and edits that would replace real code with a placeholder such as `// ... existing code ...` are refused instead of deleting that code.
- An edit that would leave a file unchanged now says so instead of reporting a change, and rewriting a file with its current content no longer asks for approval.
- Reading a file with very long lines, such as minified code, no longer floods the model's context.
- Tool arguments that arrive encoded twice, wrapped in an extra object, followed by stray characters, or with lists sent as text are read correctly.
- Text a model sends with escaped line breaks (`\n`) instead of real ones is written and matched as intended.

### Security

- Releases are immutable from 1.0.1 on: once published, their files and tag can never change, and each one carries a signed attestation. Check a download with `gh release verify-asset v1.0.1 <file>`.

## [1.0.0] - 2026-10-19

### Added
Expand Down Expand Up @@ -60,7 +87,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Isolated copies (git worktrees) so parallel threads never collide.
- A commit dialog that can push, open a pull request page or publish a new GitHub repository, and new projects that can start on GitHub with a first branch of your choosing.
- Slash commands, @ file mentions, image and file attachments with previews, pinned models with Ctrl+1 to 9, a context ring, a PowerShell drawer and saved history.
- Models, context windows, vision and thinking controls detected from the server.

[unreleased]: https://github.com/Smoffyy/quill-code/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/Smoffyy/quill-code/releases/tag/v1.0.0
- Models, context windows, vision and thinking controls detected from the server.
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "3"
members = ["crates/*"]

[workspace.package]
version = "1.0.0"
version = "1.0.1"
edition = "2024"
license = "MIT"
authors = ["Smoffyy"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ You need Rust 1.88 or newer from [rustup](https://rustup.rs) and a C compiler: t
| `cargo deny check` | Licence and banned-crate policy (`cargo install cargo-deny`) |
| `vhs docs/demo/demo.tape` | Record the demo above again (needs [VHS](https://github.com/charmbracelet/vhs) and a running model) |

Releases come from `main`: bump `version` in `Cargo.toml`, add its section to `CHANGELOG.md`, and merge `dev` into `main`. CI builds every target into a draft release, which is published by hand once it has been tried. The architecture and conventions are in [AGENTS.md](AGENTS.md).
Releases come from `main`: bump `version` in `Cargo.toml`, add its section to `CHANGELOG.md`, and merge `dev` into `main`. CI builds every target into a draft release, which is published by hand once it has been tried. Published releases are immutable: their files and tag can never be changed, and `gh release verify-asset v<version> <file>` checks any download against the release's signed attestation. The architecture and conventions are in [AGENTS.md](AGENTS.md).

<br/>

Expand Down
6 changes: 6 additions & 0 deletions crates/quill-code/src/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ fn explored_output(tool: &ToolItem, output: &str) -> String {
let more = lines.last().and_then(|line| line.strip_prefix("... and ")?.split(' ').next()?.parse::<usize>().ok());
let found = lines.iter().filter(|line| **line != "--").count() - usize::from(more.is_some()) + more.unwrap_or(0);
match tool.tool.as_str() {
"read_file" if lines.first().is_some_and(|line| line.ends_with(" is empty.")) => "Empty folder".into(),
"read_file" if lines.first().is_some_and(|line| line.ends_with(" contains:")) => {
format!("Listed {}", plural(found - 1, "item"))
}
"read_file" => format!(
"Read {}",
plural(lines.iter().filter(|line| line.trim_start().starts_with(|c: char| c.is_ascii_digit())).count(), "line")
Expand Down Expand Up @@ -940,6 +944,8 @@ mod tests {
assert_eq!(searched("grep", "a.hx:1: sick\n--\na.hx:9: sick\n... and 4 more matches. Narrow it."), " └ Found 6 lines");
assert_eq!(searched("find_files", "No files match \"*.hx\". Use grep."), " └ No files found");
assert_eq!(searched("find_files", "a.hx\nb.hx"), " └ Found 2 files");
assert_eq!(searched("read_file", "src/ contains:\nlib/\na.js\n... and 3 more."), " └ Listed 5 items");
assert_eq!(searched("read_file", "src/ is empty."), " └ Empty folder");
}

#[test]
Expand Down
4 changes: 2 additions & 2 deletions crates/quill-code/src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub fn versions() -> u8 {
for release in &releases {
let tags = tags(release, newest.as_deref());
let tags = if tags.is_empty() { String::new() } else { format!(" ({})", tags.join(", ")) };
println!("{:<10} {:<10} {}{tags}", release.version, release.date, release.title);
println!("{:<10} {}{tags}", release.version, release.date);
}
println!("\nSwitch to one with: quill update <version>");
0
Expand Down Expand Up @@ -202,7 +202,7 @@ mod tests {
use super::*;

fn release(version: &str, prerelease: bool) -> Release {
Release { version: version.into(), title: String::new(), date: String::new(), prerelease }
Release { version: version.into(), date: String::new(), prerelease }
}

#[test]
Expand Down
1 change: 1 addition & 0 deletions crates/quill-core/src/prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ You are responsible for the code working, not only for writing it. After you cha
- Run the checks that cover what you changed: the compiler or type checker (such as cargo check, tsc --noEmit, go build or dotnet build), the linter the project already uses (such as cargo clippy, eslint or ruff), and the tests closest to your change, then the whole test suite when the change is broad.
- When a check fails, read the error, fix the cause and run the check again until it passes. Never weaken or delete a test to make it pass unless the user asks.
- When you add behaviour and the project has tests, add or update a test for it.
- After you rename, move or delete something, grep for its old name and location to make sure nothing still defines or uses it.
- Do not install new tools or dependencies only to check your work. When the project has no way to build or test the change, or a check needs something that is missing, say so instead of claiming it works.
- Before your final reply, make sure the last run of every check you used passed.";

Expand Down
43 changes: 42 additions & 1 deletion crates/quill-core/src/tools/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,39 @@ pub const BRANCH: [&str; 3] = ["branch", "branch_name", "new_branch"];
pub const TITLE: [&str; 2] = ["title", "pr_title"];
pub const BODY: [&str; 3] = ["body", "description", "pr_body"];

const WRAPPERS: [&str; 4] = ["arguments", "args", "parameters", "input"];

fn first_value(text: &str) -> Option<Value> {
serde_json::Deserializer::from_str(text).into_iter::<Value>().next()?.ok()
}

pub fn parse(arguments: &str) -> Value {
let text = arguments.trim();
if text.is_empty() {
return json!({});
}
serde_json::from_str(text).unwrap_or_else(|_| json!({ "__invalid": text }))
let mut value = match first_value(text) {
Some(value) => value,
None => return json!({ "__invalid": text }),
};
if let Some(inner) = value.as_str().and_then(first_value).filter(Value::is_object) {
value = inner;
}
if let Some(object) = value.as_object()
&& object.len() == 1
&& let Some(inner) = WRAPPERS.iter().find_map(|key| object.get(*key)).filter(|inner| inner.is_object())
{
return inner.clone();
}
value
}

pub fn list(args: &Value, keys: &[&str]) -> Option<Vec<Value>> {
keys.iter().find_map(|key| match args.get(*key)? {
Value::Array(items) => Some(items.clone()),
Value::String(text) => first_value(text.trim()).and_then(|value| value.as_array().cloned()),
_ => None,
})
}

pub fn invalid(args: &Value) -> Option<&str> {
Expand Down Expand Up @@ -54,6 +81,20 @@ mod tests {
assert_eq!(parse(""), json!({}));
}

#[test]
fn wrapped_and_encoded_arguments_are_unwrapped() {
assert_eq!(parse("{\"path\": \"a\"}}")["path"], "a");
assert_eq!(parse("{\"path\": \"a\"}</tool_call>")["path"], "a");
assert_eq!(parse("\"{\\\"path\\\": \\\"a\\\"}\"")["path"], "a");
assert_eq!(parse("{\"arguments\": {\"path\": \"a\"}}")["path"], "a");
assert_eq!(parse("{\"input\": \"text\"}")["input"], "text");
let args = json!({ "plan": "[{\"step\": \"a\"}]", "edits": [1], "content": "[1, 2]" });
assert_eq!(list(&args, &["plan"]).unwrap().len(), 1);
assert_eq!(list(&args, &["edits"]).unwrap(), vec![json!(1)]);
assert!(list(&args, &["missing"]).is_none());
assert_eq!(text(&args, &CONTENT), Some("[1, 2]"));
}

#[test]
fn lenient_keys_and_values_are_read() {
let args = json!({ "file_path": "a.rs", "start": "4", "replace_all": "true" });
Expand Down
Loading
Loading