<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ai on QuickRef - Personal Developer Reference</title><link>http://qref.eknath.dev/categories/ai/</link><description>Recent content in Ai on QuickRef - Personal Developer Reference</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 18 Aug 2025 00:00:00 +0000</lastBuildDate><atom:link href="http://qref.eknath.dev/categories/ai/index.xml" rel="self" type="application/rss+xml"/><item><title>Claude CLI</title><link>http://qref.eknath.dev/ai/claude/</link><pubDate>Mon, 18 Aug 2025 00:00:00 +0000</pubDate><guid>http://qref.eknath.dev/ai/claude/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>&lt;code>@anthropic-ai/claude-code&lt;/code> is the official command-line interface (CLI) for Claude, developed by Anthropic. It allows developers to interact with Claude models directly from the terminal, making it easy to integrate AI into development workflows, analyze code, and generate content without leaving the command line.&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;p>You must have Node.js (version 18 or higher) and npm installed.&lt;/p>
&lt;p>To install the Claude CLI globally on your system, run the following command:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:2;-o-tab-size:2;tab-size:2;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>npm install -g @anthropic-ai/claude-code
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="configuration">Configuration&lt;/h2>
&lt;p>The first time you run the &lt;code>claude&lt;/code> command, it will guide you through an authentication process in your web browser.&lt;/p></description></item><item><title>Gemini CLI</title><link>http://qref.eknath.dev/ai/gemini/</link><pubDate>Mon, 18 Aug 2025 00:00:00 +0000</pubDate><guid>http://qref.eknath.dev/ai/gemini/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>&lt;code>@google/gemini-cli&lt;/code> is the official, open-source command-line interface (CLI) for Gemini, developed by Google. It brings the power of Gemini models to your terminal, allowing you to ask questions, understand and generate code, and integrate AI into your development workflows.&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;p>You must have Node.js (version 20 or higher) and npm installed.&lt;/p>
&lt;p>You can either run the CLI without installation using &lt;code>npx&lt;/code> or install it globally for regular use.&lt;/p>
&lt;p>&lt;strong>Run with NPX (no install):&lt;/strong>&lt;/p></description></item><item><title>Managing AI Agents with AGENT.MD</title><link>http://qref.eknath.dev/ai/managing-ai-agents/</link><pubDate>Mon, 18 Aug 2025 00:00:00 +0000</pubDate><guid>http://qref.eknath.dev/ai/managing-ai-agents/</guid><description>&lt;h2 id="agentmd-persistent-guidance-for-ai-agents">AGENT.MD: Persistent Guidance for AI Agents&lt;/h2>
&lt;p>For ongoing projects, especially when collaborating with an AI agent, creating an &lt;code>AGENT.MD&lt;/code> file in the project&amp;rsquo;s root directory is a powerful technique. This file acts as a persistent, high-level prompt that guides the agent&amp;rsquo;s behavior, ensuring consistency and adherence to project standards over multiple interactions.&lt;/p>
&lt;h3 id="why-is-agentmd-important">Why is &lt;code>AGENT.MD&lt;/code> Important?&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Consistency&lt;/strong>: Ensures the agent follows the same style, conventions, and architectural patterns every time it works on the codebase.&lt;/li>
&lt;li>&lt;strong>Efficiency&lt;/strong>: Reduces the need to repeat instructions in every prompt. The agent can refer to the &lt;code>AGENT.MD&lt;/code> for standing orders.&lt;/li>
&lt;li>&lt;strong>Safety&lt;/strong>: Allows you to define clear safety rules, forbidden commands, or sensitive areas of the codebase to avoid accidental changes.&lt;/li>
&lt;li>&lt;strong>Onboarding&lt;/strong>: Helps the agent (and new human developers) quickly understand the project&amp;rsquo;s specific operational procedures and conventions.&lt;/li>
&lt;/ul>
&lt;h3 id="how-to-design-an-effective-agentmd">How to Design an Effective &lt;code>AGENT.MD&lt;/code>&lt;/h3>
&lt;p>An effective &lt;code>AGENT.MD&lt;/code> should be structured like a set of clear instructions. Use Markdown to create a readable and well-organized document.&lt;/p></description></item><item><title>Prompt Engineering</title><link>http://qref.eknath.dev/ai/prompt-engineering/</link><pubDate>Sun, 01 Jan 2023 00:00:00 +0000</pubDate><guid>http://qref.eknath.dev/ai/prompt-engineering/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>Prompt engineering is the art and science of crafting effective prompts for Large Language Models (LLMs) to achieve desired outcomes. It involves understanding how to structure, phrase, and format inputs to get the best possible responses from AI systems.&lt;/p>
&lt;h2 id="core-principles">Core Principles&lt;/h2>
&lt;h3 id="clarity-and-specificity">Clarity and Specificity&lt;/h3>
&lt;pre tabindex="0">&lt;code>❌ Poor: &amp;#34;Write about dogs&amp;#34;
✅ Good: &amp;#34;Write a 300-word informative article about Golden Retriever training techniques for first-time dog owners&amp;#34;
&lt;/code>&lt;/pre>&lt;h3 id="context-setting">Context Setting&lt;/h3>
&lt;pre tabindex="0">&lt;code>❌ Poor: &amp;#34;Explain recursion&amp;#34;
✅ Good: &amp;#34;Explain recursion to a computer science student who understands basic programming concepts but struggles with advanced algorithms. Use simple examples and analogies.&amp;#34;
&lt;/code>&lt;/pre>&lt;h3 id="role-definition">Role Definition&lt;/h3>
&lt;pre tabindex="0">&lt;code>❌ Poor: &amp;#34;Help with my code&amp;#34;
✅ Good: &amp;#34;As an experienced Python developer, help me debug this function and explain the error in detail&amp;#34;
&lt;/code>&lt;/pre>&lt;h2 id="framework">Framework&lt;/h2>
&lt;p>Getting the most out of generative AI is all about understanding inputs and outputs. What are you hoping to get from the tool? That’s the output. What kind of prompt is going to help you get it? That’s the input. And there’s a simple framework that helps you provide clear and specific directions to any gen AI tool.&lt;/p></description></item></channel></rss>