agents is a Rust CLI + core library that projects canonical .agents/ configuration into agent-native surfaces (Copilot, Cursor, Codex, Claude Code, OpenCode, Gemini, etc.). It gives you deterministic outputs, drift detection, and a single source of truth for agent instructions.
.agents/ schema with deterministic resolution, templating, and output planning.materialize, vfs_container, and vfs_mount (workspace copy).cargo run -p agents-cli -- init --preset standard
cargo run -p agents-cli -- status
cargo run -p agents-cli -- preview --agent opencode
cargo run -p agents-cli -- sync --agent opencode --backend materialize
npm install -g @agentsfolder/agents
agents --help
Homebrew packaging is queued for a follow-up release once the tap is enabled.
The npm package uses prebuilt binaries; a Rust toolchain is not required for end users.
# Validate configuration
agents validate
# Inspect effective config
agents status [--mode <id>] [--profile <id>] [--json]
# Preview planned outputs (no writes)
agents preview --agent <id> [--backend <backend>] [--keep-temp]
# Apply outputs via backend
agents sync --agent <id> [--backend <backend>]
# Run a CLI agent with resolved config
agents run <agent-binary> --adapter <id> [--backend <backend>] -- [agent args]
# Show drift
agents diff --agent <id>
# Clean generated artifacts
agents clean --agent <id> [--dry-run]
# Explain a generated file
agents explain <path>
# Compatibility matrix
agents compat [--json]
# Import from existing config
agents import --from copilot [--path <file>]
# Adapter golden fixtures
agents test adapters [--agent <id>] [--update]
opencode (opencode.jsonc + shared AGENTS.md)codex (AGENTS.md)copilot (.github/copilot-instructions.md + scoped instructions)claude (.claude/settings.json + optional CLAUDE.md)cursor (.cursor/rules/*.md)gemini-cli (.gemini/settings.json)gemini-github (.gemini/styleguide.md)core shared AGENTS.md surface.agents/
manifest.yaml
prompts/
base.md
project.md
snippets/
modes/
policies/
adapters/
schemas/
state/
The source of truth for work lives in specs/*.md checklists. When adding a new spec, update both specs/plan.md and the specs index in AGENTS.md.
cargo fmt -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test
Cargo-dist drives releases. Tag main with a semver version to publish:
git tag v0.1.0
git push origin v0.1.0
The release workflow builds multi-platform binaries, publishes the npm package, and updates the Homebrew tap.
--backend vfs_container to avoid writing to the repo when supported by your environment.fixtures/ and are exercised by agents test adapters.