feat: agent-friendly zero-interactive setup - #33
Closed
the-herbalist wants to merge 3 commits into
Closed
Conversation
IgorTavcar
added a commit
to IgorTavcar/mempalace
that referenced
this pull request
Apr 7, 2026
Cherry-picked from upstream PR MemPalace#33 (the-herbalist). - Add MEMPALACE_NONINTERACTIVE env var to skip all prompts - Add `mempalace mine --auto` for auto-detection of content type - Add `mempalace agent-setup <dir>` one-shot command - Add AGENT.md for LLM discoverability Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
Fixed in #123 — |
This was referenced Aug 6, 2026
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.
What This Does
Makes MemPalace fully setup-able by AI agents with zero interactive prompts. Three non-breaking additions:
MEMPALACE_NONINTERACTIVEenv var — Respects this env var (in addition to existing--yesflag) to skip allinput()prompts inconfirm_entities(). Works as a global kill switch for interactive mode.mempalace mine --auto— Auto-detects whether the target directory contains project files or conversation exports by scanning for known patterns (Claude/ChatGPT transcripts, Slack exports, OpenAI JSON format, etc.). Picks the right mining mode automatically.mempalace agent-setup <dir>command — One-shot non-interactive setup: init + auto-detect content + mine + status verification. Forces non-interactive mode internally. Returns exit code 0 on success.AGENT.md— Agent discovery document at repo root. Written for LLM parsing — any AI agent finding this repo can execute the setup flow autonomously.Usage
bash
Existing behavior unchanged
mempalace init ~/project --yes
New — agent-friendly
MEMPALACE_NONINTERACTIVE=1 mempalace init ~/project
mempalace mine ~/project --auto
mempalace agent-setup ~/project
Backward Compatibility
--yesflag oninitis unchanged--mode autois opt-in (default is stillprojects)agent-setupis a new subcommand, no collisionFiles Changed
mempalace/cli.py(+182 lines:_detect_mine_mode,cmd_agent_setup,--mode autosupport)mempalace/entity_detector.py(+3 lines: env var check inconfirm_entities)AGENT.md(new file, agent setup documentation)