From b5e277c90717f10ebe037ede8196c6ce3776dc9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Fri, 20 Dec 2024 03:10:43 +0100 Subject: [PATCH 1/9] docs: add CI status badge to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ed126f9..60c37b2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # gptme-agent-template [![built using gptme](https://img.shields.io/badge/built%20using-gptme%20%F0%9F%A4%96-5151f5?style=flat)](https://github.com/ErikBjare/gptme) +[![Test](https://github.com/ErikBjare/gptme-agent-template/actions/workflows/test.yml/badge.svg)](https://github.com/ErikBjare/gptme-agent-template/actions/workflows/test.yml) > [!NOTE] From 8b4baa438872e6ed5e57b2aa410abe398d749ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Fri, 20 Dec 2024 03:11:15 +0100 Subject: [PATCH 2/9] ci: add GitHub Actions workflow --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8bad83d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Install pre-commit + run: | + python -m pip install --upgrade pip + pip install pre-commit + + - name: Run pre-commit checks + run: pre-commit run --all-files + + - name: Test fork.sh script + run: | + # Test basic usage (script will do its own validation) + ./fork.sh test-agent + ./fork.sh alice-agent Alice From b076e0b446bfee1a9e7eafab81a210e64e1418b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Fri, 20 Dec 2024 03:12:21 +0100 Subject: [PATCH 3/9] ci: fix branch name in workflow trigger --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8bad83d..e8f0eab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,9 @@ name: Test on: push: - branches: [ main ] + branches: [ master ] pull_request: - branches: [ main ] + branches: [ master ] jobs: test: From 6f76b8e722531c33cdda17efaab2b61dcd3e4c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Fri, 20 Dec 2024 03:15:00 +0100 Subject: [PATCH 4/9] docs: replace agent name references with gptme-agent --- ARCHITECTURE.md | 4 ++-- TOOLS.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index b02a2ba..4ced124 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -14,7 +14,7 @@ For a information about tools used in this workspace, see [`TOOLS.md`](./TOOLS.m ## Task System -The task system is designed to help Bob track and manage work effectively across sessions. +The task system is designed to help gptme-agent track and manage work effectively across sessions. ### Components @@ -166,7 +166,7 @@ The knowledge base stores long-term information and documentation. ## People Directory -The people directory stores information about individuals Bob interacts with. +The people directory stores information about individuals gptme-agent interacts with. ### Structure - Located in [`people/`](./people) diff --git a/TOOLS.md b/TOOLS.md index 48cfe78..f1aadc3 100644 --- a/TOOLS.md +++ b/TOOLS.md @@ -1,6 +1,6 @@ # Tools -Bob has the tools enabled in gptme, and can in addition use the following tools in his workspace. +gptme-agent has the tools enabled in gptme, and can in addition use the following tools in their workspace. ## Search & Navigation From fbce3631462f7da9f393d75614e9d368058e1a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Fri, 20 Dec 2024 03:15:19 +0100 Subject: [PATCH 5/9] ci: create required directories and use consistent test agent names --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8f0eab..8a5dc09 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,6 +27,9 @@ jobs: - name: Test fork.sh script run: | + # Create required directories + mkdir -p journal tasks/{active,done,new,paused,cancelled} + # Test basic usage (script will do its own validation) ./fork.sh test-agent - ./fork.sh alice-agent Alice + ./fork.sh test-agent-named TestAgent From 2d1cfb926416b8fdee4493c1e39a3d56fc067d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Fri, 20 Dec 2024 03:17:08 +0100 Subject: [PATCH 6/9] ci: let fork.sh handle directory creation, add directory verification --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8a5dc09..c813364 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,9 +27,10 @@ jobs: - name: Test fork.sh script run: | - # Create required directories - mkdir -p journal tasks/{active,done,new,paused,cancelled} - # Test basic usage (script will do its own validation) ./fork.sh test-agent ./fork.sh test-agent-named TestAgent + + # Verify directories were created in test-agent + test -d test-agent/journal + test -d test-agent/tasks/{active,done,new,paused,cancelled} From 7a22ec4ceb68e661e950f4c3e67b4d70ecc57b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Fri, 20 Dec 2024 03:17:44 +0100 Subject: [PATCH 7/9] ci: simplify workflow, rely on fork.sh validation --- .github/workflows/test.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c813364..9ec0187 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,3 @@ jobs: # Test basic usage (script will do its own validation) ./fork.sh test-agent ./fork.sh test-agent-named TestAgent - - # Verify directories were created in test-agent - test -d test-agent/journal - test -d test-agent/tasks/{active,done,new,paused,cancelled} From 15462496378ab035bb3b4ad6a1a24c2521f76dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Fri, 20 Dec 2024 03:28:58 +0100 Subject: [PATCH 8/9] docs: add daily journal template and update link checker - Add template for daily journal entries with structured sections - Update markdown link checker to skip template files Co-authored-by: Bob --- journal/templates/daily.md | 37 +++++++++++++++++++++++ scripts/precommit/check_markdown_links.py | 4 +-- 2 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 journal/templates/daily.md diff --git a/journal/templates/daily.md b/journal/templates/daily.md new file mode 100644 index 0000000..c5dd9d1 --- /dev/null +++ b/journal/templates/daily.md @@ -0,0 +1,37 @@ +# Journal Entry: {{date}} + +## Tasks Worked On +- [ ] [Task Name](../tasks/task-name.md) + - Progress made + - Blockers encountered + - Next steps + +## Social Interactions +- Meeting with [Person Name](../people/person-name.md) + - Key points discussed + - Action items + +## Ideas & Insights +- New ideas that emerged +- Insights from work/discussions +- Potential opportunities + +## Technical Notes +- Code/architecture decisions +- Tool usage learnings +- Performance observations + +## Next Actions +- [ ] Priority tasks for next session +- [ ] Follow-ups needed +- [ ] Decisions pending + +## Related +- [Related Task](../tasks/related-task.md) +- [Meeting Notes](../knowledge/meetings/meeting-name.md) +- [Technical Design](../knowledge/technical-designs/design-name.md) + +## Notes +- Additional context +- Important reminders +- Open questions diff --git a/scripts/precommit/check_markdown_links.py b/scripts/precommit/check_markdown_links.py index 0226da4..885d32d 100755 --- a/scripts/precommit/check_markdown_links.py +++ b/scripts/precommit/check_markdown_links.py @@ -83,8 +83,8 @@ def verify_links(file_path: Path, links: list[tuple[str, str]]) -> list[str]: errors = [] repo_root = find_repo_root(file_path) - # Skip example files - if "examples" in str(file_path): + # Skip example and template files + if "examples" in str(file_path) or "templates" in str(file_path): return [] for _link_text, link_path in links: From 3fb6c398b2b0a137ac8f8abba0ab2a65f5720c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Fri, 20 Dec 2024 03:32:50 +0100 Subject: [PATCH 9/9] ci: split test workflow into pre-commit and fork --- .github/workflows/test.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9ec0187..cde33c0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - test: + pre-commit: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -25,6 +25,21 @@ jobs: - name: Run pre-commit checks run: pre-commit run --all-files + fork: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install pre-commit + run: | + python -m pip install --upgrade pip + pip install pre-commit + + - name: Setup git + run: | + git config --global user.email "test@example.com" + git config --global user.name "Test User" + - name: Test fork.sh script run: | # Test basic usage (script will do its own validation)