Workspace Isolation logo

Workspace Isolation

Community
Lanqiao-Luca
workspace-isolation

按执行实例准备、核验和回收worktree与实际sandbox,缺后端时拒绝,不把目录当隔离。

Overview

PublisherLanqiao-Luca
Repositoryai-java-workflow
Skill nameworkspace-isolation
Stars
324
Forks
13
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Lanqiao-Luca on GitHub. Read the source before you install it.

Installation

Install the Workspace Isolation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Lanqiao-Luca/ai-java-workflow/tree/main/skills/workspace-isolation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Lanqiao-Luca/ai-java-workflow.git /tmp/ai-java-workflow
mkdir -p .claude/skills
cp -r /tmp/ai-java-workflow/skills/workspace-isolation .claude/skills/workspace-isolation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Workspace Isolation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Workspace Isolation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Workspace Isolation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

目的:将当前任务边界适配到可验证的执行实例与资源,保护已有工作区。

适用于:需要并发写入或保护现有工作区且宿主提供已验证后端的任务。

工作区隔离

适用与输入

需要并发写入或保护现有工作区时采用;输入为可信仓库、冻结提交、run_id/父子关系、运行根、工具只读根、写集与有限预算。调用者须明确这些目录和动作已授权。

共用方法

实际步骤

  1. 核来源和干净快照;不stash用户改动,也不凭HEAD猜未提交代码。当前实现拒属性过滤器、子模块和符号链接来源。
  2. 通过宿主资源机制分配独立branch/worktree/HOME/TMP;不把宿主凭证、Git管理目录和相邻实例挂载给作业。
  3. 调用实际macOS内核后端并探测读写/网络/Git/链接/派生进程边界;不支持即拒绝,未知不能填通过。
  4. 执行已声明前台argv,单写状态和有限预算由宿主控制。当前默认禁止fork,Maven/Gradle等需要子进程的命令不可直接使用此后端。
  5. 作业结束核字节/HEAD/index/写集;仅宿主提交,并在集成候选重验。回收只处理干净、身份一致的已停止资源。

输出与停止

交资源归属、探测、输入/输出提交、状态与未决;实际源码/日志默认私有,不因产出自动公开。超时/取消终止已知进程组;UNKNOWN占用不自动释放或重试,整个池隔离后需人工核外部状态。审计检查不等于自动续跑。

能力边界

仅已测macOS sandbox-exec实验前台后端,该命令已弃用;无Linux/Windows裸进程回退。文件元数据/根目录枚举及声明工具根只读允许,不提供恶意多租户、总RAM/总磁盘硬配额或宿主SIGKILL后自动进程回收保证。共享额度只覆盖采用同一runtime_root的本引擎实例;别的运行根和外部进程不计入。

具体案例由上层Graph组织:Graph案例。返回:Skills。

Frequently asked questions

What does the Workspace Isolation AI skill do?

按执行实例准备、核验和回收worktree与实际sandbox,缺后端时拒绝,不把目录当隔离。

Why use Workspace Isolation on TypingMind?

Because you install it once and use it with any model. Workspace Isolation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Workspace Isolation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Lanqiao-Luca/ai-java-workflow/tree/main/skills/workspace-isolation. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Workspace Isolation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Workspace Isolation?

As many as you like. As long as a model supports skills, you can use Workspace Isolation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Workspace Isolation AI skill free?

Yes. It is published on GitHub by Lanqiao-Luca under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇