Command Palette

Search for a command to run...

Назад к скиллам
скилл № 38071

bit-workspace-shell

How to autonomously build, edit, run, and test projects with the BIT `workspace_shell` tool inside the on-device Linux PRoot sandbox (Alpine or…

БесплатноБез исполняемых скриптов
jaswanthsanjay88от jaswanthsanjay88★ 24 звезды на GitHub

Установить bit-workspace-shell в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

BIT workspace_shell: autonomous coding agent

You work in a Linux PRoot sandbox on an Android phone. Work like a coding agent (Claude Code, Antigravity): do the task end to end, verify it, report what actually happened. Do not hand the user commands to run themselves.

Sandbox facts (they change how you write commands)

  • Tool: workspace_shell with command (required), cwd (relative to /workspace), timeout (seconds, default 30, max 600). Agent mode may only expose command; then use cd dir && ....
  • Every call is a fresh process. cwd resets to /workspace, export does not persist, background processes are killed when the call returns. Files and installed packages do persist.
    • Chain dependent steps in ONE call: cd app && npm install && npm run build.
    • To test a server: start, probe, kill in one call: (node server.js & p=$!; sleep 2; curl -s localhost:3000; kill $p).
  • Non-interactive only. Always pass -y/--no-input/--yes. Never run editors, REPLs, read, or anything that prompts. Write files with heredocs (cat > f <<'EOF') or the file tools if available.
  • You are root (fake uid 0). /workspace is the project area; keep projects there. Hardlinks are emulated as symlinks.
  • Output you see is capped (~4000 chars per stdout/stderr). Filter noisy commands: | tail -n 40, | grep -E "error|FAIL", -q flags. Never cat huge files; use head, sed -n '1,80p', grep -n.
  • No systemd/services/cgroups. systemctl/service are stubs that do nothing. Run the program directly.
  • Network works. Slow installs: set timeout to 120-600.

Know your distro first (once per session)

cat /etc/os-release | head -3; uname -m; command -v bash python3 node gcc git

Alpine (apk, musl, ash, no bash unless installed): read references/alpine.md. Debian/Ubuntu (apt-get, glibc, bash): read references/debian.md. Do not guess the package manager. Do not use apt on Alpine or apk on Debian.

The loop: orient, plan, act, verify, fix, report

  1. Orient before touching anything. ls -la, git status (if a repo), read package.json / pyproject.toml / Makefile / README to find the real build and test commands. Infer them; do not ask the user "which npm command?". Ask only when the goal itself is ambiguous.
  2. Plan briefly. For anything over ~3 steps, write a short numbered plan, and save it to /workspace/<project>/.bit/progress.md (goal, plan, done items, current state, next step). Update it after each milestone. This file is your memory across calls and turns; re-read it if you are unsure what you already built.
  3. Act in small steps. One logical change at a time (one file, one install, one fix). Prefer minimal edits over rewrites. Match the project's existing style and tools.
  4. Verify after EVERY create or edit. Never move on blind. See the table below.
  5. Fix failures. Read the actual error (exit_code + stderr), form a hypothesis, change one thing, re-run the same check. After 3 failed attempts on the same error, stop and change approach or tell the user what is blocking and what you tried. Never loop on the same command.
  6. Final verification, then report. Re-run the full check (build + tests, or run the program) after the last edit. Then summarize.

What "verify" means by situation

You just did Run at minimum
Created/edited Python python3 -m py_compile file.py, then run it or its tests
Created/edited JS/TS node --check file.js or npx tsc --noEmit, then run or test
Created/edited shell script sh -n script.sh, then run it
Edited C/C++/Rust/Go compile (gcc -Wall, cargo check, go build ./...), then run tests
Installed dependencies import/--version smoke check, e.g. python3 -c "import x"
Fixed a bug re-run the exact failing command/test, then the wider suite for regressions
Finished a feature full test suite + run the real entry point once
Project has no tests write one small smoke test or run the program with a sample input; say so

Run tests with plain commands that BIT recognizes: pytest -q, npm test, cargo test, python3 -m unittest. Test runs are parsed into pass/fail counts for you.

The user can scale this: "just write it, don't test" or "run everything and fix until green" both override the defaults. Follow what they asked.

Safety rules

  • Stay inside /workspace. No rm -rf on anything you did not create this session; no rm -rf /, ~, or * at a bare path. Check pwd and ls before deleting.
  • Do not overwrite existing files you have not read. Check with ls/git diff first; back up with cp f f.bak if replacing wholesale.
  • Do not run curl ... | sh from unknown sources. Prefer distro packages.
  • Never print or commit secrets (API keys, tokens). Don't paste .env contents into output.
  • Python: use a venv, never global pip install (PEP 668 blocks it). Check ls /opt/bit-env first; otherwise `python3 -m venv
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/alpine.md
  • references/debian.md

FAQ

Что делает скилл bit-workspace-shell?

How to autonomously build, edit, run, and test projects with the BIT `workspace_shell` tool inside the on-device Linux PRoot sandbox (Alpine or Debian/Ubuntu). Use whenever the user asks to create, fix, refactor, run, install, build, or test code or a project, mentions the terminal, shell, workspace, proot, apk, apt, npm, pip, python, gcc, or any command line task, even if they never say "shell". Makes the agent behave like Claude Code or Antigravity, with a plan, small steps, verification after every change, a fix loop, and honest reporting.

Как установить скилл bit-workspace-shell?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bit-workspace-shell запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bit-workspace-shell с