-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add GitHub workflow for thought consolidation and processing
- Loading branch information
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Thought Consolidation | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
consolidate-thoughts: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # Needed for pushing changes | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Get full history for comparing changes | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pipx | ||
pipx install aider-chat | ||
- name: Configure Git | ||
run: | | ||
git config --global user.name 'GitHub Action Bot' | ||
git config --global user.email 'action@github.com' | ||
- name: Process thoughts | ||
env: | ||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | ||
run: | | ||
gd --name-only HEAD HEAD^ | xargs cat > all_thoughts.md | ||
cat random-thoughts/aider-brain/*.md >> all_thoughts.md | ||
aider --sonnet --architect --read all_thoughts.md --message "Consider the read-only files and identify if the thoughts are matched in the random-thoughts/aider-brain/*.md, for each identified topic: 1. ff yes, consolidate and expand the thoughts into detailed content 2. If no, create a new file in the random-thoughts/aider-brain" --yes | ||
- name: push if changes | ||
run: | | ||
git push |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -574,7 +574,7 @@ tags: | |
Fetcher-->>Consumer: ConsumerRecords<K,V> | ||
deactivate Fetcher | ||
``` | ||
``` | ||
Detailed Explanation: | ||
|