Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
79334fd
Update prompting/discussion-mode.mdx
Gerome-Elassaad Jan 7, 2026
70ed859
Update prompting/discussion-mode.mdx
Gerome-Elassaad Jan 7, 2026
c9ce0f6
Update prompting/discussion-mode.mdx
Gerome-Elassaad Jan 7, 2026
7e3d17e
Update prompting/discussion-mode.mdx
Gerome-Elassaad Jan 7, 2026
141123d
Update prompting/discussion-mode.mdx
Gerome-Elassaad Jan 7, 2026
e253a37
Update prompting/discussion-mode.mdx
Gerome-Elassaad Jan 7, 2026
6a48c45
Update prompting/prompt-engineering-guide.mdx
Gerome-Elassaad Jan 7, 2026
5af498f
Update prompting/prompt-engineering-guide.mdx
Gerome-Elassaad Jan 7, 2026
5207d52
Update prompting/prompt-engineering-guide.mdx
Gerome-Elassaad Jan 7, 2026
dd47aa0
Update prompting/prompt-engineering-guide.mdx
Gerome-Elassaad Jan 7, 2026
f40a99a
Update prompting/prompting-effectively.mdx
Gerome-Elassaad Jan 7, 2026
8df5242
Update prompting/prompting-effectively.mdx
Gerome-Elassaad Jan 7, 2026
ba8b7eb
Update prompting/prompting-effectively.mdx
Gerome-Elassaad Jan 7, 2026
954b391
Update prompting/prompting-effectively.mdx
Gerome-Elassaad Jan 7, 2026
83347f5
Update prompting/prompting-effectively.mdx
Gerome-Elassaad Jan 7, 2026
9229ce4
Update prompting/maximize-token-efficiency.mdx
Gerome-Elassaad Jan 7, 2026
758201f
Update prompting/maximize-token-efficiency.mdx
Gerome-Elassaad Jan 7, 2026
2e9039d
Update prompting/maximize-token-efficiency.mdx
Gerome-Elassaad Jan 7, 2026
c950e80
Update prompting/maximize-token-efficiency.mdx
Gerome-Elassaad Jan 7, 2026
dbaa0a4
Update prompting/maximize-token-efficiency.mdx
Gerome-Elassaad Jan 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 98 additions & 40 deletions prompting/discussion-mode.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
description: Technical consultant mode for collaborative problem-solving and guidance
---

Discussion mode transforms the AI into a technical consultant who provides guidance, plans, and structured approaches to development challenges without directly implementing code.
Discussion mode transforms the AI into a technical consultant who provides guidance, plans, and structured approaches to development challenges without directly implementing code. When activated, CodinIT switches to a specialized system prompt designed specifically for consultative interactions.

## Overview

In discussion mode, the AI acts as an experienced senior software engineer and technical consultant, offering strategic advice, architectural guidance, and detailed planning for your development projects.
In discussion mode, the AI acts as an experienced senior software engineer and technical consultant, offering strategic advice, architectural guidance, and detailed planning for your development projects. Unlike build mode, discussion mode focuses on planning and guidance rather than code generation.

## Key Features

Expand All @@ -19,12 +19,15 @@

## How It Works

When you activate discussion mode, the AI switches to a specialized prompt that focuses on:
When you activate discussion mode, CodinIT switches to a specialized system prompt (`discussPrompt`) that fundamentally changes how the AI responds:

- **Planning Over Implementation**: Providing detailed plans rather than writing code
- **Educational Approach**: Explaining concepts and teaching best practices
- **Strategic Thinking**: Considering long-term implications and scalability
- **Collaborative Problem-Solving**: Working with you to develop optimal solutions
- **Planning Over Implementation**: Provides detailed numbered plans with file references and plain English descriptions instead of code
- **Educational Approach**: Explains concepts, reasoning, and best practices with "why" behind recommendations
- **Strategic Thinking**: Uses chain-of-thought reasoning to analyze problems before providing solutions
- **Collaborative Problem-Solving**: Offers quick action buttons for implementing plans, continuing discussions, or opening referenced files
- **No Code Generation**: Responses describe changes in plain English rather than providing code snippets

The system prompt explicitly instructs the AI to use phrases like "You should add..." instead of "I will implement..." to maintain the consultative role.

## When to Use Discussion Mode

Expand Down Expand Up @@ -64,13 +67,20 @@

### Response Format

In discussion mode, responses typically include:
In discussion mode, responses follow a specific structure:

- **Chain of Thought**: Visible reasoning process showing how the AI analyzes the problem
- **Clear Plans**: Numbered steps starting with "## The Plan" heading, describing changes in plain English only
- **File References**: Specific file paths with corresponding quick action buttons to open them
- **Technology Recommendations**: Specific tools and approaches with reasoning
- **Best Practice Guidance**: Industry-standard approaches with explanations
- **Quick Actions**: Interactive buttons at the end of every response:
- **Implement**: For executing the outlined plan in build mode
- **Message**: For continuing the conversation with specific follow-ups
- **Link**: For opening external documentation or resources
- **File**: For opening referenced files in the editor

- **Clear Plans**: Numbered steps for implementing solutions
- **Technology Recommendations**: Specific tools and approaches
- **Best Practice Guidance**: Industry-standard approaches
- **Educational Context**: Explanations of why certain approaches are recommended
- **Quick Actions**: Interactive buttons for common next steps
The AI is explicitly instructed to never include code snippets in plans, only plain English descriptions of what needs to change.

## Best Practices for Discussion Mode

Expand Down Expand Up @@ -124,38 +134,62 @@

Discussion mode responses emphasize planning and strategy:

- **Step-by-step implementation plans**
- **Technology recommendations with reasoning**
- **Consideration of trade-offs and alternatives**
- **Scalability and maintainability considerations**
- **Step-by-step implementation plans** with "## The Plan" heading
- **Technology recommendations with reasoning** explaining why specific tools are suggested
- **Consideration of trade-offs and alternatives** for different approaches
- **Scalability and maintainability considerations** for long-term success
- **File-specific guidance** indicating exactly which files need modification

### Educational Approach

Responses include educational elements:

- **Explanation of concepts and principles**
- **Rationale behind recommendations**
- **Industry best practices and standards**
- **Common pitfalls and how to avoid them**
- **Chain of thought reasoning** visible to users before solutions
- **Explanation of concepts and principles** with context
- **Rationale behind recommendations** explaining the "why"
- **Industry best practices and standards** with current information
- **Common pitfalls and how to avoid them** based on experience

### Interactive Elements

Discussion mode often includes interactive elements:
Discussion mode always includes interactive quick action buttons:

- **Quick action buttons** for common next steps
- **File references** for examining specific code
- **Link suggestions** for additional resources
- **Structured recommendations** with clear priorities\*\*
- **Implement buttons** to execute plans in build mode (labeled "Implement this plan", "Fix this bug", "Fix these issues", or database-specific actions)
- **Message buttons** for continuing conversations with specific prompts
- **Link buttons** for opening external documentation (especially for topics in support resources)
- **File buttons** for opening referenced files in the editor
- **Ordered by priority**: Implement actions first, then message, link, and file actions
- **Limited to 4-5 actions** to avoid overwhelming users

## Integration with Other Features

### Combining with Regular Chat
### Combining with Build Mode

You can switch between discussion mode and regular chat mode:
You can seamlessly switch between discussion mode and build mode:

1. Use **discussion mode** for planning and architectural decisions
2. Switch to **regular chat** for implementation and code writing
2. Click **"Implement this plan"** quick action to switch to build mode and execute the plan
3. Return to **discussion mode** for reviewing and refining implemented code
4. The AI maintains context across mode switches

### Search Grounding

Discussion mode has access to web search capabilities:

- **Automatic search** when uncertain about technical information, package details, or API specifications
- **First-party documentation** search for faster, more accurate results
- **Current information** rather than relying on potentially outdated knowledge
- **URL content fetching** when users share links for context

### Support Resources Integration

Discussion mode automatically redirects to official documentation for specific topics:

- **Token efficiency**: Redirects to maximize-token-efficiency guide
- **Effective prompting**: Links to prompting-effectively documentation
- **Supabase integration**: Points to Supabase integration docs

Check warning on line 190 in prompting/discussion-mode.mdx

View check run for this annotation

Mintlify / Mintlify Validation (codinitdev) - vale-spellcheck

prompting/discussion-mode.mdx#L190

Did you really mean 'Supabase'?

Check warning on line 190 in prompting/discussion-mode.mdx

View check run for this annotation

Mintlify / Mintlify Validation (codinitdev) - vale-spellcheck

prompting/discussion-mode.mdx#L190

Did you really mean 'Supabase'?
- **Deployment/hosting**: Directs to Netlify and hosting FAQs

Check warning on line 191 in prompting/discussion-mode.mdx

View check run for this annotation

Mintlify / Mintlify Validation (codinitdev) - vale-spellcheck

prompting/discussion-mode.mdx#L191

Did you really mean 'Netlify'?
- Uses link quick actions to open documentation in new tabs

### Using with Project Context

Expand All @@ -164,8 +198,8 @@
- **Current project structure** and technology stack
- **Existing code snippets** for review
- **Performance requirements** and constraints
- **Team size and expertise** levels
- **Timeline and resource** considerations
- **Specific file paths** for targeted guidance
- **Running processes** (automatically detected by CodinIT)

## Common Use Cases

Expand Down Expand Up @@ -211,16 +245,40 @@
mode when you're ready to implement the plans and write code.
</Callout>

## How to use Discussion Mode
## How to Use Discussion Mode

Discussion mode lets you explore ideas by chatting with CodinIT without making changes to your code. It is versatile and works well for planning, learning, and problem-solving.

### Activating Discussion Mode

1. Open your CodinIT project
2. In the bottom-right corner of the chatbox, click the **Discuss** button (chat icon)

Check warning on line 255 in prompting/discussion-mode.mdx

View check run for this annotation

Mintlify / Mintlify Validation (codinitdev) - vale-spellcheck

prompting/discussion-mode.mdx#L255

Did you really mean 'chatbox'?
3. The button highlights when discussion mode is active
4. Click again to return to build mode

### Using Discussion Mode Effectively

Once activated, you can:

1. **Ask planning questions** about architecture, design patterns, or implementation approaches
2. **Request code reviews** for guidance on improving existing code
3. **Explore technologies** to learn about frameworks, libraries, and best practices
4. **Debug strategically** by discussing error patterns and systematic approaches
5. **Use quick actions** to:
- Implement the plan in build mode
- Continue the discussion with suggested follow-ups
- Open referenced files in the editor
- Access external documentation

Discussion Mode lets you explore ideas by chatting with CodinIT without making changes to your code. It is versatile and works well for a wide range of topics. You can use it any time you want to brainstorm or think through ideas.
### Response Behavior

Follow the steps below to use Discussion Mode in a CodinIT project:
In discussion mode, the AI will:

1. Open your CodinIT project.
2. In the bottom-right corner of the chatbox, click **Discuss**.
3. Enter your question or prompt, and read the response. You can then either:
- Continue the discussion.
- Use one of the quick action buttons to implement the suggestion.
- Show its reasoning process using chain-of-thought
- Provide plans with numbered steps in plain English
- Reference specific files with quick action buttons
- Avoid generating code snippets (descriptions only)
- Always include interactive quick actions at the end
- Redirect to official documentation for specific topics

<Tip>Discussion Mode highlights blue when active. Click it again to turn it off and return to Build mode.</Tip>
<Tip>Discussion mode is ideal for planning before implementation. Use the "Implement this plan" button to seamlessly switch to build mode and execute your plan.</Tip>
92 changes: 63 additions & 29 deletions prompting/maximize-token-efficiency.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,29 @@

## What Are Tokens?

CodinIT uses AI that runs on "tokens." Tokens are small pieces of text that the AI reads and writes.
CodinIT uses AI that runs on "tokens." Tokens are small pieces of text that the AI reads and writes. Understanding token usage helps you optimize costs and stay within model limits.

### How Tokens Get Used

Tokens are used when:
Tokens are consumed in several ways:

- **You ask questions**: Your messages to the AI
- **AI answers**: The code and explanations the AI gives you
- **Context**: The AI reading your project files to understand what you're building
- **System prompts**: CodinIT's built-in prompts (default, fine-tuned, or experimental) that guide AI behavior
- **Your messages**: The questions and requests you send to the AI
- **AI responses**: The code, explanations, and artifacts the AI generates
- **Project context**: File contents, file changes, and running processes the AI reads
- **Chain of thought**: The reasoning process shown in `<codinitThinking>` tags
- **Conversation history**: Previous messages in the chat thread

### What Affects Token Usage

- **Which AI model**: Some models cost more than others
- **Project size**: Bigger projects use more tokens
- **Answer length**: Long explanations use more tokens than short ones
- **Chat length**: Longer conversations use more tokens
- **Which AI model**: Some models cost more per token (Claude vs GPT vs DeepSeek)
- **System prompt choice**: Fine-tuned prompt uses more tokens than experimental
- **Project size**: Bigger projects with more files use more context tokens
- **Answer length**: Long explanations and code use more tokens than short ones
- **Chat length**: Longer conversations accumulate more history tokens
- **Mode selection**: Discussion mode may use fewer tokens (no code generation)
- **Chain of thought**: Visible reasoning adds tokens but improves quality
- **File context**: The AI reading multiple files to understand your project

<Callout type="info">
**Token Limits**: Each AI has a maximum amount of text it can handle at once. If you go over, you might get errors.
Expand Down Expand Up @@ -65,12 +72,15 @@

### Use Discussion Mode for Planning

When you just want to talk and plan (not write code), use discussion mode:
When you just want to talk and plan (not write code), use discussion mode to save tokens:

- **Planning**: Talk about features before building them
- **Getting advice**: Ask which tools to use
- **Planning**: Talk about features before building them (no code artifacts generated)
- **Getting advice**: Ask which tools to use (plain English responses)
- **Code review**: Discuss improvements without changing code
- **Learning**: Ask questions without generating code
- **Architecture decisions**: Get guidance on system design

Discussion mode uses a different system prompt that focuses on planning rather than code generation, which can reduce token usage while still providing valuable guidance. Use the "Implement this plan" button when ready to switch to build mode.

### Plan Before You Build

Expand Down Expand Up @@ -121,43 +131,67 @@
- Focus on one part of your app at a time

<Callout type="info">
**Discussion Mode**: Use this when you want to talk and plan without writing code. It saves tokens!
**Discussion Mode**: Use this when you want to talk and plan without writing code. It uses a different system prompt focused on guidance rather than code generation, which can save tokens.
</Callout>

<Callout type="tip">
**Use Git**: Save your work with Git instead of asking AI to undo things. It's free!
**Start New Chats**: When conversations get long, start a new chat to reduce context tokens. CodinIT maintains your project files, so you won't lose work.
</Callout>

## Choosing the Right AI Model
<Callout type="tip">
**Use Git**: Save your work with Git instead of asking AI to undo things. It's free and doesn't use tokens!
</Callout>

## Choosing the Right AI Model and Prompt

### Pick the Right Model for the Job

Different AI models cost different amounts:
CodinIT supports multiple AI providers with different token costs:

- **Cheaper models** for simple tasks and quick questions
- **Expensive models** for hard problems and important code
- **Check limits** - some models can't handle huge projects
- **Cheaper models** (GPT-3.5, DeepSeek) for simple tasks and quick questions
- **Mid-range models** (GPT-4, Claude Sonnet) for most development work
- **Premium models** (Claude Opus) for complex problems and important code
- **Check context limits** - some models can't handle huge projects
- **Balance cost and quality** based on what you're doing

### Different AI Models

**Claude (Anthropic):**

- Great at understanding and writing code
- Costs more but gives better results
- Use for complex projects
- Excellent at reasoning and complex code
- Larger context windows (200K+ tokens)
- Higher cost per token but better quality
- Works well with CodinIT's chain-of-thought prompting
- Best for: Complex projects, refactoring, architecture

**GPT (OpenAI):**

- Fast and cheaper for many tasks
- Good for trying things out quickly
- Use GPT-4 for harder problems
- Fast and cost-effective for many tasks
- Good for iterative development
- GPT-4 for harder problems, GPT-3.5 for simple tasks
- Best for: Quick iterations, simple features, prototyping

**DeepSeek:**

- Very cost-effective for code generation
- Good code quality at lower cost
- Best for: Budget-conscious development, learning

**Other Models (Gemini, Groq, etc.):**

Check warning on line 180 in prompting/maximize-token-efficiency.mdx

View check run for this annotation

Mintlify / Mintlify Validation (codinitdev) - vale-spellcheck

prompting/maximize-token-efficiency.mdx#L180

Did you really mean 'Groq'?

- Check provider-specific strengths
- Consider regional availability
- Compare pricing for your use case

### System Prompt Selection

CodinIT offers three prompt variants that affect token usage:

**Other Models:**
1. **Default Prompt**: Balanced approach with comprehensive guidelines
2. **Fine-Tuned Prompt**: More detailed instructions, higher token usage, better results
3. **Experimental Prompt**: Optimized for lower token usage (may sacrifice some quality)

- Check what they're good at
- Some work better in certain countries
- Compare prices for what you need
Choose the experimental prompt if token efficiency is your top priority.

## Advanced Tips

Expand Down
Loading