Skip to content

feat: inject secrets.md management instructions into agent system prompt#346

Open
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/secrets-management
Open

feat: inject secrets.md management instructions into agent system prompt#346
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/secrets-management

Conversation

@nap-liu
Copy link
Copy Markdown

@nap-liu nap-liu commented Apr 8, 2026

Summary

  • Add secrets.md to agent workspace structure documentation in system prompt
  • Strict rules: credentials must be stored via write_file, never displayed in chat, referenced by name only
  • Agents will proactively use secrets.md for credential storage and retrieval

Test plan

  • E2E browser test: asked Morty to save API key → called write_file → saved to secrets.md → did not leak key in response

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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