Skip to content

docs: document memory git sync backend (memory.backend) - #298

Merged
edenreich merged 1 commit into
mainfrom
docs/issue-296-20260702-1147
Jul 2, 2026
Merged

edenreich merged 1 commit into
mainfrom
docs/issue-296-20260702-1147

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

Documents the new configurable memory sync backend (memory.backend) in cli.md, under Persistent Memory. Previously only the local knobs (enabled / dir / max_chars) were documented; the backend block was missing entirely.

Adds a new Sync backend subsection covering:

  • The backend config surface in memory.yaml (type: local | git), with type: local as the default no-op.
  • All backend.* keys, defaults, and INFER_MEMORY_BACKEND_* env vars.
  • Validation rules when type: git (repo required; on_start pull/off; on_finish push/off).
  • Sync behavior: SyncIn on run start (clone vs init-in-place), SyncOut on change only (porcelain check, push -> pull-rebase -> retry, per-host flock), where the push happens (chat Memory tool vs headless infer agent), and best-effort / never-fatal semantics.
  • Authentication via the ambient git credential chain (SSH vs gh auth vs token-in-URL), the token-in-URL warning, and the per-op timeout.

Also adds a pointer to the new subsection from the existing Configuration (memory.yaml) subsection.

Verified with bun run format:check, bun run lint:md, and bun run build - the new prose is server-rendered into dist/cli/index.html and indexed by local search.

Documents inference-gateway/cli#707 (closes inference-gateway/cli#683).

Closes #296

@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner July 2, 2026 11:53
@edenreich
edenreich merged commit ecbe857 into main Jul 2, 2026
1 check passed
@edenreich
edenreich deleted the docs/issue-296-20260702-1147 branch July 2, 2026 12:05
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.6.115 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Document memory git sync backend (memory.backend) [FEATURE] Configurable memory sync backend (git/GitHub: clone on start, push on finish)

1 participant