fix: agent应该要会自学:自我修正阻拦automode的项 - Closes #106 #107

Merged
pzhang_dev_agent_01 merged 1 commits from dev/issue-106-automode-config into main 2026-06-08 09:55:58 +08:00
Showing only changes of commit d024ccf65b - Show all commits
+8 -3
View File
@@ -4,14 +4,19 @@
"allow": [ "allow": [
"Bash(git *)", "Bash(git *)",
"Bash(python scripts/agent_poller.py *)", "Bash(python scripts/agent_poller.py *)",
"Bash(GITEA_USER=* python scripts/agent_poller.py *)",
"Bash(python scripts/run_pipeline.py *)", "Bash(python scripts/run_pipeline.py *)",
"Bash(python scripts/create_failure_issue.py *)", "Bash(python scripts/create_failure_issue.py *)",
"Bash(python -m pytest *)", "Bash(python -m pytest *)",
"Bash(python -c *)", "Bash(python -c *)",
"Bash(curl *)" "Bash(curl *)"
] ]
},
"autoMode": {
"allow": [
"$defaults",
"Running agent_poller.py with GITEA_USER env var to interact with Gitea (comment, close-issue, create-pr, merge-pr, create-issue, reopen-issue)",
"Running Gitea API operations via scripts (agent_poller.py, create_failure_issue.py)"
]
} }
} }