Working with AI editors
The goal is to let authors choose their own AI editor while every tool uses the same supported story API. That requires the short-lived author-token feature, a stable document contract, and documented operations. The current session API alone is not a finished third-party integration.
The intended workflow
- The author signs in and authorizes a tool for selected stories.
- The tool receives limited, expiring author access through authentication.
- The author supplies the story ID and asks for a content change.
- The tool reads the current document and revision through the API.
- It changes only the requested content and saves against that revision.
- It reads back the result and checks the draft preview.
The server must reject other stories and unauthorized operations even if the agent is instructed to attempt them. Do not rely on a system prompt as the only access boundary.
A dedicated authoring agent
A purpose-built agent should have only the supported authoring and preview tools. It needs no shell, database connection, administrator session, server signing secret, code deployment, or schema migration capability.
Its operating rules should require preserving unrelated content, checking IDs, handling conflicts, and verifying saved results. If a request cannot be completed with the supported API, it should report that missing capability rather than use a database or private endpoint as a workaround.
This would make the same workflow available to another author using a different AI tool. Compatibility comes from the API, not a particular model or prompt.
Current status
The independent author-token integration and dedicated agent are planned. This wiki does not issue credentials, and supplying a story ID in a chat does not grant access. Keep tokens in the tool's authentication system rather than in the conversation transcript.