Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Private AINew to Visual Studio Code? Get it now.
Private AI

Private AI

codingguydynamite

|
2 installs
| (0) | Free
Syncs coding-agent skills, instructions, and settings through a private Git repository.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Private AI

A VS Code extension for managing AI coding skills, instructions, prompts, and settings across machines or teammates. It keeps file history in a separate private Git repository and syncs files into each linked workspace, where coding agents can use them normally.

New: connect Claude Code via MCP

In a linked workspace, open Private AI and choose Actions → Connect External Agent → Connect Claude Code. This registers the local MCP server for this project. The workspace host needs Node.js on its PATH and either the Claude Code extension's bundled executable or the Claude CLI.

Restart Claude Code in the same project, then ask: “Resolve conflicts and sync my Private AI profile.” Claude uses planSync to find changes, readConflict to read overlapping edits, and applySync to submit its merge. Private AI checks the plan, backs up affected files, and pushes the result when there are changes to publish.

Private AI sidebar showing an AGENTS.md conflict and Connect External Agent under Actions

Get started

  1. Install Git where your workspace runs. In VS Code, search Extensions for codingguydynamite.private-ai. To install a local build, run npm ci and npm run package, then choose Extensions: Install from VSIX.
  2. Open a trusted workspace. In the Activity Bar, open Private AI using the shushing ninja robot icon.
  3. Create a private Git repository and give each teammate who will sync access. Set up Git authentication on the workspace host. In Connect Repository, enter its URL and select a branch. An empty repository can be initialized on the chosen branch.
  4. Use Create Profile to define a set of files, optionally inheriting from a shared profile. Use Link Project to choose which profile this workspace uses.
  5. Use the sidebar gear icon to choose which paths to manage. Save your changes and run Sync. On another machine, connect to the same repository and branch and link the same profile.

If you’re upgrading from a VSIX with the old extension ID, disable that build, then reconnect and link your workspace in the new extension. Existing configuration files remain in the workspace.

Sync and resolve conflicts

Sync pulls incoming changes, merges compatible edits, and pushes saved local changes to the private branch. Pull applies incoming changes locally. Show Status previews pending changes. For an overlapping edit, open the conflict from Sync to compare your changes with your colleague's and choose or edit the result. The extension backs up existing files before overwriting or deleting them.

In VS Code Chat → Agent, choose a model with tool support, type #, and select #planPrivateAiSync. Use this prompt.

#planPrivateAiSync Resolve conflicts and sync this workspace. Ask me if a resolution is ambiguous.

VS Code 1.102 or later can also open Chat from the linked workspace's terminal. VS Code CLI reference

code chat --mode agent "#planPrivateAiSync Resolve conflicts and sync this workspace. Ask me if a resolution is ambiguous."

Allow conflict sharing to let the selected model and its provider see the conflicting text. Choose Allow and always apply full syncs to also approve future full syncs with validated text merges. Deletions, skipped conflicts, warnings, whole-file choices, and writes to shared source profiles still require confirmation.

Codex and other MCP agents

For a Codex CLI session, select Start Codex with Private AI. The extension locates the Codex executable and opens it directly with the tools attached. On Windows it can also use the Codex desktop installation when the CLI is missing from PATH. For a persistent Codex IDE or CLI registration, Copy Codex MCP configuration provides the block for the trusted project’s .codex/config.toml. For other stdio clients, choose Copy settings for another MCP client. Use project-local client settings: each registration operates on exactly one linked folder. After setup the agent works with VS Code closed. Save open edits first because an external process reads files from disk.

Connecting authorizes the external agent and its provider to read conflict hunks and apply full syncs for that project. The agent plans, reads overlapping text, and supplies a merge. The same engine verifies the plan, backs up files, and publishes. For ambiguous intent the agent asks for guidance. Deletions, whole-file choices for conflicts, warnings, skips and writes to shared source profiles require an interactive terminal decision. Use the command and arguments returned by the tool to review and approve the current proposal. To revoke access, choose Disconnect external agents in the same palette command.

Files already in the project repository

Files currently tracked by the main project repository appear under Outside sync. Leave them there if they should remain part of the project. To move a file to private sync, use Bring Back into Sync → Copy untrack command. Run the command from the project Git root, review and commit the removal, then select Recheck. Your local copy stays in place. If old commits also need to be cleaned, choose Open history-rewrite guide for the separate manual process.

Settings

Search for privateAiConfig in VS Code User Settings. The settings below use that prefix.

Setting What it controls
repositoryUrl, defaultBranch Private repository and branch. The default branch is main.
managedPatterns Paths to discover. Defaults include AGENTS.md, CLAUDE.md, GEMINI.md, and folders such as .claude/ and .codex/.
excludePatterns Paths to skip during sync, including files already in a profile.
ignoreTarget Where to add ignore rules for untracked paths. Use exclude (local .git/info/exclude, the default), gitignore (workspace .gitignore), or none.
sync.afterGitChange (Auto Sync) On by default. Checks the private profile when a project commit or pull changes the current branch's commit, or a push updates its upstream. Applies clean incoming additions and updates to already ignored paths and offers Sync for changes that need attention.
chat.shareConflictContent, chat.autoApplySync Allow Chat to read conflicting text or apply eligible full syncs without repeated approval. Both default to off.
backupRetention, sync.maxRetries Keep 10 backup runs and try sync up to 3 times by default.

If you set privateAiConfig.sync.afterGitChange in settings.json before this update, use false in place of "off" or true in place of "review" or "pull".

For managed and excluded paths, use an exact workspace-relative file path or a folder ending in /, such as .agents/skills/.

Managed Patterns in VS Code User Settings

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft