Skip to main content

Genius Intelligence

코딩 어시스턴트 CLI 도구(claude code, omp, opencode, codex 등)에 자동 통합되는 프로젝트 단위 지식화 라이브러리.

"반복되는 문제는 처음에만 문제일 뿐"

🚀 1분 설치

# Linux/macOS
curl -fsSL https://raw.githubusercontent.com/senghan1992/genius_book/main/install.sh | sh

# pip로 직접 설치
pip install genius-intelligence[cli]

핵심 기능

1. 플랜 문서 추적 📋 (파일명 무관!)

  • 내용 기반 감지: 파일명이 매번 달라져도(2024-01-15-refactor.md, sprint3-notes.md 등) 체크박스·번호 목록·태스크 헤더 같은 문서 구조를 분석해 플랜 문서를 자동 인식
  • Planned vs Executed 비교 분석
  • 실행 출력 파싱: 툴이 플랜 파일을 참조하면 자동 감지

2. 자동 지식화

  • 3회 이상 반복 시 자동 지식 추출
  • 2-depth 그래프 노드
  • 30일 미접근 지식 자동 삭제

3. 지원 CLI만 감싸기 (32개)

플랜 감지 방식 (파일명이 계속 바뀌어도 OK)

파일명 패턴(CLAUDE.md, PLAN.md 등)은 보조 힌트일 뿐이고, 기본 감지 방식은 문서 내용 구조를 스코어링하는 것입니다:

신호 예시 가중치
체크박스 리스트 - [ ] 작업 1 최대 30
번호 목록 1. 작업 1 최대 25
순차 헤더 ### 1. 작업, ### 2. 작업 최대 35
키워드 순차 스텝 스텝 1:, Step 1: 최대 30
플랜 헤더 키워드 "계획", "Task", "Plan" 등 최대 25
조합 보너스 신호 2개 이상 동시 발생 +10

예시 - 파일명이 완전히 무작위여도 감지됨:

2024-01-15-refactor-notes.md     플랜으로 감지 (체크박스+번호목록)
sprint3-notes-final-v2.md        플랜으로 감지 (순차 헤더 3개)
xk9f-plan-thing.md                플랜으로 감지 (스텝 1/2/3 키워드)
random-notes-abc123.md            일반 메모 (구조 없음, 스킵)

커스텀 패턴도 추가 가능 (선택사항)

from genius_intelligence import PlanTracker

tracker = PlanTracker(project_root)

# 특정 프로젝트만의 명명 규칙이 있다면 힌트 추가 가능 (필수 아님)
tracker.add_plan_pattern(r"(?i)^my-project-plan\.md$")

# 하지만 기본적으로는 파일명 없이도 동작:
plans = tracker.detect_plan_files()  # 프로젝트 전체를 내용 기반으로 스캔

# 아무 문서나 직접 분석
score = tracker.analyze_any_document("some-random-file.md")
print(score.is_plan, score.score, score.signals)

플랜 추적 시스템

프로젝트 내 모든 .md/.txt 파일 스캔 (파일명 무관)
    ↓
내용 구조 분석 (체크박스, 번호목록, 순차헤더, 키워드)
    ↓
스코어 >= 임계값 → 플랜 문서로 등록
    ↓
태스크 추출
├── [ ] 1. API 서버 구현
├── [ ] 2. DB 설계
└── [ ] 3. 인증 시스템

↓ 실행 추적 (명령/파일/에러 매칭)

├── ✅ 1. API 서버 구현
├── ⚠️ 2. DB 설계 (일부만)
└── ❌ 3. 인증 시스템 (실패)

↓ 비교 분석 & 저장
├── 완료율, 성공률, 해결책, 배운 점

빠른 시작

curl -fsSL https://raw.githubusercontent.com/senghan1992/genius_book/main/install.sh | sh
source ~/.bashrc
claude --no-input   # 어떤 이름의 플랜 문서를 만들어도 자동 추적

Python API

from genius_intelligence import PlanTracker

tracker = PlanTracker(project_root)

# 파일명과 무관하게 프로젝트 전체 스캔
plans = tracker.detect_plan_files()

for path in plans:
    score = tracker.analyze_any_document(path)
    plan = tracker.parse_plan_file(path)
    comparison = tracker.compare_plan_vs_execution(plan)
    print(f"{path.name}: 완료율 {comparison['completion_rate']:.0%}")

저장소 구조

.genius_intelligence/
├── memory.sqlite.db
├── plans/                    # 감지된 모든 플랜 (파일명 무관)
│   ├── {id}_refactor-notes.md
│   └── {id}_sprint3-notes.md
├── login_information/
├── knowledge_graph/
└── .config/

라이선스

MIT License

Release files for genius-intelligence 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for genius-intelligence 0.1.0
File Size Uploaded
genius_intelligence-0.1.0.tar.gz 57.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for genius-intelligence 0.1.0
File Interpreter ABI Platform
genius_intelligence-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 134.7 kB

Release files / genius_intelligence-0.1.0.tar.gz

Download URL genius_intelligence-0.1.0.tar.gz
Size 57.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fded8992cce0cdeaafa5056745744802d34f21cfe2031e619ab457118655fc24
BLAKE2b-256 checksum
How to use checksums
1c6258495fd694222e3b2355919c055d3d2a663052e150fa6e9af2d542eef03d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / genius_intelligence-0.1.0-py3-none-any.whl

Download URL genius_intelligence-0.1.0-py3-none-any.whl
Size 77.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e6097459c811b16310c364ea85f832416fe98f9219694740a8c7d454a24fc2b
BLAKE2b-256 checksum
How to use checksums
d0ecddee63cf67ac9fdc2eab18277179995d74490c0fda22d527c7a08ba39d7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page