teleport
Skill này làm gì
Skill chuyển một tác vụ từ phiên này sang một phiên mới trên máy khác. Skill dành cho người dùng HumanLayer muốn tiếp tục công việc trên sandbox, VM đám mây hoặc máy tính từ xa.
Khi nào nên dùng
- ✓Khi bạn muốn tiếp tục tác vụ này trên một máy đám mây hoặc sandbox.
- ✓Khi máy tính hiện tại của bạn không phải nơi phù hợp để giữ tác vụ chạy.
- ✓Khi bạn muốn phiên mới bắt đầu từ một file bàn giao và nhánh đã được đẩy lên.
Liên kết skill
https://github.com/humanlayer/humanlayer/blob/main/apps/riptide-humanlayer-claude-plugin/skills/teleport/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chuyển tác vụ này sang một VM đám mây để nó có thể tiếp tục chạy khi tôi đi vắng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent thu thập chi tiết về phiên và nhánh, hỏi bạn một bộ câu hỏi ngay từ đầu, rồi đẩy nhánh lên và viết file bàn giao. Phiên mới bắt đầu từ file đó.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Move this task to a new session on another host. Ask every question up front, then do the work without more check-ins. Keep messages short.
The remote session is a new session in the same task. It does not resume this conversation. It starts from handoff.md and the pushed branch.
1. Gather context, then ask once
Before asking anything, collect:
Stage: use
produnlessHUMANLAYER_SESSION_URLor the user points elsewhere.app.humanlayer.com= prod,app.codelayer.cloud= beta,app.dev.codelayer.gg= dev.Session, task, task slug, workspace, and host IDs, plus the coding agent, provider, model, effort, and permission mode: read them from the
<humanlayer_session>block in your system prompt.Task directory:
.humanlayer/tasks/<task-slug>/.Git: branch,
git status, and the remote to push to (for exampleoriginorupstream). If there is only one remote, use it.Saved defaults:
.humanlayer/teleport.json, if present.Project workspace, if the workspace ID is set. The new host builds its worktree from the workspace's branch on the project's remote, so read both:
humanlayer api project-workspaces get-status --task-id <task-id> > /tmp/hl-workspace.json jq -r '.workspace.projectId, (.workspace.repositories[] | [.repositoryIdentity, .remoteUrl, .branch, .default] | @tsv)' /tmp/hl-workspace.jsonPush to the git remote whose URL matches the project's
remoteUrl, not a fork. If more than one remote matches, ask.Secret files:
.envfiles, local settings, and keys that git does not carry. Find them and list their key names with references/secrets.md. Never print a value.
Then ask one message covering only what is still unknown:
- Compute:
- Sandbox: Freestyle, Daytona, E2B, Modal, or any other service that can run Linux
- Cloud VM: EC2, GCP, or another provider; new or existing
- Existing machine over SSH or Tailscale (for example a Mac mini)
- How to reach the host (SSH alias, user, provider account or project).
- Which agents to install and sign in: Claude Code, Codex, or both. Default to the agent running this session.
- Stage, if it is not clear.
- Which remote to push to, if there is more than one. List them and mark the branch's tracking remote, if any.
- Which secret files to copy. List each file with its key count and your advice (copy, skip, or ask), and flag keys that look tied to this machine or to production. Name keys; never show values.
If the worktree is dirty, say in the same message: "Uncommitted changes will be committed and pushed to <branch> before the move." Do not ask a separate question about it.
If the user gives reusable answers that are not in teleport.json, offer to save them in that same message.
2. Saved defaults
.humanlayer/teleport.json holds project defaults. The user's words in this session win over the file. Never save secrets, tokens, one-time codes, or session IDs. secretFiles holds paths only.
{
"stage": "prod",
"compute": "freestyle",
"host": "my-dev-vm",
"access": "freestyle-ssh",
"agents": ["claude"],
"daemonSupervisor": "systemd",
"secretFiles": [".env", "packages/db/.env"],
"notes": ["Persistent VM. Do not stop it after the move."]
}
3. Save the work
- Commit all changes and push the branch. Stop if a file looks like a secret (
.env, keys, credentials) or no writable remote exists, and tell the user the exact blocker.- For a project workspace, push to the project's remote. If the current branch is not the workspace branch, push both, and name the current branch in the session prompt. The new host starts from the workspace branch as pushed; unpushed commits stay behind.
- Write
.humanlayer/tasks/<task-slug>/handoff.mdwith everything the next agent needs:- goal and current status
- decisions made and why
- work done, work left, and the next step
- open questions and known problems
- key files and artifacts to read
- repo, branch, remote, and commit SHA
- source session URL
4. Prepare the host
Use the provider CLIs already signed in on this machine. Check --help when unsure. Do not stop or delete compute when done.
Run every interactive step in a named tmux session on the host (hl-auth, hl-claude, hl-codex, hl-gh, hl-daemon). Read the pane with tmux capture-pane -p, show the user any URL or code, and send their answers with tmux send-keys.
- Install missing tools:
tmux,git, Node
Câu hỏi thường gặp
Phiên mới có nhớ cuộc trò chuyện này không?
Không. Nó bắt đầu từ file bàn giao và nhánh đã đẩy lên, không phải từ cuộc trò chuyện này.
Nó sẽ hỏi bao nhiêu câu?
Nó hỏi tất cả trong một vòng ngay từ đầu, rồi làm việc mà không hỏi lại thêm.
Nó dùng môi trường HumanLayer nào?
Nó dùng production, trừ khi có URL phiên hoặc bạn chỉ định môi trường khác.
Chi tiết
Mô tả gốc của tác giả
Move the current task to a new HumanLayer session on another host (sandbox, cloud VM, or a machine you can SSH into).
repo: humanlayer/humanlayer
Độ phổ biến
- Sao GitHub
- 13k
- Vị trí xếp hạng
- #11395
- Giấy phép
- Apache-2.0
- Cập nhật
- 31/10/2026
Bình luận
- …
Thêm skill từ kho mã này
asd-ste100
13kDạy agent của bạn viết lại tiếng Anh khó hiểu thành câu ngắn, mỗi câu một nghĩa, dễ đọc đối với con người và phần mềm khác.
better-github-skill
13kGiúp agent của bạn kiểm tra trạng thái pull request, đọc bình luận review và tìm lý do bản build CI thất bại, bằng các script GitHub có sẵn.
calldiff
13kGiúp agent của bạn so sánh chuỗi lời gọi hàm trong một codebase giữa hai phiên bản git, để review code thấy hành vi nào đã thay đổi.
chrome-devtools-cli
13kCho phép agent của bạn điều khiển Chrome từ terminal để mở trang, nhấp, điền biểu mẫu và chụp snapshot trang cho tự động hóa và kiểm thử trình duyệt.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.