Skip to content

Agents and approvals

Agents do the telemetry cleanup. People decide what ships. An agent is any automated caller: your own agent connected over MCP (signed in as you with OAuth, or with a service account key), or the in-product assistant. Agents use the same public tools people use, act within their key’s permissions, and everything they do is audited. Your approval rules decide which of their actions wait for a person, and a few actions always do.

Agents connect over MCP (streamable HTTP) at /mcp. There are two ways to authenticate.

An agent can sign in to the MCP as you:

  1. Add Skep to your agent without a key. For Claude Code:

    Terminal window
    claude mcp add --transport http skep https://app.skep.observer/mcp
  2. In Claude Code, run /mcp and choose Authenticate. Sign in and allow the agent.

  3. Ask the agent to call get_workspace_context. It answers with your organization’s environments and totals when the connection works.

The agent acts with your role and permissions, but as an agent: your approval rules apply to it, and it never decides approvals or manages people, keys or integrations. OAuth works only on /mcp, not on the REST API.

Each agent you connect this way shows under Agents, Connect. You see your own connections, and admins see everyone’s. For each one you can:

  • cap it below your role, for example read only;
  • revoke it. Its tokens are refused until you allow it again, and its refresh tokens stop working.

Use a key for CI and shared service accounts.

  1. Go to Agents, Connect and choose New agent key (admins only). Copy the key: it is shown once and starts with skk_.

  2. Add Skep to your agent. For Claude Code:

    Terminal window
    claude mcp add --transport http skep https://app.skep.observer/mcp \
    --header "Authorization: Bearer skk_..."

    For any MCP client that takes a JSON configuration:

    {
    "mcpServers": {
    "skep": {
    "type": "http",
    "url": "https://app.skep.observer/mcp",
    "headers": {
    "Authorization": "Bearer skk_...",
    "X-Skep-On-Behalf-Of": "you@example.com"
    }
    }
    }
    }
  3. Check the connection with get_workspace_context, as above.

Agents, Connect shows the same setup with your own URL. There are more than 60 tools: inventory, findings and remediations, recipes and rollouts, cost, readiness, the sampling advisor and boosts, fleets and revisions, contracts, approvals and policy, and collector install guides. See the MCP tools reference and Hand work to an agent.

The assistant panel in the app is an agent too. It uses exactly the public MCP tools, with no private tools, and it acts as the signed-in person: it never has more permission than you. Its changes follow the same approval rules as any agent, and the audit log records them as the assistant acting for you.

Hand to an agent on a recommendation opens the assistant with a prompt in the message box. Nothing is sent until you press Enter. You may approve a request your own assistant raised: that is the intended loop.

An admin sets the rules under Agents, Approvals. Each rule covers one kind of agent action:

Agent action Choices Default
Request a sampling boost auto_within_caps, require_approval auto_within_caps
Apply a sampler snapshot require_approval, auto require_approval
Apply a remediation require_approval, auto require_approval
Open a pull request (remediation or configuration) auto, require_approval auto

Pull requests default to auto because your repository’s own review (code owners, branch protection) gates the merge. Boost caps sit beside the rules: the longest boost (default 2 hours, at most 24) and the most active at once (default 10).

People acting directly never need approval. These rules apply only to agents.

Some actions stay with people whatever the rules say:

  • Deploying a fleet revision. An agent’s deploy always files a fleet_deploy approval that only a person with fleet:deploy can approve. This covers recipe rollout stages and sampler changes delivered as fleet revisions. See Collectors and fleets.
  • Promoting a registry snapshot to a service’s contract.
  • Deciding approvals. Agents never approve or reject.
  • Integrations. Only human admins create, edit or remove them, because they hold credentials.
  • Autopilot. Only human admins set the recipe autopilot policy. See Autopilot.
  • Approval rules, API keys, members and invitations. Human admins only.
  • Where configuration comes from. Choosing a fleet’s config source, or how an environment’s sampler is delivered, is a human admin’s call.

When an agent tries one of these, it gets 403 forbidden with the reason, for example “only humans decide approvals”.

When an approval rule requires a person, the agent’s request does not fail. It answers 202 and the action waits:

{
"status": "pending_approval",
"approval_id": "apv_...",
"message": "..."
}

The approval shows on Home and under Agents, Approvals, with what was asked, why, and who asked. Then:

  1. A person with the editor role approves or rejects it, with a note. Sampler approvals also need sampling:enforce, fleet deploys need fleet:deploy, and registry promotions need registry:promote.
  2. On approval, Skep runs the stored action as the approving person.
  3. A request nobody decides expires after 24 hours.

Agents can check on their requests with get_approval_status and list_pending_approvals, so they can tell you what they are waiting on.

Every change writes an audit log entry: who did it, what, to which subject, and when. For agent actions the entry names:

  • the kind of caller: an agent signed in as a person, a service account, the assistant, or the recipe autopilot;
  • the connection and agent client, or the key and the person who created it;
  • the person the agent acted for, when known;
  • for approved actions, both the requesting agent and the person who approved.

See it under Agents, Activity, or read it with GET /v1/audit (agents_only=true lists only agent actions). Exporting the audit log is on the Plus plan.

An agent with a service account key may send X-Skep-On-Behalf-Of: <email> on REST and MCP requests to name the person it works for. Skep records it in the audit log. It is not verified and grants nothing: the agent still has only its key’s permissions. It is ignored for keys that already belong to a person, and Skep never puts it in its own telemetry. An agent signed in with OAuth does not need it: the token already says who it acts for. For the assistant, Skep sets the person itself, so it is verified.

Skep · Security · Changelog · Privacy