[PR #13655] x: implement three-tier approval system with warn patterns #14318

Open
opened 2026-04-13 00:50:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13655
Author: @ParthSareen
Created: 1/9/2026
Status: 🔄 Open

Base: mainHead: parth/agent-allowlist


📝 Commits (1)

  • 233d5c5 refactor(agent): implement three-tier approval system with warn patterns

📊 Changes

2 files changed (+267 additions, -52 deletions)

View changed files

📝 x/agent/approval.go (+206 -43)
📝 x/agent/approval_test.go (+61 -9)

📄 Description

Loosens some constrains on the allowlist while tightening for git

  • Remove git commands from auto-allowlist
  • Add new warn patterns tier for commands requiring explicit approval
  • Move network commands and env files from deny to warn

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13655 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 1/9/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `parth/agent-allowlist` --- ### 📝 Commits (1) - [`233d5c5`](https://github.com/ollama/ollama/commit/233d5c5eda38b9aef1533033f2a12df5039bbcc6) refactor(agent): implement three-tier approval system with warn patterns ### 📊 Changes **2 files changed** (+267 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `x/agent/approval.go` (+206 -43) 📝 `x/agent/approval_test.go` (+61 -9) </details> ### 📄 Description Loosens some constrains on the allowlist while tightening for git - Remove git commands from auto-allowlist - Add new warn patterns tier for commands requiring explicit approval - Move network commands and env files from deny to warn --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 00:50:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#14318