Skip to content

agent: add --chdir working-directory option#232

Open
gmontana wants to merge 1 commit into
antirez:mainfrom
gmontana:fix/agent-chdir
Open

agent: add --chdir working-directory option#232
gmontana wants to merge 1 commit into
antirez:mainfrom
gmontana:fix/agent-chdir

Conversation

@gmontana
Copy link
Copy Markdown

@gmontana gmontana commented May 23, 2026

Summary

Add --chdir DIR to ds4-agent, matching the existing ds4-server working-directory option. This lets external launchers start the native agent from another current directory while still resolving relative runtime assets, including metal/*.metal, from the selected project/install tree.

Also document the flag in the native-agent README section.

Fixes #221

Validation

  • git diff --check
  • make ds4-agent
  • ./ds4-agent --help
  • ./ds4-agent --chdir /tmp/ds4-agent-chdir-does-not-exist --non-interactive exits with the expected chdir error
  • ./ds4_test --server

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.

ds4-agent: set working directory (eg --chdir)

1 participant