Context Orchestration
Context is the foundation — SignalPilot’s agentic harness aggregates information from multiple sources to give AI agents the full picture of your data environment.What is Context?
Context is all the information the AI needs to understand your request and provide accurate, relevant assistance:Notebook State
- Cell code and outputs
- Kernel variables and dataframes
- Execution history
- Markdown documentation
Data Sources
- Local files (CSV, Excel, Parquet)
- Database schemas and metadata
- Table relationships
- Query performance history
Transformations
- dbt models and lineage
- SQL transformations
- Documentation and tests
- Column-level lineage
Institutional Knowledge
- Slack discussions about data
- Jira tickets and requirements
- Past investigation notes
- Known data quirks
How Context Works Across Modes
Different agent modes use context differently:- Agent Mode
- Hands-On Mode
- Ask Mode
- All notebook cells and outputs
- Full kernel state (variables, dataframes)
- All database connections
- All MCP server connections (dbt, Slack, Jira)
The Context Aggregation Stack
SignalPilot uses a multi-layered approach to gather context:Layer 1: Notebook Context
- Cell code: All code cells and their contents
- Cell outputs: Results, dataframes, visualizations
- Kernel state: Active variables, imported libraries
- Execution order: Which cells ran, when, and with what results
Layer 1.5: Local Files
- Default indexed folders:
~/SignalPilotHome/data/(home workspace)./data/(current working project directory)
- @mention files: Type
@in chat to reference any indexed file - Add folders: Use the File Scanner tool in the left sidebar
Layer 2: Data Warehouse Context
- Schema information: Tables, columns, data types
- Relationships: Foreign keys, joins, dependencies
- Performance metrics: Query execution times, table sizes
- Query history: Past queries and their patterns
Layer 3: Transformation Context (via MCP)
- Model definitions: SQL transformations
- Column-level lineage: Where data comes from and goes to
- Tests and assertions: Data quality rules
- Documentation: Model and column descriptions
Configure dbt
Layer 4: Collaboration Context (via MCP)
- Slack threads: Relevant discussions about data or analyses
- Jira tickets: Requirements, known issues, feature requests
- Notion docs: Team documentation and procedures
- Past investigations: Previous analysis notebooks
MCP Servers
Context Management in Practice
Automatic Context (Agent Mode)
In Agent Mode, SignalPilot automatically aggregates all available context:Explicit Context (Hands-On Mode)
In Hands-On Mode, you control what context the AI can access:- Select Cells
- @Mention Context
- Grant Permissions
- Click checkboxes next to cells to add them to context
- Only selected cells are visible to AI
- Unselect to remove from context
Context and MCP (Model Context Protocol)
SignalPilot uses MCP to connect to external context sources:What is MCP?
What is MCP?
- dbt Cloud/Core for model lineage
- Slack for relevant discussions
- Jira for tickets and requirements
- Database metadata servers
- Custom internal tools
MCP Deep Dive
Internal vs External MCP
Internal vs External MCP
- Kernel operations (execute code, introspect state)
- Database queries (schemas, performance, history)
- Local files (notebooks, CSVs, configs)
- dbt Cloud/Core
- Slack
- Jira
- Notion
- Custom tools via MCP specification
Privacy and Security
Privacy and Security
- Read-only by default
- Explicitly authorized by you
- Zero data retention (SignalPilot never stores data)
- Local-first (queries run from your environment)
- Which MCP servers to connect
- What permissions to grant
- When to allow external context
Security Details
Viewing Active Context
SignalPilot shows your current context in real-time:Open Context Panel
- Selected cells
- Active dataframes
- Connected databases
- MCP server connections
Review What's Shared
- ✓ Green checkmarks for active context
- ○ Gray circles for available but not shared
- 🔒 Lock icons for permission-required resources
Context Best Practices
Start minimal, expand as needed
Start minimal, expand as needed
Use @mentions for precision
Use @mentions for precision
revenue_dataDo: Type @revenue_data in chat to explicitly share that dataframeWhy: @mentions are more explicit and easier to track than cell selectionReview before sharing sensitive data
Review before sharing sensitive data
- Customer PII
- Financial data
- API keys or credentials
- Proprietary business logic
Use Ask Mode to explore context needs
Use Ask Mode to explore context needs
- Start in Ask Mode: “What context would help analyze this issue?”
- AI explains what it would need
- Switch to Hands-On Mode and share that specific context
- AI provides targeted assistance
FAQ
Does the AI remember context between sessions?
Does the AI remember context between sessions?
Can I share context from one notebook to another?
Can I share context from one notebook to another?
What if I accidentally share sensitive data?
What if I accidentally share sensitive data?
How much context is too much?
How much context is too much?
- Slow response times (processing large context)
- Irrelevant suggestions (AI distracted by unrelated info)
- Generic responses (AI overwhelmed by options)
Can I save context configurations?
Can I save context configurations?
- Document your typical context needs in a markdown cell
- Create templates with common cell selections
- Use @mention patterns consistently