# AI Context Picker

Context bar above an AI chat composer: attach specs, error screenshots and links before sending.

- id: `ai-context-picker`
- Page: https://agentic-ui-kit.com/components/ai-context-picker
- Live preview: https://agentic-ui-kit.com/live/component/ai-context-picker

## Install

```bash
agentic-ui add ai-context-picker
npx shadcn@4.17.0 add @agentic-ui/ai-context-picker
```

## Metadata

- **Level:** block
- **Category:** block
- **Installable in:** Radix UI (registry variant new-york)
- **Capabilities:** entity-mentions, file-attach, image-attach, url-attach, drag-and-drop, paste-files, file-validation, async-processing-with-retry, token-estimate, item-limit, empty-state, error-state, read-only-mode, keyboard-navigation
- **Intents:** create-edit, import-export, communicate
- **Suits domains:** ai-workspace, ai-agents, devtools, knowledge, project-management, saas
- **Interaction:** entity-mention-combobox, file-picker, drag-and-drop, paste, remove-chip, retry, keyboard-navigation
- **Screen role:** communication
- **Density:** compact
- **Dark mode:** yes
- **Use it for:** context bar above an AI chat composer: attach specs, error screenshots and links before sending, code assistant that mentions project @repos, @issues and @tables as prompt context, knowledge base copilot where the user drops PDFs or pastes documentation URLs, read-only view of the context that accompanied an already sent message
- **Avoid when:** generic file upload with byte progress and resume (use form-file-upload), editing the prompt with typed variables is needed (use prompt-editor-variables), global entity search outside a prompt flow (use search-global-palette)
- **Preserve when adapting:** combobox-keyboard-contract, roving-chip-focus-and-focus-return, validation-messages-with-alert, live-announcements, object-url-cleanup
- **Replace when adapting:** domain-copy, entity-types, accepted-file-types, processing-adapter
- **Adaptation effort:** low
- **Coupling:** low
- **Quality score:** 8.9/10
- **Quality breakdown:** visual 8/10, responsive 9/10, accessibility 9/10, code 9/10
- **Uses primitives:** badge, button, input
- **Motion:** profile subtle, library css, reduced-motion fallback yes
- **Registry dependencies:** lib-primitives
