Skip to content
Ant

Documentation

Inside the nest

Everything Ant does, one chamber at a time.

01

Download Ant

Get the latest version from GitHub Releases:

  • macOS: Ant_x.y.z_universal.dmg (Apple Silicon and Intel). Open it and drag Ant to Applications.
  • Windows: Ant_x.y.z_x64-setup.exe or the .msi.
  • Linux: .AppImage, .deb (Debian, Ubuntu) or .rpm (Fedora).

Ant is not signed by Apple or Microsoft, so the first time the system warns you. On macOS: try to open it, then go to System Settings → Privacy & Security → Open Anyway. On Windows: More info → Run anyway. On Windows and Linux shortcuts use Ctrl where this guide says Cmd.

Every change is listed in the CHANGELOG.

Build it from source

You need:

  • Rust (stable)
  • Node.js 22 or newer and pnpm
$ git clone https://github.com/Caracolaracol/ant.git
$ cd ant
$ pnpm install
$ pnpm tauri build

The installers end up in src-tauri/target/release/bundle/ (on Mac, also macos/Ant.app). Tauri builds for the system you run it on: Windows on Windows, Linux on Linux.

02

Your anthill and its chambers

Ant keeps all your notes in one anthill: a folder on your computer, new or one you already have, such as your Obsidian vault. Inside it, each chamber is a folder for one context of your life: your personal notes, everything about one novel, your work as a developer and its projects. The sidebar shows one chamber at a time.

Anthill/
├── Novel/                    ← a chamber
│   ├── Book I/
│   │   ├── 01 - The rain.md
│   │   └── 02 - The tunnel.md
│   └── characters.md
├── Personal/
│   └── Daily/2026-11-26.md   ← its diary
├── Work/
├── Vault/                   ← an encrypted chamber
│   └── Bank.md.age
├── idea.md                   ← a loose note: the Entrance
└── .ant/                     ← pins and options of each chamber

Getting started

  1. The first time you open Ant, a short welcome takes you through the tunnel.
  2. In its third chamber, choose your anthill: give it a name and click Dig the anthill (Ant creates the folder, in Documents unless you choose another place), or click Use a folder you already have….
  3. In the last one, dig your first chamber (or open one of the folders the anthill already has). The sidebar shows it right away.

What each chamber has of its own

When you switch chambers, Ant saves the current note and shows only the new chamber’s contents in the sidebar:

  • Its tree: only that chamber’s folders and notes. New notes from ⌘ N are created there.
  • Its pins, with their icons.
  • Its diary: with diary mode on, each chamber has its own Daily/ folder and calendar.
  • Its editor: the options of Settings → Editor are per chamber, so the novel can have a book font and smart quotes while the work chamber closes your code blocks.
  • Its books: Compile and Export works with the folders of the open chamber, and remembers its options for each one.
  • Its password, if you encrypt it (see below).

Ant remembers the last chamber and the last note you had open, and opens them again next time.

Encrypted chambers

A chamber can be encrypted with a password, for example to keep your passwords: in Settings → General → Chambers, click Encrypt…. Every note and image in it is stored encrypted on disk with the standard age format: whoever uses your computer or gets into the cloud where you sync it cannot read them. Ant asks for the password to open it, and locks it again when you close Ant, switch chambers or choose Lock now.

While it is locked, the sidebar shows only the chamber selector, and in place of the editor Ant asks for the password. Inside, it works like any other chamber: pins, the last note, links and images keep working.

If you forget the password, everything in that chamber is lost: nobody, not even Ant, can recover it. Note and folder names stay visible on disk; their content does not. Other apps, such as Obsidian, cannot open encrypted notes. You can remove the encryption later with the password.

More chambers

  • Dig as many as you want from the chamber list at the top of the sidebar ( New chamber…), with File → New Chamber… or with ⌘ ⇧ N.
  • To switch chambers, click the name of the open one at the top of the sidebar: the list of chambers unfolds. You also see them all in Settings → General. Every top-level folder of the anthill is a chamber, so a folder you create in Finder shows up there too.
  • To rename a chamber, click the pencil next to it in Settings → General. Its notes, pins and options stay with it. An encrypted chamber must be unlocked again after renaming.
  • Loose notes at the root of the anthill are the Entrance, the first chamber in the list. It only shows up while there are loose notes, and it has no diary.
  • There you can also change the anthill for another folder; nothing is moved or deleted.
  • To take your anthill to another computer, or keep it in a synced folder (iCloud, Dropbox, Syncthing…), just move the folder: pins, icons and editor options are inside it, in .ant/ (see Settings).
  • The welcome can be seen again from Ant → Welcome to Ant….

What it shows

  • Notes ending in .md, .markdown and .txt, with their subfolders.
  • Hidden folders, node_modules, target and folders without notes are skipped (empty ones do show, so you can fill them).
  • It is read again when you save and every time you come back to the window, in case you moved something from Finder or another app.

Notes outside the anthill open too: use ⌘ O.

03

Plain text, as you write it

Notes are saved exactly as you type them, in Markdown. Ant colors headings, emphasis, links and code blocks, but never changes the file.

  • ⌘ N (or right-click → New note…) creates a new note: give it a name (or keep “Untitled”) and press Enter. It is created next to the note you are reading, or in the chamber, and Ant saves it for you from the first word. It never overwrites a note with the same name.
  • ⌘ S saves right away (Ant already saves on its own).
  • ⌘ ⇧ S saves it under another name.

Images

Drag images onto the note or paste them (a screenshot, a copied image): they show up right below their line. Ant copies them to an Images folder next to the note and writes a normal Markdown link, such as ![photo](Images/photo.png). An image that is already in your anthill is linked where it is, without copying it. Obsidian-style links such as ![[photo.png]] show too.

Automatic saving

Ant saves your note a moment after you stop typing, and also when you open another note, switch chambers, leave the window or quit.

If a note changes outside Ant (in Obsidian, or through a sync service), Ant shows the new text when you come back. If it also changed in Ant, Ant does not overwrite the file: it warns you at the bottom, and ⌘ S keeps your version.

Status bar

At the bottom: the note’s name and its word, line and character count. Errors show up there too, for example when a folder cannot be written.

Safe saves

Ant first writes a temporary file and then renames it over the note, so a file is never left half-written.

05

What you use most, on top

Like pinned tabs in Zen or Arc: right-click a folder or note in the tree, or a heading under the open note → Pin to top. It becomes an icon at the top of the sidebar; hover it to see its name.

  • A pinned note opens with a click. A pinned folder unfolds below the icons. A pinned heading (a chapter) opens its note right there.
  • Each one starts with the icon of its kind. To choose another: right-click → Change icon… (about a hundred, from Lucide).
  • To unpin it: right-click → Unpin.
  • Each chamber has its own pins: when you switch chambers, you see that chamber’s pins. They are saved inside the anthill, in .ant/, so they travel with your notes.
  • If something pinned is deleted or moved outside Ant, its icon stays, dimmed, until you remove it.

07

From notes to a book

A novel is many notes: one per chapter. File → Compile and Export… (⌘ ⇧ E) joins the notes of a folder of the open chamber into a single document, in Word or PDF.

  1. Choose the folder. Each note is a chapter: uncheck the ones you leave out (research, drafts) and use the arrows to change the order.
  2. Write the title and the author, and choose the format and the style.
  3. Export. Ant remembers everything for that folder, so the next time it is a single click.

Standard manuscript

What publishers, agents and contests ask for: Times 12, double spaced, one-inch margins, indented paragraphs, a header with your surname, the title and the page number, a title page with the word count and each chapter on a new page.

Book

To read or print: A5 page, justified text, the first paragraph of each chapter and scene without indent, and page numbers at the foot.

How your notes become a book

  • The chapter title is the note’s first heading (# …), or the file name without its numbering («01 - The nest» → «The nest»).
  • Each line is a paragraph. ***, --- or # alone on a line mark a scene break.
  • Text between %% and %% (notes to yourself) and the YAML header are not exported.
  • Optionally, the typography of the whole text is fixed (quotes, dashes, ellipses), without touching your files.

The PDF uses the Times fonts built into every PDF reader, which cover the Latin alphabet (accents, ñ, « », dashes); other alphabets are not supported yet.

08

All shortcuts

⌘ N
New note
⌘ ⇧ N
New chamber
⌘ O
Open note
⌘ S
Save
⌘ ⇧ S
Save as
⌘ ⇧ ]
Next note
⌘ ⇧ [
Previous note
⌘ \
Show or hide the sidebar
⌘ ,
Settings
⌘ ⇧ E
Compile and export
⌘ F
Find and replace
⌘ Z
Undo
⌘ ⇧ Z
Redo
Tab
Indent line

These are the defaults: you can change them in Settings → Shortcuts.

On Windows and Linux, ⌘ is Ctrl. ⌘ W does not close the main window, so you cannot lose it by accident.

09

Right over your notes

⌘ , opens Settings over the main window. The dialog grows as you enlarge the window; in narrow windows the list of areas moves above the options. Changes apply right away, with no save button. Esc, ⌘ W or a click outside closes them.

  • General: the language (English by default, or Spanish), your anthill (you can change it for another folder) and its chambers: open, rename or dig a new one.
  • Editor: the options of the open chamber's editor; each chamber has its own. Three quick presets check a set of options at once, and then each one can be changed on its own, so a chamber can mix them. Writer (the default): smart quotes (“ ” or « », depending on the language), -- → —, ... → …, << >> → « », -> → → as you type (Backspace right after undoes the change; nothing changes inside code), a serif book font, spell checking, and the Markdown view: headings without #, bold and italic without ** or *, inline code without backticks, links showing only their text, quotes with a line, bullets, checkboxes in tasks you click to check, --- as a line and images. Each piece has its own checkbox, and on the line where the cursor is the marks show again. Programmer: type ``` and Enter and the code block closes itself, brackets close themselves, the matching bracket is highlighted and code blocks stand out. Simple: Markdown exactly as you type it.
  • Editor → Page → Text width: choose the automatic width based on the font, a maximum in pixels, or the full available width. It applies to every chamber on this computer and is not changed by the presets.
  • Diary: shows a calendar at the top of the sidebar. Click a day to open its note, Daily/2026-11-20.md, inside the open chamber. If the note or the Daily folder do not exist yet, Ant creates them; if the chamber already has a Daily folder, Ant uses it. Days that already have a note show a dot. In this mode the Daily folder is hidden from the tree: you reach daily notes through the calendar, and the open ones are listed below it.
  • Shortcuts: every action with its shortcut. Click one and press the new keys to change it (it needs ⌘, and can add Shift or Option). Ant warns if another action, the editor or the system already uses them, and a changed shortcut can go back to its default.
  • Appearance: ready-made themes (Ant, the default one, Dark, Night, Paper, Sepia) and every color one by one.

Where they are stored

What belongs to this computer (language, colors, where your anthill is) goes in a JSON file, in the app’s configuration folder:

~/Library/Application Support/cl.agus.ant/ajustes.json
{
  "hormiguero": "/Users/you/Documents/Anthill",
  "camara_abierta": "Novel",
  "modo_diario": true,
  "ancho_del_texto": 800,
  "colores_elegidos": { "acento": "#e5ea15" },
  "idioma": "en",
  "atajos_de_teclado": { "mostrar_panel": "CmdOrCtrl+KeyB" }
}

On Windows it lives in %APPDATA%\cl.agus.ant\ and on Linux in ~/.config/cl.agus.ant/.

What belongs to your notes goes inside the anthill, in a hidden .ant/ folder (like .obsidian/ in a vault), with one file per chamber: its pins, their icons, its editor options and the Compile and Export options. So they travel with your notes when you move, sync or back up the anthill. Paths inside are relative to the chamber.

Anthill/.ant/camaras/Novel.json
{
  "version": 1,
  "fijados": ["Book I", "Book I/01 - The anthill.md#The rain"],
  "iconos_de_fijados": { "Book I": "book-open" },
  "opciones_del_editor": { "letra_de_libro": true, "titulos_sin_almohadillas": true, … },
  "opciones_de_compilacion_por_carpeta": { }
}

The Entrance (loose notes at the root) uses .ant/camaras/.entrada.json. If you rename a chamber’s folder outside Ant, rename its file in .ant/camaras/ too, to keep its pins and options. An encrypted chamber also keeps its key, protected by the password, in .ant-llave.age inside its folder: don’t delete it.

10

How it is built

  • Tauri 2 (Rust, src-tauri/): the window, the menus, reading and writing notes, listing the folder and the settings.
  • React + TypeScript + Vite (src/): the welcome, the sidebar, the status bar, Settings and the dialogs.
  • CodeMirror 6 (src/editor/): the editor. A single view for every note; each note keeps its own state.

The idea comes from Left, by Hundred Rabbits: one window, the text and a sidebar with the document’s headings. Ant is written from scratch and shares no code with it.

Commands

$ pnpm tauri dev    # app with hot reload
$ pnpm build        # type-check and build the interface
$ cd src-tauri && cargo check
$ pnpm tauri build  # final .app and .dmg

CodeMirror patch

When selecting by dragging to the edge, CodeMirror scrolled in jumps every 50 ms. The patch in patches/ makes it move on every frame, and faster. pnpm applies it on install.

Conventions

AGENTS.md describes every file and the project’s conventions. Code comments are written in Spanish, one on top of every file and function.

11

The ant’s face

Flat and one color: bent antennae, eyes and mandibles, in yellow #e5ea15 on #1d1d20. The source is marca/ant-icono.svg; this site copies it when it is built.

$ swift marca/generar-icono.swift \
    marca/ant-icono.svg marca/ant-icono-1024.png
$ pnpm tauri icon marca/ant-icono-1024.png
$ rm -rf src-tauri/icons/android src-tauri/icons/ios

License

Ant is open source under the MIT license: you can use, copy, modify and share it freely, keeping the copyright notice.

Something unclear? Open an issue on GitHub ↗