Skip to main content
Code Writer lets you use Glean Assistant and agents to propose code changes and open draft pull requests in GitHub. It can you complete coding tasks such as bug fixes, refactors, and updates without changing your existing GitHub review and deployment processes. As an admin, you enable Code Writer, decide where it can run, and control which teammates can use it across Assistant, agents, and Slack.

Where Code Writer can be used

When Code Writer is enabled and configured, you can use it in the following ways:
  • Within Assistant to make changes to your codebase interactively.
  • As an Action in an agent workflow.
  • Call it from Slack (Glean in Slack) to propose fixes directly from channels.
In all cases, Code Writer:
  1. Reads relevant code from your GitHub repositories (via the GitHub connector and GitHub App).
  2. Plans a small, targeted change based on user instructions and context.
  3. Creates a branch and draft pull request in GitHub.
  4. Returns the pull request URL and a summary back to Assistant or the agent.
Review and merge decisions always stay in GitHub.

Next steps

Set up Code Writer actions

Configure the Code Writer action pack, install the GitHub App, and control who can use Code Writer.

Code Writer in Agent Builder

Add and configure the Code Writer action in agents to automate code changes.

Use Code Writer with Slack

Enable Code Writer in Slack channels for incident response and escalations.

End-user guide

Learn how users interact with Code Writer in Assistant and Slack.

GitHub connector

Connect and index GitHub repositories as a data source for Code Writer.

Security

Learn about Code Writer’s security model, permissions, and best practices.