Skip to content

feat(install): add project-local Cursor and Codex setup - #10

Merged
ScriptedAlchemy merged 10 commits into
masterfrom
split/holographic-cursor-local-base
Jun 8, 2026
Merged

feat(install): add project-local Cursor and Codex setup#10
ScriptedAlchemy merged 10 commits into
masterfrom
split/holographic-cursor-local-base

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • Add project-local Cursor and Codex MCP setup as the base for the holographic-memory stack.
  • Install local hooks/rules/permissions without relying on user-profile agent config.
  • Add repo-local dev MCP wrapper and checked-in local config examples.

Test plan

  • cargo fmt --check
  • cargo test --test agent_test test_local_install_cursor_writes_project_config_only
  • cargo test --test agent_test test_codex_local_install_writes_hooks
  • cargo check

Stack base for the memory and docs PRs.

@changeset-bot

changeset-bot Bot commented Jun 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 294a7fd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 98d5684257

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/hooks.rs Outdated
Comment thread src/agents/codex.rs
Comment thread src/agents/cursor.rs
ScriptedAlchemy added 5 commits June 8, 2026 01:47
Replace the `(is_local_install, enable_global_db)` boolean pair in the
cursor and codex `install_mcp_server` helpers with a shared
`InstallScope` enum (`Global` / `ProjectLocal`) so the two invalid
combinations are unrepresentable and each agent maps the scope via an
exhaustive match. Generated cursor `mcp.json` and codex `config.toml`
remain byte-identical.

Wire cursor, codex, and kiro hook-command construction to the shared
`super::hook_command` helper instead of POSIX-only local quoting. POSIX
output for cursor/codex is unchanged; on Windows hook commands are now
double-quoted with normalized separators, fixing a latent quoting bug.
This also clears the four recurring unused-code warnings for
`hook_command`, `hook_command_for_platform`, `quote_windows_command_arg`,
and `quote_posix_command_arg`.
`should_skip_agent_install_maintenance` was hardwired to always return
true, leaving the `check_install_stale` gate and the silent-reinstall
block unreachable. Re-enable them selectively: skip the implicit reinstall
scan for `Serve` (the MCP hot path with a 30 s initialize timeout, #84),
`Install` / `Reinstall` (already install), and `Tool` (per-invocation hot
path), and run it for every other command so agent permissions, hooks, and
MCP config re-sync after a binary upgrade.

Update the startup test to assert the selective behavior (skip for
serve/install/reinstall/tool; run for representative everyday commands).
Add `Uninstall` and `Doctor` to `should_skip_agent_install_maintenance`'s
skip set, restoring the original CHANGELOG #84 intent: don't mutate agent
configs during the read-only `doctor` diagnostic, and don't reinstall
configs right before `uninstall` removes them. Update the selective-gate
test to assert skip for both alongside serve/install/reinstall/tool, while
still running maintenance for representative everyday commands.
@ScriptedAlchemy
ScriptedAlchemy merged commit 70201c6 into master Jun 8, 2026
5 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the split/holographic-cursor-local-base branch July 4, 2026 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant