Skip to content

Council

@theholocron/council (Holocron Council) is a small Obsidian plugin for the ideas vault (SPEC-0072). It puts a button inside Obsidian on the three steps that otherwise take a terminal: set status: in-progress, run holocron sync ideas, and remove the note.

  • File this idea (command palette and a ribbon button) acts on the open note.
  • Set idea status shows a picker of the configured states and sets status on the open note. Obsidian’s property editor suggests values already used in the vault but has no fixed list.

File this idea does these steps in order, and stops at the first that does not hold:

  1. Refuse when the note is already in the filing state and has an issue:.
  2. Set status to the filing state.
  3. On desktop, run holocron sync ideas --yes in the Holocron checkout, with HOLOCRON_IDEAS_DIR set to the vault’s folder.
  4. Read the note again. Only if it now has an issue:, move it to Obsidian’s trash (the system trash or the vault’s .trash, as set in Obsidian, so it can be undone).
  5. Otherwise leave the note, restore nothing, and show a notice with the end of the command’s output, such as a note skipped for an attachment.

A command that exits non-zero never trashes the note, even if the file has an issue:. The CLI never deletes a note; this plugin trashes only the open one.

Council is built from this repository and copied into the vault with holocron setup council; copying by hand is the fallback. You need a Holocron checkout on the Mac that will do the filing.

From the checkout:

Terminal window
git pull
pnpm install
pnpm build

pnpm build builds the CLI that the button runs (cli/cli/dist/cli.mjs) and the plugin (apps/council/dist/). Run it again after every update of the checkout, so the CLI the button calls is current.

From the checkout, name the vault (or leave --vault out to use the configured ideas vault):

Terminal window
pnpm exec holocron setup council --vault "<path to the vault>"

Run it with --dry-run first to list what it would copy. It asks before it writes, and a second run updates the files, or says that nothing changed. The command’s page has the details.

To do the same by hand, copy main.js and manifest.json from apps/council/dist/ into <vault>/.obsidian/plugins/holocron-council/. For a vault in iCloud Drive:

Terminal window
dest="$HOME/Library/Mobile Documents/iCloud~md~obsidian/Documents/<vault name>/.obsidian/plugins/holocron-council"
mkdir -p "$dest"
cp apps/council/dist/main.js apps/council/dist/manifest.json "$dest/"

The folder is inside the vault, so iCloud copies the plugin to your other devices by itself.

  1. Restart Obsidian, or run Reload app without saving from the command palette.
  2. Open Settings, then Community plugins, and turn off Restricted mode. Obsidian shows a security notice. This step is yours to take.
  3. Switch on Holocron Council in the list of installed plugins.

The plugin’s settings live in a file inside the vault, so iCloud syncs them to every Mac. Set them once so they hold on each one. Open the plugin’s settings and fill in the first rows of the table below:

  • Holocron repo path is the checkout, written with ~ for the home folder, for example ~/Code/theholocron/holocron. Each Mac expands ~ to its own home folder, so one value works on all of them. Both Macs need the checkout at the same place under the home folder.
  • Run through my login shell stays on. The plugin then starts your shell the way a terminal does, so node and pnpm are found whether they come from nvm, n, Homebrew or anything else, and each Mac uses its own.
  • Command stays at the default, pnpm exec holocron. With the shell option on it works on each Mac, because each Mac’s own shell finds node and pnpm.

Starting the shell adds about 2 seconds to a run, and the plugin shows a notice while it starts.

The shell option supports sh, bash, zsh, dash and ksh. With another login shell, such as fish or nushell, the plugin runs the command directly and shows a notice, so Command may need full paths.

When you change Run through my login shell, update and restart Council on every Mac first. An older copy saves its settings without that field, and the default (on) comes back.

If your shell profile is slow or does not set up node, turn the shell option off and give full paths in Command instead, with node and the built CLI:

/path/to/node /path/to/holocron/cli/cli/dist/cli.mjs

Leave States and Filing state at their defaults unless the ideas block of your config uses other words.

From the checkout, a dry run prints what the button would file and writes nothing:

Terminal window
HOLOCRON_IDEAS_DIR="$HOME/Library/Mobile Documents/iCloud~md~obsidian/Documents/<vault name>" \
node cli/cli/dist/cli.mjs sync ideas --dry-run

Then try the button on a throwaway note: insert the Idea template, pick in-progress with Set idea status, and run File this idea. That creates a real issue, so close it afterwards. The note moves to the trash once the issue exists. If it stays, the notice says why.

The plugin passes the vault’s folder to the CLI itself, so the ideas provider does not need to be declared in holocron.config for the button to work.

Setting Default Meaning
Holocron repo path empty The checkout the command runs in. A leading ~ is the home folder. Required for filing.
Run through my login shell on Starts the command in your login shell, which finds node and pnpm as your terminal does. About 2 seconds slower.
Command pnpm exec holocron What starts the CLI. With the shell option off, give full paths (see step 4). A leading ~ is the home folder.
States seed, exploring, in-progress, dropped The values the picker offers. Match the ideas block of the config
Filing state in-progress The state that files the idea.
  • Filing is desktop only. A plugin runs on iOS but has no checkout, shell or git there. On the phone the command only sets the state; the note is filed the next time a Mac runs File this idea on it.
  • A GUI app may not see your shell’s PATH. Obsidian started from the Dock does not read your shell profile, so pnpm or node can be missing. The login shell option fixes that on every Mac. With it off, the plugin only adds /opt/homebrew/bin and /usr/local/bin to PATH, which does not cover Node installed through nvm or n; put full paths in the Command setting, as in step 4 of Install.
  • One filing run at a time. While a run is going, a second File this idea shows a notice and starts nothing. This covers one Obsidian instance only. Overlapping runs from elsewhere (a terminal, a second Mac) are handled by sync ideas: after it creates an issue it searches for the note’s marker again, and when an older open issue carries it, it comments on and closes its own issue and records the older key, so both runs end with the same key. The duplicate is moved to the tracker’s done state: closed as completed on GitHub, and on Linear the team’s completed state, or its canceled state if the team has none. This depends on the search seeing both issues. If it misses a twin (a lagging index, or an error in the search), the run keeps its own issue, so the runs can record different keys and an extra open issue can remain; close it by hand. If commenting on or closing the duplicate is rejected, the note still gets the older key and a warning row names both issues, and the duplicate stays open until it is closed by hand.
  • No token field. The plugin’s data.json is a file in the vault, and iCloud syncs it to every device. The CLI reads its tokens through its own chain on the Mac, as described in tokens.
  • sync ideas files every ready note, not only the open one. The others stay in the vault with their issue: set until File this idea is run on each.