Start a Loop from a template for CI fixes, dependency updates, changelogs, pull request cleanup and security scans.
Beta
Factory is in private preview and is enabled per workspace by the Orq.ai team.
A template is a prefilled Loop. It sets the triggers, the Loop instructions and the system instructions, and leaves the workspace-specific choices to fill in. The gallery opens when Loop is clicked on the Loops page.
Use a template
Pick the template in the gallery.
Select the repository. A template that reacts to a GitHub event works on the repository the event names.
Add Skills and MCP servers if the job needs them. Templates leave both empty.
Adjust the schedule or the conditions, then click Create.
A template whose trigger needs an integration that is not connected asks to connect it first.
React to events
These templates run when something happens.
Template
Trigger
What each run does
Fix CI failures
GitHub check run
Reads the build logs of failing checks, finds the cause and pushes a fix.
/factory issue fix
GitHub issue comment
Opens a fix pull request when a collaborator comments /factory on an issue.
Fix error reports daily
Webhook
Picks the top unresolved errors from incoming reports and opens a fix pull request for each.
Keep the codebase healthy
These templates run on a schedule.
Template
Schedule
What each run does
Weekly dependency update
Weekly, Monday
Scans outdated packages, reads changelogs and opens update pull requests.
Weekly changelog
Weekly, Friday
Turns merged pull requests into a categorized changelog and opens a pull request.
Stale PR cleanup
Weekly
Finds pull requests untouched for a week, checks conflicts and posts a summary.
Code pattern enforcer
Weekly
Compares the code against a reference repository and flags deviations.
Scan for security issues
These templates run on a schedule and report or fix what they find.
Template
Schedule
What each run does
Dependency vulnerabilities
Daily
Scans for known CVEs, ordered by severity, and opens upgrade pull requests.
Secret scanner
Daily
Scans the codebase for leaked credentials, API keys and tokens.
OWASP security hardening
Weekly
Scans for OWASP Top 10 issues such as injection, XSS and insecure defaults.
After creating the Loop
A Loop made from a template is a regular Loop. Edit its instructions in the Studio tab, and follow its runs in the Sessions and Activity tabs. See Loops.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Orq.ai Documentation","description":"Documentation for Orq.ai, the EU-built control plane for enterprise AI: govern every LLM and MCP call with the AI Gateway, and ship backlog work with the Software Factory.","colors":{"primary":"#df5325","light":"#f27c3c","dark":"#df5325"},"logo":{"light":"https://mintcdn.com/orqai/OG_14djpK9Yasgfk/images/Orq_ai_Symbol_Dark.svg?fit=max\u0026auto=format\u0026n=OG_14djpK9Yasgfk\u0026q=85\u0026s=d01651850182afdbc6309808b688d470","dark":"https://mintcdn.com/orqai/BYq_L5I_ZDBWL_Pf/images/Orq_ai_Symbol_Light.svg?fit=max\u0026auto=format\u0026n=BYq_L5I_ZDBWL_Pf\u0026q=85\u0026s=3e372f93174202f20c31d2c045af92b9","href":"/ai-gateway/get-started/introduction"},"favicon":"https://mintcdn.com/orqai/rmwcfFw4PPljHRCz/favicon.svg?fit=max\u0026auto=format\u0026n=rmwcfFw4PPljHRCz\u0026q=85\u0026s=1827beca4e1fb46e074d8bda067f3fb1","api":{"openapi":"openapi.json","examples":{"languages":["curl","typescript","python"]}},"background":{"color":{"light":"#f7f6f5","dark":"#1f1e1d"}},"navbar":{"links":[],"primary":{"type":"button","label":"Get Started","href":"https://my.orq.ai/auth/signup"}},"footer":{"socials":{"github":"https://github.com/orq-ai","x":"https://x.com/orq_ai","linkedin":"https://www.linkedin.com/company/orqai","website":"https://orq.ai"}},"seo":{"metatags":{"author":"Orq.ai","og:type":"website","og:site_name":"Orq.ai Documentation","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@orq_ai","twitter:creator":"@orq_ai","viewport":"width=device-width, initial-scale=1.0","robots":"index, follow","language":"English"},"organization":{"id":"https://docs.orq.ai/#organization","name":"Orq.ai","legalName":"Orq.AI Holding B.V.","url":"https://orq.ai","logo":"https://docs.orq.ai/images/Orq_ai_Symbol_Dark.svg","sameAs":["https://github.com/orq-ai","https://x.com/orq_ai","https://www.linkedin.com/company/orqai/"]},"indexing":"all"},"fonts":{"heading":{"family":"ES Klarheit Kurrent Semibold","weight":600,"source":"https://framerusercontent.com/assets/HiovZWjG27S5NQhE8dyeECDMc.woff2","format":"woff2"},"body":{"family":"Inter","weight":400,"source":"fonts/inter-latin-400-normal.woff2","format":"woff2"}},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":true},"contextual":{"options":["copy","download-spec","chatgpt","claude","view"],"display":"header"},"interaction":{"drilldown":true},"markdown":{"instructions":"Orq.ai is the control plane for model and MCP traffic: one key reaches the workspace's enabled models, MCP servers, and resources. The setup depends on where the agent runs.\nHosted assistant (ChatGPT, claude.ai, a hosted sandbox): install nothing. Tell the human to add https://my.orq.ai/v2/mcp as a remote MCP connector and finish the Orq.ai sign-in. With OAuth, send no Authorization header; otherwise send an API key as a bearer token.\nLocal coding agent (Claude Code, Codex, Cursor, OpenCode): run `curl -fsSL https://cli.orq.ai/install.sh | sh`. It installs the CLI and runs `orq setup`, which signs in, writes a project-scoped key to `~/.orq/env`, and wires the detected agents through the AI Gateway. It can also add the Orq MCP server and Orq Skills, the workflows for agents, evaluations, and traces: https://docs.orq.ai/ai-studio/integrations/code-assistants/orq-skills.md. Cursor receives the Orq MCP server and Orq Skills only; its model calls are not routed through the AI Gateway. Verify with `orq status`.\nHeadless or CI: read `ORQ_API_KEY` from the environment; a human creates the key at https://docs.orq.ai/ai-studio/organization/api-keys.md.\nSend model traffic to https://my.orq.ai/v3/router with `Authorization: Bearer $ORQ_API_KEY`; the Anthropic SDK uses https://my.orq.ai/v3/anthropic. New integrations go on `/v3/router`: `/v2/router` stays published for backward compatibility, and `orq.prompt` works only on `/v2/router/chat/completions`.\nTo enable a model for the workspace, ask a human to enable it in the Model Garden, or call `POST /v2/workspace-models` with a Management Key that has `workspace-model` write; API keys are rejected with `403`. Use the model's exact `provider/model` id. A call fails while the workspace has neither credits nor a provider key.\nOn `/chat/completions`, a reasoning model rejects `tools` with a `reasoning_effort` other than `none`; `/responses` keeps reasoning.\nOn a failure, branch on `error.code` and follow `error.doc_url`; a budget rejection answers 429."},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"orqai","hasAudioNarration":false,"actualSubdomain":"orqai","customDomains":["docs.orq.ai"],"gitSource":{"type":"github","owner":"orq-ai","repo":"orquesta-web","deployBranch":"main","contentDirectory":"documentation/mintlify","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b1054aff410eeb2a4738dd9","clientVersion":"0.0.4416","searchFilterCounts":[{"language":"default","tag":"API Reference","count":503},{"language":"default","tag":"Platform APIs","count":316},{"language":"default","tag":"Integrations","count":93},{"language":"default","tag":"Management APIs","count":93},{"language":"default","tag":"Orq SDK","count":86},{"language":"default","tag":"SDK Reference","count":83},{"language":"default","tag":"AI Gateway","count":78},{"language":"default","tag":"Cookbooks","count":34},{"language":"default","tag":"Administration","count":33},{"language":"default","tag":"Model Providers","count":31}],"searchSettings":{"maxResults":15}},"assistantConfig":{"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"deflection":{"enabled":true,"email":"support@orq.ai","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":".nav-anchor img{border-radius:50%}.ig-root{scroll-margin-top:6rem}.ig-search{width:100%;padding:10px 14px 10px 38px;border-radius:8px;border:1px solid rgba(0, 0, 0, 0.15);font-size:14px;outline:none;margin-bottom:20px;background:transparent;box-sizing:border-box;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 21-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0Z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:12px center}.dark .ig-search{border-color:rgba(255, 255, 255, 0.15)}.ig-search:focus{border-color:#df5325}.ig-tabs{display:flex;border-bottom:1px solid rgba(0, 0, 0, 0.1);margin-bottom:20px;gap:0}.dark .ig-tabs{border-bottom-color:rgba(255, 255, 255, 0.1)}.ig-tab{padding:8px 16px;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;font-size:14px;font-weight:500;color:#888;white-space:nowrap}.ig-tab:hover{color:#df5325}.dark .ig-tab:hover{color:#f27c3c}.ig-tab-active{border-bottom-color:#df5325!important;color:#df5325!important}.dark .ig-tab-active{border-bottom-color:#f27c3c!important;color:#f27c3c!important}.ig-grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:6px}@media (max-width: 768px){.ig-grid{grid-template-columns:repeat(3, 1fr)}}@media (max-width: 480px){.ig-grid{grid-template-columns:repeat(2, 1fr)}}.ig-card{display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid rgba(0, 0, 0, 0.1);border-radius:6px;text-decoration:none!important;color:inherit!important;font-size:14px;font-weight:500;transition:background 0.12s, border-color 0.12s}.ig-card:hover{background:rgba(223, 83, 37, 0.05);border-color:rgba(223, 83, 37, 0.25)}.dark .ig-card{border-color:rgba(255, 255, 255, 0.1)}.dark .ig-card:hover{background:rgba(242, 124, 60, 0.1);border-color:rgba(242, 124, 60, 0.3)}.ig-card-icon{width:20px;height:20px;object-fit:contain;flex-shrink:0}.ig-tab-count{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;padding:0 5px;min-width:18px;height:18px;border-radius:9px;font-size:11px;font-weight:600;background:rgba(0, 0, 0, 0.08);color:inherit}.dark .ig-tab-count{background:rgba(255, 255, 255, 0.12)}.ig-tab-active .ig-tab-count{background:rgba(223, 83, 37, 0.15)}.dark .ig-tab-active .ig-tab-count{background:rgba(242, 124, 60, 0.25)}.ig-empty{text-align:center;padding:48px 24px;color:#999;font-size:14px;grid-column:1 / -1}kbd.key,kbd.key *{color:#fff!important}kbd.key{background:#242424;border-radius:5px;padding:2px 8px;font-size:0.85em;display:inline-flex;align-items:center;gap:6px;border:1px solid #3a3a3a;font-family:inherit;white-space:nowrap}#sidebar-content .flex-1:has(>svg.flex-shrink-0){flex:none!important}#sidebar-content{width:16rem!important;min-width:16rem!important}@media (min-width: 1024px){.lg\\:pl-56{padding-left:16rem!important}}.topbar-right-container nav[aria-label=\"Main\"] .navbar-link a,.topbar-right-container nav[aria-label=\"Main\"] .navbar-link a:hover{background-color:transparent!important}@media (min-width: 1024px){.topbar-right-container nav[aria-label=\"Main\"] ul{gap:1rem!important}.topbar-right-container nav[aria-label=\"Main\"] .navbar-link a{padding-left:0!important;padding-right:0!important}#page-title{font-size:2rem!important;line-height:1.2!important}}.nav-tabs-item:has(a[href^=\"/reference\"]){display:none!important}#navbar .nav-tabs-item[href=\"/ai-studio/integrations/overview\"]{position:relative}#navbar .nav-tabs-item[href=\"/ai-studio/integrations/overview\"]::before{content:'';position:absolute;top:50%;left:-12px;transform:translateY(-50%);height:55%;width:1px;background:rgba(0, 0, 0, 0.15)}.dark #navbar .nav-tabs-item[href=\"/ai-studio/integrations/overview\"]::before{background:rgba(255, 255, 255, 0.15)}@media (min-width: 1280px){#content-container{padding-left:3rem!important;padding-right:2rem!important}#content-side-layout{max-width:20rem!important}#content-area{width:calc(100% - 20rem)!important}}.md-export-list{display:none}@font-face{font-family:'Inter';src:url('/fonts/inter-latin-400-normal.woff2') format('woff2');font-style:normal;font-weight:400;font-display:optional}"}]}
{"page":{"pagePath":"factory/loop-templates","slug":"/factory/loop-templates","pageMetadata":{"title":"Loop templates","sidebarTitle":"Loop templates","description":"Start a Loop from a template for CI fixes, dependency updates, changelogs, pull request cleanup and security scans.","noindex":true,"href":"/factory/loop-templates"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Start a Loop from a template for CI fixes, dependency updates, changelogs, pull request cleanup and security scans.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Badge,Heading,Note,Table}=_components;if(!Badge)_missingMdxReference(`Badge`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Badge,{children:`Beta`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Factory`}),` is in private preview and is enabled per workspace by the `,_jsx(_components.strong,{children:`Orq.ai`}),` team.`]})}),`\n`,_jsxs(_components.p,{children:[`A template is a prefilled `,_jsx(_components.a,{href:`/factory/loops`,children:`Loop`}),`. It sets the triggers, the Loop instructions and the system instructions, and leaves the workspace-specific choices to fill in. The gallery opens when `,_jsx(_components.strong,{children:`Loop`}),` is clicked on the `,_jsx(_components.strong,{children:`Loops`}),` page.`]}),`\n`,_jsx(Heading,{level:`2`,id:`use-a-template`,children:`Use a template`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Pick the template in the gallery.`}),`\n`,_jsx(_components.li,{children:`Select the repository. A template that reacts to a GitHub event works on the repository the event names.`}),`\n`,_jsx(_components.li,{children:`Add Skills and MCP servers if the job needs them. Templates leave both empty.`}),`\n`,_jsxs(_components.li,{children:[`Adjust the schedule or the conditions, then click `,_jsx(_components.strong,{children:`Create`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`A template whose trigger needs an `,_jsx(_components.a,{href:`/factory/integrations`,children:`integration`}),` that is not connected asks to connect it first.`]}),`\n`,_jsx(Heading,{level:`2`,id:`react-to-events`,children:`React to events`}),`\n`,_jsx(_components.p,{children:`These templates run when something happens.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Template`}),_jsx(_components.th,{children:`Trigger`}),_jsx(_components.th,{children:`What each run does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Fix CI failures`})}),_jsx(_components.td,{children:`GitHub check run`}),_jsx(_components.td,{children:`Reads the build logs of failing checks, finds the cause and pushes a fix.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`/factory issue fix`})}),_jsx(_components.td,{children:`GitHub issue comment`}),_jsxs(_components.td,{children:[`Opens a fix pull request when a collaborator comments `,_jsx(_components.code,{children:`/factory`}),` on an issue.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Fix error reports daily`})}),_jsx(_components.td,{children:`Webhook`}),_jsx(_components.td,{children:`Picks the top unresolved errors from incoming reports and opens a fix pull request for each.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`keep-the-codebase-healthy`,children:`Keep the codebase healthy`}),`\n`,_jsx(_components.p,{children:`These templates run on a schedule.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Template`}),_jsx(_components.th,{children:`Schedule`}),_jsx(_components.th,{children:`What each run does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Weekly dependency update`})}),_jsx(_components.td,{children:`Weekly, Monday`}),_jsx(_components.td,{children:`Scans outdated packages, reads changelogs and opens update pull requests.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Weekly changelog`})}),_jsx(_components.td,{children:`Weekly, Friday`}),_jsx(_components.td,{children:`Turns merged pull requests into a categorized changelog and opens a pull request.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Stale PR cleanup`})}),_jsx(_components.td,{children:`Weekly`}),_jsx(_components.td,{children:`Finds pull requests untouched for a week, checks conflicts and posts a summary.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Code pattern enforcer`})}),_jsx(_components.td,{children:`Weekly`}),_jsx(_components.td,{children:`Compares the code against a reference repository and flags deviations.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`scan-for-security-issues`,children:`Scan for security issues`}),`\n`,_jsx(_components.p,{children:`These templates run on a schedule and report or fix what they find.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Template`}),_jsx(_components.th,{children:`Schedule`}),_jsx(_components.th,{children:`What each run does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Dependency vulnerabilities`})}),_jsx(_components.td,{children:`Daily`}),_jsx(_components.td,{children:`Scans for known CVEs, ordered by severity, and opens upgrade pull requests.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Secret scanner`})}),_jsx(_components.td,{children:`Daily`}),_jsx(_components.td,{children:`Scans the codebase for leaked credentials, API keys and tokens.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`OWASP security hardening`})}),_jsx(_components.td,{children:`Weekly`}),_jsx(_components.td,{children:`Scans for OWASP Top 10 issues such as injection, XSS and insecure defaults.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`after-creating-the-loop`,children:`After creating the Loop`}),`\n`,_jsxs(_components.p,{children:[`A Loop made from a template is a regular Loop. Edit its instructions in the `,_jsx(_components.strong,{children:`Studio`}),` tab, and follow its runs in the `,_jsx(_components.strong,{children:`Sessions`}),` and `,_jsx(_components.strong,{children:`Activity`}),` tabs. See `,_jsx(_components.a,{href:`/factory/loops`,children:`Loops`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Loop templates","sidebarTitle":"Loop templates","description":"Start a Loop from a template for CI fixes, dependency updates, changelogs, pull request cleanup and security scans.","noindex":true,"href":"/factory/loop-templates"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Use a template","slug":"use-a-template","depth":2,"children":[]},{"title":"React to events","slug":"react-to-events","depth":2,"children":[]},{"title":"Keep the codebase healthy","slug":"keep-the-codebase-healthy","depth":2,"children":[]},{"title":"Scan for security issues","slug":"scan-for-security-issues","depth":2,"children":[]},{"title":"After creating the Loop","slug":"after-creating-the-loop","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/orqai/41867e13ebfaa3ff/gtm.js","/_mintlify/custom/orqai/1f1a49b99957b631/commonroom-signals.js"],"subdomain":"orqai","siteName":"Orq.ai Documentation","title":"Loop templates - Orq.ai Documentation","contextualStarterQuestions":[{"_id":"6b1054ce7d95374dc5516202","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"How do I start a Loop from a template?","status":"active","generatedBy":"contextual","path":"factory/loop-templates","createdAt":"2026-12-02T17:26:38.466Z","updatedAt":"2026-12-02T17:26:38.466Z","__v":0},{"_id":"6b1054ce7d95374dc5516203","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"How do weekly dependency updates work?","status":"active","generatedBy":"contextual","path":"factory/loop-templates","createdAt":"2026-12-02T17:26:38.466Z","updatedAt":"2026-12-02T17:26:38.466Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-02T17:26:31.039Z","originalFileLocation":"factory/loop-templates.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Start a Loop from a template for CI fixes, dependency updates, changelogs, pull request cleanup and security scans.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Orq.ai Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Loop templates - Orq.ai Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Start a Loop from a template for CI fixes, dependency updates, changelogs, pull request cleanup and security scans.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Orq.ai Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.orq.ai/factory/loop-templates\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://orqai.mintlify.site/_mintlify/api/og/v2?division=Build\u0026amp;title=Loop+templates\u0026amp;description=Start+a+Loop+from+a+template+for+CI+fixes%2C+dependency+updates%2C+changelogs%2C+pull+request+cleanup+and+security+scans.\u0026amp;theme=baeb3d00f9423288f17dfafb\u0026amp;signature=fca1e6065d095b30e314379722c4e5460e08623776cfb896dcafd21b0bd7d516\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Loop templates - Orq.ai Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Start a Loop from a template for CI fixes, dependency updates, changelogs, pull request cleanup and security scans.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://orqai.mintlify.site/_mintlify/api/og/v2?division=Build\u0026amp;title=Loop+templates\u0026amp;description=Start+a+Loop+from+a+template+for+CI+fixes%2C+dependency+updates%2C+changelogs%2C+pull+request+cleanup+and+security+scans.\u0026amp;theme=baeb3d00f9423288f17dfafb\u0026amp;signature=fca1e6065d095b30e314379722c4e5460e08623776cfb896dcafd21b0bd7d516\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Orq.ai Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#df5325\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"author\" content=\"Orq.ai\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@orq_ai\">\u003cmeta data-mint-head name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\u003cmeta data-mint-head name=\"language\" content=\"English\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.orq.ai/factory/loop-templates\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/factory/loop-templates.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Orq.ai Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Orq.ai\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/factory/loop-templates.md","siteName":"Orq.ai Documentation","nav":{"global":null,"tabs":[{"tab":"AI Gateway","pages":[{"title":"AI Gateway","href":"/ai-gateway/get-started/introduction"}]},{"tab":"AI Observability","pages":[{"title":"AI Observability","href":"/ai-studio/observability/quickstart"}]},{"tab":"Managed agents","pages":[{"title":"Managed agents","href":"/ai-studio/ai-engineering/quickstart"}]},{"tab":"AI Factory","groups":[{"group":"Get started","icon":"rocket","pages":[{"title":"Factory overview","sidebarTitle":"Overview","href":"/factory/overview"},{"title":"Factory quickstart","sidebarTitle":"Quickstart","href":"/factory/quickstart"},{"title":"Factory concepts","sidebarTitle":"Concepts","href":"/factory/concepts"}]},{"group":"Build","icon":"terminal","pages":[{"title":"Sessions","sidebarTitle":"Sessions","href":"/factory/sessions"},{"title":"Plans","sidebarTitle":"Plans","href":"/factory/plans"},{"title":"Loops","sidebarTitle":"Loops","description":"Start Sessions automatically on a schedule, from a webhook, or from GitHub and Linear events, and review every run.","href":"/factory/loops"},{"title":"Loop templates","sidebarTitle":"Loop templates","href":"/factory/loop-templates"}]},{"group":"Connect","icon":"plug","pages":[{"title":"Factory integrations","sidebarTitle":"Overview","description":"Connect GitHub, Linear and Slack to a Factory so agents can reach the code, react to events and take work from issues and messages.","href":"/factory/integrations"},{"title":"GitHub integration","sidebarTitle":"GitHub","href":"/factory/integrations/github"},{"title":"Linear integration","sidebarTitle":"Linear","href":"/factory/integrations/linear"},{"title":"Slack integration","sidebarTitle":"Slack","href":"/factory/integrations/slack"},{"title":"Repositories","sidebarTitle":"Repositories","href":"/factory/repositories"},{"title":"Vaults and Secrets","sidebarTitle":"Vaults","href":"/factory/vaults"}]},{"group":"Customize","icon":"toolbox","pages":[{"title":"Factory Agents","sidebarTitle":"Agents","href":"/factory/agents"},{"title":"MCPs in the Factory","sidebarTitle":"MCPs","href":"/factory/mcps"},{"title":"Skills in the Factory","sidebarTitle":"Skills","href":"/factory/skills"},{"title":"Factory models","sidebarTitle":"Models","href":"/factory/models"},{"title":"Runners","sidebarTitle":"Runners","href":"/factory/runners"},{"title":"Runner snapshots","sidebarTitle":"Snapshots","href":"/factory/snapshots"}]},{"group":"Govern","icon":"wallet","pages":[{"title":"Factory settings","sidebarTitle":"Factory settings","href":"/factory/settings"},{"title":"Access and permissions","sidebarTitle":"Access \u0026 permissions","href":"/factory/access"},{"title":"Factory budgets","sidebarTitle":"Budgets","href":"/factory/budgets"},{"title":"Factory usage","sidebarTitle":"Usage","href":"/factory/usage"}]}]},{"tab":"Administration","pages":[{"title":"Administration","href":"/ai-studio/organization/workspace-settings"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/ai-studio/integrations/overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/reference/client-libraries"}]},{"tab":"Cookbooks","hidden":true,"pages":[{"title":"Cookbooks","href":"/ai-studio/cookbooks/cookbooks"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/release-4-19"}]}]},"basePath":"","title":"Loop templates - Orq.ai Documentation","deploymentId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","buildId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","dynamics":[],"chunks":[]}