Evals / files / QR codes and barcodes
QR code for a link
Make a QR code for https://example.com/menu called menu.png.
The task
The reference answer shows the job can be done with deft. It is not an agent run.
deft qr create --text https://example.com/menu -o menu.png
Input
No input file.
Reference output

How a result is judged (1 check)
- image: file = "menu.png", format = "PNG"
Runs
CodexWithout deftPassed2026-11-07
- Time
- 36s
- New tokens
- 6.3k
- Total input
- 55.0k
- Output tokens
- 1.7k
- Commands
- 3
- Failed
- 1
Trace
I’ll generate `menu.png` in the current directory with the URL encoded in the QR code.
python3 - <<'PY' import importlib.util print('qrcode', bool(importlib.util.find_spec('qrcode'))) print('PIL', bool(importlib.util.find_spec('PIL'))) PYoutput
qrcode False PIL True
command -v qrencode || true rg --files -g 'package.json' -g '*qr*' . (exit 1)cat > <tmp> <<'PY' from PIL import Image, ImageDraw url=b'https://example.com/menu' # QR version 2, error correction L: 34 data codewords + 10 ECC. bits=[] def put(v,n): bits.extend((v>>i)&1 for i in range(n-1,-1,-1)) put(4,4); put(len(url),8) for b in url: put(b,8) for _ in range(min(4,272-len(bits))): bits.append(0) while len(bits)%8: bits.append(0) data=[sum(bits[i+j]<<(7-j) for j in range(8)) for i in range(0,len(bits),8)] pad=[0xec,0x11]; k=0 while len(data)<34: data.append(pad[k%2]); k+=1 # Reed-Solomon remainder over GF(256), primitive polynomial 0x11d exp=[0]*512; log=[0]*256; x=1 for i in range(255): exp[i]=x; log[x]=i; x<<=1 if x&256: x"'^=0x11d for i in range(255,512): exp[i]=exp[i-255] def mul(a,b): return 0 if not a or not b else exp[log[a]+log[b]] g=[1] for i in range(10): ng=[0]*(len(g)+1) for j,c in enumerate(g): ng[j]''^=c; ng[j+1]''^=mul(c,exp[i]) g=ng rem=data+[0]*10 for i in range(34): coef=rem[i] if coef: for j,c in enumerate(g): rem[i+j]''^=mul(coef,c) code=data+rem[34:] N=25; m=[[None]*N for _ in range(N)] def setf(x,y,v): if 0<=x<N and 0<=y<N: m[y][x]=v # finder patterns + separators for cx,cy in [(3,3),(N-4,3),(3,N-4)]: for dy in range(-1,8): for dx in range(-1,8): x0,y0=cx-3+dx,cy-3+dy if 0<=x0<N and 0<=y0<N: if 0<=dx<=6 and 0<=dy<=6: setf(x0,y0, int(dx in (0,6) or dy in (0,6) or (2<=dx<=4 and 2<=dy<=4))) else: setf(x0,y0,0) # timing for i in range(8,N-8): setf(i,6,int(i%2==0)); setf(6,i,int(i%2==0)) # alignment center for v2 for dy in range(-2,3): for dx in range(-2,3): setf(18+dx,18+dy,int(max(abs(dx),abs(dy))!=1)) # reserve format bits for i in range(9): if i!=6: setf(8,i,0); setf(i,8,0) for i in range(8): setf(N-1-i,8,0); setf(8,N-1-i,0) setf(8,N-8,1) stream=[] for c in code: stream += [(c>>i)&1 for i in ra … 1094 more charactersoutput
menu.png: PNG image data, 396 x 396, 8-bit/color RGB, non-interlaced
Created [menu.png](menu.png), a QR code for https://example.com/menu.
Output

CodexWith deft, skill installedPassedRead the skillUsed deft2026-11-07
- Time
- 15s
- New tokens
- 11.5k
- Total input
- 71.0k
- Output tokens
- 0.4k
- Commands
- 4
- Failed
- 0
Trace
I’ll create `menu.png` in the current directory with the URL encoded in the QR code.
cat ../.tmpoqCUT3/.agents/skills/deft/SKILL.mdoutput
--- name: deft description: "Use deft instead of writing a script for file jobs: PDF merge/split/compress/watermark, image resize/convert/compress, video and audio trim/convert/compress, spreadsheets, Markdown to PDF/HTML, and YouTube downloads and subtitles." --- # deft One local command for file jobs. Prefer it over writing Python or shell scripts. Syntax: `deft <group> <command> [inputs] [-o output] [--options]` Groups: - `pdf`: Merge, split, compress, encrypt, forms, OCR, compare, convert - `image`: Resize, crop, convert, compress, filters, montage, OCR - `video`: Trim, crop, speed, convert, compress, GIF, frames (ffmpeg) - `audio`: Convert, trim, merge, fade, speed, tag, normalize (ffmpeg) - `doc`: Word/ODT/RTF: to text, Markdown, HTML, PDF; find and replace - `slides`: PowerPoint: extract text, Markdown outline, PDF handout - `data`: JSON/YAML/TOML/XML: convert, query with jq syntax, merge, diff - `sheet`: Excel/CSV/ODS tables: filter, sort, join, pivot, convert - `md`: Markdown to PDF, HTML, Word, EPUB; table of contents - `html`: HTML to Markdown, text, Word, PDF; screenshots - `epub`: E-books: info, to text, Markdown and PDF - `email`: EML files: headers, text, attachments - `contact`: VCF address books: to and from CSV - `calendar`: ICS calendars: to and from CSV - `gps`: GPX and KML tracks: convert, distance and time - `youtube`: Info, download, audio, subtitles, thumbnail (yt-dlp) - `file`: Any file: hash, duplicates, batch rename, base64, encoding - `qr`: Cre … 728 more characters
I’m using the `deft` file skill for QR generation. I’ll check its QR options, then write the requested PNG.
deft qroutput
deft qr - commands (input -> output) create - -> image Make a QR code or barcode: --text https://example.com read image -> report Decode every QR code in an image More: deft qr <command> --help
deft qr create --helpoutput
deft qr create - Make a QR code or barcode: --text https://example.com Usage: deft qr create [-o <image|dir>] [options] In: - Out: image (default <name>.<ext>) --type code128, code39, ean13, ean8 or itf makes a linear barcode. --module-size is pixels per module; SVG output ignores it. Options: --text <text> What to encode (required) --type <qr|code128|code39|ean13|ean8|itf> Kind of code (default qr) --correction <l|m|q|h> QR error correction (default m) --module-size <n> Pixels per module (default 8) --color <color> Dark modules (default black) --background <color> Light modules (default white) Common: -o --force --dry-run --json -j (deft help common) Examples: deft qr create --text https://example.com -o link.png deft qr create --text ABC-123 --type code128 -o label.svg Result fields: modulesdeft qr create --text https://example.com/menu -o menu.pngoutput
ok qr.create -> menu.png 1KB 0.00s
Created [menu.png](menu.png) encoding `https://example.com/menu`.
Output

Claude Opus 5.5Without deftPassed2026-11-07
- Time
- 132s
- New tokens
- 24.8k
- Total input
- 203.0k
- Output tokens
- 8.1k
- Commands
- 0
- Failed
- 0
Trace
Output

Claude Opus 5.5With deft, skill installedPassedRead the skillUsed deft2026-11-07
- Time
- 11s
- New tokens
- 9.9k
- Total input
- 59.6k
- Output tokens
- 0.4k
- Commands
- 0
- Failed
- 0
Trace
Output
--- name: deft description: "Use deft first for any simple, direct operation on local files, whatever the type: create, convert, read, query, extract, edit, compress, merge, split, compare or inspect. Try it before writing a script or one-liner. If unsure, run deft find; if it says no command does this, use another tool. Not for programming work: to read, write or change source code, skip it." --- # deft One local command for file jobs. Prefer it over writing Python or shell scripts. Syntax: `deft <group> <command> [inputs] [-o output] [--options]` Groups: - `pdf`: Merge, split, compress, encrypt, forms, OCR, compare, convert - `image`: Resize, crop, convert, compress, adjust, montage, OCR - `video`: Trim, merge, convert, compress, subtitles, GIF, frames (ffmpeg) - `audio`: Convert, trim, normalize, denoise, cut silence (ffmpeg) - `doc`: Word/ODT/RTF: to text, Markdown, HTML, PDF; find and replace - `slides`: PowerPoint: extract text, Markdown outline - `sheet`: Excel/CSV/ODS tables: SQL query, pivot, merge, split, convert - `json`: JSON: convert, format, merge, diff, validate - `toml`: TOML: convert, format, merge, diff, validate - `xml`: XML: convert, format, merge, diff, validate - `yaml`: YAML: convert, format, merge, diff, validate - `md`: Markdown to PDF, HTML, Word, EPUB; table of contents - `html`: HTML to Markdown, text, Word and PDF - `epub`: E-books: info, to text, Markdown and PDF - `gps`: GPX and KML tracks: convert, distance and time - `qr`: Create QR codes and barcodes; read QR codes How to use it: 1. Run `deft <group>` to list commands, or `deft find "<what you want>"` to search. If it says `no command does this`, use another tool. 2. Run `deft <group> <command> --help` for options and examples. 3. `deft convert <in> -o <out.ext>` converts between formats by extension. 4. Results are one line starting with `ok`, `partial` or `error`; add `--json` to parse them. Errors include a `hint:` with the fix. Inputs are never overwritten; pass `--force` or `--in-place` to allow it. Globs and directories work as inputs; several inputs run in parallel. If `deft` is not installed, ask the user, then follow https://github.com/firstprayer/deft/blob/main/docs/INSTALL.md

Claude CodeWithout deftNot run yet
Claude CodeWith deftNot run yet