NS Workflow
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NS Workflowapply the diff and verify the tests pass"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NS Workflow
Give AI real work. Make it prove the result.
Connect an MCP-capable AI to a real project folder without handing it an unrestricted shell. NS Workflow gives the agent five bounded tools and one rule that matters:
A task is not complete because the agent says so. It is complete when the requested result is observed.
STATUS → READ → WRITE → RUN → VERIFY
30-second proof
No model account is required for the first demo.
python -m pip install "git+https://github.com/nslabhwan/ns-workflow.git"
nsw demoExpected shape:
NS Workflow zero-config proof
1 READ ... content=status=broken
2 WRITE before=... after=...
3 VERIFY exit=0 receipt=.nsworkflow/receipts/...
4 RESULT PASS — requested state was observed, not self-reportedWant the durable workflow proof too?
nsw flow demoIt pauses at WAITING_APPROVAL, resumes after approval, changes the real target, verifies the result, persists the run, and only then ends as:
VERIFIED_COMPLETEIf that is the behavior you expected from AI agents in the first place, this project is for you.
Related MCP server: Agent NextUp
Connect your AI
Inside the project the AI should work on:
nsw init .
nsw doctor
nsw connect --client generic --workspace .For a Claude-style MCP config:
nsw connect --client claude --workspace .The underlying local MCP server is simply:
nsw mcp --workspace /absolute/path/to/your-projectAny client that supports a local stdio MCP server can use the same capability surface. Client-specific setup is documented only after we verify it instead of pretending every client behaves the same way.
Five tools, not fifty
Tool | What it does |
| Shows the workspace boundary and command allowlist |
| Reads one bounded text file |
| Performs an atomic write with optional SHA-256 compare-and-swap |
| Runs one allowlisted argv command with timeout/output bounds |
| Runs an explicit verification command and records the observed result |
Every operation leaves a local receipt under .nsworkflow/receipts/.
That small surface is deliberate. Capability growth should happen behind stable, auditable contracts instead of an endless pile of public tools.
Durable workflows when one command is not enough
NS Workflow also includes a small project-local workflow engine for work that must survive a pause, human decision, or process restart.
Create a starter flow:
nsw flow template verified-change.jsonStart it:
nsw flow start verified-change.json --workspace .Inspect a durable run:
nsw flow status <run_id> --workspace .Resolve an approval and resume:
nsw flow decide verified-change.json <run_id> approve --workspace .The current flow runtime supports:
deterministic
callstepsconditionbrancheshuman
approvalpausesexplicit
verifystepsdurable state and append-only event evidence
bounded transition counts
reject-without-mutation behavior
VERIFIED_COMPLETEonly when verification evidence exists
Why this exists
AI coding and automation tools can already generate impressive plans and patches. The uncomfortable failures happen after that:
the agent says done, but the file never changed
a stale agent overwrites a newer edit
a retry repeats an already-completed mutation
a command was supposedly executed, but nobody can show the result
an approval is lost when the process restarts
historical state accidentally becomes current authority again
NS Workflow comes from repeatedly hitting those failure modes in a real long-running multi-agent system and then rebuilding only the portable behavior as a standalone open-source product.
The private system is not copied into this repository. The useful invariants are.
What actually happens
Your AI client
│
│ MCP / stdio
▼
┌─────────────────────────────────────┐
│ NS Workflow │
│ │
│ STATUS READ WRITE RUN VERIFY│
│ │
│ durable flow → approval → resume │
└──────────────────┬──────────────────┘
│
▼
your workspace
│
├─ atomic changes
├─ bounded commands
├─ durable run state
├─ verification evidence
└─ receiptsSafety model
NS Workflow is a guardrail layer, not a hardened OS sandbox.
By default it reduces accidental authority through:
workspace-root file boundaries
absolute-path denial
path traversal denial
symlink escape denial
common secret-like path denial
atomic writes
optional SHA-256 compare-and-swap protection
argv-only process execution
explicit command allowlisting
no shell executable in the default allowlist
bounded timeout and output size
minimal child-process environment instead of inheriting arbitrary secrets
local receipts for observable execution evidence
For hostile-code containment, run NS Workflow inside a container, VM, disposable cloud host, or another OS-level sandbox.
Direct CLI use
You do not need an AI client to use the execution boundary.
nsw status --workspace .
nsw read README.md --workspace .
nsw write notes.txt --workspace . --content "hello"
nsw run --workspace . -- git status --short
nsw verify --workspace . -- python3 -m pytest -qConfiguration
nsw init creates .nsworkflow/config.json with a deliberately small default command set and bounded read/output/time limits.
You can opt into additional commands. NS Workflow will not silently broaden its own authority.
Current proof
0.1.0a2 has been exercised on a fresh disposable Ubuntu 24.04 host, not only inside the development tree.
Current evidence:
package regression: 17/17 PASS
real MCP
ClientSessiontool discovery: 5/5 tools exposedMCP
READ → WRITE → VERIFY: PASSwheel build: PASS
fresh venv wheel install: PASS
installed zero-config read/write/verify demo: PASS
installed durable flow:
WAITING_APPROVAL → approve → COMPLETED / VERIFIED_COMPLETE: PASS
Broad external-user onboarding, every AI client, Windows/macOS field testing and market adoption are still validation work. Those boundaries are intentional and public.
What this is not
NS Workflow is not:
another hosted AI subscription
a model provider
an unrestricted remote shell
a replacement for containers or VMs
a giant connector marketplace
a claim that every MCP client has identical configuration
a copy of the private NS runtime
It is a small, inspectable execution + workflow layer with proof of result.
Roadmap
Ordered by user value:
one-command setup for verified major MCP clients
richer diff and verification receipts
disposable execution mode
resumable handoff between AI sessions
optional local dashboard
signed receipts
stack-specific workflow packs
Windows and macOS onboarding polish
Contributing
Issues and small focused PRs are welcome. Reliability changes should include a regression that proves the failure class they prevent.
See CONTRIBUTING.md.
License
MIT. Use it, fork it, embed it, improve it.
If NS Workflow saves you from one false “done”, ⭐ the repo so the project is easier for the next person to find.
This server cannot be deployed
Maintenance
Related MCP Connectors
Project management MCP for AI agents with safe task reads and writes.
Work management where AI agents are first-class members: tasks, projects, memory over hosted MCP
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMulti-project execution, memory, and collaboration platform for humans and AI agents, providing MCP tools for agents to read and write project state.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to maintain project continuity through a file-based state hub with tasks, phases, and handoff snapshots. Provides MCP tools for reading and updating project state, with gatekeeping enforced via real-state evaluation and per-tool authorization.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents and hosts to enforce deterministic repository boundaries via MCP, providing structured reads, supervised edits, snapshots, audits, and recovery with machine-readable evidence.MIT

Nolane Habitatofficial
FlicenseNot gradedqualityBmaintenanceProvides coding agents with a durable, revision-aware project workspace for semantic context, governed source changes, verification, task checkpoints, and observability through an MCP interface.1-