Context Injection
How your agent gets the right context
Context injection uses progressive disclosure — formatted, compressed context that gives your agent exactly what it needs.
The format
# [project-name] recent context
## Header
Project stats, legend, scope information
## Timeline
Compact observations grouped by day with session arcs
## Summary
Last session summary if available
## Footer
Instructions for fetching more details
How it works
- Session starts → connector calls
GET /v1/context/inject?projects=my-project - Observations are ranked → by relevance score, recency, and type
- Results are deduplicated → overlapping observations are merged
- Context is formatted → compressed into progressive disclosure format
- Agent receives context → injected into system prompt or first message
Configuration
curl -s "https://api.telepathine.ai/v1/context/inject?projects=my-project&limit=20" \
-H "Authorization: Bearer $TELEPATHINE_API_KEY"
Project visibility
- Private — only visible to the owning tenant
- Tenant — visible to all members of the tenant
- Shared — explicitly shared with specific tenants
See Project Isolation for details.