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.
Commands
Section titled “Commands”- 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
statuson the open note. Obsidian’s property editor suggests values already used in the vault but has no fixed list.
Order is the safety property
Section titled “Order is the safety property”File this idea does these steps in order, and stops at the first that does not hold:
- Refuse when the note is already in the filing state and has an
issue:. - Set
statusto the filing state. - On desktop, run
holocron sync ideas --yesin the Holocron checkout, withHOLOCRON_IDEAS_DIRset to the vault’s folder. - 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). - 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.
Install
Section titled “Install”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.
1. Build the CLI and the plugin
Section titled “1. Build the CLI and the plugin”From the checkout:
git pullpnpm installpnpm buildpnpm 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.
2. Copy the plugin into the vault
Section titled “2. Copy the plugin into the vault”From the checkout, name the vault (or leave --vault out to use the configured ideas vault):
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:
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.
3. Turn it on
Section titled “3. Turn it on”- Restart Obsidian, or run Reload app without saving from the command palette.
- Open Settings, then Community plugins, and turn off Restricted mode. Obsidian shows a security notice. This step is yours to take.
- Switch on Holocron Council in the list of installed plugins.
4. Set the repo path and the command
Section titled “4. Set the repo path and the command”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
nodeandpnpmare 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 findsnodeandpnpm.
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.mjsLeave States and Filing state at their defaults unless the ideas block of your config uses other words.
5. Check it before you rely on it
Section titled “5. Check it before you rely on it”From the checkout, a dry run prints what the button would file and writes nothing:
HOLOCRON_IDEAS_DIR="$HOME/Library/Mobile Documents/iCloud~md~obsidian/Documents/<vault name>" \ node cli/cli/dist/cli.mjs sync ideas --dry-runThen 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.
Settings
Section titled “Settings”| 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. |
Limits
Section titled “Limits”- 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
pnpmornodecan be missing. The login shell option fixes that on every Mac. With it off, the plugin only adds/opt/homebrew/binand/usr/local/bintoPATH, which does not cover Node installed through nvm orn; 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.jsonis 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 ideasfiles every ready note, not only the open one. The others stay in the vault with theirissue:set until File this idea is run on each.