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