Repository navigation
feat: minimax-code 워크로드 타입 추가 (AC-G1~G4) - #151
Merged
Merged
Conversation
MiniMax Code CLI(`mcode exec`)를 claude-code 의 원샷 실행기 위에서 돌리는 네 번째 세션 워크로드 타입. 실행 모델(직렬 큐·바운드·offset 커서·--continue·파일시스템 아카이브)은 그대로 재사용하고, 다른 것은 CLI·출력 투영·Secret 셋뿐이다. - control-plane: WorkloadTypeMiniMaxCode, 전용 Secret(minimax-code-credentials)을 읽는 AC-E6 credential-proxy 사이드카, DATA_PLANE_MINIMAX_CODE_IMAGE, 전용 아카이브 게이트 MINIMAX_CODE_ARCHIVE_ENABLED(기본 off), OpenAPI enum. - data-plane: agentCLI 경계(claudeCLI 가 기본값이라 기존 두 타입은 동작 불변), miniMaxCLI(관리형 설정을 상태 트리 밖에 매 기동마다 생성, --permission smart 고정), agent_message contentDelta 만 투영하는 스트림 프로젝터, 자격 증명 env 거부. - Dockerfile: @minimax-ai/code 0.6.12 를 npm 으로 고정 설치. - k8s: env 를 목록 끝에 추가(deploy/ 오버레이 인덱스 보존), Secret 예시. - web: 목록·라우팅이 minimax-code 세션을 에이전트 작업 공간으로 연다(생성 화면은 후속). - docs: PRD AC-G1~G4. 등재 파일은 주석 줄을 바꾸지 않았다(check_comment_policy 통과). 새 주석은 새 파일에만. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R1VrPpZUiPjHiu3NHL7jrA
- 프로젝터: 유효한 JSON 이지만 예상 밖 형태인 레코드는 원문으로 흘리지 않고 버린다 (도구 출력이 세션 출력에 새는 경로 차단). 비 JSON 줄만 진단으로 통과. - 자격 증명: mcode 0.6.12 가 스스로 읽는 키 이름까지 기동 거부·redaction 목록 확장, MCODE_DISABLE_EVAL_CAPTURE=1, 관리형 설정에 promptConfig.autoUpdate=false. - control plane: minimax/claude Secret 이름이 같으면 기동 거부, Secret 이름 TrimSpace. - 테스트: 서비스 스냅숏이 generation 경로를 탔는지 기록(뮤테이션으로 확인), 아카이브 tar 에 관리형 설정·placeholder 가 없음을 직접 검사. - 웹 입력 힌트를 타입별로, pin job 주석 갱신. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R1VrPpZUiPjHiu3NHL7jrA
- data plane 내장 기본 모델을 MiniMax-M3.1-Flash 로(2026-10-19 정식 출시, Preview 대체). Secret 예시·README·PRD 동기화. - k8s/deployment.yaml 의 MINIMAX_CODE_ARCHIVE_ENABLED 를 true 로. PR 프리뷰는 flux-cd-apps 오버레이가 같은 이름을 false 로 덮어쓴다(그 변경이 먼저 머지돼야 한다). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R1VrPpZUiPjHiu3NHL7jrA
- NewSession: minimax-code 카드(wide, agent 아이콘) 추가. 이 타입은 모델 입력을 보여주지 않고 model 필드를 보내지 않아 platform-default(→ Secret 의 MiniMax 모델)로 생성된다. 진행 표시도 `model=platform default`. - workloadKind: hasModelChoice() — claude-code·approval-gated 만 모델을 고른다. /config 의 모델 카탈로그는 Claude 전용이라 minimax-code 에 보이면 안 된다. - docs/mockups/new-session.html: 같은 카드와 MODEL_CHOICE_TYPES 로 동기화. - PRD: SPA 후속 항목 제거. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R1VrPpZUiPjHiu3NHL7jrA
dlddu
force-pushed
the
feat/minimax-code-workload
branch
from
October 22, 2026 22:15
e98e544 to
576121e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
MiniMax Code CLI(
mcode exec)를 claude-code의 원샷 실행기 위에서 돌리는 네 번째 세션 워크로드 타입minimax-code를 추가한다(AC-G1~G4,docs/prd/minimax-code-workload.md).실행 모델(직렬 큐·바운드·offset 커서·
--continue·파일시스템 아카이브)은 그대로 재사용하고, 바뀌는 것은 셋뿐이다. 실행하는 CLI와 그 출력의 투영, 자격 증명 Secret, 아카이브 게이트.배경 실측 (테스트 파드, mcode 0.6.12)
https://api.minimax.io/anthropic에서x-api-key·Authorization: Bearer둘 다 200. 중국 origin(api.minimaxi.com)에서는 401.provider set-minimax-key경로는 중국 도메인을 써서 글로벌 키가 401로 실패한다. 그래서 커스텀 프로바이더 방식을 쓴다./v1/messages·/v1/messages/count_tokens모두 200. 버려지는x-mavis-*등은 불필요하다.--config <파일>로 HOME 밖 관리형 설정을 줄 수 있고 mcode는 그 파일을 수정하지 않는다. JSON 형식도 받는다.--continue로 대화 연속성 확인.--뒤 프롬프트는 옵션으로 해석되지 않는다. 기본smart권한으로 셸 도구가 실행된다.npm install -g @minimax-ai/code@0.6.12로 Node 22에 설치된다.변경
control-plane
WorkloadTypeMiniMaxCodeArchivesThroughAgent(): 서비스의 아카이브·프롬프트 한도 분기를 claude-code와 공유한다. approval-gated는 의도적으로 제외.minimax-code-credentials를 읽는다.DATA_PLANE_MINIMAX_CODE_IMAGEMINIMAX_CODE_CREDENTIALS_SECRET: claude Secret과 이름이 같으면 기동 거부.MINIMAX_CODE_ARCHIVE_ENABLED: 기본 off.data-plane
agentCLI경계를 새로 둔다.claudeCLI{}가 기본값이라 claude-code·approval-gated 동작은 그대로다.miniMaxCLI--permission smart를 고정한다.MCODE_DISABLE_EVAL_CAPTURE=1을 설정한다.agent_message의contentDelta만 투영한다. 형태가 예상 밖인 JSON은 원문으로 흘리지 않는다.platform-default이면서 Secret에 model이 없으면MiniMax-M3을 쓴다. mcode에는 설치 기본 모델이 없기 때문이다.@minimax-ai/code0.6.12 고정 설치.k8s
deploy/오버레이의 인덱스 패치를 보존한다. 이미지 문자열이 같아서 CIpinsed가 함께 고정한다.MINIMAX_CODE_ARCHIVE_ENABLED=true. 프리뷰는 flux-cd-apps#77이 false로 덮어쓴다.web
minimax-code카드를 추가했다. 이 타입은 모델 입력 없이 플랫폼 기본값(Secret의model, 기본MiniMax-M3.1-Flash)으로 생성한다./config모델 카탈로그는 Claude 전용이라 이 타입에는 보이지 않게 했다(hasModelChoice)./agent/:id)으로 연다.docs/mockups/new-session.html도 같은 카드로 동기화했다.주석 정책
check_comment_policy.py통과.검증
gofmt,go vet(기본·integration·e2e 태그),go test ./...,go test -tags=integration ./...go vet,go test ./...TestEntrypointBootstraps...1건은 변경 전에도 실패한다. 샌드박스가GIT_CONFIG_*를 export하는 환경 문제다.tsc --noEmit·vite buildcheck_comment_policy.py·check-fidelity-allowlist.py·check-render-fidelity.py·check-scenario-mapping.sh배포 전 필요한 것
/flux-cd/session-platform/minimax-code-credentials생성(SecureString JSON:base-url·auth-token·model).MINIMAX_CODE_ARCHIVE_ENABLED=false, 이미지 retag, Secret copyFrom)가 들어 있다.pin커밋 전까지는 고정된 옛 이미지에 mcode가 없어서 이 타입만 실패한다.기본 모델은
MiniMax-M3.1-Flash(2026-10-19 정식 출시)다. Secret의model키가 우선한다.https://claude.ai/code/session_01R1VrPpZUiPjHiu3NHL7jrA
Generated by Claude Code