Skip to main content

file-sync

Sync files with centralized storage. Use when your coordinator or another Worker notifies you of file updates (config changes, task files, shared data, collaboration artifacts).

소스 정보

저장소
agentscope-ai/AgentTeams
최근 소스 활동
2026년 7월 20일 15:22
감지된 SKILL.md 언어
영어
스타
5,761
포크
710

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
file-sync
description
Sync files with centralized storage. Use when your coordinator or another Worker notifies you of file updates (config changes, task files, shared data, collaboration artifacts).
# File Sync (OpenHuman Worker) ## Sync agent config files When your coordinator notifies you that your config has been updated (e.g., skill update, model switch), pull the latest from MinIO: ```bash mc mirror --overwrite "${AGENTTEAMS_STORAGE_PREFIX}/agents/${AGENTTEAMS_WORKER_NAME}/" /home/openhuman/.openhuman/agent-config/ ``` **Hot reload caveats:** - OpenHuman Core reloads `SOUL.md` on the next message — no restart needed - Skill changes in `/home/openhuman/.openhuman/skills/` are picked up on the next message as well - Changes that affect `config.toml` (Matrix channel, LLM provider) require a container restart — your coordinator handles this when needed **Automatic background sync:** - Background sync runs every 60 seconds as a fallback - Most file changes are picked up without manual sync ## Sync task / shared files The `shared/` directory is automatically mirrored from MinIO at startup and every sync cycle. No manual pull is needed. Task and project files are at: | Local path (auto-synced) | |---| | `shared/tasks/{task-id}/` | | `shared/projects/{project-id}/` | ```bash # Read the spec (already synced locally) cat /home/openhuman/.openhuman/shared/tasks/{task-id}/spec.md # Push your results back to MinIO (push is still manual) bash /home/openhuman/.openhuman/skills/file-sync/scripts/push-shared.sh tasks/{task-id}/ --exclude "spec.md" --exclude "base/" ``` The `push-shared.sh` script automatically detects your team and pushes to the correct MinIO path. **When to use:** - When you finish work: push results back to MinIO using `push-shared.sh` - When told files have been updated urgently: run the manual mc mirror command above Always confirm to the sender after push completes. **Example workflow:** ```bash # Coordinator assigns task: "New task [st-01]. Please file-sync and read shared/tasks/st-01/spec.md" # Pull latest (if needed) mc mirror --overwrite "${AGENTTEAMS_STORAGE_PREFIX}/agents/${AGENTTEAMS_WORKER_NAME}/" /home/openhuman/.openhuman/agent-config/ # Read the spec cat /home/openhuman/.openhuman/shared/tasks/st-01/spec.md # ... do the work ... # Push results bash /home/openhuman/.openhuman/skills/file-sync/scripts/push-shared.sh tasks/st-01/ --exclude "spec.md" --exclude "base/" # Confirm to coordinator "Task complete. Results pushed to MinIO." ```
GitHub에서 보기