VSCode Extension
Overview
Section titled “Overview”The Brainfile VSCode extension provides a visual kanban board interface for managing tasks directly within your editor. View, create, and organize tasks without leaving your development environment.
Built on @brainfile/core - the official Brainfile parser and serializer.
Features
Section titled “Features”- Visual Kanban Board - View tasks in customizable columns
- Drag and Drop - Move tasks between columns with drag and drop
- Live Updates - Changes sync automatically when editing markdown
- Task Templates - Create tasks from built-in templates
- Project Rules - Define rules (always, never, prefer, context)
- Progress Tracking - Track completion with subtasks
- Collapsible Sections - Organize tasks efficiently
Installation
Section titled “Installation”- Open VSCode
- Go to Extensions (
Ctrl+Shift+X/Cmd+Shift+X) - Search for “Brainfile”
- Click Install
Alternatively, install from the command line:
code --install-extension brainfile.brainfileGetting Started
Section titled “Getting Started”- Create a
brainfile.mdfile in your project root - Open the folder in VSCode
- The Brainfile sidebar appears automatically
- View and manage your tasks in the visual board
File Format
Section titled “File Format”Tasks are defined in YAML frontmatter:
---title: My Projectrules: always: - id: 1 rule: write tests for all new features never: - id: 1 rule: commit directly to main branchcolumns: - id: todo title: To Do tasks: - id: task-1 title: Task Title description: Task description priority: high tags: [feature, backend]---Creating Tasks from Templates
Section titled “Creating Tasks from Templates”Brainfile includes built-in task templates to help you quickly create structured tasks:
Using the Command Palette
Section titled “Using the Command Palette”- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Search for “Brainfile: Create Task from Template”
- Select a template:
- Bug Report - For tracking bugs with reproduction steps
- Feature Request - For proposing new features
- Code Refactor - For refactoring tasks
- Fill in the required variables
- Select the column for the new task
Using the UI Button
Section titled “Using the UI Button”- Click the “New from Template” button in the Brainfile sidebar
- Follow the prompts to create a task
Available Templates
Section titled “Available Templates”Bug Report
Section titled “Bug Report”Pre-configured for tracking and fixing bugs:
- Priority: High
- Tags: bug, needs-triage
- Subtasks: Reproduce, identify, fix, test, verify
Example:
- id: task-1 title: Login timeout on mobile description: | ## Bug Description Users experience timeout after 30 seconds on iOS devices
## Steps to Reproduce 1. Open app on iOS 2. Navigate to login 3. Wait 30 seconds priority: high tags: [bug, needs-triage] template: bug subtasks: - id: task-1-1 title: Reproduce the issue completed: falseFeature Request
Section titled “Feature Request”Structured template for new features:
- Priority: Medium
- Tags: feature, enhancement
- Subtasks: Design, implement, test, document, review
Example:
- id: task-2 title: Add dark mode support description: | ## Feature Description Users want ability to toggle between light and dark themes
## Use Cases - Users working late at night - Users with visual sensitivity priority: medium tags: [feature, enhancement] template: featureCode Refactor
Section titled “Code Refactor”Template for refactoring tasks:
- Priority: Low
- Tags: refactor, technical-debt
- Subtasks: Analyze, design, implement, test, document, verify performance
Task Management
Section titled “Task Management”Moving Tasks
Section titled “Moving Tasks”Drag and Drop:
- Click and drag a task card
- Drop it in the target column
- Changes save automatically
Via Markdown:
- Edit
brainfile.mddirectly - Move task objects between column arrays
- Save the file - UI updates automatically
Editing Tasks
Section titled “Editing Tasks”Via UI:
- Click on a task to view details
- Edit fields in the detail panel
- Changes save to markdown automatically
Via Markdown:
- Edit the YAML frontmatter directly
- Save the file
- UI reflects changes immediately
Project Rules
Section titled “Project Rules”Define project-specific rules that appear in the UI:
rules: always: - id: 1 rule: update task status as you work - id: 2 rule: write tests for all features never: - id: 1 rule: commit directly to main - id: 2 rule: skip code review prefer: - id: 1 rule: functional programming patterns context: - id: 1 rule: this is a TypeScript monorepoSubtasks
Section titled “Subtasks”Track granular progress within tasks:
tasks: - id: task-1 title: Implement authentication subtasks: - id: task-1-1 title: Setup OAuth provider completed: true - id: task-1-2 title: Create login UI completed: false - id: task-1-3 title: Add session management completed: falseThe UI shows progress: 2/3 subtasks completed
Keyboard Shortcuts
Section titled “Keyboard Shortcuts”Ctrl+Shift+P/Cmd+Shift+P- Command Palette- Search “Brainfile” to see all commands
Settings
Section titled “Settings”Configure the extension in VSCode settings:
{ "brainfile.autoRefresh": true, "brainfile.showRules": true}Live Sync
Section titled “Live Sync”The extension watches brainfile.md for changes:
- Edit in VSCode - Changes appear in UI immediately
- Edit via CLI - UI updates automatically
- Edit via Git - Pull changes, UI refreshes
- Concurrent edits - Last write wins (use version control)
Integration with Other Tools
Section titled “Integration with Other Tools”CLI Tool
Section titled “CLI Tool”Use @brainfile/cli alongside the extension:
# Add task from terminalbrainfile add --title "Fix bug" --priority high
# View in VSCode - UI updates automaticallyAI Agents
Section titled “AI Agents”The extension respects agent instructions in the YAML:
agent: instructions: - Modify only the YAML frontmatter - Preserve all IDs - Keep orderingSee AI Agent Integration for details.
Troubleshooting
Section titled “Troubleshooting”Sidebar not appearing
Section titled “Sidebar not appearing”- Check that
brainfile.mdexists in project root - Try reloading VSCode window
- Check for YAML syntax errors
Changes not syncing
Section titled “Changes not syncing”- Verify file saves successfully
- Check for YAML syntax errors
- View VSCode output panel for errors
Template button not working
Section titled “Template button not working”- Ensure you have a valid
brainfile.md - Check that columns exist in your board
- Try using Command Palette instead
Development
Section titled “Development”Want to contribute? See the GitHub repository.
# Clone the repositorygit clone https://github.com/brainfile/vscode.gitcd vscode
# Install dependenciesnpm install
# Run in development modenpm run dev- Marketplace: https://marketplace.visualstudio.com/items?itemName=brainfile.brainfile
- GitHub: https://github.com/brainfile/vscode
- Core Library: @brainfile/core
- CLI Tool: @brainfile/cli
Related Tools
Section titled “Related Tools”- CLI Tool - Command-line interface
- Core Library - JavaScript/TypeScript API
- Protocol Specification - File format details