Skip to main content

Code Writer

Code Writer lets you use Glean Assistant and Glean 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 users can use it across Glean Assistant, Glean 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 Glean 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 Glean or the agent.
note

Review and merge decisions always stay in GitHub.

Next steps