Skip to content

Design: context blocks — dynamic per-message context injection#117

Merged
dimakis merged 2 commits intomainfrom
docs/context-blocks
Apr 6, 2026
Merged

Design: context blocks — dynamic per-message context injection#117
dimakis merged 2 commits intomainfrom
docs/context-blocks

Conversation

@dimakis
Copy link
Copy Markdown
Owner

@dimakis dimakis commented Apr 6, 2026

Summary

  • Design doc for context blocks: configurable named file references users can inject into individual prompts
  • Per-message lifecycle (select, send, clear — like images)
  • Server-side assembly: frontend sends block names, server reads files and builds prompt
  • Compact UI display: user bubbles show block names only, not file contents
  • Three-phase rollout: MVP → polish → extensions (URLs, globs, session-scope)

Open questions in doc

  1. Trigger character (@ vs # vs dedicated button)
  2. Max blocks per message
  3. Binary file handling

🤖 Generated with Claude Code

dimakis and others added 2 commits April 6, 2026 20:49
Design doc for configurable context blocks that let users select
reference files (org charts, workflows, config) to inject into
individual prompts. Key decisions: per-message lifecycle (like images),
server-side assembly, compact UI display (names only, not content).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tell the agent what the context blocks are and why they're attached,
so it doesn't misinterpret them as system instructions or its own output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dimakis dimakis merged commit 38c6867 into main Apr 6, 2026
1 check passed
@dimakis dimakis deleted the docs/context-blocks branch April 6, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant