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.

See what each version brought in What’s new, or every technical detail 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: diary mode is turned on chamber by chamber. A chamber with it has its own Daily/ folder and calendar; when you switch to one without it, the calendar folds away.
  • 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.
  • If a folder is not a chamber (attachments, templates…), hide it with the crossed-out eye next to it in Settings → General. It stays on disk, but Ant no longer offers it as a chamber; it goes back with Hidden folders → Show again.
  • 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

Your tasks, next to your notes

In Settings → Editor → Tasks choose, as with the diary, one list per chamber (each chamber turns it on, and its todo.txt goes in a Tasks folder inside the chamber, which doesn’t show in the sidebar) or one list for the whole anthill (it shows in every chamber, and its todo.txt goes in Queen’s chamber/Tasks; Ant creates that chamber, or uses the one you have). Turning it off never deletes anything, and turning it back on uses the Tasks folder and files that are already there. The Tasks button appears next to the chamber selector, and it (or ⌘ T) puts the list where the text is, across the whole width. Opening a note, or q, takes you back to your notes.

The tasks are a todo.txt (and done.txt for the archived ones), in the format of Tuxedo Task: plain text you can also open with it or with any todo.txt app. In an encrypted chamber they are encrypted too.

(A) 2026-12-01 Revise chapter 3 +novel @desk due:2026-12-05
  Cut the rain scene ::mira
2026-11-20 Pay rent +home due:2026-12-05 rec:+1m t:-3d
x 2026-12-02 2026-11-28 Send the manuscript +novel
  • Priority (A), projects +, contexts @, who it belongs to ::, due date due:, recurrence rec: (a + counts from the due date) and t:, the day it starts to show.
  • Subtasks: two spaces of indentation per level. A task and its subtasks are completed, deleted, moved and edited together.
  • Write it as you’d say it: “Pay the light bill every month on the 5th, show 3 days before, project home”, in English or Spanish, becomes todo.txt. You see how it will be saved, the first Enter rewrites it and the second one saves it.
  • Three panels: filters (projects, contexts, persona and saved searches, with how many open tasks each one has), the list (sorted by priority, due date with groups like Overdue and Today, file order or project) and the details of the chosen task with its actions.
  • Checkboxes in your notes: turn on “Include the checkboxes in your notes” (in the same tab, or with , in the list) and the tasks you write in notes as - [ ] show up in the list with the note’s name: from the chamber, or from the whole anthill if the list is for all of it. Ticking one ticks it in the note, and o opens the note on that line; anything else is changed in the note.
  • Notes: O creates a note for the task in the chamber’s Tasks folder and links it with note:; o opens it in the editor.

Everything works with the keyboard, with Tuxedo’s keys: n new, e edit, x done, dd delete, p priority, r reschedule, > < subtask, / search, fp fc fm filters, S sort, a archive, u undo, and ? shows them all. : opens a command palette.

Changes are saved right away. If the file changes in another app, Ant shows the new one and never overwrites it.

06

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.

08

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.

09

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
⌘ T
Show or hide the tasks
⌘ ,
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.

10

Right over your notes

⌘ , opens Settings over the main 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, hide a folder that is not a chamber, or dig a new one.
  • Editor: what belongs to each chamber. The chamber you are setting up is drawn like a chamber of the anthill, with everything that is its own inside: it starts on the open one, and with Change you pick any other without opening it. A search box finds any option across the tabs (Diary, Tasks, Writing, Page, Markdown, Code), which show how many options are on. 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 (except a task’s checkbox, which shows as soon as you type - [ ] and only turns back into text when the cursor touches it). 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 → Text width, under the chamber, in “On this computer”: drag the line and it tells you the width in pixels while the text behind Settings changes as you go; at its right end is the full width, and Automatic goes back to the width based on the font. It applies to every chamber on this computer and is not changed by the presets.
  • Editor → Notes in tabs, also in “On this computer”: when it is on, opening a note does not close the one you had. The open notes show up as tabs in the strip at the top of the window, above the text (the text does not move), each with an × to close it; ⌘W (Ctrl+W) closes the one you see, and the open notes are highlighted in the sidebar tree. When it is off, there is one note at a time.
  • Editor → Diary: choose one diary per chamber or one for the whole anthill. With one for the whole anthill, the calendar is always there, in every chamber, and daily notes go in a Daily folder at the root of the anthill, apart from the chambers (it is not listed as a chamber). With one per chamber, each chamber turns it on for itself: it 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, where the day of the open one is marked.
  • Editor → Tasks: one task list per chamber (each one turns it on; the Entrance can’t have one) or one for the whole anthill, and whether it includes the checkboxes of your notes (see Tasks above).
  • 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: at the top, whose look you are changing, next to a small Ant that previews it as you go. It is the look of the whole anthill unless you turn on Each chamber with its own look: then you pick a chamber and give it Its own look (it starts as a copy of the anthill’s, and is saved with its notes); chambers without one use the anthill’s. Two tabs: Colors has ready-made themes (Ant, the default one, Dark, Night, Paper, Sepia) and the background, either a Solid color (one picker for the window and one for the bars) or a Gradient (pick up to three colors on the wheel, their lightness, and the direction with the knob), never both. Text colors say “auto” while they follow the background to stay readable; change one and it stays fixed until you click it to go back to auto. Typography sets the font and size of the editor, the headings, the sidebar and the status bar, with system fonts (monospaced, sans, rounded, book serif, typewriter). With “Default”, the editor uses the book serif when Book font is on.

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",
  "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, whether it has diary mode and a task list (and how the list looks), its own look if you gave it one, 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, … },
  "modo_diario": true,
  "modo_tareas": true,
  "opciones_de_tareas": { "orden": "vence", "proyecto": "novel", … },
  "apariencia": { "colores_elegidos": { … }, "fondo_propio": null, "tipografia": { … } },
  "opciones_de_compilacion_por_carpeta": { }
}

What belongs to the whole anthill goes in .ant/hormiguero.json: the folders you hid because they are not chambers ("carpetas_ignoradas") and the options of the anthill’s task list ("opciones_de_tareas").

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.

11

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.

12

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 ↗