AI Agent
The Skrypt AI agent is a chat-based assistant embedded in the web editor. It can read your project files, suggest edits, and help you write new content. All LLM calls run through Skrypt's proxy, so you do not need your own API key.
What the agent does
The agent understands your documentation structure and content. You can ask it to:
- Rewrite a section for clarity
- Add a code example for a specific API
- Fix grammar or formatting issues
- Explain what a page covers
- Draft a new page from scratch
The agent responds in a streaming chat interface. It proposes changes as text diffs you can review before applying.
Opening the agent panel
Open any file in the web editor. Click the Agent button in the toolbar to open the chat panel on the right side of the editor.
The panel shows your current conversation or a blank prompt if this is a new session.
Chat interface
Type your message in the input field and press Enter or click Send. The agent streams its response in real time.
You can ask questions about your docs, request specific changes, or give open-ended instructions like "make this page more concise."
Each message is stored in the session. You can scroll up to review earlier exchanges.
Agent context
The agent automatically receives context about your project:
| Context | Source |
|---|---|
| Current file path | The file open in the editor |
| Current file content | Full text of the active file |
| Project file tree | List of all file paths in the project |
This means the agent knows what file you are editing, what it contains, and what other pages exist in your docs. You do not need to paste content into the chat.
You can optionally provide a custom system prompt via the agent settings. Custom prompts are capped at 500 characters and appended as additional context, not as override instructions.
Applying changes
When the agent suggests edits, it returns the updated content in its response. Copy the relevant sections into your editor, or use the Apply button if the response includes a structured diff.
The agent does not modify files directly. You always review and confirm changes before they are saved.
Session history
Each conversation is saved as a session tied to your project. Sessions are auto-titled using your first message.
To start a new conversation, click New Session in the agent panel. Previous sessions are listed in the session dropdown and can be resumed at any time.
Conversation history is limited to the most recent 100 messages per session to keep responses fast and costs predictable.
Model and pricing
The agent is powered by Claude Sonnet 4 via Skrypt's OpenRouter proxy. If OpenRouter is unavailable, it falls back to GPT-4o.
Agent chat counts as an LLM generation against your plan:
| Plan | Agent access |
|---|---|
| Free | Included in your 1 generation/month |
| Pro | Unlimited |
You do not need to configure any API keys. Skrypt handles all LLM routing and billing.
Rate limits
Agent chat is rate-limited per user to prevent abuse. If you hit the limit, wait a few seconds and try again. The rate limit is generous enough for normal editing workflows.
What's next
- Branching, create isolated branches to draft changes before publishing
- Getting Started, set up your first project on the platform
- CLI Integration, connect the Skrypt CLI to your hosted project