Skip to content

docs: document recent env vars, CLI commands, scopes, and TUI keybindings#436

Merged
Alan-TheGentleman merged 1 commit into
mainfrom
docs/update-recent-features
May 27, 2026
Merged

docs: document recent env vars, CLI commands, scopes, and TUI keybindings#436
Alan-TheGentleman merged 1 commit into
mainfrom
docs/update-recent-features

Conversation

@Alan-TheGentleman
Copy link
Copy Markdown
Collaborator

Summary

Brings the docs up to date after the 2026-05-27 fix/feature batches. Documentation only (plus printUsage() help text), no runtime behavior changes. All entries were sourced by reading the actual implementation.

Today's features documented

  • ENGRAM_HTTP_TOKEN — optional Bearer auth for destructive HTTP endpoints (DELETE sessions/observations/prompts, GET /export, POST /import, POST /projects/migrate); unset = open (zero-config); constant-time compare.
  • scope=personal without an explicit project searches across all projects (mem_search, mem_context).
  • global is a valid scope value (alongside project, personal).
  • ENGRAM_TIMEZONE — timezone for timestamp display (TUI + cloud dashboard). Note: falls back to system local (t.Local()), not UTC.
  • engram delete <id> [--hard] — added to the CLI reference tables.
  • TUI c — copy observation content to clipboard (OSC 52).
  • ENGRAM_CLOUD_ALLOWED_PROJECTS accepts * to allow all projects.
  • engram setup pi pins npmCommand via mise when detected (existing values preserved).

Prior debt fixed

  • DOCS.md env-var table expanded from 3 → 17 rows, synced with printUsage().
  • printUsage() env block: 5 missing vars added, indentation fixed.
  • CLI reference tables in README.md and docs/ARCHITECTURE.md now include doctor, conflicts, delete, projects prune.

Files

DOCS.md, README.md, cmd/engram/main.go (printUsage), docs/ARCHITECTURE.md, docs/AGENT-SETUP.md, plugin/pi/README.md

Test plan

  • go build ./... && go vet ./... clean
  • Spot-check the env-var tables, scope enums, CLI tables, and TUI navigation entries against the implementation

Closes #435

- ENGRAM_HTTP_TOKEN: document optional Bearer auth for local HTTP server
  (requireAuth middleware, protected routes, constant-time compare,
  zero-config default when unset)
- scope=personal cross-project: document that mem_search and mem_context
  clear the project filter when scope=personal without explicit project
- global scope: add 'global' to every scope enum in DOCS.md, ARCHITECTURE.md,
  and HTTP API docs
- ENGRAM_TIMEZONE: document IANA timezone for TUI/dashboard display
- engram delete --hard: add row to CLI reference tables in README.md and
  ARCHITECTURE.md (already in printUsage)
- TUI 'c' copy: document copy-to-clipboard (OSC 52) in DOCS.md Navigation
  and README.md Terminal UI sections
- ENGRAM_CLOUD_ALLOWED_PROJECTS '*' wildcard: document in DOCS.md cloud
  env table, README.md cloud section, and ARCHITECTURE.md
- Pi npmCommand mise pinning: document ensurePiNpmCommand auto-pin behavior
  in plugin/pi/README.md and docs/AGENT-SETUP.md
- Prior debt: expand DOCS.md env table from 3 rows to full list synced with
  printUsage; add doctor, conflicts, delete, projects prune to CLI reference
  tables in README.md and ARCHITECTURE.md; sync printUsage env block
  (add ENGRAM_HTTP_TOKEN, ENGRAM_TIMEZONE, ENGRAM_AGENT_CLI,
  ENGRAM_CLOUD_AUTOSYNC, ENGRAM_CLOUD_SERVER; fix indentation)

Closes #435
Copilot AI review requested due to automatic review settings May 27, 2026 17:06
@Alan-TheGentleman Alan-TheGentleman added the type:docs Documentation only label May 27, 2026
@Alan-TheGentleman Alan-TheGentleman merged commit 4337354 into main May 27, 2026
8 of 9 checks passed
@Alan-TheGentleman Alan-TheGentleman deleted the docs/update-recent-features branch May 27, 2026 17:07
@Alan-TheGentleman Alan-TheGentleman review requested due to automatic review settings May 27, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:docs Documentation only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: bring docs up to date with recent env vars, CLI commands, scopes, and TUI keybindings

1 participant