ns-code-autonomous
Code Autonomous
Harness-aware execution engine: decides planning depth, resolves doubts, dispatches multi-agent work, and closes the loop with a review gate — either as a standalone pipeline or as another skill's execution engine.
Workflow mode (mandatory)
Fixed workflow — named skill handoffs or harness project bridges (../ns-harness/references/subagent-dispatch.md). Review gate: ../ns-harness/references/review-gate-workflow.md. MUST reviewer-agent when available (else ns-code-reviewer); no platform Task persona substitutes. C2 (MUST coder-agent when available → ns-code-coder) must complete its full per-task cycle including the same review gate before a unit is considered done.
Isolation invariant (non-negotiable)
This skill never writes application code on the main product checkout, and never commits to main/master (or any base/SOURCE_BRANCH), unless the human has explicitly instructed "do not create a new branch / work in place on the current branch" for this run.
- Standalone and Engine mode both require an isolated
WORK_BRANCH+WORKTREE_ROOTbefore any implementation edit. - If worktree creation fails, or CWD/branch is still the main checkout / base branch → stop. Do not "continue on main to unlock the plan".
- Sandbox restrictions (
Operation not permitted, Cursor agent runtime paths under.cursor/) are not permission to violate this invariant.
Harness discovery
See ../ns-harness/references/harness-discovery.md. Complete Session boot (blocking) there before any other step in this skill.