> ## Documentation Index
> Fetch the complete documentation index at: https://docs.parsaa.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Capture Code & Context

> Give Parsaa exactly the context it needs — selections, files, sub-agents, and workflows

## Overview

Parsaa answers better when it has the right context. From the composer's context picker you can attach files, pull the current Xcode selection, @mention a sub-agent, or run a workflow — all scoped to a single request.

## Capture Code

The **Capture Code** shortcut pulls the current selection in Xcode into Parsaa as a context chip.

<Steps>
  <Step title="Bind the shortcut">
    Set a key binding in **Settings → Preferences → Shortcuts** for **Capture Code** (it has no default).
  </Step>

  <Step title="Select code in Xcode">
    Highlight the lines you want Parsaa to focus on.
  </Step>

  <Step title="Trigger the shortcut">
    The selection is attached as a chip on your next message.
  </Step>
</Steps>

<Info>
  Capture Code reads the Xcode selection through the macOS Accessibility API, so Parsaa needs Accessibility permission enabled.
</Info>

## Context Sources

<CardGroup cols={2}>
  <Card title="Xcode selection" icon="i-cursor">
    Use the highlighted code in Xcode as focused context.
  </Card>

  <Card title="Files" icon="file-code">
    Attach any file in the project by path from the context picker.
  </Card>

  <Card title="Focused file" icon="crosshairs">
    The file you're working in is recognized automatically as the focus for slash commands and edits.
  </Card>

  <Card title="@mention agents" icon="at">
    Delegate to a built-in generator (`@tester`, `@documenter`) or one of your own sub-agents. See [Sub-agents](/features/subagents).
  </Card>
</CardGroup>

## Run a Workflow

The context picker also lets you start a **workflow** instead of sending a plain message — Parsaa runs the multi-step graph and reports back. See [Workflows](/features/workflows).

<Tip>
  Attach only what's relevant. Tight, focused context produces faster and more accurate results than dumping the whole project into a request.
</Tip>
