Skip to content

Cairn 0.5.0

Pre-release
Pre-release

Choose a tag to compare

@sonald sonald released this 22 Nov 05:50
· 15 commits to main since this release

Fifth preview build of Cairn, a native, read-only code reader for macOS.

Highlights since 0.4.0

  • Ask AI: an AI panel answers questions about the open snapshot with a model you configure in Settings → AI (OpenAI-compatible or Anthropic API, key kept in the Keychain). The model reads code only through Cairn's read-only tools — files, search, symbols backed by the language server where available, and Git history. Its reading steps fold into one line above the answer, and every cited path:line opens in the reader. Select code and press ⌘I (or click the gutter icon) to ask about that code; the Resolution Inspector moves to ⌥⌘I.
  • File Guide: a Guide panel follows the open file and writes how it is put together — flows with step-by-step playback in the reader, the role of each part, a sequence diagram and follow-up questions. Every code anchor is checked against the file's real lines. Guides are saved locally by file content and marked out of date when the file changes.
  • Overview is now a skeleton for Rust and Python: functions on the file's main line keep their key statements, the others shrink to signatures, all in source order and numbered with their source lines. Clicking a line number reads that line in Full. With a Jev key saved in Settings → AI, TypeSafe's Jev helps choose what the skeleton keeps.
  • The overview ruler can color lines by Git change age (optional, in Settings), and hovering it previews the code.
  • Markdown previews keep embedded HTML headings, paragraphs and tables.

Network: Cairn still makes no network access by default. AI questions and guides go only to the address you configure, after you allow it for each project (a model on localhost is not asked about). Overview sends a file's code (comments and docstrings removed) to api.typesafe.ai only when a Jev key is saved.

Requirements: macOS 14 or later, Apple silicon (arm64).

Install: unzip Cairn-0.5.0-macOS-arm64.zip and move Cairn.app to Applications.

First launch: this build is ad-hoc signed and not notarized, so macOS will block it the first time. Either right-click Cairn.app and choose Open, or run:

xattr -dr com.apple.quarantine /Applications/Cairn.app

Verify the download with shasum -a 256 -c Cairn-0.5.0-macOS-arm64.zip.sha256.

Homepage: https://cairn.sonald.me