37 lines
1.5 KiB
Markdown
37 lines
1.5 KiB
Markdown
# AI
|
|
|
|
Source: concepts/ai.md
|
|
URL: /concepts/ai
|
|
|
|
# AI
|
|
|
|
Tolaria has two AI paths: coding agents that can use tools to inspect and edit a vault, and direct model targets that answer in chat mode from note context.
|
|
|
|
## Coding Agents
|
|
|
|
The AI panel can stream supported local CLI agents through Tolaria's normalized event layer. Current targets include Claude Code, Codex, OpenCode, Pi, and Gemini CLI when they are installed on the machine.
|
|
|
|
Coding agents can run in:
|
|
|
|
- **Vault Safe** mode, limited to file, search, and edit tools.
|
|
- **Power User** mode, which can allow local shell commands scoped to the active vault for agents that support shell access.
|
|
|
|
## Direct Models
|
|
|
|
Direct model targets run in chat mode. They receive the active note, linked context, and conversation history, but they do not receive vault-write tools or shell access.
|
|
|
|
Supported provider shapes include:
|
|
|
|
- Local models through Ollama or LM Studio.
|
|
- Hosted providers such as OpenAI, Anthropic, Gemini, and OpenRouter.
|
|
- Custom OpenAI-compatible endpoints.
|
|
|
|
## External MCP Setup
|
|
|
|
Tolaria exposes an MCP server for external tools. The setup flow can write Tolaria's MCP entry into Claude Code, Gemini CLI, Cursor, and a generic MCP config path, and it can also copy the exact JSON snippet for manual setup.
|
|
|
|
MCP setup is explicit. Closing the dialog leaves third-party config files untouched.
|
|
|
|
## Why Git Matters For AI
|
|
|
|
AI-generated changes should be inspectable. Git gives you diffs, history, rollback, and a clear boundary between suggestions and committed work. |