Context Files are files attached to a session that give Brunel’s AI the background knowledge it needs to plan accurately. They are the single biggest lever for improving plan quality and, by extension, the accuracy of your coding agent’s output.Documentation Index
Fetch the complete documentation index at: https://docs.brunelagent.ai/llms.txt
Use this file to discover all available pages before exploring further.
Why Context Files Matter
Without context, the AI plans in a vacuum — it makes assumptions about your architecture, naming conventions, and existing services that may be completely wrong for your codebase. With the right context files attached, it plans with the same background knowledge a senior developer would have. A plan built with context files will:- Reference existing services and patterns correctly instead of suggesting new ones
- Respect your team’s coding conventions and style
- Identify real dependencies rather than theoretical ones
- Produce an export that a coding agent can execute accurately on the first attempt
Attaching Files to a Session
- Open a session and click the File panel icon (usually in the right sidebar or bottom toolbar)
- Click Upload or drag and drop files into the panel
- Files are uploaded to the cloud and attached to this session immediately
- The AI will have access to all attached files in subsequent messages
The File Panel
The file panel (right side of the session) has two tabs:| Tab | Contents |
|---|---|
| Planning | Documents written by the AI agent during the planning session — requirements, technical design, acceptance criteria, etc. This tab is shown by default. |
| Context | Files you uploaded to give the AI background information. |
Browsing and Previewing Files
Click any file to preview it inline. Brunel supports inline viewing for:- Plain text and Markdown — rendered directly in the panel
- Code files — syntax-highlighted preview
- Word documents (
.docx) — inline document viewer - Spreadsheets (
.xlsx) — inline spreadsheet viewer
Planning Documents (Agent-Written Files)
As the planning agent works through your session, it writes structured documents to the Planning tab — business requirements, technical design, acceptance criteria, and more. These documents are the primary output you hand off to your coding agent. To export planning documents:- Download individually — click any file in the Planning tab to preview it, then use the download icon to save it locally
- Download as ZIP — click the Archive icon in the Planning tab header to export all planning documents as a single ZIP file
Removing Files
To remove a context file from a session, open the file panel, hover over the file, and click the remove icon. Removing a file detaches it from the session — it will no longer be included in the AI’s context for future messages.What Makes a Good Context File
The best context files are focused, accurate, and directly relevant to the task at hand.| File type | What to include |
|---|---|
| Architecture overview | Service boundaries, how components interact, data flow |
| Coding conventions | Naming patterns, file structure, patterns your team follows |
| API contracts | Interface definitions, endpoint signatures, data schemas |
| Existing service docs | What services exist, what they do, how to call them |
| Business requirements | Acceptance criteria, constraints, non-functional requirements |
| Prior decisions | Architecture decisions that the agent must respect |