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

Added create_coding_feature pattern #1310

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

nysan
Copy link

@nysan nysan commented Feb 20, 2025

This describes a JSON based filesystem interface for the chosen AI model via the pattern, and explicitly asks for output in said format. Input (project code) is provided via a similiar JSON based interface.

This allows fabric to directly apply file changes in $PWD subdirectories, for later human review in said humans favourite SCM tool.

Workflow:
$ code.py . "Validate user input, assume all users are google project zero" |
fabric -p create_coding_feature
$ git diff
$ git add
$ git commit -s -m "Validate user input with extreme judgement"

What this Pull Request (PR) does

Please briefly describe what this PR does.

Related issues

Please reference any open issues this PR relates to in here.
If it closes an issue, type closes #[ISSUE_NUMBER].

Screenshots

Provide any screenshots you may find relevant to facilitate us understanding your PR.

This describes a JSON based filesystem interface for the chosen
AI model via the pattern, and explicitly asks for output in said format.
Input (project code) is provided via a similiar JSON based interface.

This allows fabric to directly apply file changes in $PWD subdirectories, for
later human review in said humans favourite SCM tool.

Workflow:
$ code.py . "Validate user input, assume all users are google project zero" |
  fabric -p create_coding_feature
$ git diff
$ git add <files>
$ git commit -s -m "Validate user input with extreme judgement"
<repeat>

Signed-off-by: David Nyström <[email protected]>
@nysan
Copy link
Author

nysan commented Feb 20, 2025

This mostly an RFC PR, since I'm a bit unsure you want to deal with this kind of behavior in fabric. Let me know if you find the approach interesting.

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.

1 participant