Code Context

Code context links tasks to the source code they touch. This gives you visibility into which files each task affects.

How It Works

  1. barkcli context scan analyzes your codebase
  2. Matches task titles to code symbols using fuzzy matching
  3. Links are stored in .board/context/<board>.json
  4. barkcli context sync refreshes git status

Commands

# Scan and link code to tasks
barkcli context scan

# Check coverage
barkcli context status

# Manual linking
barkcli context link implement-auth src/auth/handler.ts

# View context for a card
barkcli context show implement-auth

# Search code symbols
barkcli code "AuthService"

# Git-aware sync
barkcli context sync

File Statuses

StatusDescription
cleanFile matches last commit
changedFile has uncommitted changes
unknownFile not tracked by git

Supported Languages

LanguageSymbol Extraction
JavaScript/TypeScriptFull (functions, classes, types)
PythonFull (functions, classes, methods)
RustFull (functions, structs, traits)
GoFull (functions, types, interfaces)
OtherFile-level only