Introduce native Rust am CLI with GitHub Releases distribution - #56
Merged
Conversation
## Summary Add a native Rust CLI (`am`) as the primary AtomicMemory command-line client, distributed via GitHub Releases and an install script, and begin consolidating the npm `@atomicmemory/cli` (`atomicmemory`) command surface into it. ## Changes - Add a Rust workspace (`crates/cli`, `crates/cloud-client`, `crates/cloud-types`, `crates/core-types`) implementing the `am` binary: auth (device login, OAuth, token storage), `am integrate` for MCP install into Cursor, Claude Code, and Codex, `am hooks`, `am memory` (ingest, package, scope), `am instance`, `am connect`, `am config`, and related commands. - Add `ci-rust` CI (fmt, clippy, MSRV check, cross-platform tests, `cargo-deny`) gated on `crates/**` and root `Cargo.*` changes. - Add `release-cli` (tag-triggered build, GitHub Release publish, and artifact attestation) and `mirror-cli-r2` (mirrors published release assets to `get.atomicstrata.ai`) workflows, plus `scripts/install-cli.sh`. - Document Rust contribution standards and the `atomicmemory` → `am` command map in `AGENTS.md`, `CONTRIBUTING.md`, and `crates/cli/README.md`. - Mark `@atomicmemory/cli` deprecated in favor of `am`, keeping it published for `import --type llmwiki` and legacy workflows. - Add a reserved-metadata preflight to the MCP server's `memory_ingest` tool so agents use `provenance` for lineage and keep `metadata` for integration keys; update Codex/OpenClaw skill instructions to match. - Fix OpenAI chat parameter selection in `packages/core` for reasoning and token-limit model SKUs. - Package versions in this change: `@atomicmemory/core` 1.2.1, `@atomicmemory/cli` and `@atomicmemory/mcp-server` 0.1.5, and the plugin packages 0.2.2. ## Why The npm-only CLI required a Node runtime and had install friction for non-JS environments; a native binary distributed through GitHub Releases and an install script gives users a single, dependency-free entry point while the memory package, SDK-aligned ingest modes, and agent output envelope get consolidated out of the npm package. The reserved-metadata preflight and OpenAI parameter fixes close gaps found while building out `am`'s ingest and MCP-facing surfaces. ## Validation - `pnpm run ci:rust` - `pnpm run test` - `pnpm run docs-contract` - `pnpm run security-compliance` - `pnpm run pack-dry-run`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a native Rust CLI (
am) as the primary AtomicMemory command-line client, distributed via GitHub Releases and an install script, and begin consolidating the npm@atomicmemory/cli(atomicmemory) command surface into it.Changes
crates/cli,crates/cloud-client,crates/cloud-types,crates/core-types) implementing theambinary: auth (device login, OAuth, token storage),am integratefor MCP install into Cursor, Claude Code, and Codex,am hooks,am memory(ingest, package, scope),am instance,am connect,am config, and related commands.ci-rustCI (fmt, clippy, MSRV check, cross-platform tests,cargo-deny) gated oncrates/**and rootCargo.*changes.release-cli(tag-triggered build, GitHub Release publish, and artifact attestation) andmirror-cli-r2(mirrors published release assets toget.atomicstrata.ai) workflows, plusscripts/install-cli.sh.atomicmemory→amcommand map inAGENTS.md,CONTRIBUTING.md, andcrates/cli/README.md.@atomicmemory/clideprecated in favor ofam, keeping it published forimport --type llmwikiand legacy workflows.memory_ingesttool so agents useprovenancefor lineage and keepmetadatafor integration keys; update Codex/OpenClaw skill instructions to match.packages/corefor reasoning and token-limit model SKUs.@atomicmemory/core1.2.1,@atomicmemory/cliand@atomicmemory/mcp-server0.1.5, and the plugin packages 0.2.2.Why
The npm-only CLI required a Node runtime and had install friction for non-JS environments; a native binary distributed through GitHub Releases and an install script gives users a single, dependency-free entry point while the memory package, SDK-aligned ingest modes, and agent output envelope get consolidated out of the npm package. The reserved-metadata preflight and OpenAI parameter fixes close gaps found while building out
am's ingest and MCP-facing surfaces.Validation
pnpm run ci:rustpnpm run testpnpm run docs-contractpnpm run security-compliancepnpm run pack-dry-run