wooden-umbrella-84098
09/14/2025, 2:28 PM/workspace given that different clients will store files in different locations. Maybe use a workdir argument being passed in
https://github.com/search?q=repo%3AAll-Hands-AI%2Fagent-sdk%20%22%2Fworkspace%22&type=codechilly-france-44439
09/14/2025, 2:31 PM/workspace as a variable for the system message and make sure we pass it there.
We should probably take workspace_dir as an argument for Converstaion initialier
https://github.com/All-Hands-AI/agent-sdk/pull/252nutritious-balloon-65098
09/14/2025, 2:33 PMnutritious-balloon-65098
09/14/2025, 2:37 PM/workspace configurable in the agent-sdk.
✅ GitHub Issue Created: Issue #254
Title: "Make /workspace path configurable in system messages and templates"
🔍 Key Accomplishments
1. Analyzed the codebase and identified all hardcoded /workspace references:
◦ openhands/sdk/llm/mixins/fn_call_converter.py - function call examples
◦ openhands/sdk/agent/prompts/in_context_learning_example.j2 - Jinja2 templates
◦ openhands/tools/str_replace_editor/definition.py - tool descriptions
2. Studied PR #252 pattern to understand the established approach for making workspace paths configurable
3. Designed a comprehensive solution following the same pattern:
◦ Add workspace_dir parameter to Conversation initializer
◦ Update system message generation to use configurable workspace path
◦ Modify Jinja2 templates to use {{ workspace_dir | default('/workspace') }}
◦ Update function call converter examples
📋 Issue Details
The GitHub issue includes:
• Detailed problem description with specific file references
• Complete implementation plan with code examples
• Acceptance criteria for development team
• Backward compatibility considerations (defaults to /workspace)
• Proper labeling (enhancement, sdk)
🎯 Next Steps for Development Team
The issue provides a clear roadmap for implementation:
4. Modify Conversation class to accept workspace_dir parameter
5. Update Agent.system_message property to use workspace_dir
6. Update all relevant templates and examples
7. Add comprehensive tests
8. Update documentation
The issue is now ready for the development team to implement, following the established pattern from PR #252 while maintaining backward compatibility.
<sub>View full conversation</sub>