Agents
pendingby tsilva
Launch AI agents from your vault — right-click any file or folder to open a terminal with context. Supports Claude, Codex, and other AI CLI tools.
Agents
🚀 Launch AI agents from your vault — right-click any file or folder to open a terminal with context 🤖
[!IMPORTANT] macOS only. This plugin uses AppleScript to launch terminal windows and is not compatible with Windows or Linux.
Overview
The Pain: Switching between Obsidian and the terminal to work with AI agents breaks your flow. You have to navigate to the right directory, remember file paths, and manually set up context.
The Solution: Agents adds right-click context menu items directly in Obsidian. Click any file or folder to instantly launch your AI agent in a terminal, already pointed at the right path.
The Result: Zero context-switching — go from reading notes to AI-assisted coding in one click.
Features
- ⚡ One-click launch — right-click any file or folder to open your configured AI agent
- 📁 Smart context — files open your agent with the file path pre-loaded; folders open the agent in that directory
- 🖥️ Terminal choice — supports Terminal.app and iTerm2
- ⚙️ Configurable — customize the agent command and terminal app in settings
Quick Start
Install from Community Plugins
- Open Settings → Community Plugins → Browse
- Search for "Agents"
- Click Install, then Enable
- Right-click any file or folder in the file explorer → Open with AI Agent
First-Time Setup (Important!)
The first time you use the plugin, macOS will block it with error -1743 (permission denied). You must grant Obsidian permission to control your terminal:
- Open System Settings → Privacy & Security → Automation
- Find Obsidian in the list
- Enable the checkbox next to Terminal (or iTerm2 if using that)
- Try right-clicking again in Obsidian — it should now work
💡 Tip: If you don't see the permission prompt, manually trigger the error once by right-clicking a file and selecting "Open with AI Agent", then check System Settings.
How It Works
- Right-click a file → Opens a terminal in the file's parent directory with your AI agent and the file path pre-loaded
- Right-click a folder → Opens a terminal in that folder with your AI agent ready to go
The plugin uses AppleScript to launch your preferred terminal emulator.
Settings
| Setting | Default | Description |
|---|---|---|
| Terminal App | Terminal.app | Choose between Terminal.app and iTerm2 |
| Agent Command | claude | Command to launch the AI agent (e.g., claude, codex) |
Requirements
- macOS (desktop only)
- An AI agent CLI installed (e.g., Claude Code, Codex, etc.)
- Obsidian v1.0.0+
Development
Automated Install
-
Clone and install:
git clone https://github.com/tsilva/obsidian-agents.git cd obsidian-agents npm install bash install.sh -
Enable the plugin in Obsidian: Settings → Community Plugins → Agents
Manual Install
-
Clone this repo into your vault's plugin directory:
cd /path/to/vault/.obsidian/plugins git clone https://github.com/tsilva/obsidian-agents.git agents cd agents npm install && npm run build -
Enable the plugin in Obsidian: Settings → Community Plugins → Agents
License
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.