Skip to content

Agent Security

Agents window → shield. Agent Security is a tab with the MCP server that KryoDesk offers to coding agents, the journal the agents write to, their refusals and their permissions. The concept is in Agents, projects and the AI assistant.

Agent Security: journal, refusals, MCP server and agent permissions

The header of Agent Security

Control What it does
Chip MCP on / MCP not running / MCP off State of the server. Not running: enabled, but the socket could not be opened (see the MCP log).
Enable MCP Shown while it is off; same as Enable in MCP server. Enabling is your consent.
Refresh Reads the journal, refusals and state again.
Tiles Open entries, Awaiting your decision (click: journal filtered to them), Refusals, last 7 days, MCP tabs with source access.

Entries the agents report with journal_report: disputes between reviewers, important review findings, broken decisions of the user or project rules. One file per project folder in journal/ in the KryoDesk folder (0700/0600).

An expanded journal entry awaiting a decision

Control What it does
All / Open / Awaiting / Resolved / Rejected Filter with counts.
Copy as Markdown The filtered entries as Markdown.
Entry row Severity (CRITICAL, HIGH, MEDIUM), kind (dispute: reviewers disagree; violation: an important finding or a broken decision or rule) and area, project, agent, time, status.
Details Context, Description, positions A / B and Verdict (disputes), Decision, Commit, Folder, Reporter (agent and launch id), Created, Id, History.
Note for the history Text saved with your next status change.
Resolved, Reject, Reopen, Awaiting decision Sets that status; the button of the current status is hidden.
Copy The entry as Markdown.

An entry the agent sets to awaiting decision is also a message from Mr. Paperclip.

Rules for the agents’ text: it is untrusted. Fields have length limits, control characters are shown, secret-looking values are redacted. An agent cannot reject entries, and cannot change an entry you have changed. A commit it names is checked in the folder’s git repository.

What the agents were refused in the project folders over the last 7 days, read incrementally from the Claude Code and Codex transcripts. Similar ones are grouped. A new one is a message from Mr. Paperclip.

Refusals card with one item expanded

Kind Source
Auto mode classifier refused / …gave no verdict Claude Code auto mode
Refused in the permission prompt your answer in the agent’s prompt
Blocked by Claude Code Claude Code’s own block
Blocked by a hook a hook (permissionDecision reject)
System refused access EPERM / EACCES in tool output
Not approved Codex declined

Details: Reason, Detail, Time, Folder, Session, Transcript; Copy.

macOS only for now (it uses a Unix socket); on Windows turning it on reports KryoDesk's MCP server is available on macOS only for now.

MCP server card with three agent tabs

Field Value
Enable / Disable / Retry Saved in mcp.json. Off by default.
Socket ~/Library/Application Support/pl.kryodesk/mcp/mcp.sock (folder 0700, socket 0600).
Relay <KryoDesk binary> mcp --launch <id>

macOS only (Unix socket). Claude Code and Codex tabs opened before enabling have no MCP until reopened.

How a tab gets the server:

  1. Starting a Claude Code or Codex tab from the Agents window creates a launch with a ticket mcp/tickets/<id>: 32 random bytes, file 0600, valid until the tab closes.
  2. Claude Code gets --mcp-config <file>, Codex -c mcp_servers.kryodesk.*, both starting the relay kryodesk mcp --launch <id> (stdio JSON-RPC).
  3. The relay connects to the socket. KryoDesk checks that the peer runs as your user and that the ticket matches. Folder, agent and session come from the launch, not from the model.

Agent tabs lists the launches. Source access per tab:

State Meaning Button
Not asked yet No source tool called. —
Sources allowed You allowed this tab to read the project’s linked sources. Revoke
Sources denied You denied it. Ask Again

The tab consent is asked through Mr. Paperclip on the first source call and again when the project’s links change. The message lists the linked resources and warns that logs, issues and events go to the agent and its model provider and that their text can steer the agent.

Limits: 30 journal writes and 60 source calls per tab and minute; one open prompt per tab; a consent prompt waits 50 s; while the app is locked, consent is refused. After Deny, the same scope in the same tab is refused without asking for 10 minutes.

Tool What it does
journal_report, journal_list, journal_update_status The journal of the project folder.
project_info The project of the folder and its links.
project_status Live state of the links (as Status).
pipeline_status, pipeline_wait GitLab pipeline of the agent’s branch; pipeline_wait polls every 10 s, up to 600 s, and reports each poll as MCP progress.
gitlab_job_log, gitlab_issues, gitlab_issue GitLab of the linked project. The folder’s origin remote must point at it.
job_retry, job_play, job_cancel Retry a finished job (GitLab starts a new one), start a manual job, cancel a pending or running one: POST /projects/:id/jobs/:job_id/retry (play, cancel). Scope Retry and run jobs.
pipeline_retry Retry the failed and cancelled jobs of a pipeline: POST /projects/:id/pipelines/:id/retry. Same scope.
sentry_issues, sentry_issue_event Linked Sentry project.
zabbix_problems Linked Zabbix hosts.
youtrack_issues, youtrack_issue Linked YouTrack project.

Results are cut to 40 000 characters; secret-looking values are masked before the agent gets them. The log keeps the first 600 characters.

While a call runs, KryoDesk sends the relay a keepalive every 15 s; the relay reports an error only after 60 s without any. Agents that pass a progressToken get notifications/progress.

Write tools (job_*, pipeline_retry) read the job or pipeline first and refuse without a request when GitLab would refuse the action (e.g. job_play of a job that is not manual, pipeline_retry without failed or cancelled jobs). The prompt shows the exact request: POST and URL, the job (id, name, stage, status), ref, pipeline and commit, or the jobs a pipeline retry restarts. Their answer: the job’s (for retry: the new job’s) id, status and link, or the pipeline’s id, status and link. The source’s token needs the api scope and its user the Developer role or higher.

Tools Token scope Role in the project
pipeline_status, pipeline_wait, gitlab_job_log, gitlab_issues, gitlab_issue read_api Reporter
job_retry, job_play, job_cancel, pipeline_retry api Developer

When GitLab answers 401 or 403, the agent gets the HTTP status, GitLab’s answer and what the tool needs (read_api and Reporter for reads, api and Developer for writes); Mr. Paperclip names the source and its address and offers Create api Token… (GitLab’s token page with the scope filled in), Source Settings… and Documentation (this section). One message per source and scope in 10 minutes.

Per source and scope, for agents only. Stored in agent-permissions.json, separate from the assistant’s Data Access.

Agent permissions card

Value What happens on a call
Off (default) Mr. Paperclip asks: Once, For this tab, Always (sets Allow here), Deny. Write scope (Retry and run jobs): refused without asking, before any other prompt.
Ask (write scope) Once, Always, Deny for the exact request: each write is its own consent, never for the whole tab.
Ask The same prompt.
Allow Runs without a prompt (after the tab consent above).

All: Off Ask Allow sets every scope of a source; Ask and Allow leave the write scope as it is. Link to … appears at a source the project selected in Agents does not link and opens its Links. Scopes: GitLab Pipelines, Job logs (may contain secrets), Issues (including confidential ones), Retry and run jobs (gitlab.pipelines_write: the write tools, agents only); Sentry Issues, Latest event (may contain personal data); Zabbix Problems; YouTrack Issues; Kubernetes Pods (only Off / Allow: pod items of project_status are not prompted).

Always in a prompt changes only this table, never the assistant’s Data Access.

Skill for agents card

Installs instructions that tell agents when to use the journal tools. The chip shows Installed, Differs from this version or Not installed for the chosen project. Preview shows the file, Install (Replace when it differs) writes SKILL.md to <folder>/.claude/skills/kryodesk-journal/ and <folder>/.agents/skills/kryodesk-journal/.

Folded at the bottom: connections, calls and refusals of the server, with Copy.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close