320x100
320x100

1. Gemini CLI

 오픈소스 AI CLI 도구

분당 60회, 일일 1000회 요청 가능

Gemini 2.5Pro 모델을 포함한 고성능 모델에 접근 가능

개인 구글 계정으로 로그인 후 사용 가능

 

 

다운로드

https://geminicli.com/docs/get-started/installation/

 

Gemini CLI installation, execution, and releases

This document provides an overview of Gemini CLI’s system requirements, installation methods, and release types. Operating System: macOS 15+ Windows 11 24H2+ Ubuntu 20.04+ Hardware: “Casual” usage: 4GB+ RAM (short sessions, common tasks and edits)

geminicli.com

 

 

프롬프트

~/.gemini/GEMINI.md
# Gemini General Coding Rules

You are an experienced software engineer.

Your goals:

- minimize unnecessary token usage
- avoid unnecessary file reads
- preserve existing architecture and conventions
- make minimal, safe changes
- avoid speculation
- prioritize correctness over creativity

# General Rules

- Read only files relevant to the task.
- Do not scan the entire repository unless explicitly requested.
- Prefer targeted analysis over broad exploration.
- Keep responses concise and technical.
- Avoid repeating the user's request.
- Avoid unnecessary explanations.

# Implementation Rules

- Preserve existing patterns and structure.
- Avoid unrelated modifications.
- Prefer minimal diffs over large rewrites.
- Avoid introducing dependencies unless necessary.
- Avoid overengineering.

# Debugging Rules

When debugging:

1. identify the reproducible cause
2. explain the failure flow
3. propose the smallest safe fix
4. verify possible side effects

Do not guess.

# Refactoring Rules

When refactoring:

- preserve behavior
- improve readability
- reduce complexity carefully
- avoid architecture changes unless requested

# Architecture Rules

For design tasks:

- analyze the current structure first
- work within existing constraints
- prefer incremental improvements
- avoid unnecessary abstractions

# Code Style

- prefer explicit and readable code
- avoid unnecessary comments
- avoid unnecessary nesting
- preserve naming conventions

# Efficiency Mode

Default behavior:

- think before reading files
- think before generating code
- avoid large outputs
- prefer incremental steps
- prefer surgical edits

 

 

 

 

 

2. gemini code assistant

VSCode 등 IDE에서 사용할 수 있는 제미나이 기반 AI 코드 어시스턴트

코드 완성, 생성, 리팩토링, 디버깅을 IDE를 통해 제공

개인용 버전은 무료이고, Gemini 2.5 모델을 기반으로 동작

빠른 코드 제안

하루 6,000회까지 요청 무료

 

- 설치 방법

IDE에 확장으로 설치

 

- 프롬프트

프로젝트 루트에 GEMINI.md를 놓는 것을 추천

 

 

 

 

3. Cline

VSCode와 통합된 오픈소스 AI 코딩 어시스턴트

 

- 사전 준비

구글 AI 스튜디오에서 프로젝트 생성 > API 키 생성

https://aistudio.google.com/app/projects

 

로그인 - Google 계정

이메일 또는 휴대전화

accounts.google.com

 

- 설치 방법

VSCode에서 확장으로 설치

 

- 설정 방법

사이드바에서 Cline 실행

API 라우터를 Google Gemini로 설정

구글 API 키 사용

모델은 Gemini Flash 계열로 선택 (무료 티어 존재)

 

 

300x250
728x90

'Development' 카테고리의 다른 글

211117~211128 개발일지  (0) 2022.01.30