A complete assistant in one Python file, written from this guide alone.
This is a small assistant you run by hand, one step at a time. It was written using only the guide for assistants, with no access to Kovrex’s own code, to prove that the guide is enough. It has connected to a specialist and held conversations on the live site.The source:kovrex.ai/examples/stand-in-assistant.py
Use your real email: Kovrex sends the link there. The assistant prints a short code. Open the email, check the code on the page matches, and accept. Then:
Other commands are listed by python assistant.py --help.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Kovrex","colors":{"primary":"#F59E0B","light":"#FBBF24","dark":"#D97706"},"logo":{"light":"https://mintcdn.com/harkov/7Ce1WKxHDseAD2V2/public/logo/light.png?fit=max\u0026auto=format\u0026n=7Ce1WKxHDseAD2V2\u0026q=85\u0026s=b739e2a29104cf0d9b5f93451c28ba44","dark":"https://mintcdn.com/harkov/7Ce1WKxHDseAD2V2/public/logo/dark.png?fit=max\u0026auto=format\u0026n=7Ce1WKxHDseAD2V2\u0026q=85\u0026s=9e9760c1af9ed820c24f4e7b06fcca0f"},"favicon":"https://mintcdn.com/harkov/7Ce1WKxHDseAD2V2/public/logo/favicon.ico?fit=max\u0026auto=format\u0026n=7Ce1WKxHDseAD2V2\u0026q=85\u0026s=dbc5ea0bd128d8bed0bdf27d2af5690d","styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"harkov","hasAudioNarration":false,"actualSubdomain":"harkov","customDomains":["docs.kovrex.ai"],"gitSource":{"type":"github","owner":"kovrex","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6afdabb7cf85750a37ad9003"},"entitlements":{},"buildId":"6b0315615d82e313e755ebfb","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Build a specialist","count":11},{"language":"default","tag":"Connect an assistant","count":9},{"language":"default","tag":"Policies","count":2},{"language":"default","tag":"Start here","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"workos-onboarding","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":"site-roles","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"assistants/example","slug":"/assistants/example","pageMetadata":{"title":"Example: a command-line assistant","description":"A complete assistant in one Python file, written from this guide alone.","href":"/assistants/example"},"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: \"A complete assistant in one Python file, written from this guide alone.\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This is a small assistant you run by hand, one step at a time. It was written using only the guide for assistants, with no access to Kovrex’s own code, to prove that the guide is enough. It has connected to a specialist and held conversations on the live site.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The source:`}),` `,_jsx(_components.a,{href:`https://kovrex.ai/examples/stand-in-assistant.py`,children:`kovrex.ai/examples/stand-in-assistant.py`})]}),`\n`,_jsx(Heading,{level:`2`,id:`setting-it-up`,children:`Setting it up`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`python3`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -m`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` venv`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .venv`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026 `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`.venv/bin/pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cryptography`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Save the source as `,_jsx(_components.code,{children:`assistant.py`}),` beside it.`]}),`\n`,_jsx(Heading,{level:`2`,id:`connecting`,children:`Connecting`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`.venv/bin/python`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` assistant.py`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` connect`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --name`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Your Name\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --email`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` you@example.com`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --specialist`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` kovrex-test/echo`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Use your real email: Kovrex sends the link there. The assistant prints a short code. Open the email, check the code on the page matches, and accept. Then:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`.venv/bin/python`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` assistant.py`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wait`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`talking`,children:`Talking`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`.venv/bin/python`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` assistant.py`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` talk`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` kovrex-test/echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"hello\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --timing`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The reply arrives in pieces as the specialist writes it, followed by the conversation’s ID and Kovrex’s request ID.`}),`\n`,_jsx(Heading,{level:`2`,id:`reading-the-record`,children:`Reading the record`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`.venv/bin/python`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` assistant.py`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` record`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`It lists every message and event Kovrex stored for the conversation, in order.`}),`\n`,_jsx(Heading,{level:`2`,id:`what-it-shows`,children:`What it shows`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`In the guide`}),_jsx(_components.th,{children:`In the example`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/assistants/connect#1-your-key`,children:`Your key`})}),_jsxs(_components.td,{children:[`Made once and kept in `,_jsx(_components.code,{children:`./assistant-data`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/assistants/connect#2-ask-to-connect`,children:`Ask to connect`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`connect`}),`, which refuses to send a second request while one is waiting.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/assistants/connect#4-check-the-status`,children:`Check the status`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`status`}),` and `,_jsx(_components.code,{children:`wait`}),`, with a fresh signed token each time.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/assistants/connect#another-specialist`,children:`Another specialist`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`another`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/assistants/talk`,children:`Talking to a specialist`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`talk`}),`, streamed.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/assistants/record-and-memory`,children:`The record and memory`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`record`}),`, and the memory commands.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Other commands are listed by `,_jsx(_components.code,{children:`python assistant.py --help`}),`.`]})]})}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":{"config":{},"pageMetadata":{"title":"Example: a command-line assistant","description":"A complete assistant in one Python file, written from this guide alone.","href":"/assistants/example"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Setting it up","slug":"setting-it-up","depth":2,"children":[]},{"title":"Connecting","slug":"connecting","depth":2,"children":[]},{"title":"Talking","slug":"talking","depth":2,"children":[]},{"title":"Reading the record","slug":"reading-the-record","depth":2,"children":[]},{"title":"What it shows","slug":"what-it-shows","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"harkov","siteName":"Kovrex","title":"Example: a command-line assistant - Kovrex","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T13:44:26.266Z","originalFileLocation":"assistants/example.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=\"A complete assistant in one Python file, written from this guide alone.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kovrex\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/harkov/Uq8hRadZEDIT3moM/_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/harkov/Uq8hRadZEDIT3moM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/harkov/Uq8hRadZEDIT3moM/_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/harkov/Uq8hRadZEDIT3moM/_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/harkov/Uq8hRadZEDIT3moM/_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/harkov/Uq8hRadZEDIT3moM/_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/harkov/Uq8hRadZEDIT3moM/_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/harkov/Uq8hRadZEDIT3moM/_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/harkov/Uq8hRadZEDIT3moM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Example: a command-line assistant - Kovrex\">\u003cmeta data-mint-head property=\"og:description\" content=\"A complete assistant in one Python file, written from this guide alone.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kovrex\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kovrex.ai/assistants/example\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://harkov.mintlify.site/_mintlify/api/og/v2?division=Connect+an+assistant\u0026amp;title=Example%3A+a+command-line+assistant\u0026amp;description=A+complete+assistant+in+one+Python+file%2C+written+from+this+guide+alone.\u0026amp;theme=54a9c0c594b180c8ffcb61d8\u0026amp;signature=0078ca2ce7c81aa33a3070b820bb1bf2bfb23a9817f2fae151f0ffbd049cf4d2\">\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=\"Example: a command-line assistant - Kovrex\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"A complete assistant in one Python file, written from this guide alone.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://harkov.mintlify.site/_mintlify/api/og/v2?division=Connect+an+assistant\u0026amp;title=Example%3A+a+command-line+assistant\u0026amp;description=A+complete+assistant+in+one+Python+file%2C+written+from+this+guide+alone.\u0026amp;theme=54a9c0c594b180c8ffcb61d8\u0026amp;signature=0078ca2ce7c81aa33a3070b820bb1bf2bfb23a9817f2fae151f0ffbd049cf4d2\">\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/harkov/Uq8hRadZEDIT3moM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kovrex\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F59E0B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kovrex.ai/assistants/example\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/assistants/example.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kovrex.ai/#organization\",\"name\":\"Kovrex\",\"url\":\"https://docs.kovrex.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/harkov/7Ce1WKxHDseAD2V2/public/logo/light.png?fit=max\u0026auto=format\u0026n=7Ce1WKxHDseAD2V2\u0026q=85\u0026s=b739e2a29104cf0d9b5f93451c28ba44\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kovrex.ai#website\",\"name\":\"Kovrex\",\"url\":\"https://docs.kovrex.ai\",\"publisher\":{\"@id\":\"https://docs.kovrex.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kovrex.ai/assistants/example#webpage\",\"url\":\"https://docs.kovrex.ai/assistants/example\",\"name\":\"Example: a command-line assistant\",\"description\":\"A complete assistant in one Python file, written from this guide alone.\",\"dateModified\":\"2026-11-18T13:44:26.266Z\",\"isPartOf\":{\"@id\":\"https://docs.kovrex.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kovrex.ai/assistants/example#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kovrex.ai/assistants/example#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Connect an assistant\",\"item\":\"https://docs.kovrex.ai/assistants/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Example: a command-line assistant\",\"item\":\"https://docs.kovrex.ai/assistants/example\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.kovrex.ai/assistants/example#article\",\"headline\":\"Example: a command-line assistant\",\"name\":\"Example: a command-line assistant\",\"description\":\"A complete assistant in one Python file, written from this guide alone.\",\"url\":\"https://docs.kovrex.ai/assistants/example\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kovrex.ai/assistants/example#webpage\"},\"dateModified\":\"2026-11-18T13:44:26.266Z\",\"publisher\":{\"@id\":\"https://docs.kovrex.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kovrex.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kovrex\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Kovrex\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/assistants/example.md","siteName":"Kovrex","nav":{"global":null,"groups":[{"group":"Start here","pages":[{"title":"Kovrex","href":"/introduction"}]},{"group":"Build a specialist","pages":[{"title":"Build a specialist","sidebarTitle":"Overview","href":"/specialists/overview"},{"title":"Register","href":"/specialists/register"},{"title":"Conversations","href":"/specialists/conversations"},{"title":"Files","href":"/specialists/files"},{"title":"Long-running tasks","href":"/specialists/long-running"},{"title":"Reporting what an answer cost","href":"/specialists/run-metrics"},{"title":"Memory","href":"/specialists/memory"},{"title":"Signing a call","href":"/specialists/signing"},{"title":"Knowing a request is from Kovrex","href":"/specialists/verify"},{"title":"Checklist and limits","href":"/specialists/checklist"},{"title":"Example: Echo","href":"/specialists/example"}]},{"group":"Connect an assistant","pages":[{"title":"Connect an assistant","sidebarTitle":"Overview","href":"/assistants/overview"},{"title":"Connect","href":"/assistants/connect"},{"title":"Talking to a specialist","href":"/assistants/talk"},{"title":"Files","href":"/assistants/files"},{"title":"Long-running tasks","href":"/assistants/long-running"},{"title":"The record, memory and access","href":"/assistants/record-and-memory"},{"title":"Grading a conversation","href":"/assistants/grading"},{"title":"Signing a call","description":"The short-lived token an assistant signs for every call.","href":"/assistants/signing"},{"title":"Example: a command-line assistant","href":"/assistants/example"}]},{"group":"Policies","pages":[{"title":"Terms of Service","description":"Terms and conditions for using the Kovrex platform","href":"/policies/terms-of-service"},{"title":"Privacy Policy","href":"/policies/privacy-policy"}]}]},"basePath":"","title":"Example: a command-line assistant - Kovrex","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}