{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "bomwiki-partmode--run-unattended-cad-on-a-headless-server",
 "repo": "BOMWiki/partmode",
 "repo_url": "https://github.com/BOMWiki/partmode",
 "repo_slug": "bomwiki-partmode",
 "title": "Run unattended CAD edits on a durable headless project",
 "page_title": "How to run unattended CAD edits on a durable headless project with Partmode",
 "summary": "Create an explicit headless edit key so an agent can revise a server-stored project without a browser.",
 "who": "A developer automating a repeatable parametric part family who needs an agent to commit changes with no person watching.",
 "problem": "Browser approval blocks unattended batch work, so the project needs a server-side document with its own authority.",
 "outcome": "A committed headless document that persists across session expiry and restarts, plus a STEP export produced by the headless path.",
 "steps": [
  "Create an edit key from Agent access at https://partmode.com/account with an explicit, immutable headless grant.",
  "Store the key in the secret environment for your MCP client and connect it with `codex mcp add partmode --url https://partmode.com/mcp --bearer-token-env-var PARTMODE_AGENT_KEY`. (inferred, check the README)",
  "Call `cad_capabilities` at the start of each session and use the headless STEP workflow for export.",
  "Commit changes only against the current document revision, and confirm each committed record in the account.",
  "Plan account deletion as the only way to remove committed headless records, since there is no individual project-delete control yet."
 ],
 "agent_prompt": "Using the headless PartMode edit key in the secret environment, call cad_capabilities, apply the change <change-description> to the server project <project-name>, and export the result as STEP. Report the committed revision and the STEP artifact name, and verify that the revision number increased by one after the commit.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "Live headless sessions are key-bound, expire within one hour, and do not survive a service restart, so only committed documents persist.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "javascript",
 "requirements": [
  "Node.js 22.13 or newer",
  "git and npm available in a terminal",
  "A PartMode account and a revocable agent key, only for hosted agent access",
  "Validation of dimensions, tolerances, and materials for any real manufacturing use"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "A headless edit key can change a durable server project without a browser approval step, so keep it secret and revoke it as soon as it is no longer needed."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/bomwiki-partmode/run-unattended-cad-on-a-headless-server/",
 "md": "https://dedupedai.com/use-cases/bomwiki-partmode/run-unattended-cad-on-a-headless-server/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/bomwiki-partmode--run-unattended-cad-on-a-headless-server.json",
 "api_version": "v1"
}
