<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>YottaCode – yottacode blog</title><link>https://yottacode.ai/blog/</link><description>Recent content in yottacode blog on YottaCode</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 03 Dec 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://yottacode.ai/blog/index.xml" rel="self" type="application/rss+xml"/><item><title>CI/CD Agentic Automation with yottacode: Practical run Workflows</title><link>https://yottacode.ai/blog/cicd-agentic-automation-yottacode/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0000</pubDate><guid>https://yottacode.ai/blog/cicd-agentic-automation-yottacode/</guid><description>
&lt;p&gt;Interactive terminal sessions are useful when a developer needs to steer the agent turn by turn. CI/CD workflows need something different: a bounded, scriptable command that can inspect a repository, analyze test output, draft engineering artifacts, and return a machine-readable result.&lt;/p&gt;
&lt;p&gt;That is the role of &lt;code&gt;yottacode run&lt;/code&gt;. These commands can be embedded in CI/CD pipeline jobs, scheduled cron jobs, release scripts, pull-request checks, and other engineering workflows wherever a bounded input should produce a reviewable output.&lt;/p&gt;
&lt;p&gt;For example, a team can run a PR review when a pull request opens, summarize failed tests after a build, generate a release-readiness report on a schedule, or produce a changelog draft during a release process. Keep the agent’s role explicit: analyze evidence, produce an artifact, and preserve the underlying tool’s status rather than silently overriding it.&lt;/p&gt;
&lt;p&gt;This article explains the most useful single-shot workflows, the command-line flags that matter in automation, and the engineering principles that keep agentic CI useful without turning a pipeline into an uncontrolled code-change system.&lt;/p&gt;
&lt;h2&gt;What is agentic CI/CD?&lt;span class="hx:absolute hx:-mt-20" id="what-is-agentic-cicd"&gt;&lt;/span&gt;
&lt;a href="#what-is-agentic-cicd" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Agentic CI/CD means placing an AI coding agent inside a repeatable engineering job so it can inspect evidence, explain a failure, draft an artifact, or propose a next step. The pipeline remains responsible for deterministic checks and status; the agent adds context and interpretation.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;yottacode run&lt;/code&gt; executes one prompt non-interactively with the same configured provider, tools, memory, sessions, and permissions used by the interactive workflow.&lt;/p&gt;
&lt;p&gt;Use it when the task has a clear input and output:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A diff becomes a pull-request summary.&lt;/li&gt;
&lt;li&gt;Test output becomes a triage report.&lt;/li&gt;
&lt;li&gt;A vulnerability scan becomes a prioritized explanation.&lt;/li&gt;
&lt;li&gt;Recent commits become a changelog draft.&lt;/li&gt;
&lt;li&gt;A repository becomes a code-review report.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Do not use it as a replacement for every interactive engineering session. If the task is ambiguous, destructive, or likely to expand in scope, start in the TUI, use Plan mode, or create an isolated worktree first.&lt;/p&gt;
&lt;h2&gt;The command shape&lt;span class="hx:absolute hx:-mt-20" id="the-command-shape"&gt;&lt;/span&gt;
&lt;a href="#the-command-shape" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The basic form is:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run &lt;span class="s2"&gt;&amp;#34;&amp;lt;prompt&amp;gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Read the current branch diff and draft a pull request description with Summary, Testing, and Risks sections. Do not modify files.&amp;#34;&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;gt; /tmp/pr-description.md&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;In text mode, the final answer is written to standard output. Operational progress and tool status are kept separate so the output can be redirected into a file or another command.&lt;/p&gt;
&lt;h2&gt;Use &lt;code&gt;--format json&lt;/code&gt; for automation&lt;span class="hx:absolute hx:-mt-20" id="use---format-json-for-automation"&gt;&lt;/span&gt;
&lt;a href="#use---format-json-for-automation" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;When another script needs to consume the result, use structured JSON:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run --format json &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Read test-output.txt and identify the likely root cause. Do not modify files.&amp;#34;&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;gt; /tmp/triage.json&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The result contains fields such as:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;content&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;The failure starts in...&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;tool_calls&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nt"&gt;&amp;#34;name&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;read_file&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;&amp;#34;summary&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;read_file(test-output.txt)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;usage&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;input_tokens&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1240&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;output_tokens&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;380&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;exit_reason&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;ok&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;error&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;session_id&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;...&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The important fields for scripts are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;content&lt;/code&gt; — the agent’s final answer.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tool_calls&lt;/code&gt; — bounded summaries of tools used during the turn.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;usage&lt;/code&gt; — token counters when the provider reports them.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;exit_reason&lt;/code&gt; — &lt;code&gt;ok&lt;/code&gt;, &lt;code&gt;error&lt;/code&gt;, or &lt;code&gt;iter_cap&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;error&lt;/code&gt; — the failure message when the turn does not complete successfully.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;session_id&lt;/code&gt; — the saved session identifier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Parse the JSON, but also preserve the process exit status. A valid JSON error object does not mean the automation succeeded.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;set&lt;/span&gt; +e
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run --format json &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Read test-output.txt and identify the likely root cause. Do not modify files.&amp;#34;&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;gt; /tmp/triage.json
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;run_status&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$?&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;set&lt;/span&gt; -e
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;jq -r &lt;span class="s1"&gt;&amp;#39;.content // .error&amp;#39;&lt;/span&gt; /tmp/triage.json
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;exit&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$run_status&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;The flags that matter most&lt;span class="hx:absolute hx:-mt-20" id="the-flags-that-matter-most"&gt;&lt;/span&gt;
&lt;a href="#the-flags-that-matter-most" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;&lt;code&gt;--format text|json&lt;/code&gt;&lt;span class="hx:absolute hx:-mt-20" id="--format-textjson"&gt;&lt;/span&gt;
&lt;a href="#--format-textjson" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Use &lt;code&gt;text&lt;/code&gt; for a human-readable artifact. Use &lt;code&gt;json&lt;/code&gt; when a script, CI job, or dashboard needs stable fields.&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run --format json &lt;span class="s2"&gt;&amp;#34;Summarize the current diff. Do not modify files.&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;&lt;code&gt;--json&lt;/code&gt;&lt;span class="hx:absolute hx:-mt-20" id="--json"&gt;&lt;/span&gt;
&lt;a href="#--json" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The legacy &lt;code&gt;--json&lt;/code&gt; flag remains available for compatibility, but it is not the same as &lt;code&gt;--format json&lt;/code&gt;. New integrations should use &lt;code&gt;--format json&lt;/code&gt; for a structured stdout object.&lt;/p&gt;
&lt;h3&gt;&lt;code&gt;--model&lt;/code&gt; and &lt;code&gt;--provider&lt;/code&gt;&lt;span class="hx:absolute hx:-mt-20" id="--model-and---provider"&gt;&lt;/span&gt;
&lt;a href="#--model-and---provider" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Select the model or provider explicitly when the workflow must be reproducible across machines or CI runners:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; --provider openai &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; --model &amp;lt;model-id&amp;gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Review the current diff. Do not modify files.&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Avoid relying on an undocumented default model in a shared pipeline.&lt;/p&gt;
&lt;h3&gt;&lt;code&gt;--base-url&lt;/code&gt; and &lt;code&gt;--api-key&lt;/code&gt;&lt;span class="hx:absolute hx:-mt-20" id="--base-url-and---api-key"&gt;&lt;/span&gt;
&lt;a href="#--base-url-and---api-key" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;These flags can configure a provider endpoint and key when that is appropriate for the environment. Prefer the project’s normal provider configuration and secret-management system rather than placing credentials in shell history or pipeline logs.&lt;/p&gt;
&lt;h3&gt;&lt;code&gt;--max-iterations&lt;/code&gt;&lt;span class="hx:absolute hx:-mt-20" id="--max-iterations"&gt;&lt;/span&gt;
&lt;a href="#--max-iterations" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Use this to bound how many tool-call iterations a turn may use:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run --max-iterations &lt;span class="m"&gt;24&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Inspect the failing test output and write a concise triage report. Do not modify files.&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;A low cap reduces runaway work but may stop a complex task before it reaches a final answer. Treat &lt;code&gt;iter_cap&lt;/code&gt; as a distinct failure state.&lt;/p&gt;
&lt;h3&gt;&lt;code&gt;--worktree&lt;/code&gt;&lt;span class="hx:absolute hx:-mt-20" id="--worktree"&gt;&lt;/span&gt;
&lt;a href="#--worktree" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Use a managed worktree when the run must edit files:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run --worktree dependency-update &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Update the dependency, run the focused tests, and summarize the diff.&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The worktree gives the agent a separate branch and working directory. Review the result before merging or removing it.&lt;/p&gt;
&lt;h3&gt;&lt;code&gt;--yolo&lt;/code&gt;&lt;span class="hx:absolute hx:-mt-20" id="--yolo"&gt;&lt;/span&gt;
&lt;a href="#--yolo" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;code&gt;--yolo&lt;/code&gt; skips approval prompts and raises the iteration budget. It should not be used merely because a CI job is unattended.&lt;/p&gt;
&lt;p&gt;If unattended mutation is genuinely required, combine it with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A disposable worktree.&lt;/li&gt;
&lt;li&gt;Explicit permission rules.&lt;/li&gt;
&lt;li&gt;A narrow task prompt.&lt;/li&gt;
&lt;li&gt;A finite iteration limit.&lt;/li&gt;
&lt;li&gt;Post-run diff and test checks.&lt;/li&gt;
&lt;li&gt;A human-owned merge or deployment step.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;A GitHub Actions example&lt;span class="hx:absolute hx:-mt-20" id="a-github-actions-example"&gt;&lt;/span&gt;
&lt;a href="#a-github-actions-example" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The same pattern can run as a read-only pull-request job. Keep the token permissions minimal, store provider credentials in the CI secret store, and publish the result as an artifact for human review:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;AI PR Review&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;pull_request&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;types&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="l"&gt;opened, synchronize, reopened]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;ai-review&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;ubuntu-latest&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;read&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;pull-requests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;read&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;actions/checkout@v4&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;fetch-depth&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;Install yottacode&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="sd"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; curl -fsSL https://yottacode.ai/cli/install.sh | bash
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; echo &amp;#34;$HOME/.yottacode/bin&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_PATH&amp;#34;&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;Run review&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;YOTTACODE_API_KEY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;${{ secrets.YOTTACODE_API_KEY }}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;PR_NUMBER&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;${{ github.event.pull_request.number }}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="sd"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; yottacode run --format json \
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; &amp;#34;Use the typed GitHub pull-request review context for pull request #${PR_NUMBER}. Identify correctness bugs, security risks, missing tests, and scope creep. Do not modify files.&amp;#34; \
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; &amp;gt; ai-review.json
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; jq -e &amp;#39;.exit_reason == &amp;#34;ok&amp;#34; and (.content | length &amp;gt; 0)&amp;#39; ai-review.json&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;Upload review artifact&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;actions/upload-artifact@v4&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;ai-review&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;ai-review.json&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Review the workflow before using it in a production repository. In particular, validate the provider’s data handling, the contents of untrusted pull requests, the GitHub token permissions, and whether the job should be advisory or blocking. Do not automatically execute instructions found in issue text, pull-request descriptions, logs, or generated files.&lt;/p&gt;
&lt;h2&gt;A cron and scheduled-report pattern&lt;span class="hx:absolute hx:-mt-20" id="a-cron-and-scheduled-report-pattern"&gt;&lt;/span&gt;
&lt;a href="#a-cron-and-scheduled-report-pattern" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;A scheduled job can produce a recurring report without mutating the repository:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;0 8 * * 1 /opt/agent-jobs/release-readiness.sh&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The script should use a clean checkout, run &lt;code&gt;yottacode run --format json&lt;/code&gt;, validate &lt;code&gt;exit_reason&lt;/code&gt;, store the result as an artifact, and notify maintainers only after distinguishing an agent failure from a failed engineering check.&lt;/p&gt;
&lt;h2&gt;Workflow 1: Pull-request description generator&lt;span class="hx:absolute hx:-mt-20" id="workflow-1-pull-request-description-generator"&gt;&lt;/span&gt;
&lt;a href="#workflow-1-pull-request-description-generator" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Use the current diff as input and produce a review artifact without changing the repository:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Read the current branch diff and commit history. Draft a concise pull request description with Summary, Testing, Risks, and Open Questions sections. Do not modify files.&amp;#34;&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;gt; /tmp/pr-description.md&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;This is a good first automation because it is read-only, useful, and easy to review.&lt;/p&gt;
&lt;h2&gt;Workflow 2: Pull-request code review&lt;span class="hx:absolute hx:-mt-20" id="workflow-2-pull-request-code-review"&gt;&lt;/span&gt;
&lt;a href="#workflow-2-pull-request-code-review" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;A PR review job can run when a pull request opens or receives new commits. Keep it read-only and ask for findings that a human reviewer can verify. This example assumes the runner is authenticated and checked out to the pull-request branch:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;PR_NUMBER&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;PR_NUMBER&lt;/span&gt;&lt;span class="p"&gt;:?set PR_NUMBER to the pull request number&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run --format json &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Use the typed GitHub pull-request review context for pull request #&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;PR_NUMBER&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;. Identify correctness bugs, security risks, missing tests, backward-compatibility problems, and scope creep. Return findings with severity, file, line, evidence, and a suggested fix. If there are no findings, say so explicitly. Do not modify files.&amp;#34;&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;gt; /tmp/pr-code-review.json
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;jq -e &lt;span class="s1"&gt;&amp;#39;.exit_reason == &amp;#34;ok&amp;#34; and (.content | type == &amp;#34;string&amp;#34;)&amp;#39;&lt;/span&gt; /tmp/pr-code-review.json&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;For a local-only review, replace the GitHub request with: &lt;code&gt;Review the current branch diff against its resolved base.&lt;/code&gt; A CI job can publish the report as an artifact or add it to the pull request for human review. Do not automatically merge or close a pull request based only on model output. The useful role is to surface questions early and consistently; required checks and human reviewers remain authoritative.&lt;/p&gt;
&lt;h2&gt;Workflow 3: Test-failure triage&lt;span class="hx:absolute hx:-mt-20" id="workflow-3-test-failure-triage"&gt;&lt;/span&gt;
&lt;a href="#workflow-3-test-failure-triage" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Feed the agent a bounded test artifact:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;set&lt;/span&gt; +e
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;go &lt;span class="nb"&gt;test&lt;/span&gt; ./... 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; tee /tmp/test-output.txt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;status&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;PIPESTATUS&lt;/span&gt;&lt;span class="p"&gt;[0]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;set&lt;/span&gt; -e
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run --format json &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Read /tmp/test-output.txt and the relevant source files without modifying the repository. Identify the likely root cause, owning package, confidence, and smallest safe next step.&amp;#34;&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;gt; /tmp/test-triage.json
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;jq -r &lt;span class="s1"&gt;&amp;#39;.content // .error&amp;#39;&lt;/span&gt; /tmp/test-triage.json
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;exit&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$status&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The scanner’s exit status should remain authoritative. A successful explanation does not turn a failing test suite into a passing one.&lt;/p&gt;
&lt;h2&gt;Workflow 4: Dependency-audit summary&lt;span class="hx:absolute hx:-mt-20" id="workflow-4-dependency-audit-summary"&gt;&lt;/span&gt;
&lt;a href="#workflow-4-dependency-audit-summary" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Let the security scanner produce machine output first. Use the agent to explain it for humans:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;set&lt;/span&gt; +e
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;govulncheck -json ./... &amp;gt; /tmp/govulncheck.json
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;audit_status&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$?&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Read /tmp/govulncheck.json. Summarize reachable vulnerabilities, affected packages, available fixes, and recommended priority. Do not modify files.&amp;#34;&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;|&lt;/span&gt; tee /tmp/dependency-audit.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;summary_status&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;PIPESTATUS&lt;/span&gt;&lt;span class="p"&gt;[0]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;set&lt;/span&gt; -e
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$summary_status&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; -ne &lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;exit&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$summary_status&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;exit&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$audit_status&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The agent summarizes evidence; it does not replace the vulnerability scanner.&lt;/p&gt;
&lt;h2&gt;Workflow 5: Changelog draft&lt;span class="hx:absolute hx:-mt-20" id="workflow-5-changelog-draft"&gt;&lt;/span&gt;
&lt;a href="#workflow-5-changelog-draft" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Generate a proposed changelog entry from commits and the current diff:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run --format json &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Read the current git diff and recent commit subjects. Draft one Keep a Changelog bullet for the Unreleased section. Return only the proposed bullet. Do not modify files.&amp;#34;&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;gt; /tmp/changelog.json
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;jq -r &lt;span class="s1"&gt;&amp;#39;.content // .error&amp;#39;&lt;/span&gt; /tmp/changelog.json&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Keep the generated text as a proposal until a maintainer verifies that it describes the actual user-visible change.&lt;/p&gt;
&lt;h2&gt;Workflow 6: Release-readiness report&lt;span class="hx:absolute hx:-mt-20" id="workflow-6-release-readiness-report"&gt;&lt;/span&gt;
&lt;a href="#workflow-6-release-readiness-report" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Use a read-only run to assemble evidence before a release decision:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run --format json --max-iterations &lt;span class="m"&gt;32&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Review the current repository for release readiness. Inspect the diff, recent commits, test status files, changelog, version metadata, and CI configuration. Return a report with verified evidence, missing checks, risks, and a release recommendation. Do not modify files.&amp;#34;&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;gt; /tmp/release-readiness.json&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The report should distinguish verified evidence from missing information. Do not ask the agent to declare a release ready when it cannot inspect the required checks.&lt;/p&gt;
&lt;h2&gt;Workflow 7: One-shot implementation in a worktree&lt;span class="hx:absolute hx:-mt-20" id="workflow-7-one-shot-implementation-in-a-worktree"&gt;&lt;/span&gt;
&lt;a href="#workflow-7-one-shot-implementation-in-a-worktree" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Some tasks genuinely need an unattended edit. Keep the blast radius bounded:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode run &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; --worktree update-docs &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; --yolo &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; --max-iterations &lt;span class="m"&gt;64&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Update the API examples for the changed endpoint. Modify only docs/api.md and its example fixture. Run the focused documentation checks. Do not change source code, dependencies, CI, or deployment files.&amp;#34;&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;gt; /tmp/update-docs.txt&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;After the run:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode worktree status update-docs
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode worktree list&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Inspect the worktree’s diff and test output before merging anything. If the worktree is dirty or the result is uncertain, keep it for review rather than automatically removing it.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;code&gt;yottacode run&lt;/code&gt; is most useful when it turns an engineering artifact into a bounded next step: a diff into a PR description, test output into triage, scanner output into explanation, or commits into a changelog proposal.&lt;/p&gt;
&lt;p&gt;Start with advisory workflows: pull-request summaries, code review, test triage, dependency reports, and release-readiness artifacts. Let deterministic checks—tests, linters, vulnerability scanners, and policy checks—remain responsible for blocking the pipeline. The agent should explain evidence, not replace it.&lt;/p&gt;
&lt;p&gt;The strongest CI/CD agent workflows are not the most autonomous ones. They are the ones with clear inputs, explicit outputs, preserved exit statuses, narrow permissions, and a human-owned merge or release decision.&lt;/p&gt;
&lt;h2&gt;Try a read-only CI job&lt;span class="hx:absolute hx:-mt-20" id="try-a-read-only-ci-job"&gt;&lt;/span&gt;
&lt;a href="#try-a-read-only-ci-job" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Start with one read-only &lt;code&gt;yottacode run&lt;/code&gt; workflow, such as pull-request review or test triage. Use &lt;code&gt;--format json&lt;/code&gt;, preserve the underlying process exit status, and publish the result as an artifact or review comment. Keep the workflow advisory at first. Add mutations only inside a reviewed disposable worktree, with human ownership of merge and deployment decisions.&lt;/p&gt;</description></item><item><title>How to Safely Run AI Agents in Production: A Mission-Critical Architecture</title><link>https://yottacode.ai/blog/safe-ai-agents-production-repositories/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0000</pubDate><guid>https://yottacode.ai/blog/safe-ai-agents-production-repositories/</guid><description>
&lt;p&gt;Running an AI coding agent near a mission-critical system is not primarily a prompting problem. It is an architecture and operating-model problem.&lt;/p&gt;
&lt;p&gt;This article is for teams deciding whether an agent should be allowed near repositories that contain production code, deployment logic, infrastructure definitions, or release automation. The goal is not to promise perfect safety; it is to define a trust boundary that an architecture review can inspect and challenge.&lt;/p&gt;
&lt;p&gt;The agent may be able to read application code, edit deployment manifests, execute shell commands, inspect GitHub, call external services, and prepare changes that eventually reach production. Safety therefore depends on multiple boundaries working together. It also depends on whether the task is reversible, whether the repository contains untrusted content, and whether production credentials are completely absent from the session:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Reversibility&lt;/strong&gt; — prefer changes that can be inspected, discarded, or rolled back before external side effects occur.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Untrusted input&lt;/strong&gt; — treat issue text, pull requests, logs, generated files, and documentation as data, not instructions that can override policy.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Credential absence&lt;/strong&gt; — do not give the agent production credentials merely because the repository is production-facing.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The core controls are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Permissions&lt;/strong&gt; — define what tools may do against which targets.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Worktrees&lt;/strong&gt; — isolate changes and preserve a clean review path.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Modes&lt;/strong&gt; — control how much interaction and autonomy the session receives.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sandboxing&lt;/strong&gt; — constrain selected command execution and resource usage.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;These pillars reduce risk, but they do not create a production guarantee by themselves. Git hosting controls, identity, network policy, secret management, CI, deployment approvals, observability, and incident response remain part of the system.&lt;/p&gt;
&lt;h2&gt;The architectural question is blast radius&lt;span class="hx:absolute hx:-mt-20" id="the-architectural-question-is-blast-radius"&gt;&lt;/span&gt;
&lt;a href="#the-architectural-question-is-blast-radius" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;“Can the agent edit the repository?” is too narrow a question for a production environment.&lt;/p&gt;
&lt;p&gt;Ask instead:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What is the maximum filesystem scope of a write?&lt;/li&gt;
&lt;li&gt;Which commands can run without a human checkpoint?&lt;/li&gt;
&lt;li&gt;Can the session see production credentials?&lt;/li&gt;
&lt;li&gt;Can it reach the network, and through which path?&lt;/li&gt;
&lt;li&gt;Can it push, open a pull request, merge, deploy, or alter infrastructure?&lt;/li&gt;
&lt;li&gt;What happens when the model misunderstands the task?&lt;/li&gt;
&lt;li&gt;Which effects are contained by the chosen boundary, and which require a separate operational response?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A useful safety architecture assumes that the agent will eventually make a wrong decision. The design goal is to make that decision visible, bounded, and recoverable before it becomes an outage.&lt;/p&gt;
&lt;h2&gt;yottacode building blocks&lt;span class="hx:absolute hx:-mt-20" id="yottacode-building-blocks"&gt;&lt;/span&gt;
&lt;a href="#yottacode-building-blocks" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;yottacode turns this architecture into concrete controls rather than one broad autonomy switch:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Permission policy&lt;/strong&gt; — system, shared project, and local rules decide which tool calls are allowed, require approval, or are denied.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Workspace and path boundaries&lt;/strong&gt; — file tools confine writes to the active workspace or explicitly allowed roots, reject unsafe symlink paths by default, and protect sensitive state.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Managed worktrees&lt;/strong&gt; — separate branches and directories keep experiments and agent changes away from the primary checkout.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Session modes&lt;/strong&gt; — Plan, Normal, Auto, and Yolo make the level of interaction explicit while remaining subject to permissions and hard safety gates.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Approval surfaces&lt;/strong&gt; — consequential shell, test, Git, GitHub, commit, rollback, and worktree operations can remain visible to a human.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Podman command sandbox&lt;/strong&gt; — selected command and test execution can run in a rootless, resource-limited container with explicit mounts and network settings.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Git and GitHub boundaries&lt;/strong&gt; — local history changes, pushes, pull-request writes, and other remote mutations remain separate decisions from repository inspection.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Traceability and auditability&lt;/strong&gt; — the built-in &lt;code&gt;/inspect&lt;/code&gt; view exposes turns, tool calls, arguments, approvals, status, latency, usage, and flagged output; &lt;code&gt;yottacode sessions export&lt;/code&gt; produces Markdown or structured JSONL for local review, &lt;code&gt;jq&lt;/code&gt;, diffing, and retention.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Audit records&lt;/strong&gt; — session state, tracked file mutations, tool activity, approvals, and test results provide evidence for review, while external effects remain outside the file-change boundary. The external system—Git hosting, CI, cloud control plane, or deployment platform—remains the source of truth for remote side effects.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The building blocks are complementary. A worktree without permissions still has too much authority. A sandbox without GitHub controls can still publish a change. Permissions without path validation are not a host boundary. The architecture works when each control is assigned a specific failure mode.&lt;/p&gt;
&lt;h2&gt;The four pillars of a safe operating model&lt;span class="hx:absolute hx:-mt-20" id="the-four-pillars-of-a-safe-operating-model"&gt;&lt;/span&gt;
&lt;a href="#the-four-pillars-of-a-safe-operating-model" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3&gt;Pillar 1: Permissions define authority&lt;span class="hx:absolute hx:-mt-20" id="pillar-1-permissions-define-authority"&gt;&lt;/span&gt;
&lt;a href="#pillar-1-permissions-define-authority" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Permissions are the policy layer that decides which tool calls may run silently, which must ask, and which must never run.&lt;/p&gt;
&lt;p&gt;A production policy should be specific to the tool and target. It should distinguish:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Reading source from editing source.&lt;/li&gt;
&lt;li&gt;Running tests from running arbitrary shell commands.&lt;/li&gt;
&lt;li&gt;Reading Git state from pushing or rewriting history.&lt;/li&gt;
&lt;li&gt;Reading GitHub context from creating or updating remote resources.&lt;/li&gt;
&lt;li&gt;Inspecting infrastructure from changing infrastructure.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The effective precedence is:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Deny &amp;gt; Ask &amp;gt; Allow &amp;gt; session allow &amp;gt; tool default&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;That ordering is important. A broad allow rule must not weaken a higher-priority deny or ask rule. An explicit deny remains enforced even when a session uses Yolo mode.&lt;/p&gt;
&lt;p&gt;If a single-shot &lt;code&gt;yottacode run&lt;/code&gt; needs to mutate a file and no saved &lt;code&gt;allow&lt;/code&gt; rule matches, it cannot pause for an interactive approval. The mutation fails with an approval-required result and the file is not changed. A narrowly scoped saved &lt;code&gt;allow&lt;/code&gt; rule is the preferred way to authorize unattended mutation; an &lt;code&gt;ask&lt;/code&gt; rule still requires a human prompt and therefore cannot satisfy a noninteractive run.&lt;/p&gt;
&lt;p&gt;Permission files can exist at several scopes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;/etc/yottacode/permissions.json&lt;/code&gt; for a machine-wide administrator baseline.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;repo&amp;gt;/.yottacode/permissions.json&lt;/code&gt; for committed team policy.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;repo&amp;gt;/.yottacode/permissions.local.json&lt;/code&gt; for personal, gitignored rules.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For a mission-critical repository, start with a deny-by-default posture for destructive and external operations. Allow only narrow, repeatable tasks. Require confirmation for publishing, pushing, infrastructure changes, and any action whose blast radius extends beyond the checkout.&lt;/p&gt;
&lt;p&gt;A permission rule is not an operating-system sandbox. A &lt;code&gt;Bash(...)&lt;/code&gt; rule matches the command descriptor yottacode evaluates; it does not make arbitrary shell indirection, aliases, scripts, or child processes safe. Use sandboxing and outer infrastructure controls when you need host isolation.&lt;/p&gt;
&lt;h3&gt;Pillar 2: Worktrees isolate change&lt;span class="hx:absolute hx:-mt-20" id="pillar-2-worktrees-isolate-change"&gt;&lt;/span&gt;
&lt;a href="#pillar-2-worktrees-isolate-change" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Do not make the primary checkout the agent’s experimentation surface.&lt;/p&gt;
&lt;p&gt;A managed worktree gives the agent a separate directory and branch while keeping the main checkout available for comparison and review. This is especially valuable for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Broad refactors.&lt;/li&gt;
&lt;li&gt;Dependency upgrades.&lt;/li&gt;
&lt;li&gt;Generated-code changes.&lt;/li&gt;
&lt;li&gt;CI and deployment-file edits.&lt;/li&gt;
&lt;li&gt;Tasks that may require several implementation attempts.&lt;/li&gt;
&lt;li&gt;Unattended or semi-autonomous runs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A robust workflow is:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Create a fresh worktree.&lt;/li&gt;
&lt;li&gt;Inspect the repository and write the plan there.&lt;/li&gt;
&lt;li&gt;Approve the scope before implementation.&lt;/li&gt;
&lt;li&gt;Make changes only inside the worktree.&lt;/li&gt;
&lt;li&gt;Run tests and inspect the complete diff.&lt;/li&gt;
&lt;li&gt;Open a draft pull request rather than merging directly.&lt;/li&gt;
&lt;li&gt;Keep the worktree until review is complete.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Worktrees are not a substitute for permissions. They contain file changes, but they do not automatically contain credentials, network access, GitHub authority, or external side effects.&lt;/p&gt;
&lt;p&gt;Also be deliberate with &lt;code&gt;.worktreeinclude&lt;/code&gt;. Files copied into a worktree may include environment configuration. A worktree is safer only when the data copied into it is also appropriate for the task.&lt;/p&gt;
&lt;h3&gt;Pillar 3: Modes control interaction&lt;span class="hx:absolute hx:-mt-20" id="pillar-3-modes-control-interaction"&gt;&lt;/span&gt;
&lt;a href="#pillar-3-modes-control-interaction" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Modes are session-level operating postures layered on top of persistent permissions.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mode&lt;/th&gt;
&lt;th&gt;Appropriate use&lt;/th&gt;
&lt;th&gt;Boundary&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Plan&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Repository research and design before implementation&lt;/td&gt;
&lt;td&gt;Read-only research; only the resolved plan file is an automatic write exception.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Normal&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Interactive implementation&lt;/td&gt;
&lt;td&gt;Each tool follows its normal approval behavior.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Auto&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Narrowly trusted routine work in an isolated workspace&lt;/td&gt;
&lt;td&gt;Ordinary edits may auto-approve, but shell, tests, commits, rollback, and worktree transitions remain in the safety floor.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Yolo&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Exceptional automation in a disposable, reviewed environment&lt;/td&gt;
&lt;td&gt;Skips remaining ordinary prompts but does not bypass deny rules, ask rules, path validation, trust, plan restrictions, or hard guards.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;For production-oriented work, the safest default sequence is:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Plan → review scope → Normal implementation → verify → draft PR → human review&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Auto mode can be useful inside a controlled worktree after the scope is understood. It is not an allowlist, and it does not remove the need for permissions, path validation, or review.&lt;/p&gt;
&lt;p&gt;Yolo mode should be treated as an exceptional execution overlay, not as a production safety strategy. It does not replace least privilege, sandboxing, branch protection, or deployment approval.&lt;/p&gt;
&lt;h3&gt;Pillar 4: Sandboxing constrains command execution&lt;span class="hx:absolute hx:-mt-20" id="pillar-4-sandboxing-constrains-command-execution"&gt;&lt;/span&gt;
&lt;a href="#pillar-4-sandboxing-constrains-command-execution" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The optional Podman sandbox adds an execution boundary for selected command-capable tools. With &lt;code&gt;[sandbox] backend = &amp;quot;podman&amp;quot;&lt;/code&gt;, &lt;code&gt;run_bash&lt;/code&gt; and relevant test/document subprocesses run in a rootless container with the project and managed-worktree paths mounted.&lt;/p&gt;
&lt;p&gt;The sandbox applies hardening such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Rootless user namespaces.&lt;/li&gt;
&lt;li&gt;Dropped Linux capabilities.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;no-new-privileges&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Resource limits where the host supports them.&lt;/li&gt;
&lt;li&gt;A constrained temporary filesystem.&lt;/li&gt;
&lt;li&gt;Explicit project-relative mounts.&lt;/li&gt;
&lt;li&gt;Fail-closed startup when Podman or the required image cannot run.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A restrictive configuration can use:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-toml" data-lang="toml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;sandbox&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nx"&gt;backend&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;podman&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nx"&gt;network&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;none&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nx"&gt;memory&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;4g&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nx"&gt;cpus&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nx"&gt;pids_limit&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;256&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The important limitation is scope. The sandbox does &lt;strong&gt;not&lt;/strong&gt; place the entire agent inside the container. yottacode itself, file tools, Git, GitHub, MCP, and provider traffic remain host-side. Host-side file tools can still edit the mounted repository, and GitHub or Git operations can still affect remote systems if permissions allow them.&lt;/p&gt;
&lt;p&gt;The default sandbox network is host networking. &lt;code&gt;network = &amp;quot;none&amp;quot;&lt;/code&gt; provides deny-all networking for sandboxed commands, but yottacode does not provide an in-house egress allowlist. Network controls outside yottacode remain part of the environment’s security architecture.&lt;/p&gt;
&lt;p&gt;Credentials are not injected by default. If &lt;code&gt;env_passthrough&lt;/code&gt; is configured, selected environment values are made available to sandboxed commands. Treat that as an explicit trust decision, not a convenience setting.&lt;/p&gt;
&lt;p&gt;Sandboxing reduces command-execution blast radius. It does not make an unrestricted agent safe to connect to production credentials or production deployment systems.&lt;/p&gt;
&lt;h2&gt;Traceability is a control, not a reporting afterthought&lt;span class="hx:absolute hx:-mt-20" id="traceability-is-a-control-not-a-reporting-afterthought"&gt;&lt;/span&gt;
&lt;a href="#traceability-is-a-control-not-a-reporting-afterthought" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In a mission-critical environment, the final diff is not enough. An architecture review or incident investigation may need to answer:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What task and repository context did the agent receive?&lt;/li&gt;
&lt;li&gt;Which model and provider handled the session?&lt;/li&gt;
&lt;li&gt;Which tools ran, with which arguments and targets?&lt;/li&gt;
&lt;li&gt;Which actions were allowed, denied, or approved?&lt;/li&gt;
&lt;li&gt;Which files changed, and which checks ran afterward?&lt;/li&gt;
&lt;li&gt;Did the provider truncate, filter, or interrupt a turn?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The built-in &lt;code&gt;/inspect&lt;/code&gt; command provides a read-only session view inside the TUI. It groups assistant turns and exposes prompts, responses, tool calls, arguments, statuses, latency, usage, errors, stop flags, and flagged output. It is useful during development and review because it shows how the agent reached a result rather than only displaying the result.&lt;/p&gt;
&lt;p&gt;For durable local records, export a session:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode sessions &lt;span class="nb"&gt;export&lt;/span&gt; &amp;lt;session-id&amp;gt; session.jsonl&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The JSONL export contains a session header, user and assistant records, tool calls, tool results, approval metadata, usage, model/provider information, compaction records, and a session summary. It is suitable for local retention, &lt;code&gt;jq&lt;/code&gt; queries, diffing, and attaching evidence to an engineering review:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;jq &lt;span class="s1"&gt;&amp;#39;select(.type == &amp;#34;tool_result&amp;#34; and .status != &amp;#34;ok&amp;#34;)&amp;#39;&lt;/span&gt; session.jsonl
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;jq &lt;span class="s1"&gt;&amp;#39;select(.type == &amp;#34;tool_call&amp;#34;) | [.turn, .tool, .id, .args]&amp;#39;&lt;/span&gt; session.jsonl&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;This is an intentionally local-first audit model. yottacode does not send telemetry to a hosted observability service. If records leave the workstation, the team must define its own redaction, access-control, retention, and secret-handling policy: session exports can contain prompts, paths, command output, tool arguments, and provider metadata.&lt;/p&gt;
&lt;p&gt;Traceability also has limits. &lt;code&gt;/inspect&lt;/code&gt; is a session inspection view, not an immutable event journal. JSONL exports reconstruct the persisted session history rather than every internal runtime event, and external side effects still require evidence from Git hosting, CI, cloud audit logs, or deployment systems.&lt;/p&gt;
&lt;h2&gt;A reference architecture for mission-critical work&lt;span class="hx:absolute hx:-mt-20" id="a-reference-architecture-for-mission-critical-work"&gt;&lt;/span&gt;
&lt;a href="#a-reference-architecture-for-mission-critical-work" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Use layers rather than one universal “safe mode.” The diagram below is a control model, not a claim that yottacode alone enforces every boundary:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Developer
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; │
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ▼
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Plan and approval boundary
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; │
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ▼
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Isolated worktree ── permission policy ── path validation
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; │ │
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ▼ ▼
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Sandboxed commands Host-side Git/GitHub controls
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; │ │
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; └──────────────┬──────────┘
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ▼
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Tests, scanners, and CI
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; │
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ▼
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Draft pull request
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; │
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ▼
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Human review and deployment gate&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Each layer answers a different question:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Plan:&lt;/strong&gt; Is this the right change?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Permissions:&lt;/strong&gt; Is this action authorized?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Worktree:&lt;/strong&gt; Is the change isolated?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Path validation:&lt;/strong&gt; Is the target inside the allowed boundary?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sandbox:&lt;/strong&gt; What can the command process reach?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CI:&lt;/strong&gt; Does the change satisfy deterministic checks?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Review:&lt;/strong&gt; Should this change enter the system?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Deployment gate:&lt;/strong&gt; Should this change affect production?&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;What this architecture does not guarantee&lt;span class="hx:absolute hx:-mt-20" id="what-this-architecture-does-not-guarantee"&gt;&lt;/span&gt;
&lt;a href="#what-this-architecture-does-not-guarantee" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;No combination of permissions, worktrees, modes, and sandboxing guarantees that an agent will understand the task correctly or that a human will approve the right action. These are engineering controls, not a promise that production impact is impossible.&lt;/p&gt;
&lt;p&gt;Known limitations include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A permission policy is not an OS sandbox.&lt;/li&gt;
&lt;li&gt;Podman sandboxing covers selected command execution, not every yottacode tool.&lt;/li&gt;
&lt;li&gt;Host networking is the default sandbox network configuration.&lt;/li&gt;
&lt;li&gt;There is no built-in egress allowlist.&lt;/li&gt;
&lt;li&gt;Resource limits can degrade on hosts that do not support the relevant cgroup or storage features.&lt;/li&gt;
&lt;li&gt;Double-forked or daemonized descendants may outlive command cancellation inside the container.&lt;/li&gt;
&lt;li&gt;External mutations may not be reversible.&lt;/li&gt;
&lt;li&gt;Production repository safety still depends on Git hosting, identity, network, secret, CI, deployment, and external audit-log controls outside yottacode.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These are not reasons to avoid agentic engineering. They are reasons to make the trust boundary explicit before expanding the agent’s authority.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Mission-critical environments need more than a capable model. They need an operating model that limits authority, isolates change, constrains execution, preserves evidence, and keeps production decisions human-owned.&lt;/p&gt;
&lt;p&gt;Permissions define what the agent may do. Worktrees contain the change. Modes make autonomy deliberate. Sandboxing constrains selected command execution. CI and review determine whether the result is acceptable. External identity, network, credential, and deployment controls complete the architecture.&lt;/p&gt;
&lt;p&gt;The right question is not whether an AI agent can be made perfectly safe. It is whether the system makes its authority narrow enough to understand, its actions visible enough to review, and its failures bounded enough to investigate.&lt;/p&gt;
&lt;h2&gt;Define the agent’s authority before rollout&lt;span class="hx:absolute hx:-mt-20" id="define-the-agents-authority-before-rollout"&gt;&lt;/span&gt;
&lt;a href="#define-the-agents-authority-before-rollout" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Before granting an agent access to a mission-critical repository, document its authority budget and evidence plan: allowed tools, paths, credentials, network access, modes, sandbox profile, required checks, &lt;code&gt;/inspect&lt;/code&gt; review, session-export handling, and human approval points. Start with a read-only task, then expand capability one boundary at a time.&lt;/p&gt;</description></item><item><title>How yottacode Permissions Work</title><link>https://yottacode.ai/blog/yottacode-permissions/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0000</pubDate><guid>https://yottacode.ai/blog/yottacode-permissions/</guid><description>
&lt;p&gt;yottacode does not treat agent autonomy as a single global switch. It evaluates each governed tool call against a target-aware permission policy before applying the tool&amp;rsquo;s normal approval behavior and independent safety controls.&lt;/p&gt;
&lt;p&gt;The policy result is &lt;strong&gt;allow&lt;/strong&gt;, &lt;strong&gt;ask&lt;/strong&gt;, &lt;strong&gt;deny&lt;/strong&gt;, or &lt;strong&gt;default&lt;/strong&gt;. A rule can silently authorize a narrowly defined action, force human approval for a normally automatic read, or refuse an operation even in yolo mode. When no rule matches, the tool keeps its built-in behavior.&lt;/p&gt;
&lt;p&gt;This article explains the released implementation: policy sources, rule matching, precedence, multi-target evaluation, shell segmentation, Git and GitHub classification, path containment, operating modes, and the boundaries between permissions and sandboxing.&lt;/p&gt;
&lt;h2&gt;A coding agent needs an authorization model, not just an approval dialog&lt;span class="hx:absolute hx:-mt-20" id="a-coding-agent-needs-an-authorization-model-not-just-an-approval-dialog"&gt;&lt;/span&gt;
&lt;a href="#a-coding-agent-needs-an-authorization-model-not-just-an-approval-dialog" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;A coding agent is an execution system. Depending on its tool registry, it can inspect source code, modify files, run processes, change Git state, call remote APIs, operate a browser, and create or delete external resources.&lt;/p&gt;
&lt;p&gt;That creates several distinct security questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Authority:&lt;/strong&gt; Is this class of action permitted for this tool and target?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Intent:&lt;/strong&gt; Does a human need to approve this particular invocation?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Containment:&lt;/strong&gt; Can the action escape the workspace or reach protected state?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Execution:&lt;/strong&gt; Does the operation run on the host or inside an isolation boundary?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Recovery:&lt;/strong&gt; Can the resulting change be inspected or reversed?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;A single “approve” button does not answer all five. An approval dialog can establish intent, but it does not automatically constrain path traversal, shell subprocesses, remote side effects, or the scope of a standing grant.&lt;/p&gt;
&lt;p&gt;yottacode therefore separates permission policy from approval prompts, path validation, workspace trust, command sandboxing, tool-specific risk classification, and checkpoints.&lt;/p&gt;
&lt;h2&gt;The authorization pipeline&lt;span class="hx:absolute hx:-mt-20" id="the-authorization-pipeline"&gt;&lt;/span&gt;
&lt;a href="#the-authorization-pipeline" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;At a high level, a governed tool call passes through a sequence like this:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;model proposes tool call
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; v
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;extract permission namespace + descriptor(s)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; v
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;evaluate deny &amp;gt; ask &amp;gt; allow &amp;gt; session allow
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; +---- deny ----&amp;gt; refuse
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; +---- ask -----&amp;gt; approval boundary
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; +---- allow ---&amp;gt; skip normal prompt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; +---- default -&amp;gt; tool&amp;#39;s built-in approval policy
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; v
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apply independent mode, trust, path, and execution guards
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; v
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;execute tool&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The exact ordering of independent guards varies by execution path, but the architectural point is stable: &lt;strong&gt;permission allow is not universal authorization&lt;/strong&gt;. It can skip the normal approval prompt for a matching call; it cannot disable plan-mode restrictions, workspace trust, protected-path checks, background-worker policy, or hard execution guards.&lt;/p&gt;
&lt;p&gt;This is closer to a policy decision point feeding multiple enforcement points than to a conventional “agent autonomy level.”&lt;/p&gt;
&lt;h2&gt;Three persistent policy sources&lt;span class="hx:absolute hx:-mt-20" id="three-persistent-policy-sources"&gt;&lt;/span&gt;
&lt;a href="#three-persistent-policy-sources" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;yottacode loads up to three optional JSON files:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/etc/yottacode/permissions.json
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;lt;repo&amp;gt;/.yottacode/permissions.json
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;lt;repo&amp;gt;/.yottacode/permissions.local.json&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;th&gt;Owner&lt;/th&gt;
&lt;th&gt;Intended use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;System&lt;/td&gt;
&lt;td&gt;Machine administrator&lt;/td&gt;
&lt;td&gt;Machine-wide baseline policy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shared project&lt;/td&gt;
&lt;td&gt;Repository team&lt;/td&gt;
&lt;td&gt;Version-controlled repository rules&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local project&lt;/td&gt;
&lt;td&gt;Individual developer&lt;/td&gt;
&lt;td&gt;Personal or machine-specific grants&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;All three use the same schema:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;permissions&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;allow&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Tests(go test *)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Edit(internal/**)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;ask&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Read(**/.env*)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Github(create_pr)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;deny&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Bash(curl * | sh)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Edit(/etc/**)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The files are merged into one effective policy. Their source does &lt;strong&gt;not&lt;/strong&gt; create a second precedence hierarchy. A local deny can beat a system allow, and a system ask can beat a shared allow, because the decision class—not the file load order—determines the verdict.&lt;/p&gt;
&lt;p&gt;The system and shared files are administrator- and repository-owned. Approval-derived persistent decisions are written only to &lt;code&gt;permissions.local.json&lt;/code&gt;. yottacode&amp;rsquo;s structured file mutators also protect the effective permission files from ordinary model-authored writes, so an agent cannot silently expand its own authority through &lt;code&gt;write_file&lt;/code&gt; or &lt;code&gt;edit_file&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;Worktree behavior&lt;span class="hx:absolute hx:-mt-20" id="worktree-behavior"&gt;&lt;/span&gt;
&lt;a href="#worktree-behavior" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Inside a yottacode-managed linked worktree, the two project sources intentionally have different storage semantics:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The shared &lt;code&gt;permissions.json&lt;/code&gt; comes from the active worktree, so the checked-out branch controls its committed policy.&lt;/li&gt;
&lt;li&gt;The personal &lt;code&gt;permissions.local.json&lt;/code&gt; comes from the main repository root, so personal grants survive removal of an ephemeral worktree.&lt;/li&gt;
&lt;li&gt;Relative path patterns are still evaluated against the active working directory.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This avoids losing personal grants while preserving branch-specific shared policy.&lt;/p&gt;
&lt;h2&gt;Four possible evaluation results&lt;span class="hx:absolute hx:-mt-20" id="four-possible-evaluation-results"&gt;&lt;/span&gt;
&lt;a href="#four-possible-evaluation-results" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;A policy evaluation returns one of four results:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Allow:&lt;/strong&gt; Skip the matching tool&amp;rsquo;s normal approval prompt.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ask:&lt;/strong&gt; Force the call through the approval boundary, including calls that would normally execute automatically.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Deny:&lt;/strong&gt; Refuse the call. Explicit deny rules remain effective in yolo mode.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Default:&lt;/strong&gt; No policy rule matched; use the tool&amp;rsquo;s built-in approval behavior.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The effective precedence is:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;deny &amp;gt; ask &amp;gt; allow &amp;gt; session allow &amp;gt; tool default&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Two details are easy to miss.&lt;/p&gt;
&lt;p&gt;First, &lt;code&gt;ask&lt;/code&gt; outranks &lt;code&gt;allow&lt;/code&gt;. This lets a broad convenience rule coexist with a narrower sensitive exception:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;permissions&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;allow&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;Read(docs/**)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;ask&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;Read(docs/private/**)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Second, an in-memory session allowance is lower priority than all persistent deny, ask, and allow rules. Choosing “allow for this session” cannot weaken a policy already present on disk.&lt;/p&gt;
&lt;h2&gt;Rules bind a permission namespace to a descriptor&lt;span class="hx:absolute hx:-mt-20" id="rules-bind-a-permission-namespace-to-a-descriptor"&gt;&lt;/span&gt;
&lt;a href="#rules-bind-a-permission-namespace-to-a-descriptor" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Each rule has the form:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Namespace(pattern)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The namespace is a stable permission-layer category, not necessarily the internal tool name. Common namespaces include:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Namespace&lt;/th&gt;
&lt;th&gt;Examples of governed tools&lt;/th&gt;
&lt;th&gt;Descriptor type&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Bash&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;run_bash&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Extracted command segment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Read&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;read_file&lt;/code&gt;, &lt;code&gt;read_many_files&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Path&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Write&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;write_file&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Path&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Edit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;edit_file&lt;/code&gt;, &lt;code&gt;apply_diff&lt;/code&gt;, LSP edits&lt;/td&gt;
&lt;td&gt;One or more paths&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Git&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Unified Git and Git workflow helpers&lt;/td&gt;
&lt;td&gt;Git operation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Github&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Native pull-request and issue tools&lt;/td&gt;
&lt;td&gt;Canonical operation verb&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Tests&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;run_tests&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Test command&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Browser&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Approval-gated browser actions&lt;/td&gt;
&lt;td&gt;Browser operation or host&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Worktree&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Managed worktree entry and exit&lt;/td&gt;
&lt;td&gt;Lifecycle operation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;MCP&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;MCP server tools&lt;/td&gt;
&lt;td&gt;&lt;code&gt;server/tool&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Other namespaces cover directory listing, globbing, search, fetches, document generation, media operations, memory, rollback, copying, moving, deletion, and directory creation.&lt;/p&gt;
&lt;p&gt;This indirection matters architecturally. Policies remain understandable even if the internal implementation is split across multiple tools. For example, several edit implementations can share the same &lt;code&gt;Edit(...)&lt;/code&gt; policy surface.&lt;/p&gt;
&lt;h3&gt;Path descriptors&lt;span class="hx:absolute hx:-mt-20" id="path-descriptors"&gt;&lt;/span&gt;
&lt;a href="#path-descriptors" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Path-oriented namespaces use doublestar matching:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Read(**/.env)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Edit(internal/**)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Write(docs/**/*.md)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;code&gt;**&lt;/code&gt; can cross directory boundaries. Relative patterns are evaluated from the active working directory. Absolute rules can match resolved absolute targets, and &lt;code&gt;~&lt;/code&gt; expands to the current user&amp;rsquo;s home directory.&lt;/p&gt;
&lt;p&gt;Path evaluation also considers canonicalized spellings so a deny rule does not fail merely because a path component is represented through a symlink. That is important on platforms where standard paths may have alternate physical representations.&lt;/p&gt;
&lt;h3&gt;String descriptors&lt;span class="hx:absolute hx:-mt-20" id="string-descriptors"&gt;&lt;/span&gt;
&lt;a href="#string-descriptors" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Commands, Git operations, GitHub verbs, URLs, browser operations, and similar descriptors use anchored string globs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;*&lt;/code&gt; matches any sequence, including an empty sequence.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;?&lt;/code&gt; matches exactly one character.&lt;/li&gt;
&lt;li&gt;Other characters are literal.&lt;/li&gt;
&lt;li&gt;The complete descriptor must match.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Bash(go test *)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Git(status *)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Github(read_*)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Browser(navigate docs.example.com)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;A subtle consequence is that &lt;code&gt;Git(status *)&lt;/code&gt; matches &lt;code&gt;status --short&lt;/code&gt; but not the bare descriptor &lt;code&gt;status&lt;/code&gt;. If both forms are required, include both rules or test the actual descriptor generated by the tool.&lt;/p&gt;
&lt;h2&gt;Multi-target calls use ratcheted evaluation&lt;span class="hx:absolute hx:-mt-20" id="multi-target-calls-use-ratcheted-evaluation"&gt;&lt;/span&gt;
&lt;a href="#multi-target-calls-use-ratcheted-evaluation" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;A single tool call can affect more than one resource. &lt;code&gt;read_many_files&lt;/code&gt;, &lt;code&gt;apply_diff&lt;/code&gt;, and an LSP workspace edit are examples.&lt;/p&gt;
&lt;p&gt;For these calls, yottacode does not approve the batch based on the first or majority target. It evaluates all descriptors conservatively:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;if any target matches deny: deny the whole call
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;else if any target matches ask: ask for the whole call
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;else if every target matches allow: allow the whole call
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;else: default to the tool&amp;#39;s normal policy&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Suppose a policy contains:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Edit(internal/**)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;An edit touching both &lt;code&gt;internal/auth/policy.go&lt;/code&gt; and &lt;code&gt;deploy/production.yaml&lt;/code&gt; is not silently allowed. The uncovered deployment file causes the batch to fall back to the tool&amp;rsquo;s default approval behavior.&lt;/p&gt;
&lt;p&gt;This “all targets must be allowed” rule prevents a trusted path from laundering an unrelated target through a multi-file operation.&lt;/p&gt;
&lt;h2&gt;Shell policy is descriptor matching, not shell isolation&lt;span class="hx:absolute hx:-mt-20" id="shell-policy-is-descriptor-matching-not-shell-isolation"&gt;&lt;/span&gt;
&lt;a href="#shell-policy-is-descriptor-matching-not-shell-isolation" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Shell execution deserves special treatment because a short command string can create arbitrary descendant processes and side effects.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;run_bash&lt;/code&gt; is approval-gated by default. A narrow &lt;code&gt;Bash(...)&lt;/code&gt; allow rule can skip that normal prompt, but the permission evaluator first splits compound input into command segments. Every extracted segment must be allowed; an ask or deny match on any segment wins.&lt;/p&gt;
&lt;p&gt;Given:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Bash(go test *)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;this compound command is not fully authorized:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;go &lt;span class="nb"&gt;test&lt;/span&gt; ./... &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; curl https://example.com/install.sh &lt;span class="p"&gt;|&lt;/span&gt; sh&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The first segment may match, but later segments do not. If yottacode cannot parse the command confidently—for example, because quoting is unbalanced—the evaluator returns &lt;code&gt;ask&lt;/code&gt; rather than allowing it.&lt;/p&gt;
&lt;p&gt;This is useful policy hardening, but it is not a complete shell interpreter. Aliases, scripts, absolute executable paths, interpreters, shell functions, and child processes can make runtime behavior broader than the visible descriptor.&lt;/p&gt;
&lt;p&gt;For that reason:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Prefer structured tools over shell commands when a structured tool exists.&lt;/li&gt;
&lt;li&gt;Keep shell allows narrow.&lt;/li&gt;
&lt;li&gt;Use the optional command sandbox or an outer container when host isolation is required.&lt;/li&gt;
&lt;li&gt;Treat &lt;code&gt;Bash(*)&lt;/code&gt; as broad host execution authority, not as a harmless convenience rule.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Unconditional execution guards&lt;span class="hx:absolute hx:-mt-20" id="unconditional-execution-guards"&gt;&lt;/span&gt;
&lt;a href="#unconditional-execution-guards" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;The shell execution path also blocks a small class of catastrophic and privilege-escalation commands at the execution chokepoint. These refusals apply independently of approval mode, including yolo and background execution.&lt;/p&gt;
&lt;p&gt;The privilege-escalation guard also prevents agent-initiated commands from hanging while waiting for an operating-system password prompt. If an administrator-level command is genuinely required, the user must run it directly outside the agent and then continue the workflow.&lt;/p&gt;
&lt;p&gt;Foreground shell commands run through &lt;code&gt;/bin/sh -c&lt;/code&gt;, have bounded output, and are terminated as a process group when their timeout expires. Sessions that support managed jobs can run long-lived commands in the background and control them through a separate process tool.&lt;/p&gt;
&lt;h2&gt;Git policy is argument-sensitive&lt;span class="hx:absolute hx:-mt-20" id="git-policy-is-argument-sensitive"&gt;&lt;/span&gt;
&lt;a href="#git-policy-is-argument-sensitive" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Treating all Git operations as one risk class would be both noisy and unsafe. &lt;code&gt;git status&lt;/code&gt; and &lt;code&gt;git push --force&lt;/code&gt; have radically different effects.&lt;/p&gt;
&lt;p&gt;yottacode&amp;rsquo;s unified Git tool accepts an argument array rather than a shell string:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;args&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;status&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;--short&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;This avoids invoking a shell and prevents control operators such as &lt;code&gt;;&lt;/code&gt;, &lt;code&gt;|&lt;/code&gt;, and &lt;code&gt;&amp;amp;&lt;/code&gt; from being interpreted as a second command.&lt;/p&gt;
&lt;p&gt;The tool has an allowlist-shaped read-only classifier. Operations such as &lt;code&gt;status&lt;/code&gt;, &lt;code&gt;diff&lt;/code&gt;, &lt;code&gt;log&lt;/code&gt;, &lt;code&gt;show&lt;/code&gt;, &lt;code&gt;blame&lt;/code&gt;, &lt;code&gt;grep&lt;/code&gt;, &lt;code&gt;ls-files&lt;/code&gt;, and &lt;code&gt;rev-parse&lt;/code&gt; can execute without normal approval when used in read-only forms. Ambiguous subcommands are inspected more carefully:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Bare &lt;code&gt;git branch&lt;/code&gt; can list branches, while a free branch name can create one.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;git stash list&lt;/code&gt; and &lt;code&gt;git stash show&lt;/code&gt; are reads; bare &lt;code&gt;git stash&lt;/code&gt; mutates state.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;git reflog show&lt;/code&gt; reads recovery history; &lt;code&gt;reflog expire&lt;/code&gt; and &lt;code&gt;reflog delete&lt;/code&gt; destroy it.&lt;/li&gt;
&lt;li&gt;An &lt;code&gt;--output&lt;/code&gt; option turns an otherwise read-like command into a file write and therefore falls back to approval.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Mutating, networked, destructive, unknown, or ambiguously flagged invocations require approval by default. The preview adds stronger warnings for operations such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;reset --hard&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;clean -f&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;rebase and other history rewrites&lt;/li&gt;
&lt;li&gt;forced pushes&lt;/li&gt;
&lt;li&gt;branch or remote-ref deletion&lt;/li&gt;
&lt;li&gt;worktree-overwriting checkout, switch, or restore operations&lt;/li&gt;
&lt;li&gt;destructive reflog operations&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The policy lesson is that &lt;strong&gt;operation semantics belong in the tool implementation&lt;/strong&gt;, while repository-specific authority belongs in permission rules. A generic &lt;code&gt;Git(*)&lt;/code&gt; allow discards much of that useful distinction.&lt;/p&gt;
&lt;h2&gt;Native GitHub tools separate reads from remote mutations&lt;span class="hx:absolute hx:-mt-20" id="native-github-tools-separate-reads-from-remote-mutations"&gt;&lt;/span&gt;
&lt;a href="#native-github-tools-separate-reads-from-remote-mutations" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The GitHub permission namespace uses canonical verbs rather than raw HTTP calls or a single unrestricted CLI surface.&lt;/p&gt;
&lt;p&gt;Examples include:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Github(read_pr)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Github(read_issue)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Github(read_pr_checks)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Github(create_pr)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Github(update_pr)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Github(add_pr_comment)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Github(rerun_pr_checks)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;This allows a policy such as:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;permissions&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;allow&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;Github(read_*)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;ask&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Github(create_pr)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Github(update_pr)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Github(add_pr_comment)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Github(rerun_pr_checks)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Read operations can remain low-friction while external mutations stay visible. The typed tools also validate operation-specific inputs—for example, pull-request titles and bodies—before making a network request and return structured failure states.&lt;/p&gt;
&lt;p&gt;Current GitHub rules resolve against the repository associated with the active working directory. They do not yet provide arbitrary owner/repository scoping inside the rule itself, so &lt;code&gt;Github(*)&lt;/code&gt; is broader than it may first appear.&lt;/p&gt;
&lt;h2&gt;Path validation is a separate enforcement layer&lt;span class="hx:absolute hx:-mt-20" id="path-validation-is-a-separate-enforcement-layer"&gt;&lt;/span&gt;
&lt;a href="#path-validation-is-a-separate-enforcement-layer" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;A permission decision answers whether a descriptor is allowed, denied, or approval-gated. It does not replace validation of the actual filesystem target.&lt;/p&gt;
&lt;p&gt;Structured write tools normally restrict mutations to the active workspace or explicitly allowed roots. The validator resolves parent paths and checks containment, which prevents a path that appears to be inside the repository from escaping through a symlinked parent.&lt;/p&gt;
&lt;p&gt;Symlinked write targets are rejected by default unless symlink following is explicitly enabled. Protected targets include yottacode-managed state, effective permission files, sensitive memory and authentication locations, and critical Git internals such as &lt;code&gt;.git/index&lt;/code&gt;, &lt;code&gt;.git/refs&lt;/code&gt;, and &lt;code&gt;.git/objects&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This yields an important property:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;permission allow != path-validation bypass&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;A rule such as &lt;code&gt;Edit(**)&lt;/code&gt; can remove a normal approval prompt for covered edits, but it does not grant structured mutators the ability to overwrite protected application state or escape the configured roots.&lt;/p&gt;
&lt;p&gt;Read protection is deliberately narrower because software agents need to inspect ordinary source, configuration, and dotfiles. However, structured automatic reads block common credential-bearing locations, including SSH, cloud, GitHub, Docker, Kubernetes, package-registry, database-password, and project environment files. An explicitly approved shell command remains the escape hatch when a user intentionally needs to inspect one of those files.&lt;/p&gt;
&lt;h2&gt;Modes change interaction, not policy ownership&lt;span class="hx:absolute hx:-mt-20" id="modes-change-interaction-not-policy-ownership"&gt;&lt;/span&gt;
&lt;a href="#modes-change-interaction-not-policy-ownership" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;yottacode&amp;rsquo;s session modes are overlays on the persistent permission policy:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mode&lt;/th&gt;
&lt;th&gt;Operational effect&lt;/th&gt;
&lt;th&gt;Boundaries that remain&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Normal&lt;/td&gt;
&lt;td&gt;Uses each tool&amp;rsquo;s default approval behavior&lt;/td&gt;
&lt;td&gt;Policy, trust, path, and hard guards&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Plan&lt;/td&gt;
&lt;td&gt;Restricts ordinary mutations during research and planning&lt;/td&gt;
&lt;td&gt;Policy plus plan-mode write boundary&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auto&lt;/td&gt;
&lt;td&gt;Auto-approves many routine edits; keeps a safety floor for higher-risk tools&lt;/td&gt;
&lt;td&gt;Explicit ask/deny and independent guards&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Yolo&lt;/td&gt;
&lt;td&gt;Skips remaining non-boundary prompts and raises the iteration budget&lt;/td&gt;
&lt;td&gt;Explicit ask/deny and independent guards&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The distinction is critical for architecture reviews:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Auto and yolo are session postures.&lt;/strong&gt; They alter prompt frequency.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Permission files are resource-aware policy.&lt;/strong&gt; They govern matching tool descriptors across sessions.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Neither is an operating-system sandbox.&lt;/strong&gt; Isolation is a separate deployment concern.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A targeted persistent allow is often safer than globally reducing interaction because it authorizes only the descriptor that was reviewed.&lt;/p&gt;
&lt;h2&gt;Validate policy before trusting it&lt;span class="hx:absolute hx:-mt-20" id="validate-policy-before-trusting-it"&gt;&lt;/span&gt;
&lt;a href="#validate-policy-before-trusting-it" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;yottacode exposes a dry-run evaluator that uses the same descriptor extraction and permission evaluation path as live tool calls:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode permissions &lt;span class="nb"&gt;test&lt;/span&gt; bash &lt;span class="s2"&gt;&amp;#34;go test ./...&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode permissions &lt;span class="nb"&gt;test&lt;/span&gt; run_bash &lt;span class="s1"&gt;&amp;#39;{&amp;#34;command&amp;#34;:&amp;#34;git push origin main --force&amp;#34;}&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode permissions &lt;span class="nb"&gt;test&lt;/span&gt; edit_file &lt;span class="s1"&gt;&amp;#39;{&amp;#34;path&amp;#34;:&amp;#34;internal/auth/policy.go&amp;#34;}&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode permissions &lt;span class="nb"&gt;test&lt;/span&gt; pr_create &lt;span class="s1"&gt;&amp;#39;{&amp;#34;base&amp;#34;:&amp;#34;main&amp;#34;,&amp;#34;title&amp;#34;:&amp;#34;Test&amp;#34;,&amp;#34;body&amp;#34;:&amp;#34;Body&amp;#34;}&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The result includes the normalized call, verdict, and matching source rule:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tool: run_bash
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;args: {&amp;#34;command&amp;#34;:&amp;#34;git push origin main --force&amp;#34;}
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;verdict: ask
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;matched: Bash(git push *) [/repo/.yottacode/permissions.json]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;This is more reliable than visually guessing how a wildcard will behave. It also reveals the exact descriptor used by higher-level workflow helpers, where the permission namespace may not match the tool&amp;rsquo;s registry name.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;yottacode doctor&lt;/code&gt; provides policy-file diagnostics. It reports malformed or unreadable policies as errors and broad, unknown, or shadowed rules as warnings. Warnings are advisory: a valid broad rule is still enforced exactly as written.&lt;/p&gt;
&lt;h2&gt;A safer starter policy&lt;span class="hx:absolute hx:-mt-20" id="a-safer-starter-policy"&gt;&lt;/span&gt;
&lt;a href="#a-safer-starter-policy" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;A project policy should authorize the repository&amp;rsquo;s real workflow, not an abstract set of commands. For a Go repository, a narrow starting point might look like this:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;permissions&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;allow&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Tests(go test ./...)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Tests(go test -short ./...)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Edit(cmd/**)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Edit(internal/**)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Edit(docs/**)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Github(read_*)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;ask&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Read(**/.env*)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Git(push *)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Github(create_pr)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Github(update_pr)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Github(add_pr_comment)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Github(rerun_pr_checks)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;deny&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Bash(curl * | sh)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Bash(wget * | sh)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Edit(/etc/**)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Write(/usr/**)&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="s2"&gt;&amp;#34;Delete(/etc/**)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;This example intentionally does not add permission rules for ordinary read-only Git inspection: the Git tool already classifies safe read forms without prompting. It also uses the &lt;code&gt;Tests&lt;/code&gt; namespace for the structured test runner instead of authorizing a broader shell prefix.&lt;/p&gt;
&lt;p&gt;Do not copy the policy blindly. Verify each line from the repository root:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode permissions &lt;span class="nb"&gt;test&lt;/span&gt; run_tests &lt;span class="s1"&gt;&amp;#39;{&amp;#34;command&amp;#34;:&amp;#34;go test ./...&amp;#34;,&amp;#34;path&amp;#34;:&amp;#34;.&amp;#34;}&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode permissions &lt;span class="nb"&gt;test&lt;/span&gt; edit_file &lt;span class="s1"&gt;&amp;#39;{&amp;#34;path&amp;#34;:&amp;#34;internal/agent/loop.go&amp;#34;}&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode permissions &lt;span class="nb"&gt;test&lt;/span&gt; git &lt;span class="s1"&gt;&amp;#39;{&amp;#34;args&amp;#34;:[&amp;#34;push&amp;#34;,&amp;#34;origin&amp;#34;,&amp;#34;HEAD&amp;#34;]}&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode permissions &lt;span class="nb"&gt;test&lt;/span&gt; pr_create &lt;span class="s1"&gt;&amp;#39;{&amp;#34;base&amp;#34;:&amp;#34;main&amp;#34;,&amp;#34;title&amp;#34;:&amp;#34;Policy test&amp;#34;,&amp;#34;body&amp;#34;:&amp;#34;Not executed&amp;#34;}&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The command evaluates policy only; it does not execute the proposed operation.&lt;/p&gt;
&lt;h2&gt;Threat-model boundaries and limitations&lt;span class="hx:absolute hx:-mt-20" id="threat-model-boundaries-and-limitations"&gt;&lt;/span&gt;
&lt;a href="#threat-model-boundaries-and-limitations" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The permission system narrows authority, but it does not eliminate risk.&lt;/p&gt;
&lt;h3&gt;Broad rules remain broad&lt;span class="hx:absolute hx:-mt-20" id="broad-rules-remain-broad"&gt;&lt;/span&gt;
&lt;a href="#broad-rules-remain-broad" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&lt;code&gt;Bash(*)&lt;/code&gt;, &lt;code&gt;Git(*)&lt;/code&gt;, &lt;code&gt;Github(*)&lt;/code&gt;, &lt;code&gt;MCP(*)&lt;/code&gt;, and repository-wide edit rules can silently authorize substantially more than their authors intended. Pattern linting can warn, but it does not rewrite policy.&lt;/p&gt;
&lt;h3&gt;Descriptor matching cannot prove runtime behavior&lt;span class="hx:absolute hx:-mt-20" id="descriptor-matching-cannot-prove-runtime-behavior"&gt;&lt;/span&gt;
&lt;a href="#descriptor-matching-cannot-prove-runtime-behavior" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;A shell descriptor is not a full behavioral model of every script, executable, alias, interpreter, or descendant process. Permission matching helps decide whether to prompt; a sandbox constrains what an approved process can reach.&lt;/p&gt;
&lt;h3&gt;Human approval can still be wrong&lt;span class="hx:absolute hx:-mt-20" id="human-approval-can-still-be-wrong"&gt;&lt;/span&gt;
&lt;a href="#human-approval-can-still-be-wrong" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;An accurate preview does not guarantee an accurate decision. Users can approve destructive commands, misunderstand external effects, or overlook a target in a large change.&lt;/p&gt;
&lt;h3&gt;Remote mutations may be irreversible&lt;span class="hx:absolute hx:-mt-20" id="remote-mutations-may-be-irreversible"&gt;&lt;/span&gt;
&lt;a href="#remote-mutations-may-be-irreversible" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Comments, issue changes, published packages, deleted remote refs, and calls to external systems may not have an automatic rollback path.&lt;/p&gt;
&lt;h3&gt;Checkpoints do not cover every side effect&lt;span class="hx:absolute hx:-mt-20" id="checkpoints-do-not-cover-every-side-effect"&gt;&lt;/span&gt;
&lt;a href="#checkpoints-do-not-cover-every-side-effect" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Checkpoint restoration can recover changes made through registered file mutation paths. It is not a transaction manager for arbitrary shell effects, Git history changes, browser activity, or remote services.&lt;/p&gt;
&lt;h3&gt;Policy requires maintenance&lt;span class="hx:absolute hx:-mt-20" id="policy-requires-maintenance"&gt;&lt;/span&gt;
&lt;a href="#policy-requires-maintenance" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;New tools, renamed workflows, different repository layouts, and new deployment environments can make an old rule too narrow, too broad, or irrelevant. Policy should be reviewed like code.&lt;/p&gt;
&lt;h2&gt;Design guidance for production AI systems&lt;span class="hx:absolute hx:-mt-20" id="design-guidance-for-production-ai-systems"&gt;&lt;/span&gt;
&lt;a href="#design-guidance-for-production-ai-systems" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The implementation suggests several principles that generalize beyond yottacode:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Model authorization around tool and resource descriptors.&lt;/strong&gt; A global autonomy flag is too coarse for mixed-risk workflows.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Use deny and ask as first-class outcomes.&lt;/strong&gt; A binary allowlist cannot express mandatory human review.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Require complete coverage for batched operations.&lt;/strong&gt; Partial authorization should never silently approve an entire multi-resource call.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Keep semantic risk classification close to the tool.&lt;/strong&gt; Git, GitHub, browser, and shell operations need domain-specific interpretation.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Separate authorization from containment.&lt;/strong&gt; Policy, filesystem validation, sandboxing, trust, and execution guards solve different problems.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Make policy testable without side effects.&lt;/strong&gt; Operators need to inspect the exact descriptor and verdict before relying on a rule.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Preserve provenance.&lt;/strong&gt; A decision should identify which rule and policy source produced it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fail toward review when parsing is ambiguous.&lt;/strong&gt; Unparseable commands should ask rather than inherit a broad allow.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;These properties make an agent&amp;rsquo;s authority more inspectable and auditable, even though they cannot make arbitrary code execution risk-free.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;span class="hx:absolute hx:-mt-20" id="conclusion"&gt;&lt;/span&gt;
&lt;a href="#conclusion" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;yottacode permissions are not a single autonomy control. They are a target-aware policy layer that evaluates stable permission namespaces and operation descriptors, combines persistent and session rules with explicit precedence, and then hands the result to independent approval and safety mechanisms.&lt;/p&gt;
&lt;p&gt;The design lets routine work become less interruptive without classifying every action as equally trusted. Read-only Git and GitHub inspection can remain fast. A normally automatic read can be forced through approval. A multi-file edit is allowed only when every target is covered. Protected paths and hard execution guards remain outside the reach of a convenience allow. Explicit deny and ask rules remain meaningful even when the session is operating in a less interactive mode.&lt;/p&gt;
&lt;p&gt;That is the practical goal for production coding agents: not unrestricted autonomy, but narrow, testable, and observable authority.&lt;/p&gt;
&lt;h2&gt;Test your first rule&lt;span class="hx:absolute hx:-mt-20" id="test-your-first-rule"&gt;&lt;/span&gt;
&lt;a href="#test-your-first-rule" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Read the &lt;a href="../docs/permissions/"&gt;yottacode permission policy documentation&lt;/a&gt;, then use &lt;code&gt;yottacode permissions test&lt;/code&gt; to evaluate one narrowly scoped rule against a hypothetical tool call before adding it to a live workflow.&lt;/p&gt;</description></item><item><title>yottacode v0.5.0: Hardened for Daily Engineering</title><link>https://yottacode.ai/blog/yottacode-v0-5-0-hardened-daily-engineering/</link><pubDate>Wed, 14 Oct 2026 00:00:00 +0000</pubDate><guid>https://yottacode.ai/blog/yottacode-v0-5-0-hardened-daily-engineering/</guid><description>
&lt;p&gt;yottacode v0.5.0 is out.&lt;/p&gt;
&lt;p&gt;This release is a hardening release for people using yottacode on real repositories: longer sessions, more consequential edits, parallel work, CI workflows, and local-first tooling all received focused improvements.&lt;/p&gt;
&lt;h2&gt;What changed in v0.5.0&lt;span class="hx:absolute hx:-mt-20" id="what-changed-in-v050"&gt;&lt;/span&gt;
&lt;a href="#what-changed-in-v050" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Deterministic deep research&lt;/strong&gt; — &lt;code&gt;/deep-research&lt;/code&gt; plans independent questions, runs researchers in parallel, verifies claims, and writes a cited report with explicit coverage and cost reporting.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Safer approvals and permissions&lt;/strong&gt; — approval cards are clearer, chained commands and more tool families can save narrowly scoped rules, and policy matching is hardened across worktrees and edits.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;More reliable edits&lt;/strong&gt; — receipt-based and line-addressed hashline edits reduce stale-context failures and make large-file changes safer to apply.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Browser automation foundations&lt;/strong&gt; — experimental browser tools use isolated profiles, explicit approvals, safer navigation boundaries, tab tracking, and human handoff for verification challenges.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Stronger document tooling&lt;/strong&gt; — native xlsx/pptx paths and sandbox-aware docx/pdf helpers now cover more local document workflows, including structured PDF extraction and OCR fallbacks.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;ACP and session improvements&lt;/strong&gt; — model/session controls, replay, memory, recall, and context handling are more robust across long-running workflows.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sandbox and runtime hardening&lt;/strong&gt; — command execution, background jobs, credential handling, and subprocess lifecycle behavior received additional safeguards.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Homebrew distribution&lt;/strong&gt; — stable releases are now available through the official &lt;code&gt;yottadynamics/homebrew-yottacode&lt;/code&gt; tap for macOS Intel and Apple Silicon.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The release includes the cumulative work since &lt;code&gt;v0.5.0-rc.2&lt;/code&gt;, including approval UX improvements, edit reliability, browser hardening, native web search, shell transcript logs, and the release packaging path.&lt;/p&gt;
&lt;h2&gt;Install v0.5.0&lt;span class="hx:absolute hx:-mt-20" id="install-v050"&gt;&lt;/span&gt;
&lt;a href="#install-v050" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Linux and macOS:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl -fsSL https://yottacode.ai/cli/install.sh &lt;span class="p"&gt;|&lt;/span&gt; bash
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode setup&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;macOS with Homebrew:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;brew install yottadynamics/yottacode/yottacode
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode setup&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The release supports Linux and macOS on amd64 and arm64. Windows users should run yottacode under WSL.&lt;/p&gt;
&lt;h2&gt;Read the release&lt;span class="hx:absolute hx:-mt-20" id="read-the-release"&gt;&lt;/span&gt;
&lt;a href="#read-the-release" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/yottadynamics/yottacode/releases/tag/v0.5.0"target="_blank" rel="noopener"&gt;Release notes on GitHub&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/installation/"&gt;Installation guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/quickstart/"&gt;Quickstart&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/tools/"&gt;Tools reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/security-and-allow-lists/"&gt;Security and allow lists&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Try it on a real repository and tell us where the agent loop is useful — or where it still gets in your way.&lt;/p&gt;
&lt;h2&gt;Related YottaCode guides&lt;span class="hx:absolute hx:-mt-20" id="related-yottacode-guides"&gt;&lt;/span&gt;
&lt;a href="#related-yottacode-guides" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="../docs/permissions/"&gt;Permissions and security boundaries&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/tools/"&gt;Built-in tools reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../blog/introducing-yottacode-skills/"&gt;Reusable agent workflows with yottacode-skills&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;— The YottaDynamics Team&lt;/p&gt;</description></item><item><title>yottacode v0.4.0: The Public Launch Cut</title><link>https://yottacode.ai/blog/yottacode-v0-4-0-public-launch-cut/</link><pubDate>Thu, 13 Aug 2026 00:00:00 +0000</pubDate><guid>https://yottacode.ai/blog/yottacode-v0-4-0-public-launch-cut/</guid><description>
&lt;p&gt;yottacode v0.4.0 is now the public launch cut.&lt;/p&gt;
&lt;p&gt;This release is not a single headline feature. It is the point where the day-to-day agent loop is strong enough to describe plainly: open a real repository, ask for a real engineering task, inspect the plan, approve the changes, run verification, and carry the work through GitHub without leaving the terminal.&lt;/p&gt;
&lt;p&gt;The release also keeps the framing conservative. v0.4.0 ships the capabilities that are real today; broader launch polish such as Homebrew packaging, full paid-provider spend estimates, and broader PDF/Office ingestion are intentionally left for a later cycle.&lt;/p&gt;
&lt;h2&gt;What changed in v0.4.0&lt;span class="hx:absolute hx:-mt-20" id="what-changed-in-v040"&gt;&lt;/span&gt;
&lt;a href="#what-changed-in-v040" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The short version: yottacode is a stronger daily-driver terminal coding agent.&lt;/p&gt;
&lt;p&gt;Highlights include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Broader provider support&lt;/strong&gt; — Google Vertex AI joins OpenAI, Anthropic, Gemini, xAI, Ollama, ChatGPT OAuth, Copilot, and OpenAI-compatible endpoints.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Advisor/implementer routing&lt;/strong&gt; — &lt;code&gt;/advisor&lt;/code&gt; and routed Plan/Auto flows help split planning, review, and implementation work across model roles.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Memory and recall hardening&lt;/strong&gt; — semantic session recall, sensitive-project quarantine, memory capture reminders, audit/health reports, and approval-gated curation make continuity more dependable.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Subagents and dispatch improvements&lt;/strong&gt; — background subagents, local code review, worktree-based dispatch, token-budget enforcement, safer worker shutdown, and orphaned worktree cleanup improve parallel workflows.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GA LSP code intelligence&lt;/strong&gt; — diagnostics, document symbols, signature help, type definitions, implementations, selection ranges, document highlights, rename/format previews, and safer WorkspaceEdit application are now part of the local code-intelligence surface.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Offline structural ranges&lt;/strong&gt; — &lt;code&gt;syntax_range&lt;/code&gt; provides parser-backed edit ranges for Go, TypeScript/JavaScript, Python, and Rust even when no language server is running.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GitHub PR workflow helpers&lt;/strong&gt; — yottacode can inspect PR checks, fetch failed logs, watch CI, and rerun failed jobs through typed tools instead of brittle shell transcripts.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Local document and media foundations&lt;/strong&gt; — experimental document ingestion/generation and ffmpeg/ffprobe marketing-video tools are available for local-first workflows.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;TUI polish&lt;/strong&gt; — the fullscreen transcript, grouped tool cards, startup redesign, mode indicators, approval modal scrolling, mouse handling, and theme work make long sessions easier to follow.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Read the full release notes on GitHub: &lt;a href="https://github.com/yottadynamics/yottacode/releases/tag/v0.4.0"target="_blank" rel="noopener"&gt;yottacode v0.4.0&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Why this release matters&lt;span class="hx:absolute hx:-mt-20" id="why-this-release-matters"&gt;&lt;/span&gt;
&lt;a href="#why-this-release-matters" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;yottacode is designed around a few principles:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Use the model you choose.&lt;/strong&gt; The agent should not force a single provider or hosted workflow.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Keep the developer in control.&lt;/strong&gt; Plans, diffs, approvals, path validation, and checkpoints matter because agentic coding still needs reviewable boundaries.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Make memory useful without making it mysterious.&lt;/strong&gt; Durable user and project context should compound across sessions while staying inspectable and curatable.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Treat GitHub workflows as first-class engineering work.&lt;/strong&gt; Issues, commits, PRs, reviews, checks, and CI logs are part of shipping software, not side quests outside the terminal.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Prefer local-first foundations.&lt;/strong&gt; Sessions, memory, checkpoints, and project rules live on your machine; code only goes to the model provider you configure.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Those principles show up across the v0.4.0 docs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../docs/installation/"&gt;Installation&lt;/a&gt; for the one-line installer and update flow.&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/providers/"&gt;Providers&lt;/a&gt; and &lt;a href="../docs/models/"&gt;Models&lt;/a&gt; for provider setup, model switching, and routing.&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/memory/"&gt;Memory&lt;/a&gt; and &lt;a href="../docs/sessions/"&gt;Sessions&lt;/a&gt; for durable context and recall.&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/lsp/"&gt;LSP&lt;/a&gt; for local code intelligence.&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/github/"&gt;GitHub&lt;/a&gt; for issue, PR, and CI workflows.&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/tools/"&gt;Tools&lt;/a&gt; for built-in tools and approval behavior.&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/security-and-allow-lists/"&gt;Security and allow-lists&lt;/a&gt; for trust, path policy, and operational boundaries.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Try it&lt;span class="hx:absolute hx:-mt-20" id="try-it"&gt;&lt;/span&gt;
&lt;a href="#try-it" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Install on Linux or macOS:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl -fsSL https://raw.githubusercontent.com/yottadynamics/yottacode/main/install.sh &lt;span class="p"&gt;|&lt;/span&gt; bash&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Then run setup once:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode setup&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Open a repository and start with a real task:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Good first prompts:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Review this repo and suggest the safest first bug to fix.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Find why the tests are failing, explain the issue, then propose a fix.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Update this GitOps YAML for the new image tag and show me the diff before any commit.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If you want to start without API keys, use a local Ollama model and follow the &lt;a href="../docs/installation/"&gt;installation guide&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;What comes next&lt;span class="hx:absolute hx:-mt-20" id="what-comes-next"&gt;&lt;/span&gt;
&lt;a href="#what-comes-next" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;v0.4.0 is the launch cut, not the end state.&lt;/p&gt;
&lt;p&gt;The next cycle focuses on the polish that should not have blocked this release: packaging expansion, fuller launch assets, cost-visibility improvements, broader document workflows, and continued hardening from real-world use.&lt;/p&gt;
&lt;p&gt;For now, the most useful thing you can do is try yottacode on a real repository and tell us where the loop feels sharp — or where it still gets in your way.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/yottadynamics/yottacode"target="_blank" rel="noopener"&gt;github.com/yottadynamics/yottacode&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Documentation:&lt;/strong&gt; &lt;a href="https://yottacode.ai/docs"target="_blank" rel="noopener"&gt;yottacode.ai/docs&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Release notes:&lt;/strong&gt; &lt;a href="https://github.com/yottadynamics/yottacode/releases/tag/v0.4.0"target="_blank" rel="noopener"&gt;v0.4.0&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;— The YottaDynamics Team&lt;/p&gt;</description></item><item><title>Introducing yottacode-skills: Reusable Agent Workflows for Real Engineering Work</title><link>https://yottacode.ai/blog/introducing-yottacode-skills/</link><pubDate>Mon, 20 Jul 2026 00:00:00 +0000</pubDate><guid>https://yottacode.ai/blog/introducing-yottacode-skills/</guid><description>
&lt;p&gt;AI coding agents are most useful when they do more than answer one prompt at a time.&lt;/p&gt;
&lt;p&gt;Real engineering work has repeatable loops: understand the problem, investigate the codebase, plan the change, implement it safely, run tests, review the diff, capture follow-up work, and hand off what changed. Those loops should not depend on remembering the perfect prompt every time.&lt;/p&gt;
&lt;p&gt;That is why we created &lt;strong&gt;&lt;a href="https://github.com/yottadynamics/yottacode-skills"target="_blank" rel="noopener"&gt;yottacode-skills&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;&lt;/strong&gt;: the official public Agent Skills catalog for yottacode.&lt;/p&gt;
&lt;h2&gt;What is yottacode-skills?&lt;span class="hx:absolute hx:-mt-20" id="what-is-yottacode-skills"&gt;&lt;/span&gt;
&lt;a href="#what-is-yottacode-skills" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;yottacode-skills is a free, curated repository of reusable agent workflows that yottacode can install with the &lt;code&gt;official/&amp;lt;name&amp;gt;&lt;/code&gt; source shortcut.&lt;/p&gt;
&lt;p&gt;Each skill is a small playbook for a specific kind of work. Instead of starting from a blank prompt, a skill gives the agent a clear operating pattern: when to use it, what steps to follow, what evidence to gather, what mistakes to avoid, and what output should look like.&lt;/p&gt;
&lt;p&gt;The repository follows the broader &lt;code&gt;skills.sh&lt;/code&gt; / &lt;code&gt;npx skills&lt;/code&gt; ecosystem layout:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;skills/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; diagnose/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; SKILL.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; security-auditor/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; SKILL.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; writing-plans/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; SKILL.md&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;That structure keeps skills readable, versionable, and easy to review. A skill is not hidden model behavior. It is plain text you can inspect before you use it.&lt;/p&gt;
&lt;h2&gt;Why skills matter&lt;span class="hx:absolute hx:-mt-20" id="why-skills-matter"&gt;&lt;/span&gt;
&lt;a href="#why-skills-matter" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Good agent workflows are not just about having a powerful model. They are about giving the agent the right process for the job.&lt;/p&gt;
&lt;p&gt;A debugging session should not look like a code-generation session. A security review should not look like a feature implementation. A plan-writing task should not silently drift into editing files before the approach is agreed.&lt;/p&gt;
&lt;p&gt;Skills make those differences explicit.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Skill&lt;/th&gt;
&lt;th&gt;What it helps with&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;diagnose&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Debugs reported failures through reproduce, minimize, hypothesize, instrument, fix, and regression-test.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;writing-plans&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Produces verifiable implementation plans for multi-file engineering tasks.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;executing-plans&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Executes an approved plan step by step with checkpoints and visible progress.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;security-auditor&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Reviews code for vulnerability patterns and defense-in-depth gaps.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;security-scanner&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Runs Trivy-based scans for CVEs, misconfigurations, secrets, licenses, and SBOMs.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;test-driven-development&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Guides feature and bug-fix work through the red-green-refactor loop.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;webapp-testing&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Drives local web apps through headless browser checks.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The goal is simple: make repeatable engineering behavior reusable.&lt;/p&gt;
&lt;h2&gt;Practical workflows, not prompt theater&lt;span class="hx:absolute hx:-mt-20" id="practical-workflows-not-prompt-theater"&gt;&lt;/span&gt;
&lt;a href="#practical-workflows-not-prompt-theater" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The initial catalog is intentionally engineering-focused. These are the kinds of workflows developers run every week:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;clarify a non-obvious change before planning it;&lt;/li&gt;
&lt;li&gt;debug a failure without guessing;&lt;/li&gt;
&lt;li&gt;review a Dockerfile for caching, security, image size, and reproducibility;&lt;/li&gt;
&lt;li&gt;investigate Git history with blame, pickaxe, and bisect;&lt;/li&gt;
&lt;li&gt;capture architectural decisions and durable project documentation;&lt;/li&gt;
&lt;li&gt;profile performance problems with baseline measurements;&lt;/li&gt;
&lt;li&gt;verify a fix before calling it done.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That last point matters. A useful skill should push the agent toward concrete evidence: tests run, files inspected, risks checked, assumptions called out. It should reduce vague assistant behavior, not add more of it.&lt;/p&gt;
&lt;h2&gt;Public by default&lt;span class="hx:absolute hx:-mt-20" id="public-by-default"&gt;&lt;/span&gt;
&lt;a href="#public-by-default" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;We made yottacode-skills public because agent workflows should be inspectable.&lt;/p&gt;
&lt;p&gt;If a skill influences how an agent plans, edits, tests, or reviews code, developers should be able to read it. Public skills also make collaboration easier: teams can fork the catalog, adapt a workflow to their environment, or contribute improvements back upstream.&lt;/p&gt;
&lt;p&gt;This is especially important for workflows that touch security, release readiness, and code review. The process should not be a black box.&lt;/p&gt;
&lt;h2&gt;Getting started&lt;span class="hx:absolute hx:-mt-20" id="getting-started"&gt;&lt;/span&gt;
&lt;a href="#getting-started" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Browse the catalog on GitHub:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Repository:&lt;/strong&gt; &lt;a href="https://github.com/yottadynamics/yottacode-skills"target="_blank" rel="noopener"&gt;github.com/yottadynamics/yottacode-skills&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then try a skill that matches the work in front of you:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;official/diagnose
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;official/security-scanner
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;official/writing-plans&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Use &lt;code&gt;diagnose&lt;/code&gt; when something is broken. Use &lt;code&gt;writing-plans&lt;/code&gt; when a change is broad enough that the approach should be designed before code changes begin. Use &lt;code&gt;security-scanner&lt;/code&gt; when you need a concrete scan rather than a purely manual review.&lt;/p&gt;
&lt;h2&gt;What comes next&lt;span class="hx:absolute hx:-mt-20" id="what-comes-next"&gt;&lt;/span&gt;
&lt;a href="#what-comes-next" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;yottacode-skills is the beginning of an open skills catalog, not the final shape of one.&lt;/p&gt;
&lt;p&gt;We plan to keep adding practical workflows, improve the existing ones as they are used on real projects, and make discovery and installation smoother inside yottacode itself.&lt;/p&gt;
&lt;p&gt;If you build with AI coding agents, the interesting question is no longer only “which model should I use?” It is also “what repeatable engineering workflows should my agent know how to run?”&lt;/p&gt;
&lt;p&gt;yottacode-skills is where we are starting to answer that in public.&lt;/p&gt;
&lt;h2&gt;Related YottaCode guides&lt;span class="hx:absolute hx:-mt-20" id="related-yottacode-guides"&gt;&lt;/span&gt;
&lt;a href="#related-yottacode-guides" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="../blog/yottacode-github-integrations/"&gt;GitHub workflows from the terminal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../blog/yottacode-v0-5-0-hardened-daily-engineering/"&gt;yottacode v0.5.0 hardening for daily engineering&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/subagents/"&gt;Subagents documentation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;— The YottaDynamics Team&lt;/p&gt;</description></item><item><title>yottacode and GitHub Integrations: Ship From Issue to PR Without Leaving Your Terminal</title><link>https://yottacode.ai/blog/yottacode-github-integrations/</link><pubDate>Wed, 21 Jan 2026 00:00:00 +0000</pubDate><guid>https://yottacode.ai/blog/yottacode-github-integrations/</guid><description>
&lt;p&gt;GitHub is where most software work becomes real: issues describe what needs to change, branches hold the implementation, pull requests carry the review, and CI decides whether the work is ready to merge.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;yottacode brings that GitHub loop directly into your terminal.&lt;/strong&gt; Instead of bouncing between shell commands, browser tabs, issue pages, PR forms, and review screens, you can ask yottacode to inspect the repo, reason about the change, run the right git operation, and prepare the GitHub artifact for you.&lt;/p&gt;
&lt;p&gt;Watch the walkthrough:&lt;/p&gt;
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"&gt;
&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/awV75TgV4TA?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"&gt;&lt;/iframe&gt;
&lt;/div&gt;
&lt;h2&gt;GitHub operations as first-class agent workflows&lt;span class="hx:absolute hx:-mt-20" id="github-operations-as-first-class-agent-workflows"&gt;&lt;/span&gt;
&lt;a href="#github-operations-as-first-class-agent-workflows" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;yottacode&amp;rsquo;s GitHub integration is built around slash commands that match the way developers already ship code. You can invoke those slash commands directly as part of CI/CD pipelines and workflows, or use natural language to ask yottacode to run the same git and GitHub operations.&lt;/p&gt;
&lt;p&gt;Depending on your comfort level, you can also allow specific git commands in the permission list so the agent does not ask for approval every time.&lt;/p&gt;
&lt;p&gt;&lt;img src="../images/yottacode-gitops.png" alt="yottacode GitHub and git commands" data-zoomable loading="lazy" /&gt;&lt;/p&gt;
&lt;p&gt;The current git and GitHub command set includes:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/git-commit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Composes and runs a one-line git commit.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/git-push&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Pushes the current branch to origin, sets upstream on first push, and surfaces the PR URL when one exists.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/git-create-pr [base]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Opens a pull request for the current branch.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/git-update-pr [ref]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Refreshes a PR&amp;rsquo;s title and body to match the current commit list.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/git-create-issue [title]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Creates a GitHub issue in the current repo.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/git-review-pr [ref]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Reviews a pull request by number or branch, defaulting to the current branch&amp;rsquo;s PR.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/git-implement-issue &amp;lt;n&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Implements a GitHub issue end-to-end: fetch, plan, branch, code, tests, commit, push, and draft PR.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;These are not just aliases for shell commands. They are structured workflows that let the agent gather context, draft the right message, ask for approval where needed, and keep the work tied to the repository state.&lt;/p&gt;
&lt;h2&gt;Commit and push with context&lt;span class="hx:absolute hx:-mt-20" id="commit-and-push-with-context"&gt;&lt;/span&gt;
&lt;a href="#commit-and-push-with-context" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;A good commit message should describe what changed without forcing you to manually summarize every staged hunk.&lt;/p&gt;
&lt;p&gt;With &lt;code&gt;/git-commit&lt;/code&gt;, yottacode reads the staged diff, checks the branch context, looks at recent commit style, and proposes a concise one-line subject before running the commit. That keeps commits consistent while still leaving the final action under your control.&lt;/p&gt;
&lt;p&gt;Then &lt;code&gt;/git-push&lt;/code&gt; handles the next step: pushing the current branch, setting the upstream when the branch is new, and showing the related PR URL when GitHub already has one.&lt;/p&gt;
&lt;h2&gt;Create and update pull requests from the terminal&lt;span class="hx:absolute hx:-mt-20" id="create-and-update-pull-requests-from-the-terminal"&gt;&lt;/span&gt;
&lt;a href="#create-and-update-pull-requests-from-the-terminal" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Opening a PR usually means collecting the commit list, describing the change, checking the base branch, and writing a reviewable summary. &lt;code&gt;/git-create-pr [base]&lt;/code&gt; turns that into a guided terminal flow.&lt;/p&gt;
&lt;p&gt;yottacode gathers the branch diff, commit log, and repository PR template, then drafts a title and body that explain what changed and why. If the branch is already under review, &lt;code&gt;/git-update-pr [ref]&lt;/code&gt; refreshes the title and body so the PR stays aligned with the latest commits instead of drifting from reality.&lt;/p&gt;
&lt;p&gt;That matters on real work. PR descriptions often go stale after the second or third revision. yottacode can keep the PR narrative synchronized with the code.&lt;/p&gt;
&lt;h2&gt;Create issues while the context is still fresh&lt;span class="hx:absolute hx:-mt-20" id="create-issues-while-the-context-is-still-fresh"&gt;&lt;/span&gt;
&lt;a href="#create-issues-while-the-context-is-still-fresh" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;When you discover a bug, missing test, or follow-up improvement during development, the best time to capture it is immediately.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/git-create-issue [title]&lt;/code&gt; lets yottacode draft a GitHub issue from the current repository context. It can use the local issue template when one exists, add the details that matter, and create the issue without making you leave the terminal.&lt;/p&gt;
&lt;p&gt;This is especially useful when a fix uncovers a larger design cleanup that should not be bundled into the current PR.&lt;/p&gt;
&lt;h2&gt;Review pull requests with an agent that reads the diff&lt;span class="hx:absolute hx:-mt-20" id="review-pull-requests-with-an-agent-that-reads-the-diff"&gt;&lt;/span&gt;
&lt;a href="#review-pull-requests-with-an-agent-that-reads-the-diff" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;code&gt;/git-review-pr [ref]&lt;/code&gt; gives yottacode the PR metadata, diff, and check status so it can review the change like a careful teammate. It looks for correctness issues, missing tests, unclear behavior, and risky edge cases.&lt;/p&gt;
&lt;p&gt;The goal is not to replace human review. The goal is to catch the obvious and non-obvious problems before a human has to spend attention on them.&lt;/p&gt;
&lt;h2&gt;Implement a GitHub issue end-to-end&lt;span class="hx:absolute hx:-mt-20" id="implement-a-github-issue-end-to-end"&gt;&lt;/span&gt;
&lt;a href="#implement-a-github-issue-end-to-end" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The most powerful workflow is &lt;code&gt;/git-implement-issue &amp;lt;n&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Give yottacode an issue number and it can:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Fetch the issue and recent discussion.&lt;/li&gt;
&lt;li&gt;Build an implementation plan.&lt;/li&gt;
&lt;li&gt;Create an isolated branch.&lt;/li&gt;
&lt;li&gt;Edit the code.&lt;/li&gt;
&lt;li&gt;Add or update tests.&lt;/li&gt;
&lt;li&gt;Run verification.&lt;/li&gt;
&lt;li&gt;Commit the result.&lt;/li&gt;
&lt;li&gt;Push the branch.&lt;/li&gt;
&lt;li&gt;Open a draft pull request.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That turns GitHub issues into executable work orders while preserving the normal review path your team already uses.&lt;/p&gt;
&lt;h2&gt;Designed for developer control&lt;span class="hx:absolute hx:-mt-20" id="designed-for-developer-control"&gt;&lt;/span&gt;
&lt;a href="#designed-for-developer-control" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;GitHub automation should not mean silent automation.&lt;/p&gt;
&lt;p&gt;yottacode keeps the developer in the loop with approval-gated operations, visible diffs, branch-aware git behavior, and explicit PR or issue drafts before they are posted. The agent can do the repetitive work, but you still decide what lands in the repository.&lt;/p&gt;
&lt;p&gt;That balance is the point: faster GitHub workflows without giving up review, traceability, or control.&lt;/p&gt;
&lt;h2&gt;Try it in your repo&lt;span class="hx:absolute hx:-mt-20" id="try-it-in-your-repo"&gt;&lt;/span&gt;
&lt;a href="#try-it-in-your-repo" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Install yottacode, open a repository with GitHub issues or pull requests, and try the workflow that matches where you are:&lt;/p&gt;
&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Review the current branch&amp;#39;s PR&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/git-review-pr
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Create a pull request from the current branch&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/git-create-pr
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Implement an issue end-to-end&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/git-implement-issue &lt;span class="m"&gt;42&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;yottacode is built for the full development loop: understand the task, change the code, test it, commit it, and move it through GitHub.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/yottadynamics/yottacode"target="_blank" rel="noopener"&gt;yottadynamics/yottacode&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Docs&lt;/strong&gt;: &lt;a href="https://yottacode.ai/docs"target="_blank" rel="noopener"&gt;yottacode.ai/docs&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Video walkthrough&lt;/strong&gt;: &lt;a href="https://youtu.be/awV75TgV4TA"target="_blank" rel="noopener"&gt;yottacode GitHub integrations&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Related YottaCode guides&lt;span class="hx:absolute hx:-mt-20" id="related-yottacode-guides"&gt;&lt;/span&gt;
&lt;a href="#related-yottacode-guides" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="../blog/introducing-yottacode-skills/"&gt;Reusable agent workflows with yottacode-skills&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/github/"&gt;GitHub integration documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../docs/permissions/"&gt;Permissions and approval rules&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;— The YottaDynamics Team&lt;/p&gt;</description></item><item><title>Announcing YottaCode — An Autonomous AI Coding Agent for Your Terminal</title><link>https://yottacode.ai/blog/announcing-yottacode-public-release/</link><pubDate>Tue, 20 Jan 2026 00:00:00 +0000</pubDate><guid>https://yottacode.ai/blog/announcing-yottacode-public-release/</guid><description>
&lt;p&gt;Today we&amp;rsquo;re excited to announce the public release of &lt;strong&gt;YottaCode&lt;/strong&gt; — an autonomous, self-learning AI coding agent that runs directly in your terminal.&lt;/p&gt;
&lt;h2&gt;What is YottaCode?&lt;span class="hx:absolute hx:-mt-20" id="what-is-yottacode"&gt;&lt;/span&gt;
&lt;a href="#what-is-yottacode" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;YottaCode is a command-line AI agent that helps you code, debug, and ship software from your terminal. Unlike typical coding assistants that just autocomplete or chat, YottaCode &lt;strong&gt;takes action&lt;/strong&gt; — it reads your codebase, writes files, runs tests, manages git, opens PRs, and learns from every interaction.&lt;/p&gt;
&lt;h2&gt;Key capabilities&lt;span class="hx:absolute hx:-mt-20" id="key-capabilities"&gt;&lt;/span&gt;
&lt;a href="#key-capabilities" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Autonomous multi-step tasks&lt;/strong&gt; — Give it a goal (&amp;ldquo;add OAuth login&amp;rdquo;, &amp;ldquo;refactor the auth module&amp;rdquo;, &amp;ldquo;fix the flaky test&amp;rdquo;) and it plans, implements, tests, and iterates&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Self-learning memory&lt;/strong&gt; — Plain-text, grep-able memory that gets sharper the more you use it. You own &lt;code&gt;USER.md&lt;/code&gt;, the agent curates the rest&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Use any model, switch any time&lt;/strong&gt; — Native adapters for Anthropic, OpenAI, Gemini, xAI, Ollama, plus ChatGPT/Copilot OAuth. Swap mid-session with &lt;code&gt;/model &amp;lt;name&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Built-in security&lt;/strong&gt; — Per-workspace trust prompts, approval modals with syntax-highlighted diffs, allow/ask/deny rules, and write-path validation that firewalls secrets&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Deep GitHub integration&lt;/strong&gt; — Typed GitHub adapter (no &lt;code&gt;gh&lt;/code&gt; CLI needed). Read issues, open PRs, review code, and take issues end-to-end&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Plan mode&lt;/strong&gt; — Read-only investigation that drafts a plan you approve before any code changes&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rewind &amp;amp; resume&lt;/strong&gt; — Every prompt auto-checkpoints. Double-tap Esc to rollback. Sessions save atomically; &lt;code&gt;/recall&lt;/code&gt; searches all history&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Parallel worktrees&lt;/strong&gt; — Run multiple agents on the same repo without collisions&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Extensible&lt;/strong&gt; — Custom slash commands via markdown files, MCP server support, reusable skills&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Getting started&lt;span class="hx:absolute hx:-mt-20" id="getting-started"&gt;&lt;/span&gt;
&lt;a href="#getting-started" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class="hextra-code-block hx:relative hx:mt-6 hx:first:mt-0 hx:group/code"&gt;
&lt;div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Install on Linux or macOS&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl -fsSL https://yottacode.ai/cli/install.sh &lt;span class="p"&gt;|&lt;/span&gt; bash
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Run the interactive setup wizard&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yottacode setup&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="hextra-code-copy-btn-container hx:opacity-0 hx:transition hx:group-hover/code:opacity-100 hx:flex hx:gap-1 hx:absolute hx:m-[11px] hx:right-0 hx:top-0"&gt;
&lt;button
class="hextra-code-copy-btn hx:group/copybtn hx:cursor-pointer hx:transition-all hx:active:opacity-50 hx:bg-primary-700/5 hx:border hx:border-black/5 hx:text-gray-600 hx:hover:text-gray-900 hx:rounded-md hx:p-1.5 hx:dark:bg-primary-300/10 hx:dark:border-white/10 hx:dark:text-gray-400 hx:dark:hover:text-gray-50"
title="Copy code"
aria-label="Copy code"
data-copied-label="Copied!"
&gt;
&lt;div class="hextra-copy-icon hx:group-[.copied]/copybtn:hidden hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;div class="hextra-success-icon hx:hidden hx:group-[.copied]/copybtn:block hx:pointer-events-none hx:h-4 hx:w-4"&gt;&lt;/div&gt;
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Watch the YottaCode setup walkthrough:&lt;/p&gt;
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"&gt;
&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/BRLFqMnvVPk?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"&gt;&lt;/iframe&gt;
&lt;/div&gt;
&lt;h2&gt;Built for developers, by developers&lt;span class="hx:absolute hx:-mt-20" id="built-for-developers-by-developers"&gt;&lt;/span&gt;
&lt;a href="#built-for-developers-by-developers" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;YottaCode is &lt;strong&gt;free and open source&lt;/strong&gt; (MIT license). It&amp;rsquo;s a single static Go binary — no runtime dependencies, no telemetry, no hidden defaults that silently bill you.&lt;/p&gt;
&lt;p&gt;We built it because we wanted an AI agent that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Works in the terminal where we already live&lt;/li&gt;
&lt;li&gt;Doesn&amp;rsquo;t lock us into one model provider&lt;/li&gt;
&lt;li&gt;Respects our security boundaries&lt;/li&gt;
&lt;li&gt;Learns our codebase and preferences over time&lt;/li&gt;
&lt;li&gt;Can actually &lt;em&gt;do&lt;/em&gt; the work, not just suggest it&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Join us&lt;span class="hx:absolute hx:-mt-20" id="join-us"&gt;&lt;/span&gt;
&lt;a href="#join-us" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/yottadynamics/yottacode"target="_blank" rel="noopener"&gt;yottadynamics/yottacode&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt; — star, watch, contribute&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Documentation&lt;/strong&gt;: &lt;a href="https://yottacode.ai/docs"target="_blank" rel="noopener"&gt;yottacode.ai/docs&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Issues&lt;/strong&gt;: &lt;a href="https://github.com/yottadynamics/yottacode/issues"target="_blank" rel="noopener"&gt;Report bugs or request features&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Community&lt;/strong&gt;: Follow &lt;a href="https://x.com/YottaDynamics"target="_blank" rel="noopener"&gt;@YottaDynamics&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt; and &lt;a href="https://x.com/WayOfMandalore_"target="_blank" rel="noopener"&gt;@WayOfMandalore_&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt; for updates&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;&lt;em&gt;Thanks to everyone who tested early versions and gave feedback. Let&amp;rsquo;s build something great together.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;— The YottaDynamics Team&lt;/p&gt;</description></item><item><title>Welcome to the YottaCode Blog</title><link>https://yottacode.ai/blog/welcome-to-yottacode-blog/</link><pubDate>Thu, 15 Jan 2026 00:00:00 +0000</pubDate><guid>https://yottacode.ai/blog/welcome-to-yottacode-blog/</guid><description>
&lt;p&gt;We&amp;rsquo;re excited to announce the official &lt;strong&gt;YottaCode blog&lt;/strong&gt; — your go-to place for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Release announcements&lt;/strong&gt; — what&amp;rsquo;s new in each release&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Deep dives&lt;/strong&gt; — deep dives into architecture, features, and design decisions&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tutorials&lt;/strong&gt; — step-by-step guides and workflows&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Community highlights&lt;/strong&gt; — showcasing what the community builds&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Why a blog?&lt;span class="hx:absolute hx:-mt-20" id="why-a-blog"&gt;&lt;/span&gt;
&lt;a href="#why-a-blog" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The docs cover &lt;em&gt;how&lt;/em&gt; to use YottaCode. The blog covers &lt;em&gt;why&lt;/em&gt; we built it this way, &lt;em&gt;what&amp;rsquo;s coming next&lt;/em&gt;, and &lt;em&gt;how teams are using it&lt;/em&gt;.&lt;/p&gt;
&lt;h2&gt;Stay updated&lt;span class="hx:absolute hx:-mt-20" id="stay-updated"&gt;&lt;/span&gt;
&lt;a href="#stay-updated" class="subheading-anchor" aria-label="Permalink for this section"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;RSS&lt;/strong&gt;: Subscribe to &lt;code&gt;/blog/index.xml&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GitHub&lt;/strong&gt;: Watch &lt;a href="https://github.com/yottadynamics/yottacode"target="_blank" rel="noopener"&gt;yottadynamics/yottacode&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt; for releases&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;X/Twitter&lt;/strong&gt;: Follow &lt;a href="https://x.com/YottaDynamics"target="_blank" rel="noopener"&gt;@YottaDynamics&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt; and &lt;a href="https://x.com/WayOfMandalore_"target="_blank" rel="noopener"&gt;@WayOfMandalore_&lt;svg class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;path d="m9.1716 7.7574h7.0711m0 0v7.0711m0-7.0711-8.4853 8.4853" stroke-linecap="round" stroke-linejoin="round"/&gt;
&lt;/svg&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;&lt;em&gt;Welcome aboard. Let&amp;rsquo;s build something great together.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;— The YottaDynamics Team&lt;/p&gt;</description></item></channel></rss>