Skip to content

Latest commit

 

History

History
98 lines (65 loc) · 4.02 KB

USAGE.md

File metadata and controls

98 lines (65 loc) · 4.02 KB

Usage

Full command reference for the nyne CLI. For VFS filesystem workflows (reading, writing, refactoring via @/ paths), see Workflows.

nyne mount

Start FUSE daemon(s) for one or more directories. Defaults to the current directory.

nyne mount                              # mount cwd
nyne mount /path/to/project             # mount a specific directory
nyne mount myid:/path/to/project        # mount with explicit session ID
nyne mount /path/a /path/b              # mount multiple directories

nyne attach

Spawn a process inside a running mount's sandboxed namespace. Defaults to $SHELL.

nyne attach                             # attach to the only active mount
nyne attach myid                        # attach to a specific session
nyne attach -- claude                   # run a command in the namespace

--visibility

Controls whether @/ companion directories appear in directory listings.

Value Behavior
default Companion dirs exist but are hidden from ls. Access by name works.
all Companion dirs appear in directory listings.
none Full passthrough — process sees only the real filesystem.
nyne attach --visibility all            # agents see everything in ls
nyne attach --visibility none           # disable VFS entirely

nyne list

Show active sessions, or processes attached to a specific session.

nyne list                               # all active sessions
nyne list myid                          # processes attached to a session

nyne exec

Pipe-oriented script execution against a running daemon. Binary stdin/stdout.

nyne exec provider.claude.post-tool-use
nyne exec --id myid provider.claude.post-tool-use

nyne ctl

Send a JSON control request to a running daemon. Reads from an argument or stdin.

nyne ctl '{"type": "status"}'
echo '{"type": "status"}' | nyne ctl
nyne ctl --id myid '{"type": "status"}'

Agents

Claude Code

nyne ships a purpose-built environment for Claude Code that replaces its default tool behaviors with VFS-native equivalents.

nyne mount
nyne attach -- claude --system-prompt-file /code/@/agents/claude-code/system-prompts/default.md

The system prompt is generated by nyne at runtime. It teaches Claude Code to work through @/ paths: reading symbol bodies instead of raw files, querying CALLERS.md instead of grepping for usage, editing through the VFS so every write is tree-sitter validated.

What changes

System prompt. Replaces Claude Code's default file-operation patterns with VFS equivalents. Read OVERVIEW.md first, then targeted symbol bodies. Use CALLERS.md, DEPS.md, REFERENCES.md for relationship queries instead of grep. Edit symbol bodies for tree-sitter validation. mv for LSP rename, .diff files for code actions. Batch edit staging for atomic multi-symbol changes.

Hooks. PreToolUse, PostToolUse, SessionStart, and Stop hooks route through nyne's control socket. They intercept tool calls to inject VFS guidance. A Read on a raw source file gets a hint pointing to the @/ equivalent. An Edit on a raw file gets redirected to the symbol body.

nyne subagent. A specialized agent definition (.claude/agents/nyne.md) becomes the default for all spawned subagents. It has built-in discipline around token budgets (check OVERVIEW.md estimates before reading), blast-radius checks (CALLERS.md before modifying), and proactive diagnostics (DIAGNOSTICS.md after writing). Same patterns as the system prompt, tuned for autonomous operation.

Config overrides. .claude/settings.json disables features that conflict with VFS-managed workflows: auto-memory, built-in git instructions, MCP servers. It also adjusts output token limits and configures bypass permissions for the sandbox. Project-scoped, applies automatically when Claude starts inside a nyne mount.

nyne config

Dump the resolved configuration with all defaults applied.

nyne config