Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Git as agents' source control tool #105

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

add Git as agents' source control tool #105

wants to merge 3 commits into from

Conversation

flyi
Copy link
Contributor

@flyi flyi commented Aug 1, 2023

Enable agents to use Git for version control after writing files to track the project development process. Currently, the implementation immediately adds and commits changes after writing files. However, there is a potential issue with the git add & commit operation for the save_prd operation in WriteDesign. Since it uses a subprocess to save files, there is a possibility that the files may not have been generated yet at the time of the git add & commit operation, potentially leading to omissions. This issue requires further investigation and resolution.

image

@@ -57,6 +58,7 @@ def __init__(self, name="Alex", profile="Engineer", goal="Write elegant, readabl
self._watch([WriteTasks])
self.todos = []
self.n_borg = n_borg
logger.info(f"---> init Egineer: {self._role_id}, {self._setting.name}")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Engineer

@@ -106,18 +107,23 @@ def recreate_workspace(self, workspace: Path):
def _save_prd(self, docs_path, resources_path, prd):
prd_file = docs_path / 'prd.md'
quadrant_chart = CodeParser.parse_code(block="Competitive Quadrant Chart", text=prd)
mermaid_to_file(quadrant_chart, resources_path / 'competitive_analysis')
quadrant_chart_file = resources_path / 'competitive_analysis'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个逻辑实现错了,实际的后缀是在mermaid_to_file中决定的

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.

None yet

2 participants