harnesscp-permissions

Configure Copilot permission boundaries for agent tools and PreToolUse hooks.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/LSDIPPOLLC/harness-cp --skill harnesscp-permissions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harnesscp-permissions
Source: https://github.com/LSDIPPOLLC/harness-cp/tree/main/.github/skills/harnesscp-permissions
Command: npx skills add https://github.com/LSDIPPOLLC/harness-cp --skill harnesscp-permissions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you control what VS Code Copilot agents can do autonomously versus what must be confirmed, reducing risky actions while keeping the assistant productive.

Core Features & Use Cases

  • Agent Tool Restrictions: Define least-privilege tool access for each agent so review, build, and deploy roles are separated.
  • PreToolUse Safety Gates: Add dynamic permission checks that allow, ask, or deny commands before execution.
  • Use Case: A team that sees too many prompts or wants to block destructive commands can use this Skill to tighten permissions without disabling helpful automation.

Quick Start

Use this skill to audit your Copilot agents and add the minimum permission boundaries needed for safe, low-friction work.

Frequently Asked Questions about harnesscp-permissions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I restrict VS Code Copilot agents to least-privilege tool access?

You can restrict Copilot agents by configuring permission boundaries that define least-privilege tool access per agent, separating review, build, and deploy roles to control autonomous actions.

Can I add pre-tool hooks to block destructive commands in Copilot?

Yes, PreToolUse safety gates act as dynamic permission hooks that allow, ask, or deny commands before execution, blocking destructive commands while keeping helpful automation active.

How do I reduce the number of permission prompts Copilot agents generate?

By applying workspace settings with specific allow, ask, or deny decisions for each tool invocation, you can reduce prompts and tighten permissions without disabling helpful automation.

What is the best way to enforce permission boundaries for autonomous Copilot actions?

The best way to enforce permission boundaries is combining agent tool restrictions with PreToolUse hooks and workspace settings to audit agents and apply minimum permission limits for safe operation.

Does configuring Copilot permission boundaries require workspace settings?

Yes, workspace settings are required to enforce allow, ask, or deny decisions for each tool invocation, working alongside agent tool restrictions and PreToolUse permission hooks to secure the environment.

When should I not use least-privilege configurations for Copilot agents?

You should avoid using least-privilege configurations when your workflow requires agents to execute commands fully autonomously without any safety gates, as these boundaries intentionally introduce confirmation prompts for risky actions.