Skip to content

This document provides a comprehensive reference for all Beans VS Code extension commands, including command palette access, keyboard shortcuts, context menu locations, and workflow examples.

Overview ​

The Beans extension provides commands organized into the following categories:

Command Quick Reference ​

CommandDescriptionKeybindingContext Menu
beans.initInitialize Beans in workspace--
beans.refreshRefresh all tree views-Active title bar
beans.viewView bean details-Tree items
beans.createCreate new bean-Draft title bar
beans.editEdit bean markdown file-Tree items
beans.setStatusChange bean status-Tree items
beans.setTypeChange bean type-Tree items
beans.setPriorityChange bean priority-Tree items
beans.setParentSet parent bean-Tree items
beans.removeParentRemove parent relationship-Tree items
beans.editBlockingEdit blocking relationships-Tree items
beans.filterFilter beans by criteria--
beans.searchSearch beans-Search title bar
beans.sortChange sort mode--
beans.copyIdCopy bean ID to clipboard-Tree items
beans.deleteDelete draft/scrapped bean-Tree items
beans.reopenCompletedReopen completed bean-Command palette only
beans.reopenScrappedReopen scrapped bean-Command palette only
beans.openConfigOpen .beans.yml--
beans.openExtensionSettingsOpen VS Code extension settings-Help title bar
beans.openUserGuideOpen user guide documentation--
beans.openAiFeaturesGuideOpen AI features guide--
beans.showOutputShow extension output channel-Help title bar
beans.details.backBack to previous bean-Details title bar
beans.copilotStartWorkCopilot: Start Work on Bean-Details title bar
beans.searchView.filterFilter search results-Search title bar
beans.searchView.clearClear search filters-Search title bar
beans.openFirstMalformedBeanOpen first malformed bean-Draft title bar

Workspace Management ​

Initialize Beans in Workspace ​

Command: beans.initCategory: Beans When: Always available

Initialize a new Beans workspace in the current folder. Creates .beans.yml configuration file with default settings.

Usage:

  1. Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
  2. Type "Beans: Initialize Beans in Workspace"
  3. Press Enter

What it does:

  • Runs beans init in workspace root
  • Creates .beans/ directory
  • Generates .beans.yml with default configuration
  • Activates extension features

When to use:

  • First time using Beans in a project
  • After cloning a repository without Beans setup

Refresh ​

Command: beans.refreshCategory: Beans Icon: $(refresh)When: Workspace initialized

Refresh all tree views to reflect latest changes from filesystem.

Usage:

  1. Click refresh icon in any tree view title bar
  2. Or run from Command Palette: "Beans: Refresh"

What it does:

  • Executes beans graphql to fetch all beans
  • Updates Active, Draft, Completed, and Scrapped tree views
  • Re-applies current filters and sort mode

When to use:

  • After making changes outside VS Code
  • After CLI operations in terminal
  • To ensure UI is in sync with filesystem

Open Configuration ​

Command: beans.openConfigCategory: Beans

Open the .beans.yml configuration file in the editor.

Usage:

  1. Command Palette: "Beans: Open Configuration"
  2. Or click "Open Config" button in bean details view

What it does:

  • Opens .beans.yml in VS Code editor
  • Provides syntax highlighting for YAML
  • Enables editing of statuses, types, priorities, and other settings

Configuration Options:

yaml
statuses:
  - todo
  - in-progress
  - completed
  - scrapped
  - draft

types:
  - milestone
  - epic
  - feature
  - bug
  - task

priorities:
  - critical
  - high
  - normal
  - low
  - deferred

Show Output ​

Command: beans.showOutputCategory: Beans Icon: $(terminal)

Open the Beans extension output channel to view logs and diagnostic information.

Usage:

  1. Command Palette: "Beans: Show Output"
  2. Or click Output icon in tree view title bar

What it includes:

  • Extension activation logs
  • CLI command executions
  • Error messages and stack traces
  • Timing information
  • MCP server status

When to use:

  • Troubleshooting extension issues
  • Verifying CLI operations
  • Debugging MCP tool calls
  • Reporting bugs

Open Extension Settings ​

Command: beans.openExtensionSettingsCategory: Beans Icon: $(gear)

Open VS Code settings filtered to Beans extension configuration.

Usage:

  1. Command Palette: "Beans: Open Extension Settings"
  2. Or click gear icon in Help view title bar

When to use:

  • Configuring AI features, display mode, sort defaults
  • Adjusting file watcher debounce or logging levels

Open User Guide ​

Command: beans.openUserGuideCategory: Beans Icon: $(info)

Open the Beans extension user guide documentation.

Usage:

  1. Command Palette: "Beans: Open User Guide"

Open AI Features Guide ​

Command: beans.openAiFeaturesGuideCategory: Beans Icon: $(sparkle)

Open the Beans AI features documentation covering MCP tools, chat participant, and Copilot integration.

Usage:

  1. Command Palette: "Beans: Open AI Features Guide"

Bean Operations ​

View Bean ​

Command: beans.viewCategory: Beans When: Workspace initialized Context Menu: Tree items

View bean details in markdown preview pane.

Usage:

  • Tree View: Click bean to view in details panel
  • Context Menu: Right-click bean → "View Bean"
  • Command Palette: "Beans: View Bean" → Select bean from list

What it does:

  • Opens bean in VS Code preview pane
  • Displays markdown-rendered body content
  • Shows metadata: status, type, priority, dates
  • Highlights relationships: parent, children, blocking, blocked-by
  • Provides action buttons for common operations

Details Panel Sections:

  • Header: Bean code, title, status badge
  • Metadata: Type, priority, created/updated dates
  • Relationships: Parent bean, child beans, blocking relationships
  • Body: Markdown-rendered description and checklists
  • Actions: Quick access buttons for edit, status change, etc.

Create Bean ​

Command: beans.createCategory: Beans Icon: $(add)When: Workspace initialized Context Menu: Tree title bar

Create a new bean with interactive prompts.

Usage:

  1. Click + icon in tree view title bar
  2. Or Command Palette: "Beans: Create Bean"
  3. Enter bean title (required)
  4. Select bean type: milestone, epic, feature, bug, task
  5. Enter description (optional)

Workflow:

text
Enter Title → Select Type → Enter Description → Bean Created

MCP Integration ​

This extension exposes a small set of MCP (Model Context Protocol) tools so external LLM-driven workflows can interact with the extension and the Beans CLI. We intentionally expose a compact, consolidated surface so callers can perform a wide range of operations without an explosion of fine-grained tools.

Public MCP tools (names and brief description):

  • beans_init — Initialize Beans in the workspace (accepts optional prefix).
  • beans_view — Fetch full bean details by beanId or beanIds.
  • beans_create — Create a new bean (title, type, optional status/priority/body/parent; description remains a deprecated alias for body).
  • beans_bulk_create — Create multiple beans in one request, optionally with a shared parent.
  • beans_update — Consolidated update API for metadata and body fields (beanId, status, type, priority, parent, clearParent, blocking, blockedBy, body, bodyAppend, bodyReplace, optional ifMatch).
  • beans_bulk_update — Update multiple beans in one request, optionally reassigning a shared parent.
  • beans_delete — Delete one or more beans (beanId or beanIds, optional force).
  • beans_reopen — Reopen a closed bean (beanId, requiredCurrentStatus of completed|scrapped, targetStatus).
  • beans_query — Unified query tool for refresh, filter, search, sort, ready, llm_context, and open_config operations. Accepts operation plus optional params like mode, statuses, types, search, tags, includeClosed, and writeToWorkspaceInstructions.
  • beans_bean_file — Read/create/edit/delete files under .beans via an operation (read|edit|create|delete), path, content, and overwrite flag.
  • beans_output — Read extension output logs or show usage guidance (operation: read|show, optional lines).

Notes and guidance

  • Prefer beans_query for list/search/filter/sort workflows — it consolidates the logic and can also generate Copilot instructions (llm_context) or open the workspace config (open_config).
  • Use beans_update for any metadata/body changes instead of per-field update tools; it preserves idempotency and reduces tool surface complexity.
  • Use beans_bulk_create and beans_bulk_update for batch planning or workflow transitions; they are best-effort and return per-item results.
  • When reading or editing files under .beans, use beans_bean_file to ensure path sanitization and workspace-relative safety.
  • beans_output enforces that the requested log path stays within the workspace or the VS Code log directory for security.

Result:

  • New bean file created in .beans/
  • Bean appears in Active tree view (status: todo)
  • Success notification shows bean code
  • All tree views refresh automatically

Example:

text
Title: "Add user authentication"
Type: feature
Description: "Implement JWT-based auth with refresh tokens"
→ Creates beans-vscode-xyzw--add-user-authentication.md

Edit Bean ​

Command: beans.editCategory: Beans Icon: $(edit)When: Workspace initialized Context Menu: Tree items, Details view

Open bean markdown file in VS Code editor.

Usage:

  • Context Menu: Right-click bean → "Edit Bean"
  • Details View: Click pencil icon in title bar
  • Command Palette: "Beans: Edit Bean" → Select bean

What it does:

  • Opens .beans/<bean-file>.md in editor
  • Enables direct editing of:
    • Bean body (description, notes, checklists)
    • Frontmatter metadata (manually if needed)
  • Saves changes to filesystem
  • Tree views auto-update on save (if file watcher enabled)