Skip to content

Development Workflow

Fresh

End-to-end workflow for integrating Gemini Code Assist into your daily development cycle.

The Full Workflow

mermaid
flowchart TD
    A[New task] --> B{Complexity?}
    B -->|Simple: single function| C[Completions + Tab]
    B -->|Medium: new feature area| D[Quick Pick /generate]
    B -->|Complex: multi-file feature| E[Agent Mode]
    C --> F[Review code]
    D --> F
    E --> F
    F --> G{Tests needed?}
    G -->|Yes| H[Smart Action: Generate unit tests]
    G -->|No| I[Submit for review]
    H --> I
    I --> J{Review feedback?}
    J -->|Bug fix| K[/fix or Quick Fix]
    J -->|Refactor| L[Agent Mode]
    J -->|Approved| M[Done]
    K --> F
    L --> F

Feature Development Workflow

1. Understand first

Agent: "I need to add payment processing. Explain how the current
billing system works in this repo and what I'll need to change."

2. Generate the implementation

Agent: "Implement Stripe webhook handling:
- Endpoint at POST /api/webhooks/stripe
- Handle: checkout.session.completed, invoice.paid, customer.subscription.deleted
- Update database via the existing OrderService
- Add integration tests
- Follow error handling pattern in /lib/errors.ts"

3. Generate tests for existing code

Select code > lightbulb > Generate unit tests

4. Review and fix

  • Hover errors > Quick Fix > /fix
  • Or select problematic code > smart action

Daily Coding Rhythm

TaskBest tool
New function from scratchComment + Ctrl+Enter, or /generate
Auto-complete existing codeTab to accept completions
Understand unfamiliar codeSelect > Explain this code
Fix a specific errorQuick Fix > /fix
Major new featureAgent Mode
Write testsSmart Action: Generate unit tests
Refactor a classAgent Mode
Add docsSelect > Add documentation

See Also

Based on official Google Gemini Code Assist documentation.