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★ 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_shellwithcommand(required),cwd(relative to/workspace),timeout(seconds, default 30, max 600). Agent mode may only exposecommand; then usecd dir && .... - Every call is a fresh process. cwd resets to
/workspace,exportdoes 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).
- Chain dependent steps in ONE call:
- 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).
/workspaceis 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",-qflags. Nevercathuge files; usehead,sed -n '1,80p',grep -n. - No systemd/services/cgroups.
systemctl/serviceare stubs that do nothing. Run the program directly. - Network works. Slow installs: set
timeoutto 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
- Orient before touching anything.
ls -la,git status(if a repo), readpackage.json/pyproject.toml/Makefile/READMEto 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. - 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. - 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.
- Verify after EVERY create or edit. Never move on blind. See the table below.
- 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.
- 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. Norm -rfon anything you did not create this session; norm -rf /,~, or*at a bare path. Checkpwdandlsbefore deleting. - Do not overwrite existing files you have not read. Check with
ls/git difffirst; back up withcp f f.bakif replacing wholesale. - Do not run
curl ... | shfrom unknown sources. Prefer distro packages. - Never print or commit secrets (API keys, tokens). Don't paste
.envcontents into output. - Python: use a venv, never global
pip install(PEP 668 blocks it). Checkls /opt/bit-envfirst; otherwise `python3 -m venv
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…