Skip to content

Commit

Permalink
feat: update template and aider flow
Browse files Browse the repository at this point in the history
  • Loading branch information
josix committed Dec 28, 2024
1 parent 52d16f2 commit b3f26e1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/thought-consolidation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
env:
AIDER_ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: |
git diff --name-only HEAD HEAD^ | xargs cat > all_thoughts.md
aider --auto-commits --sonnet --architect --read all_thoughts.md --message "consolidate how many topics in the read-only files, then identify each topic if has matched in the random-thoughts/aider-brain/*.md, for each identified topic: 1. If matched, consolidate and expand the thoughts into detailed content in the matched file 2. If not matched, create a new file in the random-thoughts/aider-brain in a structure of descriptive paragraphs, with 7 to 15 sentences in one paragraph to express your ideas with style like documents in `Permanent/*.md` instead of bullet points" --yes
rm all_thoughts.md
git diff HEAD HEAD^ | cat > latest_change.md
aider --auto-commits --sonnet --architect --read latest_change.md --message "consolidate how many topics in the read-only files, then identify each topic if has matched in the random-thoughts/aider-brain/*.md, for each identified topic: 1. If matched, consolidate and expand the thoughts into detailed content in the matched file 2. If not matched, create a new file in the random-thoughts/aider-brain in a structure of descriptive paragraphs, with 7 to 15 sentences in one paragraph to express your ideas with style like documents in `Permanent/*.md` instead of bullet points" --yes
rm latest_change.md
- name: Create Pull Request
id: cpr
Expand Down
8 changes: 8 additions & 0 deletions _private/_templates/Random Thought.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: "{{title}}"
date: {{date}}T{{time}}
dg-publish: true
dg-permalink: ""
description: ""
---
> 沒什麼組織、一些倏忽即逝有趣或不有趣的想法
2 changes: 1 addition & 1 deletion random-thoughts/2024-12-22.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ description: 從動畫《地。-關於地球的運動-》探討人類探索慾
tags:
- anime
- philosophy
- AI
- LLM
- prompt-engineering
---
> 沒什麼組織、一些倏忽即逝有趣或不有趣的想法
- 地。-關於地球的運動- ep1-3
- 人類活著就會追尋著什麼東西,抓住不放探索著追隨著。我們有著理性也並存著感性與直覺,縱使環境束縛規則著,以人為本意味著我們不可忽視自己真實的情感,親身體會的感動,將會驅使自身繼續前進,前進驅動著好奇心不停的挖掘與探究,即便可能違背了所有的社會規範與認知,但是不正確不代表沒有意義,人類與生俱來的好奇心、知性與悟性會感染每一個即將覺醒的人,成為接續著的超人。

Expand Down

0 comments on commit b3f26e1

Please sign in to comment.