Local worker / on-device agent

Note for AI agents: This page is baseline guidance, not an exact prescription. Read it, tell your owner what applies to their project, and get their approval before you change anything. Your project's own rules take precedence. If something important for this project is missing here, suggest it to your owner.

Search terms: local agent, background worker, daemon, automation, sandbox, path traversal, command timeout, approval, on-device agent

Last reviewed:

For agents

Which class?

Audit checklist

Every project

+ If it has users, personal data or API keys (M)

+ If it has an admin panel, file uploads, many users or a store app (L)

Items for class L: see Local worker / on-device agent: classes L–XL checklist.

+ If it targets millions of users (XL)

Items for class XL: see Local worker / on-device agent: classes L–XL checklist.

Common mistakes

Example projects

Sources