🖥️ Terminal Shell (Interactive Mode)
The interactive shell lets you have a continuous conversation with Janito, just like chatting with a smart assistant. This mode is ideal for deep dives, brainstorming, or when you want to iteratively refine your requests.
✨ Features
- 🔄 Multi- turn conversations: Build on previous answers and context
- ⬆️⬇️ Command history: Use the up/down arrows to revisit previous prompts
- 🎨 Syntax highlighting for code responses
- 📋 Copy code snippets easily
- 💡 Context- aware suggestions (where supported)
- 💾 Conversation state is saved/restored between sessions
- 🖱️ Clickable file links: Click on file names in responses to open them in a web viewer for detailed inspection and actions (see below)
📝 Built- in Commands
You can use these commands at any time (prefix with /
or just type the name):
Command | Description |
---|---|
/exit , exit |
Exit chat mode |
/restart |
Restart the CLI |
/help |
Show help message with available commands |
/restart |
Reset conversation history / start new task |
/continue |
Restore last saved conversation |
/restart |
Reset conversation history |
/history [N] |
Show last N messages (default: 5) |
/prompt |
Show the current system prompt |
/role <description> |
Change the system role (e.g., "You are a code reviewer") |
/lang <code> |
Change the interface language (e.g., /lang pt , /lang en ) |
/clear |
Clear the terminal screen |
/multi |
Enter multiline input mode (write multi- line text, Esc+Enter) |
/config |
Show or set configuration (see: /config show , /config set local|global key=value ) |
🖱️ Clickable File Links
When Janito references files in its responses, the file names may appear as clickable links in supported terminals or web- based shells. Clicking these links will open the file in the lightweight web file viewer (powered by janito/termweb
, a Quart- based web file viewer).
- What you can do:
- View file contents in your browser
- Access additional actions (e.g., copy, download, or inspect details)
- Navigate project files more efficiently during reviews or debugging
This feature enhances productivity by bridging the terminal and browser, making it easy to inspect and act on files referenced in your conversations.
💻 Usage Example
janito
You’ll be dropped into a conversational prompt where you can interact with Janito step by step. Type /help
to see available commands at any time. Use /restart
to start a new task or reset context.
Screenshot: Janito interactive shell in action
generated by janito.dev