Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
microsoft
/
agent-framework
Public
Notifications
You must be signed in to change notification settings
Fork
2.2k
Star
13.2k
Code
Issues
502
Pull requests
144
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Python: ADR: Unifying Context Management with ContextMiddleware (Python)
- #3609
#3609
Merged
Eduard van Valkenburg (eavanvalkenburg)
merged 19 commits into
microsoft:main
microsoft/agent-framework:main
from
eavanvalkenburg:adr-python-context-middleware
eavanvalkenburg/agent-framework:adr-python-context-middleware
Copy head branch name to clipboard
Feb 10, 2026
Conversation
Commits
19
(19)
Checks
Files changed
Merged
Python: ADR: Unifying Context Management with ContextMiddleware (Python)
#3609
Eduard van Valkenburg (eavanvalkenburg)
merged 19 commits into
microsoft:main
microsoft/agent-framework:main
from
eavanvalkenburg:adr-python-context-middleware
eavanvalkenburg/agent-framework:adr-python-context-middleware
Copy head branch name to clipboard
Commits
Commits on Feb 9, 2026
Add ADR for Python ContextMiddleware unification
Eduard van Valkenburg (eavanvalkenburg)
committed
2e3e763
View commit details
Copy full SHA for 2e3e763
Browse repository at this point
Add session serialization/deserialization design to ADR
Eduard van Valkenburg (eavanvalkenburg)
committed
351b533
View commit details
Copy full SHA for 351b533
Browse repository at this point
Add Related Issues section mapping to ADR
Eduard van Valkenburg (eavanvalkenburg)
committed
6e0dd29
View commit details
Copy full SHA for 6e0dd29
Browse repository at this point
Update session management: create_session, get_session_by_id, agent.serialize_session
Eduard van Valkenburg (eavanvalkenburg)
committed
10e7700
View commit details
Copy full SHA for 10e7700
Browse repository at this point
ADR: Add hooks alternative, context compaction discussion, and PR feedback
Show description for 3073373
Eduard van Valkenburg (eavanvalkenburg)
committed
3073373
View commit details
Copy full SHA for 3073373
Browse repository at this point
ADR: Restructure and add .NET comparison
Show description for 85ba6c5
Eduard van Valkenburg (eavanvalkenburg)
committed
85ba6c5
View commit details
Copy full SHA for 85ba6c5
Browse repository at this point
tweaks
Eduard van Valkenburg (eavanvalkenburg)
committed
4fbbe71
View commit details
Copy full SHA for 4fbbe71
Browse repository at this point
fix smart load
Eduard van Valkenburg (eavanvalkenburg)
committed
5772587
View commit details
Copy full SHA for 5772587
Browse repository at this point
ADR: Add naming discussion note for ContextHooks
Show description for 59d53ff
Eduard van Valkenburg (eavanvalkenburg)
committed
59d53ff
View commit details
Copy full SHA for 59d53ff
Browse repository at this point
Update context middleware design: remove smart mode, add attribution filtering
Show description for 232d711
Eduard van Valkenburg (eavanvalkenburg)
committed
232d711
View commit details
Copy full SHA for 232d711
Browse repository at this point
Add Decision 2: Instance Ownership (instances in session vs agent)
Show description for 6500573
Eduard van Valkenburg (eavanvalkenburg)
committed
6500573
View commit details
Copy full SHA for 6500573
Browse repository at this point
Update ADR: Choose ContextPlugin with before_run/after_run and Option B1
Show description for 50589b0
Eduard van Valkenburg (eavanvalkenburg)
committed
50589b0
View commit details
Copy full SHA for 50589b0
Browse repository at this point
Add agent and session params to before_run/after_run methods
Show description for a75cd7e
Eduard van Valkenburg (eavanvalkenburg)
committed
a75cd7e
View commit details
Copy full SHA for a75cd7e
Browse repository at this point
Remove ContextPluginRunner, store plugins directly on agent
Show description for 81d6a1f
Eduard van Valkenburg (eavanvalkenburg)
committed
81d6a1f
View commit details
Copy full SHA for 81d6a1f
Browse repository at this point
Update workplan to 2 PRs for simpler review
Eduard van Valkenburg (eavanvalkenburg)
committed
5c26843
View commit details
Copy full SHA for 5c26843
Browse repository at this point
updated doc
Eduard van Valkenburg (eavanvalkenburg)
committed
1372be3
View commit details
Copy full SHA for 1372be3
Browse repository at this point
Refine ADR: serialization, ownership, decorators, session methods, exports
Show description for 7827259
Eduard van Valkenburg (eavanvalkenburg)
committed
7827259
View commit details
Copy full SHA for 7827259
Browse repository at this point
Rename ADR to 0016-python-context-middleware.md
Eduard van Valkenburg (eavanvalkenburg)
committed
9d59f0c
View commit details
Copy full SHA for 9d59f0c
Browse repository at this point
Fix broken link: #3-unified-storage-middleware → #3-unified-storage
Eduard van Valkenburg (eavanvalkenburg)
committed
2c22929
View commit details
Copy full SHA for 2c22929
Browse repository at this point
You can’t perform that action at this time.