Before publishing, ensure these items are complete:
- Extension compiles without errors (
npm run compile) - Extension packaged successfully (
npm run package) - Version updated in package.json (currently:
1.0.0) - Icon added (
images/icon.png- 128x128px) - README.md updated with features
- CHANGELOG.md updated
- LICENSE file present (MIT)
- All 18 commands registered and functional
- 14 snippets registered
- VS Code walkthrough configured
- Go to Visual Studio Marketplace Publisher Management
- Sign in with your Microsoft account (or create one)
- Create a publisher:
- Publisher ID:
agent-os(must matchpackage.json) - Display Name:
Agent OS Team - Description: Safety-first kernel for AI coding assistants
- Publisher ID:
- Verify your email address
- Go to Azure DevOps
- Sign in (create account if needed - can use same Microsoft account)
- Create organization if you don't have one
- Click your profile icon → Personal access tokens
- Click + New Token
- Configure:
- Name:
vscode-marketplace-publish - Organization:
All accessible organizations - Expiration: Set to 1 year (maximum)
- Scopes: Click "Custom defined" → Marketplace → Check Manage
- Name:
- Click Create and copy the token immediately (won't be shown again)
# If not installed globally
npm install -g @vscode/vsce
# Login (will prompt for PAT)
vsce login agent-os
# Paste your Personal Access Token when promptedcd <your-path>
# Publish directly (recommended)
vsce publish
# OR publish a specific VSIX file
vsce publish --packagePath agent-os-vscode-1.0.0.vsix- Wait 5-10 minutes for processing
- Visit: https://marketplace.visualstudio.com/items?itemName=agent-os.agent-os-vscode
- Verify all information appears correctly
- Test install from marketplace
# Auto-increment patch (1.0.0 → 1.0.1)
vsce publish patch
# Auto-increment minor (1.0.0 → 1.1.0)
vsce publish minor
# Auto-increment major (1.0.0 → 2.0.0)
vsce publish major
# Or manually update version in package.json, then:
vsce publish# Publish as pre-release (for beta testing)
vsce publish --pre-releaseAdd these to README.md after publishing:
[](https://marketplace.visualstudio.com/items?itemName=agent-os.agent-os-vscode)
[](https://marketplace.visualstudio.com/items?itemName=agent-os.agent-os-vscode)
[](https://marketplace.visualstudio.com/items?itemName=agent-os.agent-os-vscode)New publishers need to build reputation. Consider:
- Adding a verified GitHub repository link
- Building download/rating history
- Applying for verified publisher status after 1000+ installs
Create a new PAT with same steps, then:
vsce logout agent-os
vsce login agent-os- Ensure
icon.pngis 128x128 pixels minimum - Icon must be PNG format (not SVG in VSIX)
- Check
.vscodeignoredoesn't excludeimages/
- Wait up to 24 hours for indexing
- Ensure keywords in package.json are relevant
- Categories should be accurate
Add to .github/workflows/publish.yml:
name: Publish Extension
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install
working-directory: extensions/vscode
- run: npm run package
working-directory: extensions/vscode
- name: Publish
run: npx vsce publish -p ${{ secrets.VSCE_PAT }}
working-directory: extensions/vscodeSet VSCE_PAT in repository secrets.
Extension Status: Ready for GA Release
Version: 1.0.0
Package Size: ~960 KB