Skip to content

feat(harness): add projectWorkspace for filesystem tools#1528

Closed
kongweiguang wants to merge 1 commit into
agentscope-ai:mainfrom
kongweiguang:codex/project-workspace-filesystem-tools
Closed

feat(harness): add projectWorkspace for filesystem tools#1528
kongweiguang wants to merge 1 commit into
agentscope-ai:mainfrom
kongweiguang:codex/project-workspace-filesystem-tools

Conversation

@kongweiguang
Copy link
Copy Markdown

Summary

Revives and retargets the closed #1348 work onto the current main branch.

  • Adds HarnessAgent.Builder.projectWorkspace(Path) so built-in file tools can operate on a project directory that is separate from the Harness state workspace.
  • Keeps workspace(...) responsible for AGENTS.md, memory, sessions, skills, workspace context, and other Harness state.
  • Uses a virtual LocalFilesystem rooted at projectWorkspace for file tools without the per-user namespace.
  • Preserves sandbox-backed file tool behavior by default when projectWorkspace is not configured.
  • Propagates projectWorkspace to shared/general-purpose subagents so their file tools use the same project directory.

Why

The old PR targeted the deleted harness branch, so it was closed without merging. This reapplies the feature against current main and adapts it to the newer HarnessAgent/subagent structure.

Validation

  • mvn -pl agentscope-harness spotless:apply
  • mvn -pl agentscope-harness -am -Dtest=HarnessAgentTest test

@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

❌ Patch coverage is 81.25000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...java/io/agentscope/harness/agent/HarnessAgent.java 81.25% 2 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@kongweiguang kongweiguang marked this pull request as ready for review May 29, 2026 14:22
@kongweiguang kongweiguang requested a review from a team May 29, 2026 14:22
@kongweiguang kongweiguang changed the title [codex] feat(harness): add projectWorkspace for filesystem tools feat(harness): add projectWorkspace for filesystem tools May 29, 2026
@kongweiguang kongweiguang deleted the codex/project-workspace-filesystem-tools branch May 29, 2026 14:27
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