feat: support agentic sync without architecture.json (#538)#539
Open
prompt-driven-github[bot] wants to merge 1 commit intomainfrom
Open
feat: support agentic sync without architecture.json (#538)#539prompt-driven-github[bot] wants to merge 1 commit intomainfrom
prompt-driven-github[bot] wants to merge 1 commit intomainfrom
Conversation
Make agentic sync work when a project has no architecture.json by
scanning the prompts/ directory for module prompt files and building
a module catalog. The LLM uses this catalog to identify relevant
modules based on the issue content, with dependencies inferred from
<include> tags in prompt files.
Changes:
- Update agentic_sync_identify_modules_LLM.prompt with conditional
logic for architecture.json presence/absence and a new
{module_catalog} placeholder
- Update agentic_sync.py to build module catalog from prompts/ dir
and pass it to the prompt template
- Update README.md, TUTORIALS.md, and faq.md with documentation
Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enable agentic sync (
pdd sync <issue-url>) to work on projects that do not have anarchitecture.jsonfile by scanning theprompts/directory for module prompt files and building a module catalog for the LLM to select from.Closes #538
Changes Made
Prompts Modified
pdd/prompts/agentic_sync_identify_modules_LLM.prompt— Added conditional logic so the LLM usesarchitecture.jsonwhen available, but falls back to a{module_catalog}(built fromprompts/directory scan) when it is not. Added<pdd-interface>metadata. Made dependency validation conditional (bypass when no architecture.json).Code Modified
pdd/agentic_sync.py— Added logic to scanprompts/directory for*_*.promptfiles (excluding*_LLM.prompt), build a module catalog string, and pass it to the prompt template via the new{module_catalog}placeholder.Documentation Updated
README.md— Addedpdd syncto the command listing and documented agentic mode behavior with/withoutarchitecture.jsondocs/TUTORIALS.md— Added "Method 5: Syncing Modules from a GitHub Issue" tutorial sectiondocs/faq.md— Added FAQ entry about usingpdd syncwithoutarchitecture.jsonReview Checklist
<pdd-reason>,<pdd-interface>tags)architecture.jsonis present*_LLM.promptfilesNext Steps After Merge
Created by pdd change workflow