<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Customization for the Code Companion on Software Factory</title><link>/use/tools/code-companion/customize/</link><description>Recent content in Customization for the Code Companion on Software Factory</description><generator>Hugo</generator><language>en</language><atom:link href="/use/tools/code-companion/customize/index.xml" rel="self" type="application/rss+xml"/><item><title>Code Companion - Configuration</title><link>/use/tools/code-companion/customize/config/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/use/tools/code-companion/customize/config/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;a class="td-heading-self-link" href="#introduction" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The configuration of Code Companion has evolved to provide more readable, maintainable,
and consistent configuration files. With the transition to YAML as the preferred format,
users can benefit from new configuration options while simplifying their setup.
This guide will help you migrate existing &lt;code&gt;config.json&lt;/code&gt; files to &lt;code&gt;config.yaml&lt;/code&gt;,
outline new features, and highlight deprecated options.&lt;/p&gt;
&lt;p&gt;The transition to YAML includes enhancements that align with future updates,
facilitating a smoother integration process. As such, YAML
configurations now take precedence over JSON, offering a more robust framework
for customization.&lt;/p&gt;</description></item><item><title>Code Companion - Rules</title><link>/use/tools/code-companion/customize/rules/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/use/tools/code-companion/customize/rules/</guid><description>&lt;h2 id="how-to-create-and-manage-rules-in-continue"&gt;How to Create and Manage Rules in Continue&lt;a class="td-heading-self-link" href="#how-to-create-and-manage-rules-in-continue" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Rules are used to provide system message instructions to the model for Agent mode, Chat mode,
and Edit mode requests&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Rules provide instructions to the model for &lt;a href="/use/tools/code-companion/features/agentic/"&gt;Agent mode&lt;/a&gt;
,
&lt;a href="/use/tools/code-companion/features/chat/"&gt;Chat&lt;/a&gt;
, and &lt;a href="/use/tools/code-companion/features/edit/"&gt;Edit&lt;/a&gt;
 requests.&lt;/p&gt;

 &lt;link rel="stylesheet" href="/css/vendors/admonitions.css"&gt;
 &lt;div class="admonition info"&gt;
 &lt;div class="admonition-header"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"&gt;&lt;path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"/&gt;&lt;/svg&gt;
 &lt;span&gt;Info&lt;/span&gt;
 &lt;/div&gt;
 &lt;div class="admonition-content"&gt;
 &lt;p&gt;Rules are not included in &lt;a href="/use/tools/code-companion/features/autocomplete/"&gt;autocomplete&lt;/a&gt;
&lt;/p&gt;</description></item><item><title>Code Companion - Prompts</title><link>/use/tools/code-companion/customize/prompts/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/use/tools/code-companion/customize/prompts/</guid><description>&lt;h2 id="how-to-create-and-manage-prompts"&gt;How to Create and Manage Prompts&lt;a class="td-heading-self-link" href="#how-to-create-and-manage-prompts" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Prompts are used to kick off tasks for Agent mode, Plan mode, and Chat mode&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Prompts are included as user messages and are especially useful as instructions
for repetitive and/or complex tasks.&lt;/p&gt;
&lt;h3 id="creating-prompts"&gt;Creating Prompts&lt;a class="td-heading-self-link" href="#creating-prompts" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;You can create prompts in two ways:&lt;/p&gt;
&lt;h4 id="1-through-the-ui"&gt;1. Through the UI&lt;a class="td-heading-self-link" href="#1-through-the-ui" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open the Code Companion sidebar in your IDE.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Go to the &lt;strong&gt;Rules&lt;/strong&gt; section by selecting on the pen icon above the chat.&lt;/p&gt;</description></item><item><title>Code Companion - Context Providers</title><link>/use/tools/code-companion/customize/context-providers/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/use/tools/code-companion/customize/context-providers/</guid><description>&lt;h2 id="context-providers"&gt;Context Providers&lt;a class="td-heading-self-link" href="#context-providers" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Context Providers allow you to type &amp;lsquo;@&amp;rsquo; and see a dropdown of content that can all be fed to the
LLM as context. Every context provider is a plugin, which means if you want to reference some
source of information that you don&amp;rsquo;t see here, you can request (or build!) a new context provider.&lt;/p&gt;
&lt;p&gt;&lt;img src="../../img/@.png" alt="context providers"&gt;&lt;/p&gt;
&lt;h2 id="migrating-from-deprecated-context-providers"&gt;Migrating from Deprecated Context Providers&lt;a class="td-heading-self-link" href="#migrating-from-deprecated-context-providers" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;If you were previously using the &lt;code&gt;@Codebase&lt;/code&gt; or &lt;code&gt;@Docs&lt;/code&gt; context providers, here&amp;rsquo;s how to migrate to
the new approach:&lt;/p&gt;</description></item><item><title>Code Companion - Docs</title><link>/use/tools/code-companion/customize/docs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/use/tools/code-companion/customize/docs/</guid><description>&lt;h2 id="make-agent-mode-aware-of-relevant-documentation"&gt;Make Agent Mode Aware of Relevant Documentation&lt;a class="td-heading-self-link" href="#make-agent-mode-aware-of-relevant-documentation" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Documentation provides crucial context for agent mode to understand APIs, frameworks, and best practices.&lt;/p&gt;
&lt;h3 id="public-documentation---rule"&gt;Public Documentation - Rule&lt;a class="td-heading-self-link" href="#public-documentation---rule" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;To guide agent mode to relevant documentation, you can start by
&lt;a href="/use/tools/code-companion/customize/rules/#creating-rule-files"&gt;creating a rule&lt;/a&gt;
, for example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-md" data-lang="md"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gh"&gt;# Documentation Resources
&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;For framework-specific questions, refer to:
&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;-&lt;/span&gt; React: https://react.dev/reference/react
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Next.js: https://nextjs.org/docs
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Tailwind CSS: https://tailwindcss.com/docs
&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;Always cite documentation when explaining concepts.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="public-documentation---prompt-template"&gt;Public Documentation - Prompt template&lt;a class="td-heading-self-link" href="#public-documentation---prompt-template" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;We also suggest adding this prompt template so you can automatically generate a documentation rule
from any docs URL. Consider this template only a starting point, feel free to modify or extend it to
fit your own docs and workflow.&lt;/p&gt;</description></item><item><title>Code Companion - Codebase Awareness</title><link>/use/tools/code-companion/customize/codebase/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/use/tools/code-companion/customize/codebase/</guid><description>&lt;h2 id="codebase-awareness"&gt;Codebase Awareness&lt;a class="td-heading-self-link" href="#codebase-awareness" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Agent mode works best when it understands the context of your project. This guide shows you how to
give agent mode access to codebases, making it more helpful and accurate.&lt;/p&gt;
&lt;h3 id="make-agent-mode-aware-of-your-open-codebase"&gt;Make Agent Mode Aware of Your Open Codebase&lt;a class="td-heading-self-link" href="#make-agent-mode-aware-of-your-open-codebase" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;When agent mode understands your current codebase, it can provide more relevant suggestions and answers.&lt;/p&gt;
&lt;h4 id="initialize-codebase-awareness-with-init"&gt;Initialize Codebase Awareness with &lt;code&gt;/init&lt;/code&gt;&lt;a class="td-heading-self-link" href="#initialize-codebase-awareness-with-init" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Before agent mode can effectively use your codebase, you can explicitly initialize it with the
&lt;code&gt;/init&lt;/code&gt; command in the chat input.&lt;/p&gt;</description></item></channel></rss>