Skip to content

Hand work to an agent

Agents work in Skep through the same public tools people use. You can hand a task to the assistant built into the app, or connect your own agent (Claude Code or any MCP client) with a key. Either way, the approval rules decide what an agent may do on its own and what waits for a person.

  • An agent that can read your services, findings, cost and readiness, explain them, and start fixes: apply recipes, propose pipeline rules, open pull requests, request sampling boosts.
  • More than 60 MCP tools. Everything a person does day to day, an agent can do.
  • Approvals for the actions you reserve for people. A deployment by an agent always waits for a person.
  • An audit log entry for every action an agent takes, under the key’s name.
  • Plan: any plan. MCP for agents and the assistant are on the Free plan.
  • Role: any signed-in person can use the assistant and, on the hosted service, connect an agent as themselves. An organization admin creates service account keys.
  • For your own agent: an MCP client that speaks streamable HTTP, such as Claude Code.
Way Where Acts as
Hand to an agent button On each recommendation card, and on each step of the Guide The assistant, as you
The assistant Press . anywhere, or Agents, then Connect, then Open the assistant You, with your permissions
Your own agent, connected as you Your MCP client, signed in with OAuth You, marked as an agent, with your role or less
Your own agent, with a key Your MCP client, with a service account key The key’s service account, with the key’s scopes
  1. Open Recommendations and pick a card, or open the Guide from the top bar and expand a step.
  2. Choose Hand to an agent. The assistant opens with a prompt for that recommendation or step in its message box.
  3. Read the prompt and edit it if you want. Nothing is sent until you press Enter.

The assistant is an agent built into the app. It uses exactly the public MCP tools listed under Agents, then Connect, and never has more permission than you. Its actions are audited as the assistant, on behalf of you. When it does something your approval rules reserve for a person, the request waits for a decision like any other agent’s. You may approve a request your own assistant raised.

The assistant card under Agents, then Connect, says whether it is on and, if not, why.

Skep serves MCP over streamable HTTP at /mcp. Your agent signs in one of two ways:

  • As you, with OAuth. No key to paste. Use it for an agent you work with, such as Claude Code on your laptop.
  • With a service account key. Use it for CI and automation that runs without a person.
  1. Add Skep to your agent, with no key:

    Terminal window
    claude mcp add --transport http skep https://app.skep.observer/mcp
  2. In Claude Code, run /mcp, pick skep and choose Authenticate. Your browser opens the Skep sign-in. Sign in, pick the organization, and approve the agent. Claude Code stores the token.

  3. Ask the agent to call get_workspace_context. It answers with your organization, environments and what Skep observes.

Other MCP clients that support the MCP authorization spec work the same way. /mcp answers 401 with a WWW-Authenticate header that points to /.well-known/oauth-protected-resource, and the client follows it to sign in, register itself and get a token for https://app.skep.observer/mcp.

The agent acts with your role and grants in the organization you approved (or the one you used last), and it is marked as an agent:

  • the approval rules apply to it, as to any agent;
  • it never decides approvals, and it cannot manage people, keys or integrations;
  • the audit log names the agent and the person it acted for.

OAuth tokens work only on /mcp, not on the REST API. You must have signed in to Skep at least once before an agent can connect as you.

Agents, then Connect lists your connected agents under Connected agents. Admins see every connection in the organization. For each one you can:

  • cap what it may do below your own role: Read only, Editor or Admin (the default is the same as you);
  • Revoke it: its tokens stop working at once, including tokens it refreshes later;
  • Allow again after a revoke.

When your directory removes you from the organization, your agent connections are revoked too. See Single sign-on.

  1. Open Agents, then Connect, and choose New agent key. Only an organization admin can create keys.

  2. Give the key a name (for example triage-agent) and a description that says what it is for and who runs it. The description is shown next to every action the key takes.

  3. Choose scopes. Start narrow: the agent acts with exactly these, and you can grant only scopes you hold.

    Scope Lets the agent
    viewer (default) Read the inventory, graph, findings, cost and readiness
    editor Acknowledge findings, apply remediations, edit sampling intents
    sampling:boost Request temporary sampling boosts (may need approval)
    sampling:enforce Apply or roll back compiled sampler configs (agents need approval)
    registry:promote Promote registry snapshots (agents need approval)
    admin Full control. Rarely right for an agent
  4. Copy the key. It starts with skk_ and is shown only once.

  5. Add Skep to your agent:

    Terminal window
    claude mcp add --transport http skep https://app.skep.observer/mcp --header "Authorization: Bearer skk_..."
  6. Ask the agent to call get_workspace_context. It answers with your organization, environments and what Skep observes.

An agent can send X-Skep-On-Behalf-Of: <email> on REST and MCP requests to name the person it acts for. Skep records it in the audit log. It is not verified and grants nothing: the key’s scopes still decide what the agent may do. It is honored only for service account keys, because a person’s own key already identifies them.

These are the prompts the Guide hands to an agent, one per step. Paste them into the assistant or your own agent.

Guide step Prompt
Connect your collectors Help me install a collector: ask me which platform and backend I use, then give me the install steps.
See what you keep Summarize what telemetry we keep: our services, what each one’s data can and cannot answer, and the most expensive ones.
Decide what matters Look at which questions our data answers today and propose a sampling intent that protects the important ones. Simulate it before suggesting it.
Fix the data Review our open recommendations, explain the three most valuable, and start rolling out the low-risk ones in non-production.
Hand it to agents What can you do for me in Skep, and what will you need my approval for?
Set the guardrails Explain what you can do without my approval in this organization, and what always waits for a person.

Agents can also read the Guide’s progress with the get_setup_status tool and help you finish setting up.

The approval rules apply to agents only: service account keys, agents connected over OAuth, and the assistant. People acting in the app are never asked for approval by these rules. An admin changes them under Agents, then Approvals, then Edit rules.

Agent action Default Can change
Sampling boosts Automatic within the boost caps (2 hours at most, 10 at once) Yes
Apply sampler configuration Waits for approval Yes
Apply remediations Waits for approval Yes
Open pull requests Automatic. CODEOWNERS and branch protection decide the merge Yes
Deploy a fleet revision Always waits for a person with fleet:deploy No
Promote a registry snapshot Always waits for a person with registry:promote No
Decide approvals, manage integrations, set autopilot, manage members and keys Never allowed for agents No

When an action waits, the agent gets a pending_approval result with an approval_id instead of the change. Over REST it is a 202 response:

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

Then:

  • The request shows on Home and under Agents, then Approvals. A person with the editor role approves or rejects it, with a note. A deployment needs a person with fleet:deploy, and a registry promotion a person with registry:promote.
  • The agent calls get_approval_status with the approval_id to learn the decision and the note.
  • The agent calls list_pending_approvals to tell you everything waiting on you: deployments, promotions, remediations and pull requests, who asked and why.
  • A request nobody decides expires.

To let low-risk recipes roll out with no per-change approval at all, an admin sets recipe autopilot. For the model behind these rules, see Agents and approvals.

  • Under Agents, then Connect, an agent connected as you is listed under Connected agents, and a key’s Last used column shows a recent time.
  • Agents, then Activity lists what the agent did, under the key’s name.
  • In the Guide, Hand it to agents shows as done once an agent key exists or the assistant was used.
What you see Why What to do
The client cannot authenticate with a key The key is wrong, revoked, or missing Bearer Check the Authorization header. Create a new key if the old one was revoked
An agent connected over OAuth stops working Someone revoked the connection, or your directory removed you Choose Allow again under Agents, then Connect, or ask an admin
OAuth sign-in is refused You never signed in to Skep with that account Sign in to Skep once, then authenticate again
A REST call with the agent’s OAuth token is refused OAuth tokens work only on /mcp Use MCP, or a service account key for REST
403 forbidden, “This credential lacks the required scope.” The key does not have the scope the tool needs Create a key with the scope. Keys cannot gain scopes later
403 forbidden on every call The key is a collector key (skc_) Collector keys work only on the collector endpoints. Use an agent key
403 tier_required The action needs a higher plan See Plans and limits
402 remediations_paused The month’s remediations reached the Free allowance or your spend cap Observation and advice continue. Remediations start again next month, or after an upgrade or a higher cap
Many actions come back pending_approval Your approval rules reserve them for a person Decide them under Agents, then Approvals, or change the rules

See MCP tools for every tool and what it returns.

Skep · Security · Changelog · Privacy