Backlog Explorer
A VS Code extension that parses a workspace's .backlog folder and displays its
contents in a sidebar tree with a detail view — the same data model as
the backlog CLI and the
backlog-skills system.
The extension only writes to your .backlog folder when you save an edited
description, and makes no network calls. Everything else is read from markdown
files with YAML frontmatter.
Features
Sidebar view — one grouping at a time, picked with the Group By title
button and remembered per workspace; the view header shows the current one:
- Status (default): In Progress and Review open, Todo and On Hold folded,
Done and Cancelled folded together into Closed. Unknown status values
get an Other status group.
- Epic: one node per epic (name, then ID and progress), plus No epic.
- Sprint: the current sprint first and open, upcoming next, past last,
each with
done/total story points, plus No sprint.
- Priority and Assignee (with Unassigned last).
Child tasks are nested under their parent when both are in the same group,
and parents and epics get a progress-ring icon (colored by type or status)
with the exact percentage beside it. Task rows read
ID — summary · @assignee · N pts (status first when a group mixes statuses,
↗ PREFIX for tasks from an external project); hovering shows a card with
every key field. Status, type and priority are color-coded, and expand /
collapse state survives live reloads.
Multiple projects — every .backlog folder in the workspace is found
(up to 4 levels down, skipping hidden, node_modules and build folders) and
loaded. With more than one, the sidebar lists them like the folders of a multi-root
workspace: one root per folder (e.g. app, apps/web), with the project
name and ID beside it, grouped the same way, with a dashboard button on each. A folder with no .backlog below
it still uses the nearest one above it.
Subtask-aware progress — a task with subtasks averages its subtasks' own
progress (recursively; cancelled ones are left out), a task without subtasks
counts its ticked acceptance criteria, and done is 100%. An epic averages its
top-level tasks, so subtasks are not counted twice. Shown as a bar in the
detail panel and the dashboard's epic rows, and as a ring icon in the sidebar.
Live dashboard — like the backlog CLI's dashboard: totals, status /
priority / type bar charts, and sprint (story points) and epic (tasks done)
progress. It is built from the parsed tasks, so it updates live as .backlog/
changes. Open it from the dashboard button in the view title (it asks which
project when there are several). Click a sprint or epic to open it;
Open backlog.md shows the raw file.
Detail view — click any task, epic, or sprint to open a panel with
every parsed field: status, type, priority, severity, assignee, labels,
components, story points, dates, and dependency relations (depends_on,
blocks, related_to, children, plus the reverse "Blocked by"). Parent, epic,
sprint, every relation and task IDs written in the description are clickable;
references to items that do not exist are shown struck through.
Description editing — the description and acceptance criteria are rendered
as GitHub-flavored markdown (task lists, tables, strikethrough, autolinks).
Edit turns it into a text box; Save rewrites only the task's
## Description section (or an epic's body), leaving the frontmatter and
other sections untouched. Saving is refused while the file has unsaved
changes in an editor.
Tree search — filter the sidebar by task ID, summary, or label. Click the
search icon (or run Backlog: Search Tasks) and type: the tree updates live,
groups show matching/total counts (e.g. Todo (2/5)), and groups, epics,
sprints and projects only appear when they contain a match. Press Enter to keep the filter or Esc to
clear it.
Status / priority filter — click the filter icon (or run
Backlog: Filter by Status/Priority) for a multi-select picker of statuses
and priorities. Both filters compose with the text search, status groups
outside the selection are hidden, and the tree narrows live.
Clear filters — a Backlog: Clear Filters button appears in the view
title whenever any filter (text, status, or priority) is active.
Live refresh — the view re-parses automatically when anything under
.backlog/ changes (create/edit/delete), debounced. A manual Backlog: Refresh
command is also available.
Open source files — jump from the tree or detail view straight to the
underlying tasks/<ID>.md file.
Status bar — running counts of Todo / In Progress / Done tasks.
Demo backlog
demo/ holds a backlog that exercises every case: all statuses, types,
priorities, severities and story-point values, parent/child and dependency
links (including a missing reference), empty and minimal files, an empty epic,
and an external backend project that still uses the legacy project.md
format. Run Run Extension (demo backlog) from the debug view to open it.
It is excluded from the VSIX.
Mirrors the backlog repo's model exactly (model/task.go, model/backlog.go):
.backlog/
├── project.md # YAML frontmatter: project_id, name, external_projects
├── backlog.md # optional status-grouped dashboard
├── AGENTS.md # ignored by the parser
├── tasks/ # one markdown file per task: <ID>.md
├── epics/ # one markdown file per epic
└── sprints/ # one markdown file per sprint
The legacy project.md format (id: plus external_projects: {name: {repo, backlog}})
is also read: the project prefix is derived from task filenames, as the backlog
CLI does. Unlike the CLI, the extension does not rewrite the file.
A task file is YAML frontmatter between --- separators plus a markdown body:
---
id: "FE-TASK-001"
type: "task" # task | bug | story | spike | chore
status: "todo" # todo | in-progress | review | on-hold | done | cancelled
priority: "high" # critical | high | medium | low
severity: null # blocker | critical | major | minor | trivial (bugs)
assignee: null
reporter: null
labels: ["neovim", "plugin"]
components: ["tui"]
story_points: 5 # Fibonacci: 1, 2, 3, 5, 8, 13
epic: null
sprint: null
fix_version: null
resolution: null
parent: null
children: []
depends_on: []
blocks: []
related_to: []
due_date: null
created: "2026-06-12"
updated: "2026-06-12"
---
## Summary
One-line summary of the task
## Description
Longer description.
## Acceptance Criteria
- [ ] acceptance criterion
Epics carry id, name, status, priority, labels, due_date, created,
updated; sprints carry id, name, start, end, goal, created. Tasks
reference an epic via the epic field and a sprint via the sprint field.
Parser behavior mirrors the Go implementation:
- Files are split on the first two
--- separators; a file without frontmatter is
skipped rather than crashing the view (shown implicitly by absence).
- The one-line summary is the first non-empty line under
## Summary (falling back
to the first non-empty non-header line), matching model/task.go.
- External projects from
external_projects are loaded relative to the directory
containing .backlog/; each project is loaded at most once, mirroring Go's
visited map, and projects whose project_id does not match the configured
prefix are skipped.
description and acceptance criteria sections are extracted for the detail
view — a small, documented extension beyond the Go model, which only extracts
the summary.
Fidelity notes (deliberate differences from the CLI)
- The sidebar groups epics under their own Epics section rather than folding
them into the status lists. The CLI's
LoadBacklog appends epic-derived
type: epic tasks to its flat task list (used for health checks and search);
this extension keeps epics separate so each item appears exactly once, and
status counts therefore count real tasks only.
- The dashboard is computed from the parsed tasks rather than from
backlog.md,
which is a generated artifact that can be stale; the raw file is still one
click away.
Commands
| Command |
Description |
Backlog: Refresh |
Re-parse the .backlog folder |
Backlog: Search Tasks |
Open the tree-search box (filter by ID, summary, label) |
Backlog: Filter by Status/Priority |
Multi-select picker to narrow the tree by state |
Backlog: Clear Filters |
Remove the active text, status, and priority filters |
Backlog: Group By… |
Group the sidebar by status, epic, sprint, priority, or assignee |
Backlog: Open Detail View |
Open the parsed detail panel for the selected item |
Backlog: Open Task File |
Open the source markdown file for the selected item |
Backlog: Open Dashboard |
Open the live dashboard panel (pick a project when there are several) |
The view auto-activates on startup when the workspace contains a .backlog
folder; otherwise it shows an empty-state hint.
Development
bun install # install dependencies
bun run build # bundle dist/extension.js + preview/parser.cjs with esbuild
bun test # parser smoke tests against the sample fixture
bun run watch # rebuild on change
Run the extension in the Extension Development Host with F5:
- Run Extension — opens the current workspace; use any folder containing a
.backlog/ directory.
- Run Extension (sample fixture) — opens the repo's own fixture
(
src/test/fixtures/sample-backlog), which has a populated .backlog/
directory, so the tree and detail view are populated immediately.
Package a .vsix:
bun run package
GitHub
The repository lives at github.com/hantsaniala/backlog-vscode-extension.
Push develop and main with:
bun run push:github # or: sh ./scripts/push.sh
The script uses GITHUB_TOKEN (a personal access token with repo scope,
pasted into the workspace Keys tab) when it is present, and never writes the
token into .git/config — it is injected into a one-off HTTPS push URL only.
Without a token it falls back to git's normal credential helper.
Browser preview
Since an extension has no browser UI, this repo ships a small preview server that
renders the exact output of the shared parser against the sample fixture:
bun run build # generates preview/parser.cjs
bun run preview # serves on 0.0.0.0:$PORT (default 4173)
bun run preview:smoke
License
MIT
| |