Skip to content

Slash Commands

Slash commands are local NeoCode control commands. They start with / and are handled by the terminal UI before normal chat input reaches the agent.

For example, please explain /compact is a normal prompt. /compact runs the local context compaction command.

How to use them

Type / in the input box to see command suggestions. Continue typing to filter the list.

text
/help
/cwd
/cwd /path/to/project
/remember I prefer reading tests before editing code

Help and exit

CommandPurpose
/helpShow available slash commands
/clearClear the current draft input
/exitExit NeoCode

Workspace, sessions, and context

CommandPurpose
/cwdShow the current workspace
/cwd <path>Switch workspace
/sessionOpen the session picker
/compactCompact a long session context

Use /compact when an old conversation starts to distract the current task. After compacting, restate the current goal briefly.

Memory

CommandPurpose
/memoShow saved memories
/remember <text>Save a long-term preference or stable fact
/forget <keyword>Delete matching memories

Do not store secrets, tokens, passwords, or one-off task instructions in memory.

Skills

CommandPurpose
/skillsList available Skills and active marks
/skill use <id>Activate a Skill in the current session
/skill off <id>Deactivate a Skill in the current session
/skill activeShow active Skills

Skills shape the current task workflow. They do not add tools or bypass approvals.

Providers and models

CommandPurpose
/providerOpen the provider picker
/provider addAdd a custom OpenAI-compatible provider
/modelOpen the model picker

Provider means the model service source. Model means the actual model used under that provider. API keys are read from environment variables, not stored in config files.

Next steps

A compact docs entrypoint built from NeoCode's current implementation.