Verbex Tasks Bridge

approvedunreviewed

by everydaymind

Lets the Verbex AI agent compute Tasks check-off results (including recurrence) through the Tasks plugin; nothing is written without the host's approval.

Updated todayMIT

Verbex Tasks Bridge

An Obsidian plugin that lets the Verbex AI agent compute Tasks check-off results, including recurrence, through the Tasks plugin. It never writes a file: the agent applies the returned text with the host's own file edit tools, which go through Verbex's Diff approval.

It is a small provider for the agentinterop protocol (v1). It has no commands, no editor features and no network access.

Requirements

  • Verbex 0.2.0 or later (the first Verbex release that hosts Bridges; it advertises host-capabilities-v1). Without it the Bridge offers no tools and shows one notice per session when an older Verbex is enabled: "Verbex Tasks Bridge needs a newer Verbex."
  • The Tasks plugin (obsidian-tasks-plugin), enabled. The Bridge calls its apiV1.executeToggleTaskDoneCommand(line, path) (checked against the 8.6.0 source of that API).

What it adds to Verbex

One tool (approved once in Verbex like any plugin tool):

ToolWhat it does
toggle_doneTakes one task line (line, up to 2,000 characters) and the vault path of the Markdown note that contains it (path). Returns the original line and the line(s) the Tasks plugin produces when the task is checked off. A recurring task returns two lines.

Details:

  • The line must be a single Markdown list item with a checkbox (- [ ], 1. [x], * [/], also inside a blockquote or callout), and it must exist in that note exactly (trailing whitespace and CRLF are ignored). Otherwise the call fails with INVALID_ARGUMENT and a message saying to read the note and copy the line exactly.
  • The note is not changed. The result says so and tells the agent to edit exactly that line through the host's approval.
  • toggle_done does not list or query tasks. Listing is done with a Dataview TASK query (Verbex Dataview Bridge, when installed) or by reading the note.
  • The result reports the note as its source path (dev.agentinterop/evidencePaths).

It also ships the Obsidian Tasks Guide Skill (English and Korean) for Verbex.

The tool list does not depend on whether Tasks is on, so toggling Tasks never asks you to approve the plugin again. When Tasks is off a call returns TASKS_DISABLED ("Tasks is not enabled; turn it on in Settings → Community plugins."); when the installed Tasks has no such API it returns TASKS_API_UNAVAILABLE (with the installed version); an error thrown by Tasks is returned as TASKS_FAILED. None of these is retryable.

Settings

The settings tab only shows status: whether Verbex supports the Bridge, whether Tasks is enabled (and its version), and the Skills offered to Verbex.

Build

npm ci
npm run typecheck
npm run lint
npm run lint:no-node-types   # lint as the Obsidian review bot does, without @types/node
npm test
npm run build        # main.js and dist/ (not minified, on purpose)
npm run build:repro  # builds twice and compares hashes
npm run release:check

The Skill data in src/provider/agent-assets.generated.json is generated from agent-skills/ by the Verbex generator (npx tsx scripts/plugin-skills.ts generate|check <this repository> from the Verbex repository). The copy of the host-capabilities-v1 contract in contracts/ is owned by Verbex and compared with its manifest by npm test.

The automated tests use a fake apiV1 shaped like the Tasks API; they do not run the real Tasks plugin.

License

MIT

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.