Skip to content

Add the reader and the writer of QOI - #6

Closed
beetlebugorg wants to merge 1 commit into
mainfrom
issue-2
Closed

beetlebugorg wants to merge 1 commit into
mainfrom
issue-2

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

Fixes #2

3 files changed, 387 insertions(+). The new file has 9 unit tests: a round trip, each variant, the limits, a cut at each byte, and corrupt fields.

An agent on the Ergo model wrote this change in a sandbox with no network. The coordinator read the code and ran the checks.

Ran: zig build test (pass), zig fmt --check build.zig src, and a build for wasm32-freestanding.
Did not run: macOS and Windows, which the CI of this PR runs.

Cost of the agent (model: Ergo 1.0 on Bedrock)

Item Tokens USD
input 172 0.0002
output 42192 0.1392
cache read 240919 0.0080
cache write 60531 0.0832
Total 0.2306
Model calls Wall time In model calls In tools
44 17 min 39 s 15 s 0 s

The harness counted the cache tokens only for the last part of the run, so the cache rows and the total are too low. The output row is complete.

@beetlebugorg beetlebugorg added this to the v0.1.0 milestone Dec 3, 2026
@beetlebugorg beetlebugorg added the ergo Work of an agent on the Ergo model label Dec 3, 2026
@beetlebugorg

Copy link
Copy Markdown
Owner Author

The commit of this PR went to main with the rebase merge of PR 7, which had this branch under it. The tree of main is equal to the tree that the CI of PR 7 tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ergo Work of an agent on the Ergo model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formats: read and write QOI

1 participant