Animaworks guide

From xuiltul/animaworks · View interactive version

Animaworks guide is an AI agent skill from the GitHub repository xuiltul/animaworks. animaworks 명령어의 완전한 참조. 서버 조작·Anima 관리·모델·작업·설정·RAG·자산·외부 도구의 CLI 형식을 정리한다. Use when: 서브커맨드 형식 확인, 서버 시작 종료, Anima 생성·모델 변경·작업 추가·로그·설정·인덱스 조작이 필요할 때.

How to use this skill

Skill file

AnimaWorks CLI 완전 참조

AnimaWorks의 모든 조작은 animaworks 명령어로 수행한다.

이 스킬은 모든 서브커맨드의 형식·인자·구체적인 예를 정리한 참조다.

운영의 개념이나 규칙은 common_knowledge/ 및 reference/를 참조:


비권장·호환 별칭

# --local(deprecated: ProcessSupervisor をバイパスする直接実行。HTTP API 経由が推奨)
animaworks chat {名前} "..." --local
animaworks heartbeat {名前} --local

권장: animaworks start(또는 serve)로 서버를 시작하고, --local를 붙이지 않고 chat / heartbeat를 사용한다.

gateway / worker 서브커맨드는 숨겨진 호환용(분산 아키텍처 폐지 후에는 사용하지 않음).


서버 조작(기본적으로 사용하지 않을 것)

animaworks start                         # サーバー起動(デフォルト: 0.0.0.0:18500)
animaworks serve                         # start のエイリアス
animaworks start --host 127.0.0.1        # バインドアドレス指定
animaworks start --port 8080             # ポート指定
animaworks start --foreground            # フォアグラウンド起動(-f、デバッグ用)
animaworks stop                          # サーバー停止
animaworks stop --force                  # 強制停止(SIGTERM後SIGKILL、孤立プロセスも終了)
animaworks restart                       # サーバー再起動(--host / --port / -f / --force 可)
animaworks restart --force               # 強制停止してから再起動
animaworks status                        # システム状態確認(プロセス・Anima一覧)
animaworks reset                         # ランタイムディレクトリ削除+再初期化
animaworks reset --restart               # リセット後サーバー自動起動

Anima 관리(anima 서브커맨드)

목록·상태·상세 정보

animaworks anima list                    # 全Anima一覧(名前・有効/無効・モデル・supervisor)
animaworks anima list --local            # API不使用・ファイルシステム直接スキャン
animaworks anima status                  # 全Animaのプロセス状態(State・モデル・PID・Uptime)
animaworks anima status {名前}           # 特定Animaのプロセス状態
animaworks anima info {名前}             # 設定詳細(モデル・ロール・credential・voice等)
animaworks anima info {名前} --json      # JSON出力
animaworks anima permissions {名前}      # ツール許可を表示(load_permissions: JSON 優先、レガシーは permissions.md)

anima info의 출력 항목:

생성

# キャラクターシート(MD)から作成(推奨)
animaworks anima create --from-md {ファイル} [--role {role}] [--name {名前}]

# テンプレートから作成
animaworks anima create --template {テンプレート名} [--name {名前}]

# ブランク作成
animaworks anima create --name {名前}

활성화·비활성화·삭제

animaworks anima enable {名前}           # 有効化(休養から復帰)
animaworks anima disable {名前}          # 無効化(休養)
animaworks anima delete {名前}           # 削除(ZIPアーカイブ後)
animaworks anima delete {名前} --no-archive  # アーカイブなしで削除
animaworks anima delete {名前} --force   # 確認なしで削除
animaworks anima restart {名前}          # プロセス再起動

활동 감사(audit)

대상 Anima의 activity_log을 읽는다(도움말 문구는 subordinate지만, 이름을 지정하면 임의의 Anima로 가능).

animaworks anima audit {名前}            # 活動監査(デフォルト: report モード・直近1日)
animaworks anima audit {名前} --days 7   # 集計日数(最大30)
animaworks anima audit --all             # 全Animaを対象(タイムラインをマージ)
animaworks anima audit {名前} --since 09:00   # 当日 JST の時刻以降(指定時は --days より優先)
animaworks anima audit {名前} --mode summary  # 統計サマリー(省略時は report=時系列)

모델 변경

animaworks anima set-model {名前} {モデル名}
animaworks anima set-model {名前} {モデル名} --credential {credential名}
animaworks anima set-model --all {モデル名}   # 全Anima一括変更

변경 후 서버가 실행 중이면 anima restart {名前}이 필요하다.

백그라운드 모델(Heartbeat/Cron용)

animaworks anima set-background-model {名前} {モデル名}   # Heartbeat・Cron用モデルを設定
animaworks anima set-background-model {名前} {モデル名} --credential {credential名}
animaworks anima set-background-model {名前} --clear    # オーバーライド解除(メインモデルにフォールバック)
animaworks anima set-background-model --all --clear     # 有効な全Animaの background を一括クリア
animaworks anima set-background-model --all {モデル名}   # 有効な全Anima一括(モデルは位置引数でも可: `{モデル} --all`)

이름 변경

animaworks anima rename {旧名前} {新名前}
animaworks anima rename {旧名前} {新名前} --force   # 確認なしで実行

역할 변경

# ロール変更(テンプレート再適用 + 自動restart)
animaworks anima set-role {名前} {role}

# status.jsonのroleフィールドのみ変更(テンプレートは触らない)
animaworks anima set-role {名前} {role} --status-only

# ファイル更新のみ・再起動しない
animaworks anima set-role {名前} {role} --no-restart

set-role로 자동 업데이트되는 파일(--status-only 외):

유효한 역할: engineer, researcher, manager, writer, ops, general

핫 리로드

animaworks anima reload {名前}           # status.json からモデル設定を再読み込み(プロセス再起動なし)
animaworks anima reload --all            # 全Animaをリロード

모델 정보(models 서브커맨드)

animaworks models                        # サブコマンド一覧(help)
animaworks models list                   # 組み込みカタログ(KNOWN_MODELS): 名前・モード・コンテキスト・注記
animaworks models list --mode S          # モードでフィルタ(CLI の choices は S / A / B / C のみ・大文字小文字可)
animaworks models list --json            # JSON出力
animaworks models info {モデル名}        # 任意モデル名の解決結果(実行モード・コンテキスト窓・閾値・ソース)
animaworks models show                   # ~/.animaworks/models.json のパターン一覧
animaworks models show --json            # models.json を生JSON出力

models list에 없는 모델(예: cursor/*, gemini/*)은 models info <名前>와 models.json로 확인한다.

상세 → reference/operations/model-guide.md


채팅·메시지

# Animaとチャット(人間→Anima)
animaworks chat {名前} "メッセージ"
animaworks chat {名前} "メッセージ" --from {送信者名}
animaworks chat {名前} "メッセージ" --local  # deprecated(ヘルプ参照)

# Anima間メッセージ送信(Animaコンテキストでは送信者は自分のAnima名、intentは必須)
animaworks send {自分} {受信者} "メッセージ" --intent report   # report または question。委譲には delegate_task を使う
animaworks send {自分} {受信者} "メッセージ" --intent question
animaworks send {自分} {受信者} "メッセージ" --intent report --reply-to {メッセージID}
animaworks send {自分} {受信者} "メッセージ" --intent report --thread-id {スレッドID}

# ハートビート手動起動
animaworks heartbeat {名前}
animaworks heartbeat {名前} --local      # deprecated(ヘルプ参照)

보드(공유 채널)

animaworks board read {チャネル名}                      # 前回の続きから読む(デフォルト --limit 20)
animaworks board read {チャネル名} --latest             # 最新だけを見る(読んだ位置は進めない)
animaworks board read {チャネル名} --limit 50           # 最大件数
animaworks board read {チャネル名} --human-only         # 人間の投稿のみ
animaworks board post {送信者} {チャネル名} "テキスト"  # チャネルへ投稿
animaworks board dm-history {自分} {相手}               # DM履歴(デフォルト --limit 20、direction both)
animaworks board dm-history {自分} {相手} --limit 50    # 件数指定
animaworks board dm-history {自分} {相手} --direction sent --hours 24 --keyword deploy

설정 관리(config 서브커맨드)

animaworks config                        # ヘルプ表示(子コマンドまたは -i が無い場合)
animaworks config -i                     # 対話式ウィザード(credential・Anima設定)
animaworks config list                   # 全設定値の一覧表示
animaworks config list --section system  # セクションでフィルタ(例: system, credentials)
animaworks config list --show-secrets    # API keyを表示
animaworks config get {キー}             # 特定の設定値取得(ドット記法: system.mode)
animaworks config get {キー} --show-secrets
animaworks config set {キー} {値}        # 設定値を変更

주의: Anima의 모델·credential 등은 status.json이 SSoT. animas.{名前}.model 등의 직접 설정은 비권장. animaworks anima set-model을 사용할 것.


프로필(profile 서브커맨드·멀티테넌트)

여러 AnimaWorks 인스턴스(별도 데이터 디렉터리)를 관리한다.

animaworks profile list                  # 全プロファイル一覧(data_dir・port・状態)
animaworks profile add {名前}             # プロファイル登録(data_dir: ~/.animaworks/{名前})
animaworks profile add {名前} --data-dir /path/to/data --port 18510
animaworks profile remove {名前}         # 登録解除(データは残る)
animaworks profile start {名前}          # そのプロファイルのサーバー起動
animaworks profile stop {名前}           # そのプロファイルのサーバー停止
animaworks profile stop {名前} --force   # 強制停止
animaworks profile start-all             # 全プロファイルを起動
animaworks profile stop-all              # 全プロファイルを停止
animaworks profile stop-all --force      # 強制停止で全停止

로그 열람(logs)

animaworks logs {名前}                   # 特定Animaのログ表示
animaworks logs --all                    # サーバー+全Animaのログ表示
animaworks logs {名前} --lines 100       # 表示行数指定(デフォルト: 50)
animaworks logs {名前} --date 20260301   # 特定日のログ表示

비용 확인(cost)

animaworks cost                          # 全Animaのトークン使用量・コスト
animaworks cost {名前}                   # 特定Animaのコスト
animaworks cost --today                  # 本日のみ
animaworks cost --days 7                 # 直近7日(デフォルト: 30日)
animaworks cost --json                   # JSON出力

작업 관리 (task 하위 명령어)

전제: 실행 전에 ANIMAWORKS_ANIMA_DIR을 대상 Anima의 디렉터리(예: ~/.animaworks/animas/{名前})로 설정해야 합니다. 설정하지 않으면 오류가 발생합니다(Anima 하위 프로세스 내의 animaworks-tool task 또는 셸에서 변수를 지정한 animaworks task가 예상된 용도입니다).

animaworks task list                     # タスク一覧(JSON)
animaworks task list --status pending    # ステータスでフィルタ(pending/in_progress/done/cancelled)
animaworks task add --assignee {名前} --instruction "タスク内容"   # 既定 --source anima。実行入力を登録しTaskExecが実行
animaworks task add --assignee {名前} --instruction "内容" --source human
animaworks task add ... --relay-chain alice,bob   # カンマ区切りリレー鎖(任意)
animaworks task add ... --summary "1行要約"       # 省略時は instruction の先頭100文字
# task add は実行可能タスク。追跡専用の backlog_task ツールとは用途が異なる
animaworks task update --task-id {ID} --status done
animaworks task update --task-id {ID} --status done --summary "完了サマリー"

RAG 인덱스 관리

의존: RAG 스택 미설치 시 pip install 'animaworks[rag]'이 필요(CLI가 오류를 표시하고 종료).

animaworks index                         # 全Anima: knowledge/episodes/procedures/skills + state/conversation.json の要約
                                         # + common_knowledge/common_skills(有効Animaごと)+ shared/users
animaworks index --anima {名前}          # 当該Animaのみ(共有コレクション・shared/users はスキップ)
animaworks index --anima {名前} --shared # 当該Animaのメモリに加え common_knowledge/common_skills も更新
animaworks index --full                  # コレクション削除からの全再構築(埋め込みモデル変更・L2→cosine 移行時は必須)
animaworks index --dry-run               # 確認のみ

런타임 이행(migrate)

animaworks migrate                       # 未適用のマイグレーションを実行
animaworks migrate --dry-run             # 変更プレビュー
animaworks migrate --verbose             # ファイル単位の詳細
animaworks migrate --list                # ステップ一覧と適用済みフラグ
animaworks migrate --force               # 状態に関わらず再適用

실행 중인 서버가 있으면 경고가 나온다. ~/.animaworks/config.json이 없으면 실패한다.


자산 조작

자산 최적화

animaworks optimize-assets                              # assets/ を持つ全Anima(anim_*.glb ストリップ、avatar_chibi*.glb に Draco は既定で実行)
animaworks optimize-assets --anima {名前}               # 特定Animaのみ(短縮形: -a {名前})
animaworks optimize-assets --dry-run                    # 確認のみ
animaworks optimize-assets --all                        # 簡素化・テクスチャ処理・Draco 等をまとめて適用
animaworks optimize-assets --simplify                   # メッシュ簡素化(既定比率 0.27 前後)
animaworks optimize-assets --simplify 0.2              # 簡素化比率を数値で指定
animaworks optimize-assets --texture-compress           # WebP 化(--texture-resize 省略時は 1024 相当の扱い)
animaworks optimize-assets --texture-resize 512         # テクスチャ最大辺
animaworks optimize-assets --skip-backup                # 実行前バックアップをスキップ

자산 재생성(Vibe Transfer)

animaworks remake-assets {名前} --style-from {参照Anima}   # 参照の fullbody を基準にスタイル転写
# --steps: カンマ区切り。既定は全ステップ。候補:
#   fullbody, bustup, icon, chibi, 3d, rigging, animations
animaworks remake-assets {名前} --style-from {参照} --steps fullbody,icon
animaworks remake-assets {名前} --style-from {参照} --prompt "..."   # prompt.txt の上書き
animaworks remake-assets {名前} --style-from {参照} --vibe-strength 0.6
animaworks remake-assets {名前} --style-from {参照} --vibe-info-extracted 0.8
animaworks remake-assets {名前} --style-from {参照} --seed 42          # fullbody の再現性
animaworks remake-assets {名前} --style-from {参照} --image-style anime|realistic
animaworks remake-assets {名前} --style-from {参照} --dry-run
animaworks remake-assets {名前} --style-from {参照} --no-backup

외부 도구 실행(animaworks-tool)

Anima가 외부 서비스(Slack, Gmail, GitHub 등)를 사용하는 경우의 명령어.

첫 번째 인자가 등록된 도구 이름 또는 submit일 때, animaworks는 내부에서 animaworks-tool로 대체된다(예: animaworks web_search query "...").

# ヘルプ表示
animaworks-tool {ツール名} --help

# 実行
animaworks-tool {ツール名} {サブコマンド} [引数...]

# バックグラウンド実行(長時間ツール向け)
animaworks-tool submit {ツール名} {サブコマンド} [引数...]

구체적인 예

animaworks-tool web_search query "AnimaWorks framework"
animaworks-tool slack send "#general" "おはようございます"   # gated: 明示的な許可が必要
animaworks-tool github issues --repo owner/repo
animaworks-tool submit image_gen pipeline "1girl, ..." --anima-dir $ANIMAWORKS_ANIMA_DIR

submit의 상세 → common_knowledge/operations/background-tasks.md

디렉터리 정리

하위 프로세스용 하위 명령어 (internal / vault / supervisor)

모두 ANIMAWORKS_ANIMA_DIR 필수(task와 동일)입니다. 최상위 animaworks에도 같은 이름의 하위 명령어가 등록되어 있습니다.

internal

animaworks-tool internal archive-memory {相対パス} [--reason "理由"]  # knowledge/ procedures/ state/overflow_inbox/ のみ。episodes/ は対象外
# --reason の既定値は "archived via CLI"。パス権限・保護ファイル検査と索引更新は archive_memory_file ツールが行う
animaworks-tool internal check-permissions {ツール名} [アクション]
# ※ permissions.json(external_tools の allow/deny と gated action)で判定。判定できないときは不許可として返る
animaworks-tool internal create-skill {名前} [--content ...] [--location personal|common]  # 省略時は標準入力
animaworks-tool internal manage-channel create|archive|add_member|remove_member|info {チャネル名} [--member 名前] [--description 説明]
animaworks-tool internal list-background-tasks [--status running|completed|failed|pending]
animaworks-tool internal check-background-task {task_id}

vault(Anima 네임스페이스가 지정된 KV)

저장 위치는 "자신의 Anima 네임스페이스"와 "shared 섹션"의 두 곳입니다. Anima는 자신의 네임스페이스와 shared를 읽을 수 있지만, 쓰기 및 삭제는 자신의 네임스페이스에서만 가능합니다. shared에 쓰거나 삭제하는 작업은 ANIMAWORKS_ANIMA_DIR를 설정하지 않은 운영자 전용입니다. get은 지정하지 않으면 자신의 네임스페이스 → shared 순으로 검색하고, list는 이 두 곳만 표시합니다.

animaworks-tool vault get {キー}              # 自分の名前空間 → shared の順に探す
animaworks-tool vault get {キー} --shared     # shared のみ
animaworks-tool vault store {キー} {値}       # 自分の名前空間へ
printf '%s' "{値}" | animaworks-tool vault store {キー} --shared   # オペレーター専用(stdin 経由のみ)
animaworks-tool vault list                    # {"sections":{"自分の名前空間":[...], "shared":[...]}}
animaworks-tool vault list --shared           # shared のみ
animaworks-tool vault delete {キー}           # 自分の名前空間から削除
animaworks-tool vault delete {キー} --shared  # オペレーター専用

Anima는 --shared에 의한 쓰기 및 삭제를 실행할 수 없습니다. 일회용 토큰처럼 "유효한 복사본이 동시에 하나만 존재할 수 있는" 값은 저장 위치를 한 곳으로 정하고 분산시키지 마세요.

supervisor(ANIMAWORKS_ANIMA_DIR의 Anima 이름을 시작점으로, status.json의 supervisor 관계를 따라 하위 항목을 확인)

animaworks-tool supervisor org-dashboard
animaworks-tool supervisor ping [--name {部下名}]    # 省略時は全配下
animaworks-tool supervisor read-state {部下名}      # 位置引数(祖先関係チェックあり)
animaworks-tool supervisor task-tracker [--status delegated]   # 既定 status=delegated(文字列でフィルタ)

백그라운드 작업 확인


초기화·마이그레이션

animaworks init                          # ランタイムディレクトリ初期化(~/.animaworks/)
animaworks init --force                  # 既存にテンプレート差分をマージ
animaworks init --skip-anima             # インフラのみ初期化(Anima作成スキップ)
animaworks init --template {名前}       # テンプレートからAnimaを非対話で作成
animaworks init --from-md {PATH}         # MDファイルからAnimaを非対話で作成
animaworks init --blank {名前}           # ブランクAnimaを非対話で作成
animaworks init --from-md {PATH} --name {名前}  # 作成時の名前を上書き
旧形式の cron.md はサーバ起動時と `animaworks migrate` で自動変換される。

스키마 이행은 animaworks migrate(위)을 참조.


글로벌 옵션

animaworks --gateway-url http://host:port {コマンド}   # API ベース URL(既定: http://localhost:18500)
animaworks --data-dir /path/to/data {コマンド}         # ランタイムディレクトリ(~/.animaworks 相当)

--data-dir은 서브커맨드 실행 전에 ANIMAWORKS_DATA_DIR로 반영된다.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.