Skip to content

Obsidian

tenfyzhong edited this page Nov 16, 2026 · 8 revisions

Native Bases task boards in Obsidian

Task boards require Obsidian 1.14 or newer with the built-in Bases plugin. Bases reads generated Markdown frontmatter and renders native Kanban views. TaskNotes is no longer a dependency.

Enable the views

After taskix init --root /existing/vault, run:

taskix obsidian setup
taskix sync

Setup installs the embedded Taskix Sync desktop plugin, including its styles, and enables it and Bases. It removes the obsolete tasknotes entry from the enabled community-plugin list. Existing TaskNotes files and settings are retained for manual removal or use with personal notes. No download or TaskNotes status configuration is needed; the old --plugin-dir option is removed. Changed configuration files are backed up under .obsidian/taskix-backups/.

Enable Obsidian CLI in Settings → General for automatic reload. If it is unavailable or reload fails, restart Obsidian. For offline setup, close Obsidian and use taskix obsidian setup --no-reload, then reopen it. Allow community plugins in this vault so Taskix Sync can load. Setup leaves that app permission to you. See automatic setup.

Native Kanban uses groupBy: note.status, groupOrder for known statuses, and hideEmptyColumns: false to retain empty status columns. The Job board has ACTIVE, PENDING_REVIEW, COMPLETED, and CANCELLED; the Task board has TODO, IN_PROGRESS, BLOCKED, WAITING_USER, DONE, FAILED, and CANCELLED. No status preset or field mappings are required. Mermaid task graphs retain their fixed light palette and dark text.

With Taskix Sync connected, managed Kanban views have height min(600px, 70vh). Each status column scrolls internally; horizontal scrolling reaches columns beyond the available width. This applies to Recent Jobs, Dashboard pending review, project boards, and Job task boards. Unrelated Bases keep their normal layout. There is no per-status item limit, including the four Recent Jobs tables.

Project structure

11-Agents/
  Dashboard.base
  Recent Jobs.base
  Projects/<project>/
    Board.md
    Jobs/
      YYMMDD-seq-<job-name>.md
      Archived/YYMMDD-seq-<job-name>.md
    Tasks/
      YYMMDD-seq-<task-name>.md
  Archived Projects/<project>/
    Board.md
    Issue.base
    Milestones.base
    Issues/
      YYMMDD-0001-Requirement.md
    Milestones/
      YYMMDD-0001-MVP.md
    Jobs/
    Tasks/

Right-click a managed project folder or its Board.md to choose Archive project; archived projects offer Restore project. Taskix Sync queries the current Project revision and submits the guarded CLI command. Archive requires all Jobs to be completed or cancelled. The entire note folder, including attachments and memory notes, moves to Archived Projects by default. Set documents.archive_directory in the Taskix TOML config to another relative directory under documents.directory. Restore moves it back to Projects. An existing destination is never overwritten: resolve the reported conflict and run taskix sync. The repository/worktree directory does not move. Run taskix obsidian setup with the updated binary to install the updated menu.

  • Dashboard.base is a compact native table of active projects: Name (click to open Board), Status, and Updated (recent project activity). It uses read-only formula columns and hides archived projects. Its Pending review Kanban view lists all unarchived PENDING_REVIEW Jobs, newest completed_at first, then newest updated_at. Sync safely replaces the old generated Dashboard.md.
  • Recent Jobs.base opens a cross-project board with ACTIVE, PENDING_REVIEW, COMPLETED, and CANCELLED columns. Each column shows all unarchived Jobs, newest completed_at first, then newest updated_at. The board uses native Kanban; four native status tables also have no item limit. Cards show the project Board link, local update time, and pending-review time when present. Sync safely migrates the registered Pending Review.base to the new filename.
  • Click the card title to open the original Job or Task note.
  • Issue.base shows Issues by status or Milestone and embeds context-filtered related Jobs; Milestones.base shows basic milestone progress.
  • Board.md records repository identity, paths, project state, and sync status, and embeds two Bases views of type kanban, grouped by status: Job board above Task board. It is the project note, with the Project ID and both agent/project and agent/board tags. Dashboard and task project links point here; there is no separate Project link on Board. Sync removes the old generated meta.md after publishing Board.
  • Job → Tasks directly links the task notes, using their filenames as labels.
  • Tasks/ contains one note for every Task, including tasks without a published plan.

Open Board in Reading view or Live Preview. Each Base filters the exact project's Jobs/ or Tasks/ folder, project ID, corresponding agent/job or agent/task tag, and archived != true. Jobs expose title, created_at, updated_at, and completed_at directly as canonical note properties without carrying the task tag. Both views sort by completed_at descending, then updated_at descending, with filename breaking ties, and use 300px columns. Completed tasks remain visible until their Job or Project is archived. No generated checkbox lists are used as the view's data source.

To rename a Project, rename its entire immediate folder under Projects/ in Obsidian's file explorer. Taskix Sync runs taskix sync --pending; the CLI recognizes the moved Board by Project ID, updates its name/title and all generated project paths, links and filters, and preserves editable content and attachments. The original working directory (root), IDs, task ownership and tracking remain unchanged. No extra project grouping is added. Keep Board's identity properties intact and use a unique portable folder name of at most 48 characters. Invalid names and ambiguous moves show a synchronization error; correct them and retry sync. Copying a folder while retaining its original does not rename the Project. Upgrade Taskix and refresh this plugin with taskix obsidian setup together; offline moves are imported at the next synchronization.

Task properties and plan body

A task note has this shape:

---
id: task_example
task_id: task_example
plan_id: plan_example
project_id: prj_example
job_id: job_example
title: Implement login
status: IN_PROGRESS
phase: EXECUTING
dependencies:
  - task_prerequisite
revision: 4
sequence: 1
tags:
  - agent/task
  - task
archived: false
projects:
  - "[[11-Agents/Projects/example/Board]]"
job: "[[11-Agents/Projects/example/Jobs/260905-0001-Login]]"
created_at: 2026-09-05T08:00:00+08:00
updated_at: 2026-09-05T08:01:00+08:00
started_at: 2026-09-05T08:01:00+08:00
completed_at: null
---

The note's ID identifies the Task. plan_id identifies its published plan, and is null until the first plan is published. revision is the only revision field in the document and advances with taskix changes, including Plan publication. The legacy version property is removed from Tasks. All generated documents use one property per lifecycle timestamp: created_at, updated_at, started_at, completed_at, pending_review_at, cancelled_at, and archived_at, where applicable. Sync and status repair remove dateCreated, dateModified, and completedDate. Canonical values take precedence over duplicate aliases. Lifecycle timestamps use the computer’s local time zone, with an explicit UTC offset appropriate to each instant. Job lifecycle fields, including created_at, completed_at, and pending_review_at, also use local time.

dependencies lists prerequisite Task IDs, or is [] when there are none. Create the known Tasks and register their dependencies with task depend TASK PREREQUISITE before implementation; taskix creates their files and manages the frontmatter. Existing notes gain this property on sync. Dependency edits must go through taskix, and task start requires every prerequisite to be DONE in the database.

Job task sections include a generated Mermaid graph with arrows from prerequisites to dependent Tasks. Independent Tasks remain visible, and direct prerequisites from other Jobs include their Job name. Direct edges are omitted when another path in the displayed graph already connects the same Tasks. Stored dependencies and execution gates remain unchanged; paths through unexpanded external Jobs do not hide edges. Each node shows the Task name and exact status, using the seven fixed light task-status colors. Click its label to open the Task note through an Obsidian internal link, or hover to preview it. The graph refreshes with taskix status changes or sync, and task renames refresh its links. These nodes are read-only status displays, not editable status controls; custom vault colors do not change their palette. Ordinary task links remain below the graph for viewers that disable Mermaid links.

When taking up a Task, claim it and publish its Plan into the same note. Other Tasks can remain as metadata notes until their Plans are needed. Organize the body freely around the needs of the task; headings and content are chosen by the agent. Preserve research notes, examples, and checklists that help execute the task. TASKIX_LANG controls the language of agent-authored names and prose; it does not translate plugin status values.

Agents continue using claim → plan create/revise → start → done. The plan commands publish the body of the same Task note; they do not create another directory or a version file. Merely creating a Task note does not satisfy the requirement to publish a plan before starting execution.

Migrate existing projects

Back up the task database and generated documents, update all taskix writers, and run:

taskix sync
taskix doctor --json

Database schema 7 migrates the registered Plan paths from Plans/ to Tasks/. Sync preserves the latest plan body and authored properties, updates Job links and Board, and removes old managed files after publishing their replacements. The former Tasks.md list and links to it are removed; status is viewed in Board. Unrelated files are not deleted. A destination conflict leaves the original content available; resolve it and run sync again.

Incremental synchronization converts registered legacy tasknotesKanban and taskixRecentJobs Base views to native kanban, preserving saved view names, widths, and other settings while removing obsolete per-status limits. Full taskix sync regenerates the managed definitions.

The old kanban-plugin and kanban_plugin properties are removed. Close and reopen any old Board tab in Markdown Reading view so the embedded Base renders. Existing Project and Job hierarchy, task identities, sequence prefixes, and internal Plan publication counters are preserved.

Job archival keeps task notes in Tasks/, sets archived: true, and adds the archived tag. Unarchiving clears both. Job deletion removes related task notes, including notes without a plan; Project deletion removes the entire generated project directory.

State changes and styling

With Taskix Sync enabled, saved frontmatter status edits and native Bases status dragging call taskix. Configure the executable and config file in Settings → Taskix Sync, then click Connect. The button shows Checking... and is disabled during the check. A successful check reports the monitored directory; a failure displays its reason and allows another attempt. The command palette connection check provides the same feedback, while successful automatic startup stays quiet. Initial setup fills absolute paths and preserves user settings on later runs. The plugin is desktop-only and requires Obsidian 1.14 or later.

Status edits

File events are monitored only inside the configured documents.directory, including its subdirectories. Creating, editing, deleting, or renaming notes elsewhere in the vault does not trigger synchronization, even if they contain copied taskix properties . Moving a file into or out of the monitored directory refreshes registered paths. Setting the directory to . monitors the whole vault. If the initial connection fails, automatic event handling stays paused until a successful connection check.

Entity Requested status CLI operation
Task BLOCKED / WAITING_USER / FAILED / CANCELLED block / wait / fail / cancel, subject to normal state and lease guards
Task TODO from FAILED retry
Task TODO from DONE or CANCELLED reopen
Task BLOCKED → DONE done without an agent lease
Task IN_PROGRESS, or DONE from other states Rejected; use the owning agent's claim, Plan, start/done workflow
Job ACTIVE → PENDING_REVIEW submit for review_policy: required, when all non-cancelled Tasks are DONE and at least one exists
Job PENDING_REVIEW → COMPLETED approve after verification
Job ACTIVE → COMPLETED approve when at least one Task exists and every Task is DONE, FAILED, or CANCELLED; preserve Task outcomes
Job PENDING_REVIEW → ACTIVE reject; Task states are preserved
Job CANCELLED cancel from an eligible unfinished Job

Status values must be uppercase strings. Leading and trailing whitespace, including newlines saved by the Obsidian property editor, is trimmed before applying the transition. Accepted edits are written back with the canonical status; changing only whitespace does not issue a state-changing command.

Commands requiring a reason receive Status changed in Obsidian: OLD -> NEW. All other transitions are rejected. The plugin never claims Tasks or reads lease tokens. Task edits against an active agent lease fail safely.

Issue templates, text and status edits

Right-click the registered active Project's exact Issues/ directory and choose New Issue. Enter a title, optional Type and optional Milestone; Taskix creates the fixed Requirement / Acceptance Criteria / Notes / Related Jobs template and opens its note. Use the same taskix issue create command from the CLI. Copied, archived and nested directories are excluded. Keep each editable region's generated start/end markers intact. Saved body edits are imported with a bounded debounce; malformed/duplicated markers pause import and report an error. Deleting a document does not cancel its Issue.

The shared Issue.base provides Issue board, By Milestone and Pending review views. Each Issue embeds Related Jobs, filtered by issue_id == this.id in the embedding note, including archived Job history. Each Milestone embeds Milestone Issues, filtered by its ID. No separate Issue Jobs Base is generated. The Project Board embeds Issue and Milestone views above the existing Job/Task boards.

Issue status edit Operation
TODO → ACTIVE Explicit activation without creating Jobs or claiming Tasks
TODO/ACTIVE → PENDING_REVIEW Submit after meaningful requirement/acceptance and all related Jobs are closed
PENDING_REVIEW → COMPLETED Human approval after readiness is checked again
PENDING_REVIEW → ACTIVE Human rejection with an edit reason
COMPLETED/CANCELLED → TODO Reopen while retaining Job history
Eligible unfinished state → CANCELLED Cancel unfinished associated Jobs/Tasks and revoke leases

A Job finishing leaves the Issue unchanged. Manual edits never create a Job. The first successful associated Task start activates a TODO Issue. Editing milestone resolves the target's registered identity and rejects cross-Project, copied or ambiguous references. Revision guards protect status and Milestone edits. Invalid managed-property edits are restored without replacing authored text; custom properties remain. Existing Task state semantics are unchanged.

Status edits debounce for 300 ms and execute serially with expected revision and an idempotency key. Requirement body edits use their bounded import debounce. Registered identity and exact path checks reject copies. Stale revisions refresh the authoritative record. Generated revision changes are treated as publication echoes; newer queued user edits remain protected from older rollback. There is no checkbox parser or legacy source-message synchronization.

A 30-second process timeout is followed by a fresh query of the affected ID because the database may already have committed. A projection_pending response means success: the plugin retries sync --pending once and reports any remaining document failure without undoing the acknowledged state. If the CLI cannot be reached, a recently confirmed state is restored when available, with an explicit uncertainty notice. If there is no confirmed state, the plugin leaves the file unchanged and reports the failure. Open the note again or reconnect to reconcile it.

The plugin starts with taskix obsidian connection --json, which reads only configuration. Opening or editing a note queries taskix obsidian show ID --json for its authoritative path, status, revision, and managed display properties without exposing leases or authored content. Startup reconciles only open notes; other notes are reconciled when opened, without replaying offline drift as commands. No full-vault scan or full snapshot is needed. The plugin retains at most 128 recently confirmed records for echo suppression and recovery, plus pending edits. The existing full obsidian snapshot command remains available for diagnostics.

CLI writes query the affected records and commit a durable document queue with the state change. Only affected notes, Job summaries/dependency graphs, Project metadata and Issue/Milestone documents are synchronized. Job renaming and archival propagate to the associated Task notes. Unchanged content is not replaced, and unrelated Project Boards keep their own sync sequence. Pending publications are processed in batches of 128 and remain recoverable after failure or restart. Automatic recovery uses sync --pending; plain sync is the full repair/rebuild path. Schema 12 upgrades the per-document registry and schedules one full rebuild.

Update the CLI and plugin together: the plugin requires the connection and show subcommands and sync --pending. The configured vault root must match the open vault. Commands use a subprocess argument array, without a shell. Plugin unload clears cached and queued state and terminates its subprocesses.

Native Bases supplies its own Kanban presentation. Mermaid graph colors are fixed.

If a board is empty, bring the vault window to the foreground (hidden windows can defer view rendering), then confirm Obsidian is 1.14 or newer and Bases is loaded, the note is in Reading view or Live Preview, and the task's folder and project_id match the Base filters. For unknown-status indicators, check exact status values. For missing completed work, check archived and run taskix doctor --json.

Backup and database recovery

Native Bases can display existing task notes without taskix's database. This does not make the vault a complete SQLite backup. Notes contain current task properties and authored content, but omit leases, audit events, idempotency records, and internal synchronization state. Some task fields are only displayed in Job prose or are not exported at all.

There is no command to import the vault or rebuild SQLite from it. taskix sync writes database state into documents; it does not restore a missing database. Reconstructing current work from notes would require a separate importer and validation, and could not recover all original history or coordination records.

Keep a matched backup of the SQLite database, the document tree, and taskix configuration. Include Taskix Sync settings and any custom Base definitions for the same display on another device. SQLite alone does not retain all published plan bodies or editable Notes. See data coverage and recovery for the field coverage and backup procedure.

Job notes include the stored original Prompt and a generated Conversation of user prompts and agent text replies. Host hooks and Agentix omit injected AGENTS.md/environment context, tool calls, tool results, and reasoning. Conversation uses ordered Turn N sections, each with User input and Agent output; replies within each turn share one Markdown blockquote. Supplementary prompts preserve the original Prompt and earlier turns. Sync also filters legacy injected context from existing notes. When discussion leads to implementation, selected related pending turns are attached in their original order. New Jobs take their Prompt from the earliest selected request; follow-up preserves the existing Prompt. Discussion-only turns remain SQLite drafts without creating Job notes, survive restarts, and expire after 30 days of session inactivity. Existing Job history is retained and is not automatically backfilled. These sections are regenerated from SQLite; see conversation capture.

Investigation-only, document-only, and simple git commit/push Jobs use review_policy: none and complete directly when ready. The default required retains review for code changes and mixed Jobs. Related supplements to pending Jobs use job followup to return the same Job to ACTIVE, retain existing Tasks, and automatically add them as prerequisites of new Tasks; the dependency graph displays these edges.

Read-only project memory

Taskix Sync checks saved changes to Projects/<project key>/Memory/mem_<ID>.md. Saved events are debounced until 750 ms without another change. Notifications are limited to once per file per 30 seconds (including restore failures); subsequent edits are still rolled back during that interval. Unload and reconnection cancel pending timers. If a note differs from SQLite, it displays a read-only error and restores the complete authoritative Markdown, including body and frontmatter. Opening a modified note also performs this check. Normal database projections do not produce an error, and Recovery copies and ordinary notes are excluded.

The plugin uses taskix memory document <vault-relative-path> with the configured CLI and vault configuration. This read-only command works without the memory service or model credentials and validates the path against the database Project. For this command only, the plugin passes TASKIX_MEMORY_ENABLED=true to the child process, so existing notes remain protected when the desktop app does not inherit the shell's memory switch. Other commands use the inherited environment. The database is never updated from the note. If lookup or rollback fails, the plugin reports the failure and leaves the file intact for retry on the next save, open or connection refresh. Changes racing with a lookup are checked again. This requires the matching CLI and Taskix Sync plugin. Tests mock Obsidian's event and file APIs; live desktop behavior still needs acceptance after installation.

Issue type selection is available in the unreleased schema 26 version. The Type dropdown offers feature, bug, enhancement, documentation, question, refactor and None. Upgrade Taskix, Agentix and Taskix Sync together; existing Issues remain unclassified. See Issue types.

Editing an existing Issue's issue_type property also synchronizes the label back to SQLite after five idle seconds in the unreleased version. An empty, null, or removed property clears it. Invalid labels, stale revisions, and type changes on terminal Issues are rejected while preserving the saved note. Reopen terminal Issues first. Install the matching CLI and reload Taskix Sync.

Local environment defaults

The CLI and Taskix Manager load ~/.config/taskix/taskix.env automatically; inherited variables override file defaults. Resident plugins cache the file until restarted. See Local environment files for syntax and migration.

Clone this wiki locally