Elegy is a Rust toolkit for shipping governed local CLI capabilities to AI-agent
hosts. Governed artifacts stay in the repo. Dedicated elegy-* binaries expose
the executable surfaces. CLI invocation is the default integration boundary.
MCP is optional.
Core model:
- governed plugin artifacts stay co-located with owning bundled plugins
- Rust implements reusable behavior over those artifacts
SKILL.mdfiles are the skill discovery authority- dedicated
elegy-*binaries are the shipped surfaces elegy-runis the MCP host adapter
| Area | Purpose |
|---|---|
plugins/ |
Bundled installable plugin packages. |
tools/ |
Standalone CLI crates that are not plugin packages. |
hosts/ |
Host adapters and transport servers. |
skills/ |
Standalone skill-only packages. |
marketplace-wrappers/ |
Public metadata wrappers for external/private plugin archives. |
shared/ |
Reusable Rust libraries and platform tooling. |
distribution/ |
Canonical release and surface catalog. |
docs/ |
Architecture, ADRs, specs, governance, and operations docs. |
artifacts/ |
CI-generated bundles, archives, and validation outputs. |
When those surfaces disagree, prefer the smallest relevant architecture or spec
document under docs/, then the owning package manifest and
distribution/surfaces.json.
Latest stable release: github.com/Sofreshx/Elegy/releases/latest
Rolling prerelease from main: github.com/Sofreshx/Elegy/releases/tag/main-snapshot
Published targets:
x86_64-pc-windows-msvcx86_64-unknown-linux-gnuaarch64-apple-darwin
Plugin-packaged surfaces ship as portable release archives named
<surface>-plugin-<target>.zip. Skill-only packages use
<surface>-plugin-any.zip. Use elegy-plugin-packaging to install or export
them.
elegy-plugin-packaging install --archive elegy-planning-plugin-x86_64-pc-windows-msvc.zip
elegy-plugin-packaging export --plugin plugins/planning --host codex --output ./exportCodex-native consumers should use the generated marketplace projection asset
named elegy-codex-marketplace-<target>.zip. Extract it to a Codex marketplace
directory, register that marketplace, then install the selected plugin:
codex plugin marketplace add <CODEX_HOME>/marketplaces/elegy --json
codex plugin add elegy-planning@elegy --jsonNon-plugin surfaces ship as standalone binaries. See
docs/distribution.md for the release index and each
binary's DISTRIBUTION.md for install details.
git clone https://github.com/Sofreshx/Elegy.git
cd Elegy
cargo build
cargo run -p elegy-tooling --bin elegy-plugin-packaging -- verify --plugin plugins/planning
cargo run -p elegy-planning -- --json versionRead first: CONTRIBUTING.md, SECURITY.md, docs/architecture/README.md.
Each binary owns its own distribution note. Adding a new binary does not require editing this README.
| Binary | Crate | Per-feature note |
|---|---|---|
elegy-run |
hosts/host-mcp/ |
DISTRIBUTION.md |
elegy-contracts |
shared/core/ |
No dedicated distribution note yet |
elegy-plugin-packaging |
shared/tooling/ |
docs/distribution.md |
elegy-desktop |
plugins/desktop/ |
DISTRIBUTION.md |
elegy-observe |
plugins/observe/ |
DISTRIBUTION.md |
elegy-memory |
plugins/memory/ |
DISTRIBUTION.md |
elegy-mcp |
plugins/mcp/ |
DISTRIBUTION.md |
elegy-planning |
plugins/planning/ |
DISTRIBUTION.md |
elegy-skills |
tools/skills/ |
DISTRIBUTION.md |
elegy-configuration |
tools/configuration/ |
DISTRIBUTION.md |
elegy-documentation |
plugins/documentation/ |
DISTRIBUTION.md |
elegy-memory-mcp-stdio |
hosts/memory-mcp/ |
DISTRIBUTION.md |
elegy-memory-mcp-http |
hosts/memory-mcp/ |
DISTRIBUTION.md |
elegy-codegraph |
tools/codegraph/ |
DISTRIBUTION.md |
Plugin-owned skills live under
plugins/{plugin-name}/skills/elegy-{skill-id}/SKILL.md. Standalone skill-only
packages live under skills/elegy-{skill-id}/SKILL.md. The elegy-skills CLI
discovers skills from plugin manifests and skills/elegy-* packages, failing
on duplicate skill IDs.
elegy-configuration materializes and verifies governed repo and home assets
from plugin-owned templates and profiles.
elegy-configuration list --json
elegy-configuration apply --profile-id repo-opencode-minimal --target . --dry-run --jsonSee docs/architecture/README.md for built-in templates and profile details.
Elegy's skills product is registry-first. Plugin-owned skills under
plugins/{plugin-name}/skills/ and standalone packages under skills/elegy-*
are the discovery authority. The elegy-skills CLI provides search, resolve,
inspect, and validation.
elegy-skills list/search/describe/resolve/validate --json
elegy-plugin/v1 is the minimal plugin manifest format for .elegy-plugin/plugin.json.
Plugins declare identity and Agent Skills (SKILL.md) in a single filesystem directory.
The ElegyPluginV1 Rust type defines the contract. Generated JSON schemas under
shared/plugin-sdk/schemas/ provide machine-readable projections.
Setup flow:
elegy-plugin-packaging verify --plugin ./my-pluginRelease configuration uses distribution/surfaces.json as the central release catalog.
The generated marketplace lives at .elegy/marketplace.json:
elegy-plugin-packaging marketplace list --source . --json
elegy-plugin-packaging marketplace search planning --source . --json
elegy-plugin-packaging marketplace status --source . --plugin elegy-planning --json
elegy-plugin-packaging marketplace update elegy-planning --source . --jsonBoundaries: the plugin manifest is a metadata envelope, not a runtime, marketplace, auth store, approval record, or secret/session container. Hosts own install, auth, approvals, runtime sessions, and execution policy.
elegy-runMCP is an adapter over governed skills and CLI behavior. Side-effecting tools
stay blocked unless the host is started with --allow-side-effects.
- Agent integration guide
- Distribution index (thin) — per-binary notes live in
each binary's
DISTRIBUTION.md - Architecture index
- Ecosystem topology
- Substrate governance
- Contributing guide | Security policy
- Code of conduct
cargo build
cargo test --workspace --all-targets --all-featuresWhen touching governed artifacts, packaging, or release workflows, also use the repo-root validation commands below.
For documentation-only changes, prefer the dedicated documentation checker:
elegy-documentation check --project . --jsonCommon Rust checks:
cargo fmt --all --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace --all-targets --all-featuresRepo-root validation for governed artifacts and packaging:
cargo run -p elegy-core --bin elegy-contracts -- --project . contracts validate
cargo run -p elegy-documentation -- check --project .Elegy is licensed under Apache 2.0.