Skip to content
nazeeh111Public

About

Set up Codex with reviewed specialist skills, scoped activation and rollback support.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

nstack

Find the right specialist. Keep the host in charge.

nstack helps Codex discover reviewed skills and prepare tools for a specific task. Source identities, licenses, prerequisites and acceptance checks travel with the capability. Ordinary work stays with the host; heavy runtimes stay on demand. An optional OpenCode adapter shares the collection.

Try read-only discovery · Set up a Mac · Runtime routes · Recovery

A task becomes an inspectable route

Start with web-ui-design. Search returns L010, a registry component whose selected native skills are web-ui-design and mcp-builder. The next two commands expose its pinned source, per-skill rights, prerequisites and concrete checks before any preparation or activation:

  1. Find a match: search web-ui-design --brief returns a component and its selected skill names.
  2. Inspect its source: show L010 exposes the pinned source, rights, adaptations and staged-build state.
  3. Read the route: route L010 explains preparation, activation, verification and retirement.

Inspect the captured JSON session. This discovery run reads the public checkout with an absent disposable state path; it installs, fetches and activates nothing. A source route is available guidance, not proof that a runtime is installed or accepted for a real task.

The current Mac workflow uses Codex and optionally OpenCode. Retained legacy Claude Code compatibility source is documented separately.

Explore before installing

From a source checkout with Python 3.11 or newer, search the registry without installing, activating or fetching anything:

NSTACK_STATE="$PWD/.nstack-demo-state" python3 nstack.py search web-ui-design --brief
NSTACK_STATE="$PWD/.nstack-demo-state" python3 nstack.py show L010
NSTACK_STATE="$PWD/.nstack-demo-state" python3 nstack.py route L010

The first command includes this result:

{
  "id": "L010",
  "summary": "Anthropic specialist skills and packaging examples.",
  "admission": "on demand",
  "selected_native_names": ["web-ui-design", "mcp-builder"]
}

L010 identifies a component in the registry; web-ui-design is a selected native skill name. A component can contain several selected skills. show explains source, license, use conditions and selected paths; route shows prerequisites and possible actions. Catalog availability does not mean a skill is installed or its runtime has passed target-specific checks. These commands read the checked-in registry. show also checks for any staged builds in the selected state directory; the example uses an absent local path and creates no state. Once installed, replace python3 nstack.py with nstack.

Search ranks entries matching more terms first. Use --all to include excluded and consultation-only entries; those results are not permission to install them. Omit --brief for the complete JSON record. Trial and substitute entries remain locked until their specific acceptance gates are implemented.

For portable backup coverage and the complete 216-method selection, see restore guidance. Private data and local recovery records need a separate backup.

Install on a Mac

For a new Codex installation, use the host-aware installation prompt. OpenCode has a separate adapter. The retained Claude Code adapter documentation describes its compatibility source; that host is not part of the current Mac workflow. Craft Anything is an optional local software analysis addition; its static tooling and rebuild workflows have distinct checks.

Requirements: Git, Python 3.11 or later, and existing Codex subscription access. Run the installer with that supported Python explicitly if python3 resolves to an older system version. The installed nstack launcher binds the installing interpreter, so later PATH changes do not select another Python. Keep that interpreter available; reinstall with a new run ID after moving or replacing it. The installer leaves system Python and PATH unchanged. When Node is available during installation, the launcher also records its directory as a command-local fallback for Node-based tools. A Node already on the current PATH keeps precedence. This does not install Node or alter shell configuration. The pinned CLI bootstrap currently supports native Apple Silicon macOS only. The independently managed desktop app is preserved. No API key, purchase or provider signup is part of installation. uv is needed only for the selected Python runtime recipes; Node/npm and browser downloads are needed only for the selected JavaScript recipes. The FFmpeg recipe uses the existing Apple compiler and make.

The following cutover replaces the user-managed skill collection and retires the previous collection into private recovery storage. Inspect the staged result and retain the recovery files before running the cutover command. It preserves built-ins and unrelated configuration; it is not needed for the read-only discovery example above.

From this checkout, stage and install the base collection:

python3 -m unittest discover -s tests -p 'test_*.py'
python3 install.py install --stage-only --bootstrap-cli
python3 install.py install --bootstrap-cli --retire-personal --run-id cutover
python3 native_setup.py install --replace --agent-reach --repository-docs
"$HOME/.local/bin/nstack" doctor

Discovery and recovery design

Search and native installation share the selected-name policy. One selection reads one manifest snapshot, so a registry replacement cannot mix two parsed generations within that operation. The next selection reads the current manifest again; there is no persistent cache to invalidate.

Recovery records the destination directory's identity as well as the installed entry. If that directory is moved and replaced, repair and rollback refuse the replacement before writing. Restoring the original directory permits recovery; unrelated dirty bytes remain preserved. Transaction behavior and platform limits includes legacy journals and interrupted operations.

The regression checks use disposable directories and synthetic installations. They do not establish that a separately installed version has these changes, or that every optional runtime is ready for a real task.

Optional additions

Choose optional additions in that single native_setup.py command rather than running successive replacements: --academic-research, --ecc, --unslop, --maps-scraper, --untangle-codebase, --raea, --adaptive-routing, --llm-council, --roast-room, --council-of-high-intelligence, --cloudflare-security-audit, --strix, --skillspector, --rea, --craft-anything, --creative-reframing, --playwright-mcp, --agent-orchestration, --dream-loop, --fpga, --cirq, --formal-verification, --research-engines, --agent-desktop and --game-systems-review. Academic sources are fetched privately under their noncommercial license. Source fidelity explains upstream methods, native ports and private source packs. When replacing a collection, include all additions you intend to retain.

The base install command retires the complete old user-managed skill collection into private recovery storage, preserving built-ins. It merges only owned config keys and preserves unrelated settings and current model/effort choices. It does not read credential stores, move projects or conversations, manage hosted account connections, or replace the desktop application. Inventory and back up any separately managed hooks, profiles, plugins and jobs before retiring them. An explicit private retirement plan supports snapshotted Codex profiles, hooks, skill-lock files and already-unloaded Mac LaunchAgents. It rejects changed targets and leaves other applications and jobs alone.

Private state defaults to ~/Library/Application Support/nstack/, outside skill discovery. Immutable code releases, source cache, reviewed builds, runtime locks, private backups and restart-safe ownership journals live there. NSTACK_STATE can select a separate private deployment for testing. Add $HOME/.local/bin to your normal PATH if it is absent. To replace an existing CLI entry elsewhere, pass its exact absolute path with --cli-path.

OpenCode

An optional OpenCode V2 adapter reuses the same skills, user instructions and canonical vault. It preserves the selected model and credentials, disables background warming, and adds only the existing documentation and semantic connections. Host-native accounts and automatic memories remain separate.

For the actual Codex agent engine inside an OpenCode project terminal, use the optional native harness launcher. DeepSeek Harness, Superagent and OpenHarness have distinct roles; adding a model provider is not a harness replacement.

The optional untangle-codebase skill is shared by both hosts. Invoke it explicitly with $untangle-codebase in Codex or select it with @untangle-codebase in OpenCode. It stays out of automatic skill selection because it requests a substantial refactor. Its pinned MIT source and license are bundled; no additional runtime, service or provider is needed.

First unfamiliar task

Open an ordinary project and ask for the finished result. No project-init step is required. Codex discovers the installed skill summaries and reads the relevant complete SKILL.md and support when needed. The global collection contains only 170 selected on-demand leaves, plus explicit additions if enabled. The academic suite adds five skills and keeps its CC BY-NC source separate from this MIT repository. RAEA local GPU rendering is available with the optional native flag --raea. Its pinned runtime stays separate from this MIT toolkit and runs offline without upstream hooks, model downloads or provider connections. See RAEA.

REA optionally adds shipped-software analysis with its own pinned private runtime. It remains separate from Craft Anything and RAEA.

For visual automation, durable background jobs, AI application graphs, optional tracing and codebase graphs, see On-demand workflows. These recipes do not start services or create accounts during skill installation.

Heavy dependencies are separate and remain on demand. Search the full installed native-skill-index.json when the native summary list is truncated.

For one explicit entry to adaptive selection across the session, add --adaptive-routing to the native install command and invoke $01 once. It keeps ordinary work direct and applies relevant specialists as the task changes. Behavior, testing and limits.

--agent-orchestration adds the reusable native lead/specialist method for dynamic delegation, user-defined worker tiers or verified inheritance, checked handoffs, integration and fresh-context review. The chosen lead and effort stay selected; unset Y/Z tiers supply no model defaults. It complements 01's capability selection and installs no second agent framework. The host comparison distinguishes native coordination from applications that need Agents SDK or LangGraph. Context and cost efficiency records TokenEconomizer's source-tested limits and the bounded ideas worth using without activating unverified hooks or tool pruning.

--game-systems-review adds document-based game balance and GDD interaction review adapted from Donchitos' Game Studios methods. It does not install the whole studio or claim engine/playtest validation. --agent-desktop retains Vercel Labs' desktop method and platform guides. Installation of that method does not install or admit its CLI; verify native admission and startup effects before any command, including help/status. Read the respective native bindings.

Optional LLM Council adds independent alternatives, blinded critique and reversed-order checks. It uses available native workflows; its offline helper makes no model requests. Multi-provider use needs its own connection, data scope and budget. No simulator or extra service is started.

The optional security methods add one Cloudflare repository-audit skill and one Strix skill shared by both hosts. They preserve the complete licensed method references without activating scanners, cloud accounts or paid providers. Routine security review keeps its existing route.

Optional SkillSpector audits agent instructions and their bundled source with the pinned NVIDIA static scanner and source-aware review. The shared skill adds no cloud provider or always-on scanner.

nstack search room clap decay
nstack show P318
python3 native_setup.py list

Candidate IDs remain provenance keys in the catalog and commands. Installed skill names have no candidate-number prefix. “Personal” in Codex is its category for user-installed skills, including this new collection.

native_setup.py privately backs up the actual root and instructions, rehearses restoration, publishes recovery before changing the profile, installs only the selected entries, and preserves complete support bundles outside discovery. It updates only the owned nstack instruction block. Repeating the same install leaves target bytes and the journal unchanged. It also repairs deletion of its exact owned root link without changing the original rollback baseline.

The older project publisher remains available for deliberately temporary, project-scoped experiments. It is optional. Do not expose the same leaf through both mechanisms. Source fetches use full Git commits and verified blobs; trial, substitute, consultation and excluded entries are rejected by generic activation.

For native tool connections, the knowledge vault, exact runtime revisions and what was actually checked, see Everyday setup. The portable installer does not copy an author's private account, vault, plugins or runtime environments onto another Mac.

On-demand routes

nstack route ID returns the exact source, prerequisites, activation, check and retirement sequence. All 198 on-demand components have a route: 46 use reviewed selected leaves, 93 have isolated runtime recipes (94 operations), and 59 use native build or official application procedures. Some components also retain supporting leaves. The 28 trials and seven substitutes remain conditional; generic publication, workspace creation and runtime commissioning reject them. Their per-ID target verifiers must be implemented and pass before admission. The nine consult records never become standalone installs.

Python source recipes build the exact selected source into an isolated wheel with separate hash-locked build dependencies and runtime dependencies. Go recipes use a checksummed private toolchain and the exact selected source. Node workspaces use their native package manager, check packed local dependency closure, and install only the native target packages into the named project. No dormant route provisions an account, GPU, model, service or application. A recipe is available for use; its actual target remains untested until checked.

Native source builds can start with nstack workspace ID /absolute/project. This creates a private editable checkout and output prefix, outside discovery. Repeat use requires unchanged source and Git bytes. --fresh retains an edited attempt before preparing another. nstack retire-workspace ID /absolute/project retains all bytes, including unexpected files, and removes only active ownership. Follow the route's explicit working directory, lock procedure and environment.

Local runtime operations

Examples with concrete commission, invocation, check and removal commands:

Component Operation Scope
P053 cli ast-grep 0.51.1 structural search/refactor
P061 test Playwright Test 1.65.0, matched Chromium and Firefox
P318 rt60 Exact reviewed pure-Python room-decay estimator; hash-locked environment
P230 media Minimum local-only FFmpeg/ffprobe build from the reviewed source commit
P190 cli Exact-source Gitleaks with private, redacted scanning reports
P144 python Exact-source Optuna in a locked isolated Python environment
P198 ux Selected local UX guidance data and stdlib lookup helper
P355 posting Local posting-text decoder and hidden-instruction guard
nstack commission P318 rt60
nstack check P318 rt60
nstack run P318 rt60 -- clap.wav result.json
nstack commission P230 media
nstack check P230 media
nstack run P230 media -- ffprobe -v error -show_streams -of json output.mkv
nstack remove-runtime P230 media

Commissioning resolves only the registered operation. It never silently selects a newer product or enables a whole collection. Existing locks are checked on repeat use. Removal moves the exact owned environment into recovery storage, including unexpected local additions, and removes its active receipt. It does not recursively delete those bytes. Other runtime/platform/provider lanes keep their prerequisites and target checks explicit in the catalog; a missing adapter or unmet condition is a blocked operation, not a passing installation.

The original synthetic clap example produces editable SVG, PDF, PNG and CSV, checks the known decay with an independent stdlib comparator, and rejects a stale handoff before regeneration. No recording, private data, model or API is required.

nstack inventory /absolute/project reads a fresh native CLI's skill and local MCP metadata through its supported app-server protocol. --binary /absolute/codex can inspect a separately managed backend. It discards raw configuration and environment values. It does not establish normal desktop relaunch, hosted plugin enablement or successful provider access. Hosted optional plugins must be retired through supported native controls while preserving built-ins and account access.

Add --plugins to request fresh native plugin installation/enabled metadata and marketplace error counts. An error or an unobserved remote catalog cannot prove a plugin was removed. Installation, enabled state and actual tool use are separate checks. Keep personal plugin choices in private deployment records; do not copy account identifiers or preferences into the public registry. An explicitly retained official plugin can coexist with the on-demand catalog without a duplicate local skill collection. Its installation grants no new sending, spending or data access. The native effective-config response is held transiently to extract server names and local enablement flags. Configuration layers and credential files are not requested; raw configuration is discarded.

Correctable knowledge and handoffs

Keep one canonical project record, source attribution and current input hashes. From inside the owning project:

nstack knowledge set /absolute/project fixture-level --claim '30 dB' --source evidence.txt
nstack knowledge read /absolute/project fixture-level
nstack knowledge delete /absolute/project fixture-level --expected-generation 1

Retrieval checks current project scope and actual source bytes. A correction supersedes the prior generation; deletion leaves a tombstone. Updates and deletions must pass --expected-generation N using the generation returned by read. Competing writers serialize; a stale generation is refused without changing the accepted record. Creation expects generation 0. Commit durable records through the project's authorized Git workflow. Reject stale derived results at handoff and regenerate affected artifacts. Native automatic memory remains separate and can skip externally sourced sessions; do not claim a canonical-record check proves automatic-memory generation. Retrieval indexes and memory services are conditional additions, not extra permanent authorities.

Roll back from Terminal

"$HOME/Library/Application Support/nstack/rollback.sh"

The helper works independently of Codex and follows the recorded release chain back to the pre-cutover profile. It restores only the recorded changes. Owned TOML edits are inverted while preserving later unrelated edits. A later conflicting edit to the same owned setting stops rollback for reconciliation. New projects, knowledge and conversations are preserved. An explicit job plan restores definitions in their original unloaded state; the installer never stops or starts a loaded service. macOS may assign a new com.apple.provenance tag to a copied file; nstack leaves that system tag alone while checking bytes, ACLs, ownership, flags, modes and other extended attributes.

Keep the private backup after success. Reinstalling the same release/run is idempotent; changing release code uses a new recorded run so earlier rollback helpers and originals remain available.

Redistribution

Original toolkit code is MIT. Third-party terms remain independent; see THIRD_PARTY_NOTICES.md. This repository publishes portable metadata, original adapters and patch mechanisms. It contains no raw research ledger, private deployment, account binding, credential, personal vault, conversation export or proprietary plugin implementation. Restricted services and assets must use their official access and rights checks.

Verification and supported scope

Run the portable tests with the command above. python3 tests/check_recovery.py check --output /absolute/private/capture uses a loopback capture receiver and synthetic identities to test lost acknowledgements, restart and exactly one business effect. It never sends mail. The registry contract test checks full component/path coverage and permissions; private deployment receipts and the supplied raw-ledger coverage checker stay outside this public tree.

The pinned bootstrap supports Apple Silicon macOS. The normal CLI and independent desktop backend have separate loaders; a backend inventory is not a desktop UI check. Trial, proprietary, hardware-specific, provider and large model lanes are conditional on their own rights, platform, resources and output checks. These sources do not imply that every target runtime has been installed or tested.

About

Set up Codex with reviewed specialist skills, scoped activation and rollback support.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages