Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

agenv-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agenv-cli

Generate portable AI workspace configs for any web development project — one manifest for Copilot, Claude, Codex, and MCP.

latest
Source
npmnpm
Version
2.2.0
Version published
Maintainers
1
Created
Source

agenv

npm version license

Generate portable AI workspace configs for any web development project — one manifest for Copilot, Claude, Codex, MCP, Cursor, and Windsurf.

Define one canonical ai-workspace.json manifest, then generate tool-specific configuration files for all six targets from a single source of truth.

Quick Start

# Install once:
npm install -g agenv-cli

# Then in any web project directory:
agenv init --yes
agenv generate

That's it. agenv inspects your repo, creates ai-workspace.json, and generates tool-specific files for your enabled targets.

What It Does

  • Inspects your repo — detects framework, package manager, existing AI config files
  • Creates ai-workspace.json — a single manifest describing your AI workspace
  • Plans which files to generate based on your targets and setup mode
  • Generates shared docs, prompts, and tool-specific files (AGENTS.md, copilot-instructions, .claude/, .mcp.json)

Supports seven project types: dashboard, web-app, api-service, full-stack, library, cli-tool, and mobile.

Install

npm install -g agenv-cli
agenv --help

Commands

CommandDescription
agenv initCreate ai-workspace.json from repo inspection + interactive prompts
agenv init --yesNon-interactive mode with recommended defaults
agenv generateGenerate all planned files from the manifest
agenv generate --dry-runPreview what would be generated without writing
agenv generate --forceOverwrite files modified outside agenv
agenv diffShow what generate would change
agenv doctorValidate manifest and repo compatibility
agenv templates listList available starter templates

How It Works

agenv init          →  ai-workspace.json (your manifest)
agenv generate      →  AGENTS.md, .github/copilot-instructions.md,
                       .claude/*, .mcp.json, docs/ai-prompts/*
agenv diff          →  preview changes before writing
agenv doctor        →  validate everything is consistent

Generated files include a header comment so agenv knows which files it manages. Files you edit by hand are protected from overwrite (unless you use --force). Backups are created in .agenv-backups/ before any overwrite.

Supported Targets

TargetOutput
codexAGENTS.md
copilot.github/copilot-instructions.md
claude.claude/README.md, .claude/skills/*.md, .claude/agents/*.md, .claude/settings.local.json
mcp.mcp.json, .mcp.local.json
cursor.cursor/rules/context.mdc, .cursor/rules/coding-style.mdc, .cursor/rules/framework.mdc, .cursor/rules/code-review.mdc
windsurf.windsurf/rules/context.md, .windsurf/rules/coding-style.md, .windsurf/rules/framework.md, .windsurf/rules/code-review.md

Project Types

TypeDescription
dashboardInternal data/admin dashboard
web-appConsumer-facing web application
api-serviceBackend API service
full-stackCombined frontend + backend (e.g. Next.js full-stack)
libraryReusable npm package or component library
cli-toolNode.js command-line tool
mobileReact Native / Expo mobile app

MCP Presets

Built-in presets with trust annotations: filesystem, github, fetch, memory, postgres, sqlite, puppeteer, sequential-thinking, notion, stripe, atlassian.

Select presets during agenv init or add them to generated.mcpPresets in your manifest. Non-safe presets include _trustLevel and _trustNote annotations in .mcp.json.

Documentation

DocPurpose
Getting StartedContributor onboarding
Product RequirementsProduct goals and scope
Technical RequirementsArchitecture and technical design
CLI SpecCommand contract and flag reference
Manifest SpecManifest schema and field definitions
Output MapWhich files are generated and when
Adapter ContractHow adapters work

Contributing

See CONTRIBUTING.md for setup, development commands, and PR guidelines.

Security

See SECURITY.md for the vulnerability reporting policy.

npm install
npm run build
npm test
npm run typecheck

License

MIT

Keywords

ai

FAQs

Package last updated on 27 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts