Actions
새기능 #500
open러너 골격 + 설계서 (Design-First)
Status:
진행
Priority:
보통
Assignee:
-
Start date:
06/27/2026
Due date:
% Done:
0%
Estimated time:
Description
Discord 프라이빗 채널 메시지 -> Claude Code(claude -p 헤드리스) 실행 -> 결과 회신 다리.
현재 상태 (Draft 골격)¶
- 설계서: docs/design/discord-claude-runner/README.md
- ADR-0001: 가드레일 = 격리 대신 권한 deny + 화이트리스트
- 가드레일 settings: ~/.claude/discord-bot-settings.json (트레이딩 경로/시크릿/pm2 stop/업비트 API 차단)
- 골격 구현: index.js (discord.js + spawn claude -p)
- git: gittea.cloud-handson.com/joungmin/discord-claude-runner (commit dd94c1d)
남은 작업 (TODO)¶
- npm install + 실제 Discord 봇 토큰/채널ID 연결 후 E2E 검증
- 가드레일 deny 실증 (~/.env 읽기, pm2 stop 차단 확인)
- 테스트 코드 (reply 분할, 화이트리스트 판정, 셸 인젝션 비전파)
- (선택) 멀티 repo 라우팅, stream-json 진행표시, 토큰 상한
- pm2 등록 + 부팅 자동시작
Updated by joungmin ko about 2 months ago
- Status changed from 신규 to 진행
E2E 검증 완료 + 배포.
- 봇 macmini-hermes#4967 로그인, Message Content Intent 활성화
- 화이트리스트(user 611395264372015144, channel #mac-mini-hermes) 적용 동작 확인
- 실제 메시지 -> claude -p 실행 -> 회신 정상
- pm2 등록(discord-claude-runner) + pm2 save (부팅 자동시작 LaunchAgent 덤프 포함, 9개 앱)
남은 TODO: 가드레일 deny 실증 테스트, 테스트 코드 작성.
Actions