Skip to content

v0.24.0

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Nov 12:47
· 25 commits to main since this release

What's Changed

Excalidraw

```excalidraw fences, *.excalidraw and *.excalidraw.json files now render as drawings, in Excalidraw's own fonts and hand-drawn style, with a Diagram / Source toggle. Click an element to comment on the JSON lines that define it. crit <file.excalidraw> opens the scene as an infinite canvas (pan, zoom, grid) where you can pin comments to individual elements, and sharing that review gives crit.md readers the same canvas.

  • feat(web): Excalidraw renderer, canvas preview, and shareable canvas by @ashi-2107 in #1165 - Thank you!

Choose a file's language

The new languages config maps file patterns to a Shiki grammar, to markdown (Document view) or to text (no highlighting). For example, {"languages": {"*.qmd": "markdown", "nginx/*.conf": "nginx"}}. Global and project rules merge, the most specific pattern wins, and an unknown grammar name fails at startup instead of silently falling back. Shared reviews keep the overrides. Template files such as main.py.tmpl and config.yaml.j2 are now highlighted as the language under the suffix, and Ember .gjs/.gts files use the Glimmer grammars.

Remote images

Reviewed content can be written by an agent, so the review page no longer fetches images from other hosts on its own. A remote image shows as a placeholder with its host, and clicking it loads the image in a sandboxed frame. To load images from hosts you trust automatically, add them to remote_images in ~/.crit.config.json (for example ["img.shields.io", "*.githubusercontent.com"]). This setting is global-only.

Finish prompts

A finish prompt template that fails to load or render used to fall back without warning, and could drop the unresolved comments from what the agent received. Crit now checks prompts when a review starts, warns in the terminal, and shows a banner on the review page with a Recheck button. If a prompt is still broken at Finish, Crit shows the error and keeps the review open.

  • fix(prompt): validate finish prompts and report missing-key errors (#1187) by @zerone0x in #1187 - Thank you! Thank you @kado-ta for reporting!

CLI and sessions

Review page

Internal refactors

New Contributors

Full Changelog: v0.23.3...v0.24.0