Skip to content

feat: add DEEPWORK_DEV env var to prioritize additional job folders over local copies#291

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-deepwork-dev-env
Draft

feat: add DEEPWORK_DEV env var to prioritize additional job folders over local copies#291
Copilot wants to merge 2 commits intomainfrom
copilot/add-deepwork-dev-env

Conversation

Copy link
Contributor

Copilot AI commented Mar 25, 2026

When DEEPWORK_DEV is set, the learn workflow should update jobs in DEEPWORK_ADDITIONAL_JOBS_FOLDERS (the shared library checkout) rather than the local .deepwork/jobs/ copy. Previously, local copies always won the search order, so edits landed in the wrong place.

Changes

  • discovery.py: When DEEPWORK_DEV is set, get_job_folders() places DEEPWORK_ADDITIONAL_JOBS_FOLDERS paths before local and standard-jobs dirs. Since start_workflow returns job_dir from the winning folder, agents automatically get the external library path — no agent-side logic needed.
# Normal order:    [.deepwork/jobs, standard_jobs, ...additional]
# DEEPWORK_DEV=1:  [...additional, .deepwork/jobs, standard_jobs]
  • tests/unit/jobs/test_discovery.py: Three new tests covering dev-mode folder ordering, graceful fallback when no additional folders are configured, and find_job_dir preferring the external library over the local copy.

  • steps/learn.md: Note that DEEPWORK_DEV makes job_dir routing transparent — no special handling required in the learn step.

  • AGENTS.md: Documents the feature under v1.8.0.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add DEEPWORK_DEV environment variable for job updates feat: add DEEPWORK_DEV env var to prioritize additional job folders over local copies Mar 25, 2026
Copilot AI requested a review from ncrmro March 25, 2026 12:31
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.

2 participants