Baz Plugin
The Baz plugin adds three indexed search tools to your agent — repo_search, remote_grep, and remote_file_search — and a skill that routes searches through Baz while keeping reads on gh / glab.
Designed for planning features against repositories you haven't checked out locally. Indexed search across the whole org, no clone, no rate limits.
Install
Claude Code
/plugin marketplace add baz-scm/baz-plugin
/plugin install baz@baz
/reload-plugins
Claude Code reads .claude-plugin/marketplace.json, .claude-plugin/plugin.json, loads skills/baz-codebase-exploration/SKILL.md, and registers the Baz MCP server and hook. Its MCP server stays inline in the Claude manifest; this repository intentionally has no root .mcp.json, which Claude reserves for project-scoped MCP configuration. First time you use a Baz tool, your browser opens for OAuth (Descope) — log in with your Baz account.
OpenAI Codex CLI
codex plugin marketplace add baz-scm/baz-plugin --ref main
codex plugin add baz@baz
Codex reads .agents/plugins/marketplace.json, which selects this repository's Codex plugin. The plugin manifest alone references .codex.mcp.json, which uses Codex's bundled-server schema. Keep this file Codex-only: a root .mcp.json is Claude project configuration and uses a different schema. Codex authenticates during plugin installation; Claude Code authenticates on first tool use.
Cursor
Cursor doesn't auto-install MCP servers. Two manual steps:
- Add the rule. Copy
.cursor/rules/baz-codebase-exploration.mdc into your project's .cursor/rules/ directory, or globally to ~/.cursor/rules/.
- Wire the MCP server. Open Cursor Settings → MCP and add:
{
"mcpServers": {
"baz": {
"type": "http",
"url": "https://baz.ai/mcp"
}
}
}
Cursor will open the OAuth flow on first use.
What you get
repo_search(keywords, domains?) — semantic search across indexed architecture summaries. Works across every repo in your org, and across the per-domain summaries of a single large monorepo. No gh equivalent.
remote_grep(repository, pattern, path) — indexed regex grep inside one repo, scoped to a path. ~2 lines of context per match.
remote_file_search(repository, pattern) — glob file-name search inside one repo. Useful when you have a naming hunch but not the exact path.
The baz-codebase-exploration skill teaches the agent when to use which, and to stop searching and start reading once it has a hit. It loads automatically when relevant.
On top of those, the plugin ships three commands: /baz:plan-with-baz for planning a change, /baz:get-plan-comments for pulling a plan's review comments back into your session, and /baz:review for reviewing a change.
Planning command
The plugin also ships a planning command, /baz:plan-with-baz. Run it with a short description of what you want to build:
/baz:plan-with-baz add rate limiting to the public API
It explores the relevant repos with the Baz tools — including repos you haven't checked out — and writes a structured implementation plan you sign off on before any code is written. The agent stays read-only until you approve, so nothing in your working tree changes while it plans. The agent can also load the skill on its own, so an automated process can run it too.
| Platform | How to invoke |
|---|
| Claude Code | /baz:plan-with-baz <description> |
| Cursor | /plan-with-baz <description> |
| Codex | invoke the plan-with-baz skill |
Sharing a plan to Baz
Once a plan is written, the agent asks whether to upload it to Baz. The plan is never uploaded unless you say yes — say yes and you get a link to it in Baz, where teammates can open, comment on, and review it, the way they would a pull request in GitHub.
Plan comments command
/baz:get-plan-comments brings the review comments on a plan back into your session, so feedback doesn't stay stranded in the browser.
/baz:get-plan-comments # this session's plan
/baz:get-plan-comments https://baz.ai/plans/<plan-id> # any other plan
| Platform | How to invoke |
|---|
| Claude Code | /baz:get-plan-comments [plan url or id] |
| Cursor | /get-plan-comments [plan url or id] |
| Codex | invoke the get-plan-comments skill |
It reads every comment and prints one table — what each asks, whether the claim actually holds (checked against the code, with file and line), and what it would change in the plan. Comments are grouped by the Use / Skip decision reviewers made on the plan page: those marked Use come with a recommendation to apply, untriaged ones are reported for you to decide, and skipped ones are listed and left alone.