Skip to content

Use Mintlify Visibility component for agent reminders - #1546

Merged
N2D4 merged 1 commit into
devfrom
devin/1780513167-visibility-agent-reminders
Jun 3, 2026
Merged

N2D4 merged 1 commit into
devfrom
devin/1780513167-visibility-agent-reminders

Conversation

@N2D4

@N2D4 N2D4 commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replaces the custom <HexclaveAgentReminders /> JSX component with Mintlify's built-in <Visibility for="agents"> so reminders are hidden from humans on the web UI but included in the Markdown output for agents.

The snippet now exports a text constant (hexclaveAgentRemindersText) instead of a React component, used inside page-level <Visibility> tags in each docs page.

Link to Devin session: https://app.devin.ai/sessions/1c80447190b84f1a952849515ace1759
Requested by: @N2D4


Summary by cubic

Use Mintlify Visibility to gate agent reminders, replacing the custom <HexclaveAgentReminders />.
The snippet now exports hexclaveAgentRemindersText used inside <Visibility for="agents"> on each page; docs pages and the setup prompt generator were updated.

Written for commit b4dcb42. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

Release Notes

  • Documentation

    • Enhanced Getting Started, CLI, and additional guides with improved visibility scoping for agent-specific content and reminders.
  • Refactor

    • Modernized agent reminder rendering approach across documentation pages for better maintainability and consistency.

@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stack-auth-hosted-components Ready Ready Preview, Comment Jun 3, 2026 7:10pm
stack-auth-internal-tool Ready Ready Preview, Comment Jun 3, 2026 7:10pm
stack-auth-mcp Ready Ready Preview, Comment Jun 3, 2026 7:10pm
stack-auth-skills Ready Ready Preview, Comment Jun 3, 2026 7:10pm
stack-backend Ready Ready Preview, Comment Jun 3, 2026 7:10pm
stack-dashboard Ready Ready Preview, Comment Jun 3, 2026 7:10pm
stack-demo Ready Ready Preview, Comment Jun 3, 2026 7:10pm
stack-docs Error Error Jun 3, 2026 7:10pm
stack-preview-backend Ready Ready Preview, Comment Jun 3, 2026 7:10pm
stack-preview-dashboard Ready Ready Preview, Comment Jun 3, 2026 7:10pm

@coderabbitai

coderabbitai Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4cb10a63-995f-4123-bef5-3a77bd9fb9c2

📥 Commits

Reviewing files that changed from the base of the PR and between a21ba6b and b4dcb42.

📒 Files selected for processing (6)
  • docs-mintlify/guides/getting-started/ai-integration.mdx
  • docs-mintlify/guides/getting-started/setup.mdx
  • docs-mintlify/guides/going-further/cli.mdx
  • docs-mintlify/index.mdx
  • docs-mintlify/snippets/hexclave-agent-reminders.jsx
  • scripts/generate-setup-prompt-docs.ts

📝 Walkthrough

Walkthrough

The PR refactors agent reminder rendering across documentation and generator code. The hexclave-agent-reminders snippet changes from exporting a React component to exporting a string constant, and the generator and four MDX guide files are updated to import the text and render it within agent-scoped Visibility wrappers.

Changes

Agent reminders export refactoring

Layer / File(s) Summary
Snippet export and generator update
docs-mintlify/snippets/hexclave-agent-reminders.jsx, scripts/generate-setup-prompt-docs.ts
hexclave-agent-reminders.jsx now exports hexclaveAgentRemindersText (string constant) instead of HexclaveAgentReminders (React component). The generator is updated to produce the new import and render pattern in generated setup.mdx and snippet files.
Documentation MDX consumer updates
docs-mintlify/guides/getting-started/setup.mdx, docs-mintlify/guides/getting-started/ai-integration.mdx, docs-mintlify/guides/going-further/cli.mdx, docs-mintlify/index.mdx
Four documentation files import the new text constant and render it inside <Visibility for="agents"> wrappers, replacing direct component usage.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 A string takes the stage, no JSX to show,
Four guides wrap it tight in visibility's glow,
The generator knows the new pattern to weave,
Agent reminders dance—simple, and clean to believe! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Use Mintlify Visibility component for agent reminders' directly and clearly summarizes the main change across all modified files—replacing a custom HexclaveAgentReminders component with Mintlify's Visibility component for agent-specific content.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch devin/1780513167-visibility-agent-reminders

Warning

Tools execution failed with the following error:

Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error)


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@greptile-apps

greptile-apps Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR replaces the custom HexclaveAgentReminders React component (which wrapped reminder text in a <pre> tag) with a plain exported string constant (hexclaveAgentRemindersText) wrapped in Mintlify's built-in <Visibility for="agents"> on each docs page. The generator script (generate-setup-prompt-docs.ts) is updated in tandem to produce the new format.

  • Snippet refactored: hexclave-agent-reminders.jsx now exports a plain string instead of a JSX component; all four .mdx pages and the setup-prompt generator script are updated consistently with no stale references remaining.
  • <pre> wrapper removed: The old implementation rendered reminder text inside <pre> (HTML whitespace-preserved). The new approach relies on <Visibility for="agents"> to deliver the raw string to agents via Mintlify's Markdown output, making the <pre> wrapper unnecessary.

Confidence Score: 5/5

Safe to merge — this is a straightforward docs-layer refactor with no logic changes and no remaining references to the old export.

All four docs pages and the generator script are updated consistently, the old HexclaveAgentReminders export name is gone from every file, and the reminder text content itself is byte-for-byte identical to before. The only behavioral change is that the text is now gated behind Mintlify's Visibility component instead of being rendered in a pre tag, which matches the stated intent.

No files require special attention.

Important Files Changed

Filename Overview
docs-mintlify/snippets/hexclave-agent-reminders.jsx Refactored from a JSX component wrapping text in <pre> to a plain exported string constant; content is unchanged.
scripts/generate-setup-prompt-docs.ts Template updated to generate the new import and <Visibility> wrapper pattern; snippet generation updated to export a string constant.
docs-mintlify/guides/getting-started/ai-integration.mdx Import and usage updated from HexclaveAgentReminders component to hexclaveAgentRemindersText inside <Visibility for="agents">.
docs-mintlify/guides/getting-started/setup.mdx Import and usage updated; this file is generated by generate-setup-prompt-docs.ts and is consistent with the script changes.
docs-mintlify/guides/going-further/cli.mdx Import and usage updated from HexclaveAgentReminders to hexclaveAgentRemindersText inside <Visibility for="agents">.
docs-mintlify/index.mdx Import and usage updated from HexclaveAgentReminders to hexclaveAgentRemindersText inside <Visibility for="agents">.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["generate-setup-prompt-docs.ts"] -->|"writes"| B["hexclave-agent-reminders.jsx\nexports hexclaveAgentRemindersText"]
    A -->|"writes"| C["setup.mdx"]

    B -->|"imported by"| C
    B -->|"imported by"| D["ai-integration.mdx"]
    B -->|"imported by"| E["cli.mdx"]
    B -->|"imported by"| F["index.mdx"]

    C --> G["Visibility for agents\n{hexclaveAgentRemindersText}"]
    D --> G
    E --> G
    F --> G

    G -->|"hidden from"| H["Human web UI"]
    G -->|"included in"| I["Markdown output for AI agents"]
Loading

Reviews (1): Last reviewed commit: "Use Visibility component for agent remin..." | Re-trigger Greptile

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 6 files

Re-trigger cubic

@N2D4
N2D4 merged commit 582e9fc into dev Jun 3, 2026
23 of 27 checks passed
@N2D4
N2D4 deleted the devin/1780513167-visibility-agent-reminders branch June 3, 2026 20:30

This branch was successfully deployed

5 active deployments
Preview – stack-preview-backend — b4dcb424 Deployed Jun 3, 2026 by vercel[bot]
Preview – stack-preview-dashboard — b4dcb424 Deployed Jun 3, 2026 by vercel[bot]
Preview – stack-auth-internal-tool — b4dcb424 Deployed Jun 3, 2026 by vercel[bot]
Preview – stack-auth-skills — b4dcb424 Deployed Jun 3, 2026 by vercel[bot]
Preview – stack-auth-mcp — b4dcb424 Deployed Jun 3, 2026 by vercel[bot]
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