Skip to content

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

Open
kongweiguang wants to merge 3 commits into
agentscope-ai:mainfrom
kongweiguang:main
Open

feat(harness): add projectWorkspace for filesystem tools#1529
kongweiguang wants to merge 3 commits into
agentscope-ai:mainfrom
kongweiguang:main

Conversation

@kongweiguang
Copy link
Copy Markdown

@kongweiguang kongweiguang commented May 29, 2026

Summary

Retargets the closed #1528 work so the source branch is kongweiguang:main instead of a temporary feature branch.

  • Adds HarnessAgent.Builder.projectWorkspace(Path) so built-in file tools can operate on a project directory 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.

Validation

  • mvn -pl agentscope-harness -am -Dtest=HarnessAgentTest test
  • GitHub Actions: Check License, Check Module Sync, Ubuntu build, Windows build all passed.
  • Codecov patch: all modified and coverable lines are covered by tests.

@kongweiguang kongweiguang requested a review from a team May 29, 2026 14:29
@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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