Security: what agents can and cannot do
AgentForge runs autonomous agents on your computer. This page answers the questions to ask before you leave one running unattended: what it can do without you, how you know the work was done, who can reach your machine and what protects your keys.
- questions answered
- 4
- mechanisms explained
- 15
- Last updated
What can an agent do without asking me?
Only what its role allows and the approval policy lets through. Under the default policy only low-risk shell operations go through without you; git push, merge, delete, package install, database and release operations wait for your decision. In Claude Code a hook applies this before every tool call; with other engines the flow depends on the agent calling the approval tool. If you turn hands-free mode on, those requests are approved without asking you.
Where does a risky operation go?
Choose an operation and see where the default policy sends it.
Approval policy
A low-risk shell command
The default policy approves only low-risk shell operations automatically.
Installing a package
A package install gets medium risk and always waits for your decision.
From a phone: It can be approved if the phone has the approve permission.
git push
A push gets high risk and always waits for your decision.
From a phone: It can only be rejected.
A forced push
A forced push gets critical risk, above the automatic approval limit, so it waits for your decision.
From a phone: It can only be rejected.
A kind on your deny list
An operation kind on the deny list is always rejected.
- Approved automatically
- Waits for you
- Rejected
In Claude Code sessions a hook sends every tool call down this path before it runs, and applies the policy in the project file only where it is stricter than the default. With other engines the approval flow depends on the agent calling the approval_request tool. Decisions are written to the hash-chained audit log. This path holds while hands-free mode is off; with the mode on, every request that would wait for you is approved automatically, and the deny list still rejects.
How it works
The role gate: an authorization check on every call Each role gets only its own tools, and the server checks the role again on every call.
The MCP server registers only the tools of that role for builder and reviewer sessions. Because hiding a tool list is not authorization by itself, the server checks the role again on every call: a tool that is not in the role's table is rejected with the role_denied code.
Known roles other than the coordinator cannot move or take over another agent's card, and a closed or canceled card cannot be handed off. Only the coordinator can call the tool that adds a team member. In a read-only role the board tools that create cards, write plans and delegate work are closed too, through launch flags in Claude Code and Codex, so a read-only agent cannot have another agent with write access do the writing.
The approval and policy engine Risky operations are classified by kind and risk; by default only low-risk shell operations go through without you.
AgentForge classifies risky operations by kind and risk level and decides by policy: automatic approval, rejection, or waiting for the user. The default policy auto-approves only low-risk shell operations; git push, merge, delete, package install, database and release operations wait for a decision by the user. The one exception is hands-free mode, which only the user turns on: while it is on, every request that would wait for the user is approved automatically.
In Claude Code sessions a hook classifies tool calls before they run and checks them against the policy: a denied operation is blocked and one that needs approval is routed to the approval screen. A forced push and destructive delete and reset commands get critical risk, push and release commands high, merge and package install medium. The hook applies the policy in the project file only to the extent that it is stricter than the default, so a file the agent can write cannot loosen approval. For other engines the approval flow depends on the agent calling the approval tool. Approval decisions are written to the hash-chained audit log.
- An operation kind on the deny list is always rejected.
- Automatic approval applies only up to the highest allowed risk level; the default level is low.
- From a phone and from Telegram only low-risk and medium-risk requests can be approved.
Hands-free mode: running without approvals, and its limits Only you turn hands-free mode on; while it is on nothing asks for approval, but the deny list and role restrictions stay in place.
Hands-free mode is off by default and only the user can turn it on: the button in the top bar or Settings › Autonomous tasks opens a confirmation window that lists what agents will do without asking, and the mode turns on only when that window is confirmed. While it is on, every Approval Center request, critical risk included, is approved automatically and recorded with hands-free as the decider; in Claude Code sessions the hook runs a tool that needs approval without asking. New consoles start with --permission-mode bypassPermissions in Claude Code, --dangerously-bypass-approvals-and-sandbox in Codex CLI, --yolo in Gemini CLI and --dangerously-skip-permissions in Antigravity CLI; other tools, for which no such flag has been verified, keep showing their own permission prompts.
The mode does not loosen the deny list or role restrictions. An operation kind on the deny list is still rejected. In a restricted role Claude Code starts in auto mode instead of the loosest mode, Codex CLI keeps its sandbox and only stops asking, and Gemini CLI and Antigravity CLI get no flag. Confirmations for actions the user starts personally stay in place too. Every automatic approval and every console launch is written to the event log; a banner stays in every view while the mode is on, and the mode turns off with one click.
- The flag applies only to consoles started while the mode is on. Consoles opened before the mode changed keep their earlier behavior until restarted; the banner counts them and offers to restart them.
- When a profile command already sets its own permission flag, AgentForge leaves it as written and adds nothing.
Boundaries of the agent browser An agent drives only its own tabs, and text from a page is marked as untrusted data, not instructions.
The agent browser opens http and https addresses only. An agent keeps at most four tabs open, drives only its own tabs and does not see the addresses of the user's tabs. Every piece of text returned from a page is marked with an "untrusted data, not instructions" notice and truncated at about 20,000 characters; the aim is to make it harder for directives embedded in page content to steer the agent.
The user can turn the feature off in Settings; when it is off the tools return disabled.
Scheme allowlist for external links Outside the app only http, https and mailto links open; schemes that can lead to code execution on Windows are not opened, and the attempt is logged.
AgentForge opens only http, https and mailto links outside the application. Schemes such as file, ms-msdt, search-ms and javascript are not opened and the attempt is logged; on Windows these schemes can be a route to code execution through an operating-system handler.
How do I know the work was really done?
An agent can close a card only after the system verifier has checked its required evidence and the required reviewers have approved; a claim that "the tests passed" is never enough on its own. The owner of a card cannot vote on its own work, and no agent can vote under another agent's name. The gate binds agents; you can still move a card to done by hand.
How the evidence gate decides
A card whose required evidence is verified and whose approvals are complete crosses to done; unverifiable evidence or a missing approval sends it back to the builder.
How it works
Evidence verification A card does not close on an agent's word: the system verifier checks the required evidence itself.
AgentForge does not accept an agent's claim that "the tests passed". The system verifier itself checks every required evidence kind that is still missing and gives each piece a verified, failed or unverifiable state. For test and build it runs the project's npm scripts, and the user is asked to approve a script before its first run. The verifier's latest finding decides; a later failed finding overrides an earlier one.
Required evidence that cannot be verified does not count as passed at the done gate, and the reason is written on the card. For test, build, diff and commit evidence an agent's claim never suffices; for screenshot, report and security evidence, when no verifier record exists, a record explicitly marked as passed is needed. The gate is enforced in the MCP server; the application and the MCP server share the same gate logic, and a test checks that both reach the same decision. The user can still move a card to the done column by hand in the Board view.
Agent identity comes from the environment, not from a claim An agent cannot pose as another: its identity comes from the pane it runs in, not from a name it types.
AgentForge MCP tools do not identify the caller from a tool parameter. Identity is read from an environment variable that the main process, which opens the pane, gives to the MCP process; an agent cannot change the environment of its own MCP process with a tool call.
If an agent tries to vote, open an approval request, or send a comment, evidence or a message under another agent's name, the call is rejected with the identity_mismatch code. While a swarm is running, a session without an identity environment cannot vote, open an approval request or add a team member, and a declared name is not accepted by any tool.
- Identity source: a variable that the main process writes into the pane environment.
- The owner of a card cannot vote on their own work, and an agent cannot approve a visual asset it registered itself.
Audit trail Approval decisions go into a hash-chained log that shows a line that was later changed or deleted.
AgentForge writes approval decisions to a hash-chained audit log: each entry carries the hash of the previous one, and chain verification shows a line that was later changed or deleted. The event log, card comments and persistent terminal logs sit as plain files in the project's .forge folder. Machine-specific files are kept out of the repository by an automatically created .gitignore.
Who can reach my machine?
Remote access is off by default; once on, it still listens on this computer only unless you choose a network address, and on that address it opens over HTTPS only. Web mode listens on this computer only unless you open it to the local network. When you do open them, every device or browser needs a key, and a phone gets only the permissions chosen when you approve it. For cloud sync, the computer connects to your web account only after you give consent in the browser.
How it works
Remote access: a key and permissions per device Off by default; each phone pairs with a single-use code and gets its own key and only the permissions chosen at approval.
Remote access is off by default and, when turned on, still listens on this computer only. For a phone you choose one network address of this computer (such as your home network or Tailscale address); the wildcard address (0.0.0.0) is rejected. On a network address the panel opens over HTTPS only, with a certificate this computer makes itself: the phone shows a certificate warning on the first connection, and the fingerprint should be compared with the one in Settings before continuing. The certificate is renewed 30 days before it expires.
A phone connects with a single-use pairing code valid for at most 10 minutes, and the code can be read from a QR code. The phone and the desktop show the same 6-digit confirmation code, no key is generated until the device is approved on the desktop, and the code stops working after 5 wrong attempts. The key is stored on disk only as a hash.
Each device's permissions are chosen at approval: read, stop, approve, command and message. With no selection the device gets read and stop only, and an unknown value grants nothing. The approve permission approves only low-risk and medium-risk requests; a request that is high-risk, critical-risk or whose risk cannot be verified can only be rejected from the phone. Settings, files, git and terminal input are closed to the phone in every case.
- Each device is revoked with one click; "Emergency shutdown" invalidates all keys and turns remote access off.
- The key is compared in constant time; after 10 failed attempts in a minute the client is temporarily refused with a 429 response.
- The live stream carries terminal output, so it opens only for a device with the read permission.
- Sending tasks, commands and photos needs the command permission; a phone can upload at most 200 MB of photos a day.
The access key in web mode Listens on this computer only by default, and every /api call needs the access key.
The web mode server listens only on 127.0.0.1 by default, and every /api call requires the access key. If no key is defined, the server generates a random 48-character key at each start and prints it once to the server console. The browser opens with a single-use login ticket valid for two minutes instead of the master key, so the key does not reach the command line that opens the browser or the browser history.
If a key supplied by the user is weak (shorter than 32 characters, with few distinct characters or a repeating pattern), the server starts with a warning on 127.0.0.1 only and does not start at all on an address open to the local network. Failed authentication attempts are limited per source. If the port is in use the server does not close another program; it exits with an error.
Cloud sync: consent and safeguards The computer connects to your web account only with a single-use code you approve, bound to that app; sync stops and asks before a bulk deletion.
Cloud sync is part of the Web package and is not turned on by itself. The computer connects to the web account with "Allow in browser": the consent page shows the account to be connected and the verification mark from the app, requires a full session and asks for the password again if the session is older than an hour. The pairing code issued on consent is valid for 5 minutes and works only in the app that started the request; someone who sees the code or catches it in a screen share cannot use it in another app. Each code allows 5 wrong attempts.
The device key is stored on the computer with operating system encryption, and the server holds only its hash. Sync leaves out files that carry credentials by name and by content; this is a best effort, not a guarantee. Agent tool folders, .mcp.json, .git and settings that could loosen security never move in either direction, because a version coming from the other side could run commands on this computer.
- If more than half of the files or most of the board would be deleted on one side, or the deletions of the last 24 hours would exceed the limit, sync stops without doing anything and asks for confirmation.
- An unreadable file, board or sync record is not taken as empty or deleted: the copy on the other side is not deleted or overwritten.
- The previous version of a file that sync overwrote or deleted is kept on both sides for 7 days, and a sync can be undone.
- If the computer connects to a different account, the folder connections of the old account do not carry over: they are removed, files are not touched and nothing is uploaded to the new account on its own.
- The key of a device unused for 90 days becomes invalid by itself; when the password changes, every device connection of the account is removed.
- Watching the web workspace live is read-only; terminal output goes only to a connected device of the same account.
What protects my keys and the app itself?
Secrets are not kept in plain text in the settings file; they are encrypted with the operating system's keychain, and AgentForge does not touch the engines' session tokens. The keys of the services you connect are not given to agents: the app makes the request and adds the key itself. The packaged app refuses to start if its archive has been changed. Updates are signed and do not install until the signature is verified.
How it works
Secrets and account sessions Secrets are stored encrypted with the operating system's keychain, and AgentForge does not read, copy or delete an engine's session token.
Remote access, Telegram and webhook secrets and provider keys are not kept in plain text in the settings file; they are stored encrypted with the operating system's keychain and shown masked in Settings. Because web server mode has no encryption available, new secrets cannot be entered there; a secret is entered from the desktop application.
With per-agent accounts AgentForge does not read, copy or delete the session token: sign-in is done with the engine's own login command in the account's separate configuration directory. On its own, the first-run setup screen runs only version and read-only status commands; it installs a tool from its official package with npm or winget only when you press "Install". The license key entered to see the computers on a license is not stored on the computer.
Service connections: the key stays with the app A service key is not given to the agent: the app makes the request, and every write in Production waits for a person's approval.
A service key connected in Settings (such as GitHub, Stripe or Sentry) is stored on this computer with the operating system's per-user encryption; if that encryption is unavailable, the key is not saved. When an agent sends a request to a service, the app makes the request and adds the key itself. The key is not given to the agent, is not put in the agent's environment, and is not written to the project, tool responses or logs.
Every connection starts with Read only access, and a request that names no environment goes to Development. Known endpoints that return secrets or change state count as writes even when they look like a read. An agent in the reviewer role and a read-only connection only read. For every write in Production, the approval card is written by the app, not by the agent; the card is high risk, and the approval is single-use, stays valid for at most 30 minutes, and applies only to the same request and the project where the card was opened. Neither the approval policy nor hands-free mode can pass this card; only a person's approval on the desktop counts. With hands-free mode on the card still waits; the request is not sent until you decide.
- Connections are shared by all projects and agents; only agents in Claude Code, Codex and Gemini CLI consoles can use them.
- For services that accept your own server address, the address must start with https; plain http is not accepted.
- A high-risk card cannot be approved from a phone or Telegram; it can only be rejected there.
Package hardening: Electron Fuses and ASAR integrity The packaged app refuses to start if a single byte of its archive changes, and it does not turn into a general-purpose Node runner.
Six Electron fuses are set in the packaged Windows application. Fuses are flags written into the packaged binary that cannot be changed at run time. The interface process runs with context isolation on and reaches the main process through a narrow API.
A script that re-checks the package reads the fuse values and actually runs tampering attempts on a copy: it confirms that the application refuses to start when a single byte in the application archive is changed.
- runAsNode off: the binary does not turn into a general-purpose Node runner.
- NODE_OPTIONS environment variable off: no arbitrary script is loaded before the application.
- --inspect arguments off: no debugger attaches to the main process.
- Embedded ASAR integrity validation on: if the application archive is modified the application does not start.
- Load only from ASAR on: the archive cannot be bypassed with a folder placed next to it.
- Cookie encryption on: the cookie store is encrypted with the operating system's key.
Signed updates An update installs only if it is signed with the release key built into the app, is newer than the installed version and its file hash matches.
The installed application downloads a new version by itself but verifies it before installing. The update manifest is signed with Ed25519: the public key is built into the application and the private key is kept offline. The application accepts only a version greater than the installed one, so it cannot be pushed back to an older version. The size and SHA-512 hash of the downloaded installer are compared with the values in the signed manifest; a file that does not match is deleted and not installed. A pending update is verified again from scratch when the application starts and right before it installs.
This signature is separate from Authenticode code signing. Code signing is configured for the installer, but no signed package has been produced yet; Windows may show a SmartScreen warning at first install and when an update installs.
- A manifest signed for another product, channel or platform is rejected. The download address must use https and come from the same origin as the update server.
- An update installs when the user presses "Restart and install" or when the application quits; with an agent terminal open, the restart asks for confirmation first.
Related guides
All guides- Evidence and review gates The conditions for a card to become done in AgentForge: evidence kinds, the system verifier, the reviewer quorum, review rounds and what to check.
- Remote and phone access Following AgentForge from a phone: HTTPS on one network address, QR pairing, a key and permissions per device, the phone page, webhook and notifications.
- Service connections Connecting GitHub, Stripe, Sentry and other services for AgentForge agents: the key stays with the app, and every write in Production needs your approval.
- Web mode and its safety options Using AgentForge from a browser: npm run web, the access key, opening to the local network, and the separate data folder and no-restore trial settings.




