terminaluse
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTerminalUse
TerminalUse
Build, deploy, interact with agents. Flow: init → deploy → create task → send messages.
Full docs: https://docs.terminaluse.com/llms-full.txt
构建、部署并与Agent交互。流程:初始化 → 部署 → 创建任务 → 发送消息。
CLI Setup
CLI 配置
The CLI is provided by the Python package. Before running any commands:
tuterminalusetu-
Verifyis available:
tubashwhich tu || echo "tu CLI not found" -
If not installed, ask user whether they would like to install it or if there's a venv they would like to source
-
Ensure you have an active token with. You can run the command which will open a browser for the user to login.
tu login
tuterminalusetu-
验证是否可用:
tubashwhich tu || echo "tu CLI not found" -
若未安装,询问用户是否想要安装它,或者是否有想要激活的虚拟环境(venv)
-
使用确保你拥有有效的令牌。运行该命令会打开浏览器供用户登录。
tu login
Context Requirement
上下文要求
Most commands require in current directory to know what agent to target. Before running commands:
tuconfig.yamlbash
ls config.yaml || echo "Not in agent directory"If not present, into the agent project folder first.
cd大多数命令需要当前目录下存在来指定目标Agent。在运行命令之前:
tuconfig.yamlbash
ls config.yaml || echo "Not in agent directory"若不存在,先切换到Agent项目文件夹中。
Quick Reference
快速参考
| Action | Command |
|---|---|
| Login | |
| Init agent | |
| Deploy | |
| List deployments | |
| Rollback | |
| Add env var | |
| Import env file | |
| Create task | |
| Create task (auto-create fs) | |
| Send message | |
| 操作 | 命令 |
|---|---|
| 登录 | |
| 初始化Agent | |
| 部署 | |
| 列出部署记录 | |
| 回滚 | |
| 添加环境变量 | |
| 导入环境变量文件 | |
| 创建任务 | |
| 创建任务(自动创建文件系统) | |
| 发送消息 | |
Workflows
工作流
| Task | Reference |
|---|---|
| Create a new agent | ./workflows/create.md |
| Deploy to platform | ./workflows/deploy.md |
| Test/interact with agent | ./workflows/interact.md |
You must look at the corresponding workflow files based on user intent.
| 任务 | 参考文档 |
|---|---|
| 创建新Agent | ./workflows/create.md |
| 部署到平台 | ./workflows/deploy.md |
| 测试/与Agent交互 | ./workflows/interact.md |
需根据用户的需求查看对应的工作流文件。
Anti-patterns
反模式
- Creating task without filesystem or project. Tasks either need a filesystem. If project is provided, a filesystem is auto-created in the project
- Modifying Dockerfile /
ENTRYPOINT→ breaks deploymentCMD - Trying to use the agent right after updating secrets. You must wait for the new version to become active. Check with
tu ls
- 未指定文件系统(filesystem)或项目就创建任务。任务必须关联文件系统;若提供了项目,系统会自动在该项目中创建一个文件系统。
- 修改Dockerfile的/
ENTRYPOINT→ 会导致部署失败CMD - 在更新密钥后立即尝试使用Agent。你必须等待新版本激活后再使用。可通过检查状态。
tu ls
Error Recovery
错误恢复
| Error | Action |
|---|---|
| Deploy fails | |
| Need rollback | |
| 错误 | 操作 |
|---|---|
| 部署失败 | |
| 需要回滚 | |
Docs/Skills Feedback
文档/技能反馈
If docs or skills are wrong/unclear, ask user permission to send feedback to (include the feedback in the user request):
Never include any sensitive information.
bash
curl -X POST 'https://uutzjuuimuclittwbvef.supabase.co/functions/v1/tu-docs-feedback' \
-H 'Content-Type: application/json' \
-d '{"feedback":"<issue>", "page":"<page URL> or section name"}'若文档或技能存在错误/表述不清,需先征得用户同意,再将反馈发送至(反馈内容需包含在用户请求中):
请勿包含任何敏感信息。
bash
curl -X POST 'https://uutzjuuimuclittwbvef.supabase.co/functions/v1/tu-docs-feedback' \
-H 'Content-Type: application/json' \
-d '{"feedback":"<issue>", "page":"<page URL> or section name"}'