From 2a0bbc13564b9d3a52407ce0c00e7880776100a4 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 17 May 2026 22:32:20 +0200 Subject: [PATCH] opencode/commands/commit.md: constrain git commands --- opencode/commands/commit.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/opencode/commands/commit.md b/opencode/commands/commit.md index 462dae8..6d33095 100644 --- a/opencode/commands/commit.md +++ b/opencode/commands/commit.md @@ -1,9 +1,15 @@ --- description: Analyze git changes -agent: build temprature: 0.1 --- You are analyzing staged changes in git to formalize a commit message and commit the changes. +Analyze previous commits to see what style to use. -* Analyze previous commits to see what style to use. +you are only allowed to call these commands: + +* `git diff --staged` +* `git log --oneline -10` +* `git commit` + +Do not run any external commands than those listed above, just analyze the data provided here.