Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix: harden workspace map syscalls and avoid duplicate project instructions

6 months ago

8c1f80b
Authored
Cursor Agent4/15/2026, 1:09:13 AM
Use readdir with file types plus lstat for roots to avoid following symlink
directories into external paths. Main system prompt keeps profile text only
in {{userProfileInstructions}}; subagents still get ## Project instructions
before the workspace map.

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

Parent035ff7f

3 files changed
  • src/prompt.ts+13−6
  • src/workspace/map.ts+57−13
  • test/workspace.map.test.ts+32−1