OSOpenSyntax
Reference

Commands

OpenSyntax supports regular CLI commands and interactive slash commands inside the chat session.

CLI Commands

CommandPurpose
opensyntaxStart an interactive coding-agent session.
opensyntax "fix tests"Run a one-shot request.
opensyntax authConnect or update an AI provider.
opensyntax providersList supported and connected providers.
opensyntax models [provider]List model defaults and examples.
opensyntax doctorCheck provider, config, git, and workspace health.
opensyntax terminalShow OS, shell, WSL, Node, and package-manager detection.
opensyntax permissions [mode]Show or change saved permission mode.
opensyntax rules initCreate a starter OPENSYNTAX.md.

Interactive Slash Commands

CommandPurposeExpected output
/helpShow categorized beginner-friendly commands.Command list.
/help providersShow provider/model examples.Focused help.
/help sessionsShow session examples.Focused help.
/help permissionsExplain permission commands and modes.Focused help.
/clearClear terminal screen.Blank screen with prompt.
/providersList providers and connection state.Provider table.
/provider [id]Switch active provider. Example: /provider openai.Provider and model update.
/modelShow or switch the current session model.Current model or update message.
/authShow auth state.Connected providers.
/loginConnect or update provider.Setup prompts.
/logoutRemove provider credentials.Confirmation prompt.
/doctorCheck provider, git, and streaming.Health report.
/sessionList saved sessions.Session IDs.
/toolsList agent tools.Tool names.
/terminalShow OS, shell, WSL, Node, and package-manager detection.Terminal report.
/osShow structured OS detection details.OS JSON.
/shellShow detected shell.Shell name.
/permissions [mode]Show or change command/file permission mode.Permission state.
/scriptsList package scripts and package-manager commands.Script list.
/run <script>Run a package script with terminal risk checks.Streaming command output.
/verify [objective]Run detected build/typecheck/test verification.Structured verification summary.
/shortcutsShow keyboard shortcuts and raw-mode support.Shortcut list.
/command-palette [query]Search available slash commands.Command palette results.
/interrupt / /cancelCancel current agent controller and save partial progress.Interrupt confirmation.
/command <cmd>Classify terminal command risk before running.Risk report.
/envShow sanitized runtime environment details.Masked environment.
/pathShow PATH entries.PATH list.
/planShow task plan.Pending and completed steps.
/tasks / /todoShow active task plan.Task states.
/progressShow task completion progress.Progress report.
/repoSummarize package metadata, folders, file types, and git state.Repository intelligence summary.
/architectureShow a compact architecture map.Important folders and files.
/dependenciesShow scripts and dependencies from package.json.Dependency summary.
/symbols [query]Search TypeScript and JavaScript symbols.Symbol list.
/search / /grepSearch workspace content.File/line matches.
/findFind files by name.Matching paths.
/gitShow branch, status, and recent commits.Git summary.
/diffAsk the agent to inspect git diff.Diff summary.
/commitDraft a commit message from current changes.Commit draft.
/prDraft a pull request outline.PR draft.
/autoToggle autonomous continuation mode.Autonomy state.
/memory / /historyShow persisted session memory summary.Session stats.
/pluginsShow built-in tools and workspace plugin manifests.Plugin summary.
/rulesShow active OPENSYNTAX.md and AGENTS.md workspace instructions.Loaded files and effective rules.
/rules debugShow loaded paths, merge order, token estimate, and prompt preview.Debug report.
/rules reloadReload instruction files without restarting the CLI.Updated rule summary.
/rules openOpen the nearest instruction file, creating one if needed.Editor/open message.
/rules initCreate a starter OPENSYNTAX.md.Created file path.
/exitQuit OpenSyntax.Returns to shell.

Workspace Instructions

OpenSyntax loads OPENSYNTAX.md, AGENTS.md, .opensyntax/OPENSYNTAX.md, and .opensyntax/AGENTS.md from parent folders to the current workspace. Broader files load first and nearer files override broader guidance.

Instruction files affect prompts, planning, filesystem edits, shell commands, verification behavior, and final responses. Core safety rules always win over workspace instructions.

# OPENSYNTAX.md

## Coding Rules
- Keep edits minimal.
- Use TypeScript only.

## Package Manager
- Use bun only.

## Safety
- Do not edit dist/, build/, coverage/, or node_modules/.