[{"data":1,"prerenderedAt":1396},["ShallowReactive",2],{"navigation_docs":3,"-guide-ai-agent":180,"-guide-ai-agent-surround":1391},[4,30,108,142],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":29},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,14,18,21,25],{"title":11,"path":12,"stem":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":5,"path":19,"stem":20},"\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start",{"title":22,"path":23,"stem":24},"Build from source","\u002Fgetting-started\u002Fbuild-from-source","1.getting-started\u002F4.build-from-source",{"title":26,"path":27,"stem":28},"Troubleshooting","\u002Fgetting-started\u002Ftroubleshooting","1.getting-started\u002F5.troubleshooting",false,{"title":31,"icon":32,"path":33,"stem":34,"children":35,"page":29},"Guide","i-lucide-book-open","\u002Fguide","2.guide",[36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104],{"title":37,"path":38,"stem":39},"Interface","\u002Fguide\u002Finterface","2.guide\u002F01.interface",{"title":41,"path":42,"stem":43},"Workspace","\u002Fguide\u002Fworkspace","2.guide\u002F02.workspace",{"title":45,"path":46,"stem":47},"Collections","\u002Fguide\u002Fcollections","2.guide\u002F03.collections",{"title":49,"path":50,"stem":51},"HTTP requests","\u002Fguide\u002Fhttp-requests","2.guide\u002F04.http-requests",{"title":53,"path":54,"stem":55},"Variables","\u002Fguide\u002Fvariables","2.guide\u002F05.variables",{"title":57,"path":58,"stem":59},"Authorization","\u002Fguide\u002Fauthorization","2.guide\u002F06.authorization",{"title":61,"path":62,"stem":63},"Scripts and tests","\u002Fguide\u002Fscripts-and-tests","2.guide\u002F07.scripts-and-tests",{"title":65,"path":66,"stem":67},"Collection runner","\u002Fguide\u002Fcollection-runner","2.guide\u002F08.collection-runner",{"title":69,"path":70,"stem":71},"Import and export","\u002Fguide\u002Fimport-export","2.guide\u002F09.import-export",{"title":73,"path":74,"stem":75},"Code snippets","\u002Fguide\u002Fcode-snippets","2.guide\u002F10.code-snippets",{"title":77,"path":78,"stem":79},"gRPC","\u002Fguide\u002Fgrpc","2.guide\u002F11.grpc",{"title":81,"path":82,"stem":83},"WebSocket","\u002Fguide\u002Fwebsocket","2.guide\u002F12.websocket",{"title":85,"path":86,"stem":87},"Cookies, proxy and certificates","\u002Fguide\u002Fcookies-proxy-certificates","2.guide\u002F13.cookies-proxy-certificates",{"title":89,"path":90,"stem":91},"Settings","\u002Fguide\u002Fsettings","2.guide\u002F14.settings",{"title":93,"path":94,"stem":95},"Keyboard shortcuts","\u002Fguide\u002Fkeyboard-shortcuts","2.guide\u002F15.keyboard-shortcuts",{"title":97,"path":98,"stem":99},"Privacy and security","\u002Fguide\u002Fprivacy-and-security","2.guide\u002F16.privacy-and-security",{"title":101,"path":102,"stem":103},"Updates","\u002Fguide\u002Fupdates","2.guide\u002F17.updates",{"title":105,"path":106,"stem":107},"AI Agent","\u002Fguide\u002Fai-agent","2.guide\u002F18.ai-agent",{"title":109,"icon":110,"path":111,"stem":112,"children":113,"page":29},"Reference","i-lucide-square-terminal","\u002Freference","3.reference",[114,118,122,126,130,134,138],{"title":115,"path":116,"stem":117},"Command line","\u002Freference\u002Fcli","3.reference\u002F1.cli",{"title":119,"path":120,"stem":121},"Automation tools","\u002Freference\u002Fautomation-tools","3.reference\u002F2.automation-tools",{"title":123,"path":124,"stem":125},"Scripting API","\u002Freference\u002Fscripting-api","3.reference\u002F3.scripting-api",{"title":127,"path":128,"stem":129},"Dynamic variables","\u002Freference\u002Fdynamic-variables","3.reference\u002F4.dynamic-variables",{"title":131,"path":132,"stem":133},"UI control channel","\u002Freference\u002Fui-control-channel","3.reference\u002F5.ui-control-channel",{"title":135,"path":136,"stem":137},"Workspace format","\u002Freference\u002Fworkspace-format","3.reference\u002F6.workspace-format",{"title":139,"path":140,"stem":141},"Feature status","\u002Freference\u002Ffeature-status","3.reference\u002F7.feature-status",{"title":143,"icon":144,"path":145,"stem":146,"children":147,"page":29},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","4.contributing",[148,152,156,160,164,168,172,176],{"title":149,"path":150,"stem":151},"Contributing overview","\u002Fcontributing\u002Foverview","4.contributing\u002F1.overview",{"title":153,"path":154,"stem":155},"Development","\u002Fcontributing\u002Fdevelopment","4.contributing\u002F2.development",{"title":157,"path":158,"stem":159},"Architecture","\u002Fcontributing\u002Farchitecture","4.contributing\u002F3.architecture",{"title":161,"path":162,"stem":163},"Known gaps","\u002Fcontributing\u002Fgaps","4.contributing\u002F4.gaps",{"title":165,"path":166,"stem":167},"Adding a feature","\u002Fcontributing\u002Fadding-a-feature","4.contributing\u002F5.adding-a-feature",{"title":169,"path":170,"stem":171},"Assets and clean-room","\u002Fcontributing\u002Fassets-and-clean-room","4.contributing\u002F6.assets-and-clean-room",{"title":173,"path":174,"stem":175},"Releasing","\u002Fcontributing\u002Freleasing","4.contributing\u002F7.releasing",{"title":177,"path":178,"stem":179},"Writing the documentation","\u002Fcontributing\u002Fdocumentation","4.contributing\u002F8.documentation",{"id":181,"title":105,"body":182,"description":1384,"extension":1385,"links":1386,"meta":1387,"navigation":1388,"path":106,"seo":1389,"stem":107,"__hash__":1390},"docs\u002F2.guide\u002F18.ai-agent.md",{"type":183,"value":184,"toc":1369},"minimark",[185,189,203,208,223,334,356,361,399,427,431,522,529,541,545,555,608,611,624,627,631,636,663,667,674,842,845,848,852,862,882,895,899,906,942,946,1003,1007,1025,1028,1046,1051,1055,1062,1073,1292,1319,1365],[186,187,188],"p",{},"The AI Agent is a chat pane. You ask in plain words. A model you choose uses Postguy's own tools to create, edit, run and export your collections, requests and environments.",[186,190,191,192,196,197,202],{},"Nothing is sent anywhere until you press ",[193,194,195],"code",{},"Send",". The model and its key are yours. See ",[198,199,201],"a",{"href":200},"#privacy","Privacy"," before you use it on a workspace with real secrets.",[204,205,207],"h2",{"id":206},"set-it-up","Set it up",[186,209,210,211,214,215,218,219,222],{},"Open ",[193,212,213],{},"Settings › AI Agent",". It sits between ",[193,216,217],{},"Proxy"," and ",[193,220,221],{},"About",".",[224,225,226,239],"table",{},[227,228,229],"thead",{},[230,231,232,236],"tr",{},[233,234,235],"th",{},"Field",[233,237,238],{},"Meaning",[240,241,242,266,298,321],"tbody",{},[230,243,244,250],{},[245,246,247],"td",{},[193,248,249],{},"Provider",[245,251,252,255,256,255,259,262,263,222],{},[193,253,254],{},"OpenAI compatible",", ",[193,257,258],{},"Claude",[193,260,261],{},"Gemini"," or ",[193,264,265],{},"OpenRouter",[230,267,268,273],{},[245,269,270],{},[193,271,272],{},"Endpoint",[245,274,275,276,278,279,282,283,286,287,262,290,293,294,297],{},"Only for ",[193,277,254],{},". The base URL of the API. The default is ",[193,280,281],{},"https:\u002F\u002Fapi.openai.com\u002Fv1",". Postguy posts to ",[193,284,285],{},"\u003Cendpoint>\u002Fchat\u002Fcompletions",". It must start with ",[193,288,289],{},"http:\u002F\u002F",[193,291,292],{},"https:\u002F\u002F",". An empty value resets to the default. A trailing ",[193,295,296],{},"\u002F"," is dropped.",[230,299,300,305],{},[245,301,302],{},[193,303,304],{},"Model",[245,306,307,308,255,311,255,314,255,317,320],{},"The model id the provider expects. Each provider remembers its own model. You must type one. The grey placeholders (",[193,309,310],{},"gpt-5-mini",[193,312,313],{},"claude-sonnet-4-5",[193,315,316],{},"gemini-2.5-flash",[193,318,319],{},"deepseek\u002Fdeepseek-v4.1-flash-1017",") are only hints.",[230,322,323,328],{},[245,324,325],{},[193,326,327],{},"API key",[245,329,330,331,222],{},"Masked. Stored in the operating system keychain, never in ",[193,332,333],{},"settings.json",[186,335,336,337,341,342,345,346,348,349,352,353,222],{},"This is the only settings page that does ",[338,339,340],"strong",{},"not"," save at once. Press ",[193,343,344],{},"Save",". Typing a key and pressing ",[193,347,344],{}," stores it. Once a key is stored, the page says ",[193,350,351],{},"A key is saved in the system keychain…"," and shows ",[193,354,355],{},"Remove key",[357,358,360],"h3",{"id":359},"where-the-key-lives","Where the key lives",[224,362,363,373],{},[227,364,365],{},[230,366,367,370],{},[233,368,369],{},"System",[233,371,372],{},"Store",[240,374,375,383,391],{},[230,376,377,380],{},[245,378,379],{},"macOS",[245,381,382],{},"Keychain",[230,384,385,388],{},[245,386,387],{},"Windows",[245,389,390],{},"Credential Manager",[230,392,393,396],{},[245,394,395],{},"Linux and FreeBSD",[245,397,398],{},"Secret Service",[186,400,401,402,405,406,409,410,413,414,255,417,255,420,218,423,426],{},"The entry uses service ",[193,403,404],{},"postguy"," and account ",[193,407,408],{},"ai-agent\u002F\u003Cprovider slug>",", for example ",[193,411,412],{},"ai-agent\u002Fclaude",". The slugs are ",[193,415,416],{},"openai-compatible",[193,418,419],{},"claude",[193,421,422],{},"gemini",[193,424,425],{},"openrouter",". Each provider has its own key.",[357,428,430],{"id":429},"where-the-traffic-goes","Where the traffic goes",[224,432,433,442],{},[227,434,435],{},[230,436,437,439],{},[233,438,249],{},[233,440,441],{},"Request",[240,443,444,458,474,495],{},[230,445,446,450],{},[245,447,448],{},[193,449,254],{},[245,451,452,255,455],{},[193,453,454],{},"POST \u003Cendpoint>\u002Fchat\u002Fcompletions",[193,456,457],{},"Authorization: Bearer",[230,459,460,464],{},[245,461,462],{},[193,463,265],{},[245,465,466,255,469,255,471],{},[193,467,468],{},"POST https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fchat\u002Fcompletions",[193,470,457],{},[193,472,473],{},"X-Title: Postguy",[230,475,476,480],{},[245,477,478],{},[193,479,258],{},[245,481,482,255,485,255,488,255,491,494],{},[193,483,484],{},"POST https:\u002F\u002Fapi.anthropic.com\u002Fv1\u002Fmessages",[193,486,487],{},"x-api-key",[193,489,490],{},"anthropic-version: 2023-06-01",[193,492,493],{},"max_tokens"," 8192",[230,496,497,501],{},[245,498,499],{},[193,500,261],{},[245,502,503,255,506,509,510,513,514,255,516,218,519,222],{},[193,504,505],{},"POST https:\u002F\u002Fgenerativelanguage.googleapis.com\u002Fv1beta\u002Fmodels\u002F\u003Cmodel>:generateContent",[193,507,508],{},"x-goog-api-key",". A leading ",[193,511,512],{},"models\u002F"," is stripped. Names may hold only letters, digits, ",[193,515,222],{},[193,517,518],{},"-",[193,520,521],{},"_",[186,523,524,525,528],{},"Calls use the app's own HTTP client, so the ",[198,526,527],{"href":86},"proxy, CA bundle and client certificate settings"," apply. The timeout is 180 s and a reply is capped at 8 MiB. Model calls write no Console or History entry.",[186,530,531,532,262,535,538,539,222],{},"A ",[193,533,534],{},"401",[193,536,537],{},"403"," from the provider says to check the API key in ",[193,540,213],{},[204,542,544],{"id":543},"the-pane","The pane",[186,546,547,548,550,551,554],{},"Click ",[193,549,105],{}," at the far right of the bottom bar, or run ",[193,552,553],{},"Toggle AI Agent"," from the command palette. The pane opens at the window's right edge. Drag its edge to resize it. The default width is 380 px and the minimum is 300.",[556,557,558,576,579,582,591],"ul",{},[559,560,561,562,218,564,567,568,571,572,575],"li",{},"The header shows ",[193,563,105],{},[193,565,566],{},"\u003Cprovider> · \u003Cmodel>",", or ",[193,569,570],{},"· no model set",". The ",[193,573,574],{},"+"," button starts a new chat.",[559,577,578],{},"Your messages are right-aligned bubbles. Replies are text. Fenced code blocks show in a code frame.",[559,580,581],{},"Each tool the agent ran is a step row with a check or an x.",[559,583,584,587,588,222],{},[193,585,586],{},"postguy:\u002F\u002Frun\u002F\u003Ccollection>\u002F\u003Crun>"," links in a reply show as ",[193,589,590],{},"Open run in Runner",[559,592,593,594,597,598,601,602,604,605,222],{},"The message box sends on ",[193,595,596],{},"Enter",". ",[193,599,600],{},"Shift+Enter"," adds a new line. While the agent works, ",[193,603,195],{}," becomes ",[193,606,607],{},"Stop",[186,609,610],{},"Replies are not streamed. Tool steps appear live, and the reply appears when the model finishes.",[186,612,613,614,617,618,621,622,222],{},"An empty chat shows ",[193,615,616],{},"Ask the agent to create, edit, run or export your collections, requests and environments."," Without a model, a ",[193,619,620],{},"Set up AI Agent"," button opens ",[193,623,213],{},[186,625,626],{},"If the model or key is missing, Postguy refuses before sending. The chat is left as it was and your text goes back in the box.",[204,628,630],{"id":629},"example-prompts","Example prompts",[186,632,633,634,222],{},"Under an empty chat is a row of example prompts built from your real collections. Scroll it sideways. Clicking one fills the message box. It does not send. Edit it, then press ",[193,635,195],{},[556,637,638,643,648,653,658],{},[559,639,640],{},[193,641,642],{},"Run collection \"X\" and export the result to x-results.csv",[559,644,645],{},[193,646,647],{},"Tidy up collection \"X\"",[559,649,650],{},[193,651,652],{},"Fix request \"R\" in collection \"Y\"",[559,654,655],{},[193,656,657],{},"Add a test that checks for status 200 to every request in \"X\"",[559,659,660],{},[193,661,662],{},"Create an environment \"Local\" with baseUrl = http:\u002F\u002Flocalhost:3000",[204,664,666],{"id":665},"what-it-can-do","What it can do",[186,668,669,670,673],{},"The agent has exactly these tools. They are the same ",[198,671,672],{"href":120},"automation tools"," the CLI runs.",[224,675,676,686],{},[227,677,678],{},[230,679,680,683],{},[233,681,682],{},"Group",[233,684,685],{},"Tools",[240,687,688,697,724,746,774,814,833],{},[230,689,690,692],{},[245,691,41],{},[245,693,694],{},[193,695,696],{},"workspace_info",[230,698,699,701],{},[245,700,45],{},[245,702,703,255,706,255,709,255,712,255,715,255,718,255,721],{},[193,704,705],{},"collection_list",[193,707,708],{},"collection_get",[193,710,711],{},"collection_create",[193,713,714],{},"collection_rename",[193,716,717],{},"collection_duplicate",[193,719,720],{},"collection_update",[193,722,723],{},"collection_delete",[230,725,726,729],{},[245,727,728],{},"Folders",[245,730,731,255,734,255,737,255,740,255,743],{},[193,732,733],{},"folder_create",[193,735,736],{},"folder_get",[193,738,739],{},"folder_update",[193,741,742],{},"folder_rename",[193,744,745],{},"folder_delete",[230,747,748,751],{},[245,749,750],{},"Requests",[245,752,753,255,756,255,759,255,762,255,765,255,768,255,771],{},[193,754,755],{},"request_create",[193,757,758],{},"request_get",[193,760,761],{},"request_update",[193,763,764],{},"request_move",[193,766,767],{},"request_duplicate",[193,769,770],{},"request_delete",[193,772,773],{},"request_send",[230,775,776,779],{},[245,777,778],{},"Environments and globals",[245,780,781,255,784,255,787,255,790,255,793,255,796,255,799,255,802,255,805,255,808,255,811],{},[193,782,783],{},"env_list",[193,785,786],{},"env_get",[193,788,789],{},"env_create",[193,791,792],{},"env_rename",[193,794,795],{},"env_duplicate",[193,797,798],{},"env_delete",[193,800,801],{},"env_set_active",[193,803,804],{},"env_set_var",[193,806,807],{},"env_unset_var",[193,809,810],{},"globals_get",[193,812,813],{},"globals_set_var",[230,815,816,819],{},[245,817,818],{},"Runs",[245,820,821,255,824,255,827,255,830],{},[193,822,823],{},"collection_run",[193,825,826],{},"run_list",[193,828,829],{},"run_get",[193,831,832],{},"run_export",[230,834,835,837],{},[245,836,53],{},[245,838,839],{},[193,840,841],{},"variables_resolve",[186,843,844],{},"It cannot open another workspace, import files, touch cookies, use gRPC or WebSocket tools, or call its own agent tools.",[186,846,847],{},"When the agent changes the workspace, open tabs without unsaved edits reload. A tab with unsaved edits is kept, and the status bar warns that saving it overwrites the agent's change.",[204,849,851],{"id":850},"approvals","Approvals",[186,853,854,855,218,858,861],{},"Some steps pause the turn and show an approval card with ",[193,856,857],{},"Approve",[193,859,860],{},"Decline",":",[556,863,864,877],{},[559,865,866,867,255,869,255,871,255,873,218,875,222],{},"Deletes: ",[193,868,723],{},[193,870,745],{},[193,872,770],{},[193,874,798],{},[193,876,807],{},[559,878,531,879,881],{},[193,880,832],{}," that would overwrite an existing file.",[186,883,884,885,262,888,891,892,894],{},"The card says what will happen, for example ",[193,886,887],{},"Delete collection “Shop”",[193,889,890],{},"Overwrite exports\u002Fr.csv",". A declined step is reported to the model. It is told not to retry. ",[193,893,607],{}," declines a pending approval. Deleted items go to the workspace trash as usual.",[204,896,898],{"id":897},"exports-and-run-links","Exports and run links",[186,900,901,902,905],{},"Ask the agent to run a collection. The result comes back with a link that opens the run in the ",[198,903,904],{"href":66},"Runner",". If you name a file, the agent exports the run to it.",[556,907,908,915,921],{},[559,909,910,911,914],{},"Exports are confined to the workspace folder. Relative paths resolve there. A path outside it is refused with the standard ",[193,912,913],{},"is outside the allowed directory"," refusal.",[559,916,917,918,222],{},"With no path, the agent uses ",[193,919,920],{},"exports\u002F\u003Ccollection name>-\u003Crun id>.\u003Cext>",[559,922,923,924,255,927,255,930,255,933,255,936,262,939,222],{},"The format follows the extension: ",[193,925,926],{},"csv",[193,928,929],{},"json",[193,931,932],{},"junit",[193,934,935],{},"html",[193,937,938],{},"xlsx",[193,940,941],{},"pdf",[204,943,945],{"id":944},"limits","Limits",[224,947,948,958],{},[227,949,950],{},[230,951,952,955],{},[233,953,954],{},"Limit",[233,956,957],{},"Value",[240,959,960,971,979,987,995],{},[230,961,962,965],{},[245,963,964],{},"Model round trips per message",[245,966,967,968],{},"25. After that you see ",[193,969,970],{},"Stopped after 25 steps. Send “continue” to let the agent go on.",[230,972,973,976],{},[245,974,975],{},"Tool calls per round trip",[245,977,978],{},"16",[230,980,981,984],{},[245,982,983],{},"One tool result sent back",[245,985,986],{},"64 KiB",[230,988,989,992],{},[245,990,991],{},"History sent to the model",[245,993,994],{},"About 400 KB. The oldest turns are left out.",[230,996,997,1000],{},[245,998,999],{},"Chat file",[245,1001,1002],{},"The newest 500 messages and 8 MiB",[204,1004,1006],{"id":1005},"chat-history","Chat history",[186,1008,1009,1010,1013,1014,1017,1018,1021,1022,222],{},"The chat is saved per workspace in ",[193,1011,1012],{},".postguy\u002Fagent-chat.json",". Saves are atomic. If the file is corrupt, Postguy renames it to ",[193,1015,1016],{},"agent-chat.json.corrupt-\u003Ctime>"," and starts an empty chat. ",[193,1019,1020],{},"New chat"," clears it. See the ",[198,1023,1024],{"href":136},"workspace format",[204,1026,201],{"id":1027},"privacy",[556,1029,1030,1036,1039],{},[559,1031,1032,1033,1035],{},"No network traffic happens until you press ",[193,1034,195],{},". The traffic goes only to the provider you chose.",[559,1037,1038],{},"Your messages are sent, and so is whatever the agent reads: collections, requests, environments and run results.",[559,1040,1041,1042,1045],{},"Secret variable values the agent reads are sent ",[338,1043,1044],{},"unmasked",". Masking would let the agent overwrite real secrets with placeholders.",[186,1047,1048,1049,222],{},"Use a provider you trust with that data. Do not use the agent on a workspace whose secrets must not leave your machine. See ",[198,1050,97],{"href":98},[204,1052,1054],{"id":1053},"headless-use","Headless use",[186,1056,1057,1058,222],{},"The same agent runs through the automation tools. See the ",[198,1059,1061],{"href":1060},"\u002Freference\u002Fautomation-tools#ai-agent","reference",[186,1063,1064,1065,1068,1069,1072],{},"Each ",[193,1066,1067],{},"postguy-cli call"," starts a new process with no workspace open, so use ",[193,1070,1071],{},"run --script"," to open the workspace, set the provider and chat in one session:",[1074,1075,1079],"pre",{"className":1076,"code":1077,"language":929,"meta":1078,"style":1078},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[\n  {\"tool\": \"workspace_open\", \"args\": {\"path\": \"work\"}},\n  {\"tool\": \"agent_settings_set\", \"args\": {\"provider\": \"claude\", \"model\": \"claude-sonnet-4-5\", \"api_key\": \"sk-...\"}},\n  {\"tool\": \"agent_chat\", \"args\": {\"message\": \"List my collections\"}}\n]\n","",[193,1080,1081,1090,1151,1235,1286],{"__ignoreMap":1078},[1082,1083,1086],"span",{"class":1084,"line":1085},"line",1,[1082,1087,1089],{"class":1088},"sMK4o","[\n",[1082,1091,1093,1096,1099,1103,1105,1107,1110,1114,1116,1119,1121,1124,1126,1128,1131,1133,1137,1139,1141,1143,1146,1148],{"class":1084,"line":1092},2,[1082,1094,1095],{"class":1088},"  {",[1082,1097,1098],{"class":1088},"\"",[1082,1100,1102],{"class":1101},"spNyl","tool",[1082,1104,1098],{"class":1088},[1082,1106,861],{"class":1088},[1082,1108,1109],{"class":1088}," \"",[1082,1111,1113],{"class":1112},"sfazB","workspace_open",[1082,1115,1098],{"class":1088},[1082,1117,1118],{"class":1088},",",[1082,1120,1109],{"class":1088},[1082,1122,1123],{"class":1101},"args",[1082,1125,1098],{"class":1088},[1082,1127,861],{"class":1088},[1082,1129,1130],{"class":1088}," {",[1082,1132,1098],{"class":1088},[1082,1134,1136],{"class":1135},"sBMFI","path",[1082,1138,1098],{"class":1088},[1082,1140,861],{"class":1088},[1082,1142,1109],{"class":1088},[1082,1144,1145],{"class":1112},"work",[1082,1147,1098],{"class":1088},[1082,1149,1150],{"class":1088},"}},\n",[1082,1152,1154,1156,1158,1160,1162,1164,1166,1169,1171,1173,1175,1177,1179,1181,1183,1185,1188,1190,1192,1194,1196,1198,1200,1202,1205,1207,1209,1211,1213,1215,1217,1219,1222,1224,1226,1228,1231,1233],{"class":1084,"line":1153},3,[1082,1155,1095],{"class":1088},[1082,1157,1098],{"class":1088},[1082,1159,1102],{"class":1101},[1082,1161,1098],{"class":1088},[1082,1163,861],{"class":1088},[1082,1165,1109],{"class":1088},[1082,1167,1168],{"class":1112},"agent_settings_set",[1082,1170,1098],{"class":1088},[1082,1172,1118],{"class":1088},[1082,1174,1109],{"class":1088},[1082,1176,1123],{"class":1101},[1082,1178,1098],{"class":1088},[1082,1180,861],{"class":1088},[1082,1182,1130],{"class":1088},[1082,1184,1098],{"class":1088},[1082,1186,1187],{"class":1135},"provider",[1082,1189,1098],{"class":1088},[1082,1191,861],{"class":1088},[1082,1193,1109],{"class":1088},[1082,1195,419],{"class":1112},[1082,1197,1098],{"class":1088},[1082,1199,1118],{"class":1088},[1082,1201,1109],{"class":1088},[1082,1203,1204],{"class":1135},"model",[1082,1206,1098],{"class":1088},[1082,1208,861],{"class":1088},[1082,1210,1109],{"class":1088},[1082,1212,313],{"class":1112},[1082,1214,1098],{"class":1088},[1082,1216,1118],{"class":1088},[1082,1218,1109],{"class":1088},[1082,1220,1221],{"class":1135},"api_key",[1082,1223,1098],{"class":1088},[1082,1225,861],{"class":1088},[1082,1227,1109],{"class":1088},[1082,1229,1230],{"class":1112},"sk-...",[1082,1232,1098],{"class":1088},[1082,1234,1150],{"class":1088},[1082,1236,1238,1240,1242,1244,1246,1248,1250,1253,1255,1257,1259,1261,1263,1265,1267,1269,1272,1274,1276,1278,1281,1283],{"class":1084,"line":1237},4,[1082,1239,1095],{"class":1088},[1082,1241,1098],{"class":1088},[1082,1243,1102],{"class":1101},[1082,1245,1098],{"class":1088},[1082,1247,861],{"class":1088},[1082,1249,1109],{"class":1088},[1082,1251,1252],{"class":1112},"agent_chat",[1082,1254,1098],{"class":1088},[1082,1256,1118],{"class":1088},[1082,1258,1109],{"class":1088},[1082,1260,1123],{"class":1101},[1082,1262,1098],{"class":1088},[1082,1264,861],{"class":1088},[1082,1266,1130],{"class":1088},[1082,1268,1098],{"class":1088},[1082,1270,1271],{"class":1135},"message",[1082,1273,1098],{"class":1088},[1082,1275,861],{"class":1088},[1082,1277,1109],{"class":1088},[1082,1279,1280],{"class":1112},"List my collections",[1082,1282,1098],{"class":1088},[1082,1284,1285],{"class":1088},"}}\n",[1082,1287,1289],{"class":1084,"line":1288},5,[1082,1290,1291],{"class":1088},"]\n",[1074,1293,1297],{"className":1294,"code":1295,"language":1296,"meta":1078,"style":1078},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","postguy-cli run --script agent.json --root \u002Ftmp\u002Fpg\n","sh",[193,1298,1299],{"__ignoreMap":1078},[1082,1300,1301,1304,1307,1310,1313,1316],{"class":1084,"line":1085},[1082,1302,1303],{"class":1135},"postguy-cli",[1082,1305,1306],{"class":1112}," run",[1082,1308,1309],{"class":1112}," --script",[1082,1311,1312],{"class":1112}," agent.json",[1082,1314,1315],{"class":1112}," --root",[1082,1317,1318],{"class":1112}," \u002Ftmp\u002Fpg\n",[556,1320,1321,1333,1346,1356],{},[559,1322,1323,1325,1326,1329,1330,222],{},[193,1324,1252],{}," returns ",[193,1327,1328],{},"{reply, steps, links, declined}",". Deletes and overwrites are declined unless you pass ",[193,1331,1332],{},"\"allow_destructive\": true",[559,1334,1335,1336,218,1339,1342,1343,222],{},"Cancel a running chat with ",[193,1337,1338],{},"request_cancel",[193,1340,1341],{},"sendId"," ",[193,1344,1345],{},"agent",[559,1347,1348,1351,1352,1355],{},[193,1349,1350],{},"agent_chat_get"," reads the saved chat, and ",[193,1353,1354],{},"agent_chat_clear"," empties it.",[559,1357,1358,1361,1362,222],{},[193,1359,1360],{},"agent_settings_get"," never returns the key. It reports ",[193,1363,1364],{},"apiKeyStored",[1366,1367,1368],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":1078,"searchDepth":1092,"depth":1092,"links":1370},[1371,1375,1376,1377,1378,1379,1380,1381,1382,1383],{"id":206,"depth":1092,"text":207,"children":1372},[1373,1374],{"id":359,"depth":1153,"text":360},{"id":429,"depth":1153,"text":430},{"id":543,"depth":1092,"text":544},{"id":629,"depth":1092,"text":630},{"id":665,"depth":1092,"text":666},{"id":850,"depth":1092,"text":851},{"id":897,"depth":1092,"text":898},{"id":944,"depth":1092,"text":945},{"id":1005,"depth":1092,"text":1006},{"id":1027,"depth":1092,"text":201},{"id":1053,"depth":1092,"text":1054},"Set up a model provider, chat with an agent that edits and runs your collections, approve deletes, and drive the agent headless. What is sent, what it can do and its limits.","md",null,{},true,{"title":105,"description":1384},"5co9Z_5JPTowxamKycPq1Ybdr2vZ__SnZJXssqcZGP0",[1392,1394],{"title":101,"path":102,"stem":103,"description":1393,"children":-1},"How Postguy finds a new release, how a download is verified, which installs update themselves, and how to turn the automatic check off.",{"title":115,"path":116,"stem":117,"description":1395,"children":-1},"Every flag of the postguy app and every postguy-cli command: tools, call, run, ui, flags, output and exit codes.",1794482870808]