Skip to content

GSD2 File System Map

Maps every source file to its system/subsystem labels

Section titled “Maps every source file to its system/subsystem labels”

LabelDescription
Agent CoreCore agent loop, session lifecycle, SDK factory
AI ProvidersLLM provider implementations (Anthropic, OpenAI, Google, etc.)
API RoutesNext.js API route handlers (web server)
ASTAbstract Syntax Tree search/rewrite via tree-sitter + ast-grep
Async JobsBackground bash job management
Auth / OAuthAuthentication, OAuth flows, token storage
Auto EngineGSD autonomous execution loop, dispatch, supervision
Bg ShellBackground process / interactive shell management
Browser ToolsPlaywright-based browser automation extension
Build SystemScripts for build, packaging, version management, CI
CLICommand-line entry points and argument parsing
CMuxTmux/multiplexer session integration
CommandsGSD slash/sub-command routing and handlers
CompactionContext token reduction and summarization
ConfigPaths, defaults, models, preferences, constants
Context7Library documentation fetching extension
Doctor / DiagnosticsHealth checks, forensics, skill health
Event SystemEvent bus, publication/subscription
Extension RegistryExtension discovery, manifests, enable/disable
ExtensionsExtension loader, runner, project trust, hooks
File Searchgrep, glob, fd — file and content discovery
GSD WorkflowCore GSD planning/execution workflow engine
Google SearchWeb search via Google API
Headless ModeNon-interactive / scripted command execution
Image ProcessingImage decode, resize, encode, clipboard images
Integration TestsSmoke, fixture, live, regression test suites
Loader / BootstrapStartup initialization, extension sync, tool bootstrap
LSPLanguage Server Protocol client and multiplexer
Mac ToolsmacOS-native utilities (Swift CLI)
MCP Server/ClientModel Context Protocol server and client
Memory ExtensionIn-session memory pipeline and storage
MigrationData and config migration tools
ModesInteractive TUI, Print, RPC, and Web modes
Model SystemModel discovery, resolution, routing, registry
Native / Rust ToolsN-API Rust engine modules
Node.js BindingsTypeScript wrappers around Rust N-API modules
OnboardingFirst-run wizard and setup flows
PermissionsPermission management for tools and trust
Remote QuestionsRemote prompting via Slack, Discord, Telegram
Search the WebBrave/Jina/Tavily-based web search extension
Session ManagementSession file I/O, branches, fork trees
SkillsSkill tool registration, health, telemetry
Slash CommandsCommand boilerplate generators extension
State MachineState, history, persistence, reactive graph
Studio AppElectron desktop app (renderer, main, preload)
SubagentParallel/serial subagent delegation
Syntax HighlightingSyntect-backed ANSI code coloring
Text ProcessingDiff, truncation, HTML→MD, ANSI, JSON parse
Tool SystemTool implementations (bash, edit, read, write, grep…)
TTSRTime-Traveling Stream Rules regex guardrails
TUI ComponentsTerminal UI component library (pi-tui)
Universal ConfigMulti-tool configuration file discovery
VoiceVoice input extension (Swift/Python)
VS Code ExtensionVS Code sidebar, chat participant, RPC client
Web ModeWeb server service layer and RPC bridge
Web UINext.js frontend components, pages, hooks
WorktreeGit worktree lifecycle, sync, name generation

FileSystem Label(s)Description
src/app-paths.tsConfigApp directory paths (GSD_HOME, sessions, web PID, prefs)
src/app-paths.jsConfigCompiled JS version
src/bundled-extension-paths.tsExtension RegistrySerializes/parses bundled extension directory paths
src/bundled-resource-path.tsLoader/Bootstrap, Extension RegistryResolves bundled raw resource files from package root
src/cli.tsCLIMain CLI entry point — arg parsing, mode detection, plugin init
src/cli-web-branch.tsCLI, Web ModeWeb CLI branch; session dir resolution, legacy migration
src/extension-discovery.tsExtension RegistryDiscovers extension entry points from FS and package.json
src/extension-registry.tsExtension RegistryExtension manifests, registry persistence, enable/disable
src/headless-answers.tsHeadless ModePre-supply answers to extension UI requests in headless
src/headless-context.tsHeadless ModeContext loading from stdin/files; project bootstrapping
src/headless-events.tsHeadless ModeEvent classification, terminal detection, idle timeouts
src/headless-query.tsHeadless Mode, CLIRead-only snapshot query (state, dispatch preview, costs)
src/headless-ui.tsHeadless ModeExtension UI auto-response, progress formatting
src/headless.tsHeadless ModeOrchestrator for /gsd subcommands without TUI via RPC
src/help-text.tsCLIGenerates help text for all subcommands
src/loader.tsLoader/BootstrapFast-path startup, extension discovery/validation, env setup
src/logo.tsCLIASCII logo rendering for welcome screen and loader
src/mcp-server.tsMCP Server/ClientNative MCP server over stdin/stdout for external AI clients
src/models-resolver.tsConfig, Auth/OAuthResolves models.json with fallback from Pi to GSD
src/onboarding.tsOnboardingFirst-run wizard — LLM auth, OAuth, API keys, tool setup
src/pi-migration.tsConfig, Auth/OAuthMigrates provider credentials from Pi auth.json to GSD
src/project-sessions.tsState Machine, CLISession-per-project directory paths from project CWD
src/remote-questions-config.tsConfig, OnboardingSaves remote questions (Discord, Slack, Telegram) config
src/resource-loader.tsLoader/Bootstrap, Extension RegistryInitializes, syncs, validates bundled resources
src/startup-timings.tsCLI, Build SystemOptional startup timing instrumentation
src/tool-bootstrap.tsLoader/BootstrapManages fd/rg availability, falls back to built-in
src/update-check.tsCLIChecks npm registry for new versions (cached)
src/update-cmd.tsCLIExecutes npm install to update gsd-pi package
src/web-mode.tsWeb ModeLaunches/manages web server process (PID tracking, browser)
src/welcome-screen.tsCLIWelcome panel — logo, version, model info
src/wizard.tsOnboarding, ConfigLoads env keys from auth.json → hydrates process.env
src/worktree-cli.tsWorktree, CLIWorktree lifecycle: create, list, merge, clean, remove
src/worktree-name-gen.tsWorktreeGenerates random worktree names (adjective-verbing-noun)
FileSystem Label(s)Description
src/web/auto-dashboard-service.tsWeb Mode, Auto EngineLoads auto-mode dashboard state (active, paused, costs)
src/web/bridge-service.tsWeb Mode, State MachineCentral hub spawning RPC sessions, managing session state
src/web/captures-service.tsWeb ModeLoads knowledge capture entries via child process bridge
src/web/cleanup-service.tsWeb ModeCollects GSD branches and snapshot refs for cleanup
src/web/cli-entry.tsWeb Mode, CLIBuilds/resolves GSD CLI entry points for RPC/interactive
src/web/doctor-service.tsWeb Mode, Doctor/DiagnosticsRuns diagnostics, returns fixer operations
src/web/export-service.tsWeb ModeGenerates exported project reports (markdown/JSON)
src/web/forensics-service.tsWeb Mode, Doctor/DiagnosticsLoads forensic report data (traces, metrics, issues)
src/web/git-summary-service.tsWeb ModeProvides git branch, commit history, diff summary
src/web/history-service.tsWeb ModeLoads metrics ledger, aggregates history views
src/web/hooks-service.tsWeb ModeManages git hook registration and shell integration
src/web/inspect-service.tsWeb ModeDetailed inspection of project state and traces
src/web/knowledge-service.tsWeb ModeReads and parses KNOWLEDGE.md
src/web/onboarding-service.tsWeb Mode, Onboarding, Auth/OAuthManages onboarding state, auth refresh, lock reasons
src/web/project-discovery-service.tsWeb ModeDiscovers and catalogs projects in filesystem
src/web/recovery-diagnostics-service.tsWeb ModeRecovery suggestions for error states/blockers
src/web/settings-service.tsWeb Mode, ConfigLoads preferences, routing config, budget, totals
src/web/skill-health-service.tsWeb Mode, Doctor/DiagnosticsLoads skill health report with capability assessments
src/web/undo-service.tsWeb ModeManages undo/snapshot and restoration
src/web/update-service.tsWeb ModeChecks for and executes application updates
src/web/visualizer-service.tsWeb ModeGenerates visual representations of project state
src/web/web-auth-storage.tsWeb Mode, Auth/OAuthOAuth and API key credential storage for web mode

packages/pi-agent-core/src/ — Agent Core

Section titled “packages/pi-agent-core/src/ — Agent Core”
FileSystem Label(s)Description
agent-loop.tsAgent Core, State MachineCore agent execution loop — tool calls and LLM interactions
agent.tsAgent CoreMain Agent class wrapping loop with state management
proxy.tsAgent CoreProxy wrapper for agent functionality
types.tsAgent CoreType definitions for agent config, context, events
index.tsAgent CorePackage exports

FileSystem Label(s)Description
index.tsAI ProvidersMain export hub for providers and streaming
api-registry.tsAI ProvidersRegistry for managing multiple AI provider implementations
models.tsAI ProvidersModel definitions and metadata
models.generated.tsAI ProvidersAuto-generated model list from provider registries
stream.tsAI ProvidersMain streaming interface dispatching to registered providers
types.tsAI ProvidersCore types for models, APIs, streaming options
env-api-keys.tsAI Providers, Auth/OAuthEnvironment variable API key resolution
web-runtime-env-api-keys.tsAI Providers, Auth/OAuthWeb runtime API key handling
web-runtime-oauth.tsAI Providers, Auth/OAuthWeb runtime OAuth token management
providers/register-builtins.tsAI ProvidersRegistration of built-in provider implementations
providers/anthropic.tsAI ProvidersAnthropic API provider
providers/anthropic-shared.tsAI ProvidersShared utilities for Anthropic provider variants
providers/anthropic-vertex.tsAI ProvidersGoogle Vertex AI Anthropic models
providers/amazon-bedrock.tsAI ProvidersAWS Bedrock LLM provider
providers/bedrock-provider.tsAI ProvidersBedrock-specific streaming logic
providers/google.tsAI ProvidersGoogle Generative AI provider
providers/google-gemini-cli.tsAI ProvidersGoogle Gemini CLI authentication provider
providers/google-shared.tsAI ProvidersShared Google provider utilities
providers/google-vertex.tsAI ProvidersGoogle Vertex AI provider
providers/mistral.tsAI ProvidersMistral AI provider
providers/openai-completions.tsAI ProvidersOpenAI legacy completions API
providers/openai-responses.tsAI ProvidersOpenAI responses (chat) API
providers/openai-responses-shared.tsAI ProvidersShared OpenAI responses utilities
providers/openai-shared.tsAI ProvidersShared OpenAI utilities
providers/openai-codex-responses.tsAI ProvidersOpenAI Codex-specific response handling
providers/azure-openai-responses.tsAI ProvidersAzure OpenAI responses provider
providers/github-copilot-headers.tsAI ProvidersGitHub Copilot custom header construction
providers/simple-options.tsAI ProvidersCommon options builder for simple streaming
providers/transform-messages.tsAI ProvidersMessage transformation for provider compatibility
utils/oauth/index.tsAuth/OAuthOAuth utilities export hub
utils/oauth/types.tsAuth/OAuthOAuth credential and prompt types
utils/oauth/pkce.tsAuth/OAuthPKCE flow implementation
utils/oauth/github-copilot.tsAuth/OAuthGitHub Copilot OAuth flow
utils/oauth/google-oauth-utils.tsAuth/OAuthShared Google OAuth utilities
utils/oauth/google-gemini-cli.tsAuth/OAuthGoogle Gemini CLI OAuth flow
utils/oauth/google-antigravity.tsAuth/OAuthGoogle Antigravity OAuth implementation
utils/oauth/openai-codex.tsAuth/OAuthOpenAI Codex OAuth flow
utils/oauth/anthropic.tsAuth/OAuthAnthropic OAuth flow
utils/event-stream.tsAI ProvidersEvent stream parsing and handling
utils/hash.tsAI ProvidersHashing utilities
utils/json-parse.tsAI ProvidersResilient JSON parsing with recovery
utils/overflow.tsAI ProvidersToken/context overflow detection
utils/sanitize-unicode.tsAI ProvidersUnicode sanitization for API compatibility
utils/validation.tsAI ProvidersRequest/response validation schemas
utils/typebox-helpers.tsAI ProvidersTypeBox schema helpers

FileSystem Label(s)Description
index.tsTUI ComponentsMain TUI export hub
tui.tsTUI ComponentsCore TUI renderer and component system
terminal.tsTUI ComponentsLow-level terminal I/O and rendering
keys.tsTUI ComponentsKeyboard key parsing and matching
keybindings.tsTUI ComponentsKeybinding configuration and management
stdin-buffer.tsTUI ComponentsBuffered stdin for batch key processing
editor-component.tsTUI ComponentsInterface for custom editor implementations
autocomplete.tsTUI ComponentsAutocomplete suggestion provider system
fuzzy.tsTUI ComponentsFuzzy matching algorithm
terminal-image.tsTUI ComponentsTerminal image protocol (Kitty, iTerm2)
kill-ring.tsTUI ComponentsEmacs-style kill ring buffer
undo-stack.tsTUI ComponentsUndo/redo stack for editor operations
overlay-layout.tsTUI ComponentsOverlay/modal dialog layout system
utils.tsTUI ComponentsText width calculation, ANSI utilities
components/box.tsTUI ComponentsBox drawing with borders and styling
components/text.tsTUI ComponentsSimple text display component
components/truncated-text.tsTUI ComponentsText with automatic truncation
components/spacer.tsTUI ComponentsVertical/horizontal spacing
components/input.tsTUI ComponentsSingle-line text input with history
components/loader.tsTUI ComponentsAnimated loading spinner
components/cancellable-loader.tsTUI ComponentsLoading spinner with cancel
components/image.tsTUI ComponentsImage display with theme support
components/select-list.tsTUI ComponentsList selection UI with keyboard nav
components/settings-list.tsTUI ComponentsSettings/preferences list display
components/editor.tsTUI ComponentsFull multi-line editor with syntax awareness
components/markdown.tsTUI ComponentsMarkdown rendering to terminal

packages/pi-coding-agent/src/ — Coding Agent

Section titled “packages/pi-coding-agent/src/ — Coding Agent”
FileSystem Label(s)Description
cli.tsCLIMain CLI entry point and argument routing
main.tsCLICLI main entry with mode routing
cli/args.tsCLICLI argument definition and parsing
cli/config-selector.tsCLIInteractive configuration selection
cli/file-processor.tsCLIFile input processing for agent context
cli/list-models.tsCLI, Model SystemModel listing and discovery UI
cli/session-picker.tsCLISession selection interface
FileSystem Label(s)Description
core/agent-session.tsAgent Core, State MachineCore session abstraction, agent lifecycle, persistence
core/session-manager.tsSession ManagementSession file I/O, branch/fork tree management
core/event-bus.tsAgent Core, Event SystemEvent publication and subscription
core/messages.tsState MachineMessage type definitions and constructors
core/settings-manager.tsSession Management, ConfigSession-level settings persistence
FileSystem Label(s)Description
core/tools/index.tsTool SystemTool registry and factory exports
core/tools/bash.tsTool SystemBash/shell command execution tool
core/tools/bash-interceptor.tsTool SystemBash command interception and filtering
core/tools/edit.tsTool SystemFile editing tool with line ranges
core/tools/edit-diff.tsTool SystemEdit tool with diff-based operations
core/tools/read.tsTool SystemFile reading tool
core/tools/write.tsTool SystemFile writing tool
core/tools/find.tsTool System, File SearchFile discovery tool
core/tools/grep.tsTool System, File SearchPattern search tool
core/tools/ls.tsTool SystemDirectory listing tool
core/tools/truncate.tsTool System, Text ProcessingOutput truncation utility
core/tools/hashline.tsTool SystemHash-based line identification
core/tools/hashline-read.tsTool SystemFile reading with hash-based line ranges
core/tools/hashline-edit.tsTool SystemFile editing with hash-based line identification
core/tools/path-utils.tsTool SystemPath normalization and validation
core/bash-executor.tsTool SystemHigh-level bash execution with event handling
core/exec.tsTool SystemUtility functions for command execution
FileSystem Label(s)Description
core/model-registry.tsModel SystemModel metadata and capability registry
core/model-discovery.tsModel SystemModel discovery from external sources
core/model-resolver.tsModel SystemModel selection and resolution logic
core/models-json-writer.tsModel SystemModel metadata serialization
FileSystem Label(s)Description
core/prompt-templates.tsAgent CoreTemplate system for prompt construction
core/system-prompt.tsAgent CoreSystem prompt building and management
core/retry-handler.tsAI ProvidersRetry logic with exponential backoff
core/fallback-resolver.tsModel SystemModel fallback resolution on API failures
core/slash-commands.tsCommandsBuilt-in slash command definitions and handlers
FileSystem Label(s)Description
core/extensions/index.tsExtensionsExtension system exports
core/extensions/types.tsExtensionsExtension event and context types
core/extensions/loader.tsExtensionsExtension discovery and loading
core/extensions/runner.tsExtensions, Event SystemExtension event dispatch and execution
core/extensions/wrapper.tsExtensions, Tool SystemTool wrapping for extension monitoring
core/extensions/project-trust.tsExtensions, PermissionsProject trust management for local extensions
core/skills.tsSkills, Tool SystemSkill tool registration and management
FileSystem Label(s)Description
core/compaction-orchestrator.tsCompactionOrchestrates session compaction decisions
core/compaction/compaction.tsCompactionContext token reduction via summarization
core/compaction/branch-summarization.tsCompactionBranch history summarization for context limits
core/compaction/utils.tsCompactionCompaction utilities
FileSystem Label(s)Description
config.tsConfigDirectory paths and version management
core/sdk.tsAgent CoreMain SDK factory for creating agent sessions
core/resolve-config-value.tsConfigConfig value resolution from environment/files
core/resource-loader.tsConfig, Loader/BootstrapExtensible resource loading (tools, extensions, themes)
core/defaults.tsConfigDefault configuration values
core/constants.tsConfigGlobal constants
core/auth-storage.tsAuth/OAuth, PermissionsOAuth token storage and management
migrations.tsConfig, MigrationConfiguration migration and deprecation handling
FileSystem Label(s)Description
core/artifact-manager.tsAgent CoreArtifact file management and metadata
core/blob-store.tsAgent CoreBinary data storage for images and attachments
core/export-html/index.tsWeb ModeSession export to HTML
core/export-html/ansi-to-html.tsWeb ModeANSI code to HTML conversion
core/export-html/tool-renderer.tsWeb ModeHTML rendering for tool calls/results
FileSystem Label(s)Description
core/lsp/index.tsLSPLSP integration exports
core/lsp/client.tsLSPLSP client implementation
core/lsp/lspmux.tsLSPLSP server multiplexing
core/lsp/config.tsLSPLSP server configuration
core/lsp/edits.tsLSPLSP-based code editing operations
core/lsp/helpers.tsLSPLSP utility functions
core/lsp/types.tsLSPLSP type definitions
core/lsp/utils.tsLSPLSP utilities
FileSystem Label(s)Description
core/fs-utils.tsTool SystemFile system utilities (atomic writes, temp files)
core/lock-utils.tsTool SystemFile locking for concurrent access
core/timings.tsBuild SystemPerformance timing measurement
core/diagnostics.tsDoctor/DiagnosticsDiagnostic information collection
core/discovery-cache.tsModel SystemModel discovery result caching
core/keybindings.tsTUI ComponentsKeybinding definitions
core/footer-data-provider.tsTUI ComponentsFooter information provider
core/index.tsAgent CoreCore module exports
index.tsAgent CorePackage exports
utils/clipboard.tsTool SystemClipboard read/write
utils/clipboard-native.tsTool SystemNative clipboard implementation
utils/clipboard-image.tsTool SystemClipboard image support
utils/error.tsAgent CoreError message extraction/formatting
utils/frontmatter.tsConfigYAML frontmatter parsing
utils/git.tsTool SystemGit information and utilities
utils/image-convert.tsImage ProcessingImage format conversion
utils/image-resize.tsImage ProcessingImage resizing and optimization
utils/mime.tsTool SystemMIME type detection
utils/path-display.tsTUI ComponentsPath formatting for display
utils/photon.tsAgent CorePhoton scripting runtime support
utils/shell.tsTool SystemShell detection and execution
utils/changelog.tsCLIChangelog parsing
utils/sleep.tsAgent CoreAsync sleep/delay utility
utils/tools-manager.tsTool SystemTool discovery and management
package-manager.tsBuild Systemnpm/yarn/pnpm/bun abstraction
FileSystem Label(s)Description
modes/index.tsModesMode system exports
modes/print-mode.tsModesNon-interactive print mode
modes/rpc/rpc-mode.tsModes, MCP Server/ClientRPC server mode for remote access
modes/rpc/rpc-client.tsModes, MCP Server/ClientRPC client for remote agent interaction
modes/rpc/rpc-types.tsModes, MCP Server/ClientRPC protocol type definitions
modes/rpc/jsonl.tsModesJSONL serialization for RPC
modes/rpc/remote-terminal.tsModesRemote terminal output handling
modes/shared/command-context-actions.tsModes, CommandsShared command context utilities
modes/interactive/interactive-mode.tsModes, TUI ComponentsMain interactive TUI mode orchestration
modes/interactive/interactive-mode-state.tsModes, TUI Components, State MachineInteractive mode state management
modes/interactive/slash-command-handlers.tsModes, CommandsInteractive mode slash command handlers
modes/interactive/theme/theme.tsTUI ComponentsTheme system and hot reloading
modes/interactive/theme/themes.tsTUI ComponentsBuilt-in theme definitions
modes/interactive/utils/shorten-path.tsTUI ComponentsPath shortening for display
modes/interactive/controllers/chat-controller.tsModes, TUI ComponentsChat input and message submission
modes/interactive/controllers/input-controller.tsModes, TUI ComponentsInput handling and routing
modes/interactive/controllers/model-controller.tsModes, TUI Components, Model SystemModel/provider/thinking configuration
modes/interactive/controllers/extension-ui-controller.tsModes, TUI Components, ExtensionsExtension UI event handling
FileSystem Label(s)Description
components/index.tsTUI ComponentsInteractive mode component exports
components/armin.tsTUI ComponentsAssistant message rendering
components/assistant-message.tsTUI ComponentsAssistant message display
components/user-message.tsTUI ComponentsUser message display
components/user-message-selector.tsTUI ComponentsUser message editing selector
components/bash-execution.tsTUI Components, Tool SystemBash execution result display
components/tool-execution.tsTUI Components, Tool SystemTool call and result display
components/custom-message.tsTUI ComponentsCustom message type display
components/custom-editor.tsTUI ComponentsCustom editor integration
components/skill-invocation-message.tsTUI Components, SkillsSkill invocation display
components/branch-summary-message.tsTUI Components, CompactionBranch summary display
components/compaction-summary-message.tsTUI Components, CompactionCompaction summary display
components/diff.tsTUI Components, Text ProcessingDiff display component
components/tree-render-utils.tsTUI Components, Session ManagementSession tree rendering utilities
components/tree-selector.tsTUI Components, Session ManagementSession tree navigation UI
components/session-selector.tsTUI Components, Session ManagementSession selection UI
components/session-selector-search.tsTUI Components, Session ManagementSession search UI
components/model-selector.tsTUI Components, Model SystemModel selection UI
components/scoped-models-selector.tsTUI Components, Model SystemScoped model selection
components/thinking-selector.tsTUI Components, Model SystemThinking level selection
components/provider-manager.tsTUI Components, AI ProvidersProvider configuration UI
components/oauth-selector.tsTUI Components, Auth/OAuthOAuth provider selection/login
components/login-dialog.tsTUI Components, Auth/OAuthOAuth login dialog
components/theme-selector.tsTUI ComponentsTheme selection UI
components/config-selector.tsTUI Components, ConfigConfiguration selection UI
components/extension-selector.tsTUI Components, ExtensionsExtension selection UI
components/extension-editor.tsTUI Components, ExtensionsExtension code editor
components/extension-input.tsTUI Components, ExtensionsExtension input handling
components/settings-selector.tsTUI Components, ConfigSettings/preferences UI
components/show-images-selector.tsTUI Components, ConfigImage display toggle
components/bordered-loader.tsTUI ComponentsLoading spinner with border
components/countdown-timer.tsTUI ComponentsCountdown timer display
components/dynamic-border.tsTUI ComponentsDynamic border drawing
components/keybinding-hints.tsTUI ComponentsKeybinding help display
components/footer.tsTUI ComponentsFooter information display
components/daxnuts.tsTUI ComponentsSpecial rendering effect
components/visual-truncate.tsTUI ComponentsVisual text truncation
FileSystem Label(s)Description
resources/extensions/memory/index.tsMemory ExtensionMemory extension index and setup
resources/extensions/memory/pipeline.tsMemory ExtensionMemory processing pipeline
resources/extensions/memory/storage.tsMemory ExtensionMemory persistence storage

src/resources/extensions/ — Extension Subsystems

Section titled “src/resources/extensions/ — Extension Subsystems”
FileSystem Label(s)Description
gsd/index.tsGSD WorkflowMain GSD extension bootstrap and registration
gsd/auto.tsAuto EngineAutomatic workflow execution and loop management
gsd/auto-dashboard.tsAuto Engine, Web ModeReal-time dashboard for auto-run progress
gsd/auto-worktree.tsAuto Engine, WorktreeAutomatic worktree creation and branch management
gsd/auto-recovery.tsAuto EngineRecovery for crashed/stalled workflows
gsd/auto-start.tsAuto EngineInitialization sequence for automatic execution
gsd/auto-worktree-sync.tsAuto Engine, WorktreeState sync between worktrees and main
gsd/auto-model-selection.tsAuto Engine, Model SystemIntelligent LLM model routing
gsd/auto-direct-dispatch.tsAuto EngineDirect command dispatching without planning
gsd/auto-dispatch.tsAuto EngineTask queueing and priority-based dispatch
gsd/auto-timeout-recovery.tsAuto EngineTimeout handling and recovery
gsd/auto-post-unit.tsAuto EnginePost-unit milestone completion processing
gsd/auto-unit-closeout.tsAuto EngineUnit finalization and archiving
gsd/auto-verification.tsAuto EnginePost-execution verification
gsd/auto-timers.tsAuto EngineTimeout and deadline management
gsd/auto-loop.tsAuto Engine, State MachineExecution loop state and cycle management
gsd/auto-supervisor.tsAuto EngineSupervision and oversight of autonomous runs
gsd/auto-budget.tsAuto EngineToken/cost budgeting and tracking
gsd/auto-observability.tsAuto EngineObservability hooks and telemetry
gsd/auto-tool-tracking.tsAuto EngineTool usage instrumentation
gsd/doctor.tsDoctor/DiagnosticsHealth check and system diagnostics
gsd/doctor-checks.tsDoctor/DiagnosticsIndividual diagnostic checks
gsd/doctor-providers.tsDoctor/DiagnosticsDiagnostic data source providers
gsd/doctor-format.tsDoctor/DiagnosticsDiagnostic output formatting
gsd/state.tsState MachineMilestone and workflow state management
gsd/history.tsState MachineState history and versioning
gsd/json-persistence.tsState MachineJSON-based persistence layer
gsd/memory-store.tsState MachineIn-memory state storage
gsd/reactive-graph.tsState MachineReactive dependency graph for state
gsd/routing-history.tsState MachineHistory of routing decisions
gsd/cache.tsState MachineCaching layer for performance
gsd/model-router.tsModel SystemLLM model selection and routing logic
gsd/worktree.tsWorktreeWorktree creation and management
gsd/worktree-manager.tsWorktreeHigher-level worktree orchestration
gsd/worktree-resolver.tsWorktreeWorktree path and reference resolution
gsd/unit-runtime.tsAuto EngineUnit-level execution runtime
gsd/activity-log.tsGSD WorkflowActivity tracking and logging
gsd/debug-logger.tsGSD WorkflowDebug output and verbose logging
gsd/commands.tsCommandsMain command dispatcher
gsd/commands-handlers.tsCommandsCommand-specific handlers
gsd/commands-bootstrap.tsCommandsBootstrap and initialization commands
gsd/commands-config.tsCommands, ConfigConfiguration management commands
gsd/commands-extensions.tsCommands, ExtensionsExtension discovery and management
gsd/commands-inspect.tsCommands, Doctor/DiagnosticsDatabase and state inspection tools
gsd/commands-logs.tsCommandsLog viewing and filtering
gsd/commands-workflow-templates.tsCommands, GSD WorkflowWorkflow template management
gsd/commands-cmux.tsCommands, CMuxTmux/cmux integration commands
gsd/exit-command.tsCommandsExit and cleanup commands
gsd/undo.tsCommandsUndo and rollback functionality
gsd/kill.tsCommandsProcess termination and cleanup
gsd/worktree-command.tsCommands, WorktreeWorktree subcommands
gsd/namespaced-resolver.tsGSD WorkflowNamespace and scoped resource resolution
gsd/error-utils.tsGSD WorkflowError handling and formatting
gsd/errors.tsGSD WorkflowError type definitions
gsd/diff-context.tsGSD WorkflowDiff-based context extraction
gsd/memory-extractor.tsGSD WorkflowMemory and context extraction from state
gsd/structured-data-formatter.tsGSD WorkflowStructured output formatting
gsd/export-html.tsGSD WorkflowHTML export of milestone reports
gsd/reports.tsGSD WorkflowReport generation and summaries
gsd/notifications.tsGSD WorkflowUser notification and messaging
gsd/triage-ui.tsGSD WorkflowTriage interface for issue categorization
gsd/guided-flow.tsGSD WorkflowUser-guided workflow orchestration
gsd/env-utils.tsGSD WorkflowEnvironment variable utilities
gsd/git-constants.tsGSD WorkflowGit-related constants and paths
gsd/milestone-id-utils.tsGSD WorkflowMilestone ID generation and parsing
gsd/resource-version.tsGSD WorkflowResource versioning helpers
gsd/atomic-write.tsGSD WorkflowAtomic file write operations
gsd/captures.tsGSD WorkflowArtifact capture and storage
gsd/changelog.tsGSD WorkflowChangelog generation
gsd/claude-import.tsGSD WorkflowClaude API/resource importing
gsd/collision-diagnostics.tsDoctor/DiagnosticsCollision detection and diagnostics
gsd/prompt-loader.tsGSD WorkflowPrompt template loading
gsd/file-watcher.tsGSD WorkflowFile system change monitoring
gsd/parallel-eligibility.tsGSD WorkflowParallel execution eligibility checks
gsd/plugin-importer.tsGSD Workflow, ExtensionsCustom plugin/extension importing
gsd/verification-gate.tsGSD WorkflowPre-execution verification checks
gsd/preference-models.tsConfig, Model SystemModel preference configuration
gsd/preferences-skills.tsConfig, SkillsSkill preference configuration
gsd/post-unit-hooks.tsGSD WorkflowPost-unit execution hooks
gsd/skill-telemetry.tsSkillsSkill usage and performance telemetry
gsd/bootstrap/*GSD Workflow, Loader/BootstrapExtension initialization and hook registration
gsd/auto/*Auto EngineAuto-execution engine components
gsd/commands/*CommandsCommand routing and handling
gsd/templates/*GSD WorkflowOutput templates and formatters
gsd/prompts/*GSD WorkflowSystem prompts and instructions
gsd/workflow-templates/*GSD WorkflowWorkflow starter templates and registry
gsd/skills/*SkillsIntegrated skill configurations
gsd/migrate/*MigrationData migration and upgrade tools
FileSystem Label(s)Description
async-jobs/index.tsAsync JobsBackground bash command execution extension
async-jobs/job-manager.tsAsync JobsBackground job lifecycle management
async-jobs/async-bash-tool.tsAsync Jobs, Tool SystemTool for spawning background bash processes
async-jobs/await-tool.tsAsync Jobs, Tool SystemTool for waiting on job completion
async-jobs/cancel-job-tool.tsAsync Jobs, Tool SystemTool for cancelling background jobs
bg-shell/index.tsBg ShellInteractive background process management extension
bg-shell/bg-shell-tool.tsBg Shell, Tool SystemTool for spawning background processes
bg-shell/bg-shell-command.tsBg Shell, CommandsCommand handler for bg subcommands
bg-shell/bg-shell-lifecycle.tsBg ShellProcess lifecycle and state management
bg-shell/process-manager.tsBg ShellCore process management implementation
bg-shell/readiness-detector.tsBg ShellStartup readiness detection
bg-shell/interaction.tsBg ShellInteractive process communication
bg-shell/output-formatter.tsBg ShellProcess output formatting
bg-shell/overlay.tsBg Shell, TUI ComponentsTerminal overlay for process monitoring
browser-tools/index.tsBrowser ToolsPlaywright-based browser automation extension
browser-tools/core.tsBrowser ToolsCore Playwright instance management
browser-tools/lifecycle.tsBrowser ToolsBrowser session lifecycle
browser-tools/capture.tsBrowser ToolsScreenshot and media capture
browser-tools/settle.tsBrowser ToolsPage settlement and readiness detection
browser-tools/refs.tsBrowser ToolsReference-based element selection
browser-tools/state.tsBrowser Tools, State MachineBrowser state management
browser-tools/tools/navigation.tsBrowser Tools, Tool SystemNavigation and page loading tool
browser-tools/tools/interaction.tsBrowser Tools, Tool SystemElement interaction tool (click, type)
browser-tools/tools/screenshot.tsBrowser Tools, Tool SystemScreenshot and visual capture tool
browser-tools/tools/inspection.tsBrowser Tools, Tool SystemPage inspection tool
browser-tools/tools/session.tsBrowser Tools, Tool SystemSession management and cookies tool
browser-tools/tools/pages.tsBrowser Tools, Tool SystemMulti-page management tool
browser-tools/tools/forms.tsBrowser Tools, Tool SystemForm filling and submission tool
browser-tools/tools/wait.tsBrowser Tools, Tool SystemWait conditions and polling tool
browser-tools/tools/assertions.tsBrowser Tools, Tool SystemVisual and content assertions tool
browser-tools/tools/verify.tsBrowser Tools, Tool SystemVerification checks tool
browser-tools/tools/extract.tsBrowser Tools, Tool SystemData extraction tool
browser-tools/tools/pdf.tsBrowser Tools, Tool SystemPDF export/generation tool
browser-tools/tools/state-persistence.tsBrowser Tools, Tool SystemState save/restore tool
browser-tools/tools/network-mock.tsBrowser Tools, Tool SystemNetwork mocking/interception tool
browser-tools/tools/device.tsBrowser Tools, Tool SystemDevice emulation tool
browser-tools/tools/visual-diff.tsBrowser Tools, Tool SystemVisual regression testing tool
browser-tools/tools/zoom.tsBrowser Tools, Tool SystemZoom and viewport manipulation tool
browser-tools/tools/codegen.tsBrowser Tools, Tool SystemTest code generation tool
browser-tools/tools/action-cache.tsBrowser ToolsAction caching and replay
context7/index.tsContext7, Tool SystemLibrary documentation fetching extension
google-search/index.tsGoogle Search, Tool SystemWeb search via Google API
search-the-web/index.tsSearch the WebBrave/Jina/Tavily-based web search extension
search-the-web/provider.tsSearch the WebSearch provider abstraction
search-the-web/native-search.tsSearch the WebNative Brave search implementation
search-the-web/tavily.tsSearch the WebTavily search provider
search-the-web/tool-search.tsSearch the Web, Tool SystemSearch tool implementation
search-the-web/tool-fetch-page.tsSearch the Web, Tool SystemPage fetching tool
search-the-web/cache.tsSearch the WebSearch result caching
remote-questions/index.tsRemote QuestionsRemote question routing extension
remote-questions/manager.tsRemote QuestionsQuestion lifecycle management
remote-questions/slack-adapter.tsRemote QuestionsSlack messaging adapter
remote-questions/discord-adapter.tsRemote QuestionsDiscord messaging adapter
remote-questions/telegram-adapter.tsRemote QuestionsTelegram messaging adapter
mcp-client/index.tsMCP Server/ClientModel Context Protocol client integration
subagent/index.tsSubagent, Agent CoreParallel/serial subagent delegation extension
subagent/agents.tsSubagent, Agent CoreAgent registry and discovery
subagent/isolation.tsSubagentExecution isolation and sandboxing
subagent/worker-registry.tsSubagentWorker process management
slash-commands/index.tsSlash Commands, CommandsCommand boilerplate generators extension
slash-commands/create-slash-command.tsSlash CommandsGenerator for new slash command scaffolding
slash-commands/create-extension.tsSlash Commands, ExtensionsGenerator for new extension scaffolding
universal-config/index.tsUniversal ConfigMulti-tool configuration file discovery
universal-config/discovery.tsUniversal ConfigConfiguration file discovery
universal-config/scanners.tsUniversal ConfigTool-specific config scanners
ttsr/index.tsTTSRTTSR regex engine — streaming output guardrails
ttsr/ttsr-manager.tsTTSRStreaming rule manager
ttsr/rule-loader.tsTTSRRule loading and parsing
voice/index.tsVoiceVoice input mode extension
voice/speech-recognizer.swiftVoicemacOS Swift speech recognizer
voice/speech-recognizer.pyVoiceLinux/Windows Python speech recognizer
cmux/index.tsCMuxTmux/multiplexer session management
mac-tools/index.tsMac ToolsmacOS-specific utilities extension
mac-tools/swift-cli/Sources/main.swiftMac ToolsmacOS native tools Swift implementation
aws-auth/index.tsAuth/OAuthAWS authentication and credential handling
shared/ui.tsTUI ComponentsGeneric UI components and utilities
shared/tui.tsTUI ComponentsTerminal UI helpers
shared/interview-ui.tsTUI ComponentsInterview-style questionnaire UI
shared/confirm-ui.tsTUI ComponentsConfirmation dialog UI
shared/terminal.tsTUI ComponentsTerminal operations and formatting
shared/format-utils.tsGSD WorkflowString formatting utilities
shared/sanitize.tsGSD WorkflowInput sanitization
shared/frontmatter.tsConfigYAML frontmatter parsing
FileSystem Label(s)Description
javascript-pro.mdSubagentJavaScript specialist agent definition
typescript-pro.mdSubagentTypeScript specialist agent definition
worker.mdSubagentGeneric worker agent definition
researcher.mdSubagentResearch and exploration agent definition
scout.mdSubagentScout/pathfinding agent definition
Skill DirectorySystem Label(s)Description
react-best-practices/SkillsReact development patterns (62 files)
userinterface-wiki/SkillsUI/UX guidelines and component reference (155 files)
create-skill/SkillsSkill creation scaffolding and templates (25 files)
create-gsd-extension/Skills, ExtensionsGSD extension scaffolding (22 files)
code-optimizer/SkillsPerformance optimization techniques (16 files)
agent-browser/Skills, Browser ToolsBrowser automation guidance (11 files)
github-workflows/SkillsGitHub Actions workflow patterns (10 files)
debug-like-expert/SkillsAdvanced debugging techniques (6 files)
make-interfaces-feel-better/SkillsUI/UX improvement patterns (5 files)
accessibility/SkillsWCAG and accessibility standards
core-web-vitals/SkillsWeb performance metrics guidance
web-quality-audit/SkillsQuality audit procedures
best-practices/SkillsGeneral development best practices
frontend-design/SkillsFrontend design principles
lint/SkillsCode linting standards
review/SkillsCode review guidelines
test/SkillsTesting strategies and patterns
web-design-guidelines/SkillsWeb design principles

FileSystem Label(s)Description
web/app/layout.tsxWeb UIRoot Next.js layout with theme provider and font
web/app/page.tsxWeb UIEntry page loading GSDAppShell
web/components/gsd/app-shell.tsxWeb UIMain app shell — sidebar, panels, terminal, commands
web/components/gsd/sidebar.tsxWeb UIMulti-panel sidebar with milestone explorer
web/components/gsd/status-bar.tsxWeb UIStatus bar with workspace state and metrics
FileSystem Label(s)Description
web/components/gsd/dashboard.tsxWeb UIDashboard with workflow actions and metrics
web/components/gsd/chat-mode.tsxWeb UIChat interface for agent interaction
web/components/gsd/projects-view.tsxWeb UIProject browser and selector
web/components/gsd/files-view.tsxWeb UIFile browser and explorer
web/components/gsd/activity-view.tsxWeb UIActivity log and history view
web/components/gsd/roadmap.tsxWeb UI, GSD WorkflowMilestone roadmap visualization
web/components/gsd/visualizer-view.tsxWeb UI, Doctor/DiagnosticsWorkflow visualization
web/components/gsd/project-welcome.tsxWeb UIWelcome screen for new projects
web/components/gsd/knowledge-captures-panel.tsxWeb UIKnowledge and capture management
FileSystem Label(s)Description
web/components/gsd/terminal.tsxWeb UITerminal widget with input mode handling
web/components/gsd/shell-terminal.tsxWeb UIShell terminal with PTY integration
web/components/gsd/main-session-terminal.tsxWeb UIMain session terminal display
web/components/gsd/dual-terminal.tsxWeb UISide-by-side terminal layout
FileSystem Label(s)Description
web/components/gsd/command-surface.tsxWeb UI, CommandsCommand palette and slash command dispatcher
web/components/gsd/remaining-command-panels.tsxWeb UI, CommandsHistory, undo, export, cleanup panels
web/components/gsd/diagnostics-panels.tsxWeb UI, Doctor/DiagnosticsDoctor, forensics, skill health panels
web/components/gsd/settings-panels.tsxWeb UI, ConfigSettings and preferences panels
web/components/gsd/guided-dialog.tsxWeb UIGeneric guided dialog component
web/components/gsd/update-banner.tsxWeb UIUpdate notification banner
web/components/gsd/scope-badge.tsxWeb UIScope badge indicator
web/components/gsd/loading-skeletons.tsxWeb UILoading skeleton placeholders
web/components/gsd/code-editor.tsxWeb UICode editor display component
web/components/gsd/file-content-viewer.tsxWeb UIFile content viewer and previewer
web/components/gsd/focused-panel.tsxWeb UIFocused panel layout component
FileSystem Label(s)Description
web/components/gsd/onboarding-gate.tsxWeb UI, OnboardingGate and orchestration for onboarding flow
web/components/gsd/onboarding/step-welcome.tsxWeb UI, OnboardingWelcome step
web/components/gsd/onboarding/step-mode.tsxWeb UI, OnboardingUser mode selection step
web/components/gsd/onboarding/step-provider.tsxWeb UI, OnboardingLLM provider selection step
web/components/gsd/onboarding/step-authenticate.tsxWeb UI, Onboarding, Auth/OAuthAuthentication step
web/components/gsd/onboarding/step-dev-root.tsxWeb UI, OnboardingDev root directory selection step
web/components/gsd/onboarding/step-project.tsxWeb UI, OnboardingProject selection step
web/components/gsd/onboarding/step-remote.tsxWeb UI, OnboardingRemote configuration step
web/components/gsd/onboarding/step-optional.tsxWeb UI, OnboardingOptional settings step
web/components/gsd/onboarding/step-ready.tsxWeb UI, OnboardingReady confirmation step
web/components/gsd/onboarding/wizard-stepper.tsxWeb UI, OnboardingStepper progress indicator
FileSystem Label(s)Description
web/app/api/boot/route.tsAPI Routes, State MachineInitial boot payload with project/workspace state
web/app/api/session/manage/route.tsAPI Routes, Session ManagementSession rename and management
web/app/api/session/browser/route.tsAPI Routes, Session ManagementSession browser listing
web/app/api/session/command/route.tsAPI Routes, Session ManagementSession command execution
web/app/api/session/events/route.tsAPI Routes, Session ManagementSession event streaming (SSE)
web/app/api/terminal/stream/route.tsAPI RoutesPTY output streaming via SSE
web/app/api/terminal/input/route.tsAPI RoutesTerminal input submission
web/app/api/terminal/resize/route.tsAPI RoutesTerminal resize
web/app/api/terminal/sessions/route.tsAPI RoutesTerminal session management
web/app/api/terminal/upload/route.tsAPI RoutesFile upload for terminal
web/app/api/bridge-terminal/stream/route.tsAPI Routes, Web ModeBridge terminal output streaming
web/app/api/bridge-terminal/input/route.tsAPI Routes, Web ModeBridge terminal input
web/app/api/bridge-terminal/resize/route.tsAPI Routes, Web ModeBridge terminal resize
web/app/api/projects/route.tsAPI RoutesProject discovery and listing
web/app/api/live-state/route.tsAPI Routes, State MachineLive workspace state updates
web/app/api/steer/route.tsAPI Routes, CommandsSteering endpoint for agent direction
web/app/api/history/route.tsAPI Routes, State MachineHistory and metrics
web/app/api/undo/route.tsAPI Routes, CommandsUndo operation
web/app/api/cleanup/route.tsAPI Routes, CommandsCleanup operation
web/app/api/export-data/route.tsAPI Routes, CommandsData export
web/app/api/knowledge/route.tsAPI Routes, GSD WorkflowKnowledge base
web/app/api/hooks/route.tsAPI Routes, GSD WorkflowGit hooks management
web/app/api/inspect/route.tsAPI Routes, Doctor/DiagnosticsInspection and analysis
web/app/api/doctor/route.tsAPI Routes, Doctor/DiagnosticsDoctor diagnostic tool
web/app/api/forensics/route.tsAPI Routes, Doctor/DiagnosticsForensics analysis
web/app/api/skill-health/route.tsAPI Routes, Doctor/DiagnosticsSkill health check
web/app/api/visualizer/route.tsAPI Routes, Doctor/DiagnosticsWorkflow visualization
web/app/api/preferences/route.tsAPI Routes, ConfigUser preferences
web/app/api/settings-data/route.tsAPI Routes, ConfigSettings data
web/app/api/dev-mode/route.tsAPI Routes, ConfigDevelopment mode toggle
web/app/api/captures/route.tsAPI Routes, GSD WorkflowKnowledge captures
web/app/api/browse-directories/route.tsAPI RoutesDirectory browsing
web/app/api/files/route.tsAPI Routes, Tool SystemFile system access
web/app/api/git/route.tsAPI Routes, Tool SystemGit operations
web/app/api/onboarding/route.tsAPI Routes, OnboardingOnboarding data
web/app/api/recovery/route.tsAPI Routes, Doctor/DiagnosticsRecovery operations
web/app/api/remote-questions/route.tsAPI Routes, Remote QuestionsRemote question handling
web/app/api/shutdown/route.tsAPI RoutesGraceful shutdown
web/app/api/update/route.tsAPI Routes, CLIUpdate check
FileSystem Label(s)Description
web/lib/auth.tsAuth/OAuthClient-side auth token management from URL fragment
web/lib/gsd-workspace-store.tsxState MachineGlobal workspace state store with external store
web/lib/project-store-manager.tsxState MachineMulti-project store manager with SSE lifecycle
web/lib/shutdown-gate.tsState MachineGraceful shutdown coordination
web/lib/browser-slash-command-dispatch.tsCommandsSlash command dispatch
web/lib/workflow-actions.tsGSD WorkflowPrimary workflow action derivation logic
web/lib/workflow-action-execution.tsGSD WorkflowWorkflow action execution handler
web/lib/command-surface-contract.tsCommandsCommand surface request/response contract types
web/lib/pty-manager.tsWeb UIServer-side PTY spawning and session management
web/lib/pty-chat-parser.tsWeb UIPTY output parsing for chat display
web/lib/remaining-command-types.tsWeb UIBrowser-safe types for command surfaces
web/lib/knowledge-captures-types.tsGSD WorkflowKnowledge entry and captures types
web/lib/diagnostics-types.tsDoctor/DiagnosticsDiagnostics panel types
web/lib/settings-types.tsConfigSettings and preferences types
web/lib/visualizer-types.tsDoctor/DiagnosticsWorkflow visualizer types
web/lib/session-browser-contract.tsSession ManagementSession browser contract types
web/lib/git-summary-contract.tsTool SystemGit summary contract types
web/lib/utils.tsWeb UICommon utility functions
web/lib/project-url.tsWeb UIProject URL parsing and construction
web/lib/workspace-status.tsWeb UI, State MachineWorkspace status derivation
web/lib/image-utils.tsImage ProcessingImage handling and processing utilities
web/lib/use-editor-font-size.tsWeb UIEditor font size preference hook
web/lib/use-terminal-font-size.tsWeb UITerminal font size preference hook
web/lib/use-user-mode.tsWeb UIUser mode hook
web/hooks/use-mobile.tsWeb UIMobile viewport detection hook
web/hooks/use-toast.tsWeb UIToast notification hook
web/components/theme-provider.tsxWeb UITheme provider for dark/light modes
web/components/ui/* (50+ files)Web UIShadcn/ui base component library

FileSystem Label(s)Description
vscode-extension/src/extension.tsVS Code ExtensionExtension activation, client management, command registration
vscode-extension/src/gsd-client.tsVS Code Extension, MCP Server/ClientRPC client for GSD agent communication
vscode-extension/src/chat-participant.tsVS Code ExtensionChat participant for @gsd command
vscode-extension/src/sidebar.tsVS Code ExtensionSidebar webview provider with status display

FileSystem Label(s)Description
studio/electron.vite.config.tsStudio App, Build SystemElectron Vite build configuration
studio/src/main/index.tsStudio AppElectron main process window creation
studio/src/preload/index.tsStudio AppContext isolation preload for IPC bridge
studio/src/preload/index.d.tsStudio AppPreload bridge type definitions
studio/src/renderer/src/main.tsxStudio AppReact renderer entry point
studio/src/renderer/src/App.tsxStudio AppMain app component
studio/src/renderer/src/lib/theme/tokens.tsStudio AppDesign tokens (colors, fonts, sizes)

FileSystem Label(s)Description
native/crates/engine/src/lib.rsNative/Rust ToolsN-API entry point exposing all Rust modules
native/crates/engine/src/grep.rsFile Search, Native/Rust ToolsRipgrep-backed regex search with context/globbing
native/crates/engine/src/glob.rsFile Search, Native/Rust ToolsGlob-pattern FS discovery with gitignore + scan cache
native/crates/engine/src/fd.rsFile Search, Native/Rust ToolsFuzzy file discovery for autocomplete/@-mentions
native/crates/engine/src/highlight.rsSyntax Highlighting, Native/Rust ToolsSyntect-backed ANSI syntax highlighting
native/crates/engine/src/ast.rsAST, Native/Rust ToolsLinker shim for AST N-API registrations
native/crates/engine/src/diff.rsText Processing, Native/Rust ToolsFuzzy matching, Unicode normalization, unified diffs
native/crates/engine/src/image.rsImage Processing, Native/Rust ToolsImage decode/encode and resize
native/crates/engine/src/html.rsText Processing, Native/Rust ToolsHTML to Markdown conversion
native/crates/engine/src/text.rsText Processing, Native/Rust ToolsANSI-aware text measurement and slicing
native/crates/engine/src/truncate.rsText Processing, Native/Rust ToolsLine-boundary-aware output truncation
native/crates/engine/src/ps.rsNative/Rust ToolsCross-platform process tree management
native/crates/engine/src/clipboard.rsNative/Rust ToolsClipboard read/write for text and images
native/crates/engine/src/json_parse.rsText Processing, Native/Rust ToolsStreaming JSON parser with partial recovery
native/crates/engine/src/gsd_parser.rsGSD Workflow, Native/Rust Tools.gsd/ directory file parser (markdown, frontmatter)
native/crates/engine/src/ttsr.rsTTSR, Native/Rust ToolsTTSR regex engine with compiled RegexSet
native/crates/engine/src/stream_process.rsText Processing, Native/Rust ToolsBash stream processor (UTF-8, ANSI strip, binary)
native/crates/engine/src/xxhash.rsNative/Rust ToolsxxHash32 for hashline edit tool
native/crates/engine/src/git.rsNative/Rust ToolsNative git operations via libgit2
native/crates/engine/src/fs_cache.rsFile Search, Native/Rust ToolsTTL-based FS scan cache with explicit invalidation
native/crates/engine/src/glob_util.rsFile Search, Native/Rust ToolsShared glob-pattern helpers
native/crates/engine/src/task.rsNative/Rust ToolsBlocking work on libuv thread pool with cancellation
native/crates/engine/build.rsBuild SystemCargo build script for napi-build compilation
native/crates/grep/src/lib.rsFile Search, Native/Rust ToolsRipgrep search library (in-memory and on-disk)
native/crates/ast/src/lib.rsAST, Native/Rust ToolsAST-aware structural search and rewrite engine
native/crates/ast/src/ast.rsAST, Native/Rust Toolsast-grep integration for structural code search
native/crates/ast/src/language/mod.rsAST, Native/Rust ToolsVendored language defs and tree-sitter bindings
native/crates/ast/src/language/parsers.rsAST, Native/Rust ToolsPre-compiled tree-sitter parsers (50+ languages)

packages/native/src/ — Node.js Rust Bindings

Section titled “packages/native/src/ — Node.js Rust Bindings”
FileSystem Label(s)Description
packages/native/src/native.tsNative/Rust Tools, Node.js BindingsNative addon loader with platform fallback
packages/native/src/grep/index.tsFile Search, Node.js BindingsRipgrep wrapper for regex search
packages/native/src/fd/index.tsFile Search, Node.js BindingsFuzzy file discovery wrapper
packages/native/src/highlight/index.tsSyntax Highlighting, Node.js BindingsSyntax highlighting wrapper
packages/native/src/image/index.tsImage Processing, Node.js BindingsImage processing wrapper
packages/native/src/html/index.tsText Processing, Node.js BindingsHTML to Markdown wrapper
packages/native/src/diff/index.tsText Processing, Node.js BindingsText diffing wrapper
packages/native/src/ps/index.tsNative/Rust Tools, Node.js BindingsProcess tree management wrapper
packages/native/src/truncate/index.tsText Processing, Node.js BindingsOutput truncation wrapper
packages/native/src/json-parse/index.tsText Processing, Node.js BindingsJSON parsing wrapper
packages/native/src/stream-process/index.tsText Processing, Node.js BindingsStream processing wrapper
packages/native/src/ttsr/index.tsTTSR, Node.js BindingsTTSR regex engine wrapper

File / DirectorySystem Label(s)Description
tests/smoke/run.tsIntegration TestsTest runner for smoke tests
tests/smoke/test-help.tsIntegration TestsSmoke test for help command
tests/smoke/test-init.tsIntegration TestsSmoke test for initialization
tests/smoke/test-version.tsIntegration TestsSmoke test for version command
tests/fixtures/run.tsIntegration TestsFixture-based test harness with recording replay
tests/fixtures/provider.tsIntegration TestsFixture provider and replayer for LLM turns
tests/fixtures/record.tsIntegration TestsRecording fixture capture
tests/fixtures/recordings/*.jsonIntegration TestsPre-recorded LLM agent interaction fixtures
tests/live/run.tsIntegration TestsLive API roundtrip test runner
tests/live/test-anthropic-roundtrip.tsIntegration Tests, AI ProvidersLive Anthropic API integration test
tests/live/test-openai-roundtrip.tsIntegration Tests, AI ProvidersLive OpenAI API integration test
tests/live-regression/run.tsIntegration TestsLive regression test runner
tests/repro-worktree-bug/*.mjsIntegration Tests, WorktreeWorktree bug reproduction scripts

FileSystem Label(s)Description
scripts/dev.jsBuild SystemDev supervisor — tsc and resource watcher
scripts/dev-cli.jsBuild SystemCLI development mode runner
scripts/watch-resources.jsBuild SystemResource file watcher for hot reload
scripts/bump-version.mjsBuild SystemVersion bumper for package.json and platform packages
scripts/sync-pkg-version.cjsBuild SystemSync pkg/package.json with workspace version
scripts/copy-resources.cjsBuild SystemResource file copier for distribution
scripts/copy-export-html.cjsBuild SystemHTML export asset copier
scripts/copy-themes.cjsBuild SystemTheme file copier
scripts/link-workspace-packages.cjsBuild SystemWorkspace package symlink manager
scripts/ensure-workspace-builds.cjsBuild SystemPostinstall build checker
scripts/build-web-if-stale.cjsBuild SystemConditional web build trigger
scripts/stage-web-standalone.cjsBuild SystemWeb standalone staging
scripts/generate-changelog.mjsBuild SystemChangelog generator from commits
scripts/update-changelog.mjsBuild SystemChangelog updater
scripts/version-stamp.mjsBuild SystemVersion timestamp generator
scripts/validate-pack.shBuild SystemPackage validation script
scripts/validate-pack.jsBuild SystemPackage validation (Node.js)
scripts/install-pi-global.jsBuild SystemGlobal installation helper
scripts/uninstall-pi-global.jsBuild SystemGlobal uninstallation helper
scripts/install-hooks.shBuild System, GSD WorkflowGit hook installer
scripts/secret-scan.shBuild System, Auth/OAuthSecret scanning for credentials
scripts/docs-prompt-injection-scan.shBuild SystemPrompt injection detection in docs
scripts/check-skill-references.mjsBuild System, SkillsSkill reference validator
scripts/preview-dashboard.tsWeb ModeDashboard preview server
scripts/ci_monitor.cjsBuild SystemCI monitoring dashboard
scripts/recover-gsd-1364.shBuild System, MigrationRecovery script for issue #1364
scripts/recover-gsd-1364.ps1Build System, MigrationRecovery script for issue #1364 (PowerShell)
scripts/recover-gsd-1668.shBuild System, MigrationRecovery script for issue #1668
scripts/recover-gsd-1668.ps1Build System, MigrationRecovery script for issue #1668 (PowerShell)

Quick lookup: which files are part of each system?

SystemKey Files (abbreviated)
Agent Corepi-agent-core/src/*, pi-coding-agent/src/core/agent-session.ts, agent-loop.ts, agent.ts, event-bus.ts, sdk.ts
AI Providerspi-ai/src/providers/, pi-ai/src/stream.ts, pi-ai/src/models.ts
API Routesweb/app/api/**/*.ts
ASTnative/crates/ast/*, packages/native/src/ast/
Async Jobssrc/resources/extensions/async-jobs/*
Auth / OAuthpi-ai/src/utils/oauth/*, src/web/web-auth-storage.ts, core/auth-storage.ts, src/pi-migration.ts, aws-auth/index.ts, web/lib/auth.ts
Auto Enginesrc/resources/extensions/gsd/auto*.ts, gsd/auto-loop.ts, gsd/auto-supervisor.ts, gsd/unit-runtime.ts
Bg Shellsrc/resources/extensions/bg-shell/*
Browser Toolssrc/resources/extensions/browser-tools/*
Build Systemscripts/*, native/crates/engine/build.rs
CLIsrc/cli.ts, src/cli-web-branch.ts, src/help-text.ts, src/update*.ts, pi-coding-agent/src/cli.ts, src/worktree-cli.ts
CMuxsrc/resources/extensions/cmux/index.ts
Commandsgsd/commands*.ts, gsd/exit-command.ts, gsd/undo.ts, gsd/kill.ts, pi-coding-agent/src/core/slash-commands.ts
Compactionpi-coding-agent/src/core/compaction*.ts, core/compaction/*
Configsrc/app-paths.ts, src/models-resolver.ts, src/remote-questions-config.ts, src/wizard.ts, core/defaults.ts, core/constants.ts, config.ts
Context7src/resources/extensions/context7/index.ts
Doctor / Diagnosticsgsd/doctor*.ts, gsd/collision-diagnostics.ts, core/diagnostics.ts, web/lib/diagnostics-types.ts, web/app/api/doctor/, forensics/
Event Systempi-coding-agent/src/core/event-bus.ts, gsd/auto-observability.ts
Extension Registrysrc/extension-discovery.ts, src/extension-registry.ts, src/bundled-extension-paths.ts
Extensionspi-coding-agent/src/core/extensions/*, src/resource-loader.ts
File Searchnative/crates/engine/src/grep.rs, glob.rs, fd.rs, fs_cache.rs, packages/native/src/grep/, fd/, core/tools/grep.ts, find.ts
GSD Workflowsrc/resources/extensions/gsd/* (non-auto), gsd/reports.ts, gsd/notifications.ts, gsd/prompts/, gsd/workflow-templates/
Google Searchsrc/resources/extensions/google-search/index.ts
Headless Modesrc/headless*.ts
Image Processingnative/crates/engine/src/image.rs, packages/native/src/image/, utils/image-.ts, web/lib/image-utils.ts
Integration Teststests/**/*
Loader / Bootstrapsrc/loader.ts, src/resource-loader.ts, src/tool-bootstrap.ts, src/bundled-resource-path.ts, gsd/bootstrap/*
LSPpi-coding-agent/src/core/lsp/*
Mac Toolssrc/resources/extensions/mac-tools/*
MCP Server/Clientsrc/mcp-server.ts, src/resources/extensions/mcp-client/index.ts, vscode-extension/src/gsd-client.ts, modes/rpc/*
Memory Extensionpi-coding-agent/src/resources/extensions/memory/*
Migrationgsd/migrate/, src/pi-migration.ts, pi-coding-agent/src/migrations.ts, scripts/recover-.sh
Modespi-coding-agent/src/modes/*
Model Systempi-coding-agent/src/core/model-.ts, pi-ai/src/models.ts, pi-ai/src/api-registry.ts, gsd/model-router.ts
Native / Rust Toolsnative/crates/engine/src/*
Node.js Bindingspackages/native/src/*
Onboardingsrc/onboarding.ts, src/wizard.ts, web/components/gsd/onboarding/, web/app/api/onboarding/
Permissionscore/extensions/project-trust.ts, core/auth-storage.ts
Remote Questionssrc/resources/extensions/remote-questions/*
Search the Websrc/resources/extensions/search-the-web/*
Session Managementpi-coding-agent/src/core/session-manager.ts, core/settings-manager.ts, web/app/api/session/*
Skillssrc/resources/skills/*, gsd/skill-telemetry.ts, gsd/preferences-skills.ts, core/skills.ts
Slash Commandssrc/resources/extensions/slash-commands/*
State Machinegsd/state.ts, gsd/history.ts, gsd/json-persistence.ts, gsd/memory-store.ts, gsd/reactive-graph.ts, core/agent-session.ts, web/lib/gsd-workspace-store.tsx
Studio Appstudio/*
Subagentsrc/resources/extensions/subagent/, src/resources/agents/
Syntax Highlightingnative/crates/engine/src/highlight.rs, packages/native/src/highlight/*
Text Processingnative/crates/engine/src/diff.rs, html.rs, text.rs, truncate.rs, json_parse.rs, stream_process.rs
Tool Systempi-coding-agent/src/core/tools/*, core/bash-executor.ts, core/exec.ts
TTSRsrc/resources/extensions/ttsr/, native/crates/engine/src/ttsr.rs, packages/native/src/ttsr/
TUI Componentspackages/pi-tui/src/, pi-coding-agent/src/modes/interactive/components/, pi-coding-agent/src/modes/interactive/controllers/*
Universal Configsrc/resources/extensions/universal-config/*
Voicesrc/resources/extensions/voice/*
VS Code Extensionvscode-extension/src/*
Web Modesrc/web/*.ts, src/web-mode.ts
Web UIweb/app/.tsx, web/components/, web/hooks/, web/lib/
Worktreesrc/worktree-cli.ts, src/worktree-name-gen.ts, gsd/worktree*.ts, tests/repro-worktree-bug/*