Skip to main content

Athena Vector Command CLI - 자연어 명령어를 벡터 시스템으로 실행

Project description

🏛️ Athena Vector CLI

Stop memorizing complex CLI flags. Let your local AI brain remember them for you.

PyPI version Python 3.8+ License: MIT

Athena Vector CLI는 자연어 명령어를 벡터 시스템으로 변환하여 실행하는 AI 기반 CLI 도구입니다. 복잡한 명령어를 외울 필요 없이, 자연어로 명령하면 AI가 기억하고 재사용합니다.

💡 Open Core 전략: 우리는 투명합니다. 소스코드를 자유롭게 확인하고 검토하세요. 안전도 점수 계산 로직이 얼마나 정교한지 직접 확인해 보세요.


🎬 Demo

Athena Vector CLI Demo

5초 데모: athena "undo last git commit" → AI가 기억한 명령어를 자동으로 실행합니다.


🚀 Quick Start

설치

pip install athena-vector-cli

설정

방법 1: 설정 파일 (권장)

설정 파일을 사용하면 환경 변수를 매번 설정할 필요가 없습니다.

전역 설정 (~/.athena/config.yaml):

qdrant:
  url: http://localhost:6333
  collection: command_vectors

search:
  similarity_threshold: 0.85
  max_results: 5

execution:
  confirm_by_default: true
  timeout: 30

프로젝트별 설정 (.athenarc): 현재 디렉토리에 .athenarc 파일을 생성하면 프로젝트별로 다른 설정을 사용할 수 있습니다.

방법 2: 환경 변수

# Qdrant 서버 URL 설정 (필수)
export VPS_QDRANT_URL="http://your-qdrant-server:6333"
# 또는
export QDRANT_URL="http://your-qdrant-server:6333"

우선순위: .athenarc > ~/.athena/config.yaml > 환경 변수

첫 실행

# 도움말 확인
athena --help

# 자연어 명령어 실행
athena "서버 상태 보여줘"
athena "Git 저장소 상태 확인"
athena "Docker 컨테이너 목록"

✨ Key Features

🧠 Local Vector DB

  • 데이터가 밖으로 나가지 않습니다 (Privacy First)
  • 로컬 또는 자체 호스팅 Qdrant 서버 사용
  • 모든 명령어는 벡터화되어 안전하게 저장됩니다

🔄 Vector Command Reuse

  • 한 번 학습한 명령어는 자동으로 재사용
  • 유사한 명령어를 자동으로 찾아서 실행
  • 시간이 지날수록 더 똑똑해집니다

🛡️ Iron Gate (Coming Soon)

  • 코드 품질 자동 검증
  • 보안 취약점 자동 감지
  • 배포 전 자동 테스트

🎯 Natural Language Interface

  • 복잡한 CLI 플래그를 외울 필요 없음
  • "undo last git commit" → git reset HEAD~1 자동 변환
  • 한국어와 영어 모두 지원

📊 Usage Tracking

  • 자주 사용하는 명령어 자동 추적
  • 효율적인 명령어 우선순위 자동 조정

📖 사용 예시

기본 사용

# 자연어로 명령어 검색 (실행하지 않음)
athena "서버 상태 보여줘"

# 명령어 검색 및 실행 (실행 전 확인 프롬프트)
athena "undo last git commit" --execute

# 확인 없이 자동 실행
athena "undo last git commit" --yes

# 유사한 명령어 자동 검색 및 재사용
athena "Git 커밋 취소"
# → 이전에 학습한 "undo last git commit" 명령어 자동 검색

학습 모드

# 새로운 명령어 학습
athena "새로운 명령어"
# → 유사한 명령어가 없으면 학습 모드로 전환
# → DSL과 결과를 입력하여 저장

명령어 옵션

# 도움말
athena --help

# 버전 확인
athena --version
# Athena CLI v0.1.2

# 명령어 실행 (실행 전 확인)
athena "query" --execute

# 확인 없이 자동 실행
athena "query" --yes

안전 기능

Athena는 위험한 명령어를 자동으로 차단합니다:

  • rm -rf / (시스템 삭제)
  • format (포맷팅)
  • shutdown (시스템 종료)
  • 기타 위험한 패턴

차단된 명령어는 실행되지 않으며 경고 메시지가 표시됩니다.


🧠 Powered by Athena Brain Core

Athena Vector CLIathena-brain-core 엔진을 기반으로 구축되었습니다. 이는 단순한 쉘 스크립트 모음이 아닌, 견고한 모듈형 AI 아키텍처입니다.

Core Engine Features

  • 🧠 Long-term Memory: 모든 명령어와 결과를 장기 기억으로 저장
  • 🔄 Self-Evolution: 실수로부터 학습하고 자동으로 개선
  • 👤 Personalization: 사용자별 명령어 패턴 학습
  • 🔒 Privacy-First: 100% 로컬 저장, 데이터는 절대 외부로 전송되지 않음

Architecture Benefits

  • 모듈화: Core 엔진과 CLI 인터페이스의 명확한 분리
  • 확장성: 다른 Athena 도구들과 동일한 Core 엔진 공유
  • 일관성: 모든 Athena 생태계가 동일한 메모리 시스템 사용

Learn more: athena-brain-core on PyPI


🏗️ 아키텍처

┌─────────────────┐
│  자연어 명령어   │
│  "undo commit"  │
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  벡터 검색      │
│  (유사 명령어)   │
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  명령어 재사용   │
│  또는 학습       │
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  실행 및 결과   │
└─────────────────┘

🔧 설정

설정 파일

위치:

  • ~/.athena/config.yaml (전역 설정)
  • .athenarc (프로젝트별 설정, 우선순위 높음)

설정 항목:

qdrant:
  url: http://localhost:6333        # Qdrant 서버 URL
  collection: command_vectors        # 컬렉션 이름
  timeout: 3.0                       # 타임아웃 (초)

model:
  name: snunlp/KR-SBERT-V40K-klueNLI-aug-sts  # 임베딩 모델

search:
  similarity_threshold: 0.85        # 유사도 임계값
  max_results: 5                     # 최대 결과 수

execution:
  confirm_by_default: true           # 기본적으로 확인 프롬프트 표시
  timeout: 30                         # 명령어 실행 타임아웃 (초)

환경 변수

변수 설명 필수
VPS_QDRANT_URL Qdrant 서버 URL
QDRANT_URL Qdrant 서버 URL (대체)
ATHENA_DEBUG 디버그 모드 (스택 트레이스 출력)

우선순위: .athenarc > ~/.athena/config.yaml > 환경 변수

Qdrant 서버 설정

로컬 설치:

docker run -p 6333:6333 qdrant/qdrant

VPS 사용:

export VPS_QDRANT_URL="http://your-vps-ip:6333"

📚 문서


🤝 기여하기

기여를 환영합니다! 이슈를 열거나 Pull Request를 보내주세요.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 라이선스

이 프로젝트는 MIT 라이선스 하에 배포됩니다. 자세한 내용은 LICENSE 파일을 참조하세요.


🙏 감사의 말


🔗 링크


⭐ Star History

Star History Chart


Made with ❤️ by MKM Lab

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

athena_vector_cli-0.1.5.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

athena_vector_cli-0.1.5-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file athena_vector_cli-0.1.5.tar.gz.

File metadata

  • Download URL: athena_vector_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for athena_vector_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 5c627acc58d71e3f146329fee18cfa6c6c517b6ba0acf524f1f21a076f63d3cc
MD5 028b0f9ddc696802584c701decbbc266
BLAKE2b-256 5a056ffbdc1133862f3b5fd6a6c45a4a6994b5e2ed0d2ec23ec76a2af507c304

See more details on using hashes here.

File details

Details for the file athena_vector_cli-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for athena_vector_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 28517612c0a3f884c15387e59d2d73077b8b0640dba979e80327e708b50661d5
MD5 85ca2983dbf926c9632f039b352d96f8
BLAKE2b-256 dd56376ac45d28d5a0bd40751be47249c0fce54e2c8c2b79ff013517d1663760

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page