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 }}
anomalyco
/
opencode
Public
Notifications
You must be signed in to change notification settings
Fork
27.5k
Star
209k
Code
Issues
4.5k
Pull requests
1.5k
Actions
Projects
Security and quality
2
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
feat: add per-session directory and /new <path> switching
- #12015
#12015
Closed
MrTravisB
wants to merge 9 commits into
anomalyco:dev
anomalyco/opencode:dev
from
MrTravisB:travis/new_session_directory
MrTravisB/opencode:travis/new_session_directory
Copy head branch name to clipboard
Conversation
Commits
9
(9)
Checks
Files changed
Closed
feat: add per-session directory and /new <path> switching
#12015
MrTravisB
wants to merge 9 commits into
anomalyco:dev
anomalyco/opencode:dev
from
MrTravisB:travis/new_session_directory
MrTravisB/opencode:travis/new_session_directory
Copy head branch name to clipboard
Commits
Commits on Feb 3, 2026
feat(session): add directory field to Tool.Context for per-session working directory
Show description for 44be45b
MrTravisB
committed
44be45b
View commit details
Copy full SHA for 44be45b
Browse repository at this point
feat(tools): use ctx.directory instead of Instance.directory in all tools
Show description for 948bd5f
MrTravisB
committed
948bd5f
View commit details
Copy full SHA for 948bd5f
Browse repository at this point
feat(session): use session.directory in system prompt, compaction, and shell spawn
Show description for e1f4e8d
MrTravisB
committed
e1f4e8d
View commit details
Copy full SHA for e1f4e8d
Browse repository at this point
feat(tui): add switchDirectory worker RPC and make SDK context directory-aware
Show description for c698cc1
MrTravisB
committed
c698cc1
View commit details
Copy full SHA for c698cc1
Browse repository at this point
feat(tui): expose reset and bootstrap from SyncProvider for directory switching
Show description for 1cc1151
MrTravisB
committed
1cc1151
View commit details
Copy full SHA for 1cc1151
Browse repository at this point
feat(tui): wire /new <path> directory switch flow in prompt submit
Show description for 7b86018
MrTravisB
committed
7b86018
View commit details
Copy full SHA for 7b86018
Browse repository at this point
fix: add directory to Tool.Context in tests and harden directory switch
Show description for 76f6d5e
MrTravisB
committed
76f6d5e
View commit details
Copy full SHA for 76f6d5e
Browse repository at this point
fix(tests): align ctx.directory with Instance.directory in tool tests
Show description for c2e2588
MrTravisB
committed
c2e2588
View commit details
Copy full SHA for c2e2588
Browse repository at this point
style: rename variables, static import, clear sessions in reset
MrTravisB
committed
f8e5f83
View commit details
Copy full SHA for f8e5f83
Browse repository at this point
You can’t perform that action at this time.