{"id":51527783,"url":"https://github.com/synapticloop/mnemesis","last_synced_at":"2026-07-08T23:30:38.491Z","repository":{"id":369410458,"uuid":"1289715394","full_name":"synapticloop/mnemesis","owner":"synapticloop","description":null,"archived":false,"fork":false,"pushed_at":"2026-07-05T07:41:40.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-05T08:08:26.664Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/synapticloop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-05T05:32:38.000Z","updated_at":"2026-07-05T07:41:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/synapticloop/mnemesis","commit_stats":null,"previous_names":["synapticloop/mnemesis"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/synapticloop/mnemesis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synapticloop%2Fmnemesis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synapticloop%2Fmnemesis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synapticloop%2Fmnemesis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synapticloop%2Fmnemesis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synapticloop","download_url":"https://codeload.github.com/synapticloop/mnemesis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synapticloop%2Fmnemesis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35281838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-08T23:30:36.066Z","updated_at":"2026-07-08T23:30:38.480Z","avatar_url":"https://github.com/synapticloop.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mnemesis\n\nMnemesis is a filesystem-backed project contract registry for AI agents. A project contract records:\n\n- a unique project name and description;\n- one or more possible inputs;\n- the file and directory outputs associated with each input;\n- typed outcome actions containing instructions for the agent.\n\nThe CLI has two commands — `load` and `save` — backed by a per-project draft workflow. An agent discovers existing contracts via `load`, edits the corresponding draft, then commits with `save`.\n\n## Status\n\nWorking scaffold. Toolchain: Rust 1.96 stable. Build, test, and clippy all pass. The release binary lives at `~/.local/bin/mnemesis` on this host.\n\n## Storage layout\n\n```text\n~/.mnemesis/\n  projects/\u003cname\u003e.yaml    # committed contracts (the registry)\n  drafts/\u003cname\u003e.yaml      # working copies for editing\n```\n\nOverride the store root with the `MNEMESIS_HOME` environment variable.\n\n## Build\n\n```bash\ncargo build --release\ncargo test\ncargo clippy --all-targets -- -D warnings\n```\n\nInstall the binary somewhere on the Hermes terminal `PATH`:\n\n```bash\ninstall -m 0755 target/release/mnemesis ~/.local/bin/mnemesis\n```\n\nYAML serialisation uses the `yaml_serde` crate. Output formatting follows block style with list dashes at column 0 (`- name:` rather than `  - name:`); both forms are valid YAML and round-trip identically, but a contract written by the binary will not byte-match a contract written by hand.\n\n## Commands\n\n```bash\nmnemesis load \u003cquery\u003e                  # load by exact name, or return ranked candidates\nmnemesis save \u003cproject\u003e                # save the draft to projects/\u003cproject\u003e.yaml\nmnemesis save \u003cproject\u003e --yes          # accept every pending change\nmnemesis save \u003cproject\u003e --accept \u003cpath\u003e   # accept only this diff path (repeatable)\nmnemesis verify \u003cproject\u003e              # check every output path exists with the right type\nmnemesis --schema                      # print the embedded JSON Schema\n```\n\n## Quick start\n\n```bash\n# Load an existing project (seeds a draft you can edit):\nmnemesis load company-website\n\n# The response includes draft_path. Edit that file, then save:\nmnemesis save company-website          # if changed, prints the diff and exits 1\nmnemesis save company-website --yes    # accept everything and write\n\n# Load a fuzzy match to discover projects:\nmnemesis load \"company site\"           # returns ranked candidates if ambiguous\n\n# Create a brand-new contract from the example:\ncp examples/company-website.yaml ~/.mnemesis/drafts/my-new-project.yaml\n$EDITOR ~/.mnemesis/drafts/my-new-project.yaml   # change project.name, fields, etc.\nmnemesis save my-new-project --yes\n```\n\nThe CLI emits JSON by default so Hermes can interpret results reliably.\n\n## Hermes skill\n\nCopy the skill directory into Hermes:\n\n```bash\nmkdir -p ~/.hermes/skills\ncp -R hermes-skill/mnemesis ~/.hermes/skills/mnemesis\n```\n\nIt then becomes available as:\n\n```text\n/mnemesis\n```\n\nThe skill teaches Hermes the load/edit/save workflow plus the draft diff confirmation flow.\n\n## Schema\n\n```yaml\nschema_version: 1\nproject:\n  name: company-website\n  description: Build and deploy the company website.\ninputs:\n  - name: website-source\n    description: Source directory containing the website.\n    type: directory\n    outputs:\n      - name: build-directory\n        type: directory\n        location: ./dist\n    actions:\n      - type: successful-build\n        instructions: |\n          Verify the output and report the successful build.\n```\n\nNames and action types use lowercase kebab-case. Output types are `file` or `directory`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynapticloop%2Fmnemesis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynapticloop%2Fmnemesis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynapticloop%2Fmnemesis/lists"}