@loopstack/secrets-example-workflow
Demonstrates two secrets flows: a deterministic request/verify workflow and an agentic workflow where the LLM requests and validates secrets using secrets tools.
By using this example you’ll get…
SecretsExampleWorkflowfor a simple request-and-verify flowSecretsAgentExampleWorkflowthat loops with tool calling (get_secret_keys,request_secrets_task)- UI documents showing secret requests and verification status
Installation
npm install @loopstack/secrets-example-workflowThis example depends on @loopstack/secrets-module and @loopstack/claude-module; configure secrets storage and Claude credentials before running.
How It Works
Deterministic flow (SecretsExampleWorkflow)
- Calls
RequestSecretsTooland saves aSecretRequestDocument. - Waits for user-provided secrets.
- Calls
GetSecretKeysToolto read key availability. - Renders verification output via
MarkdownDocument.
Agentic flow (SecretsAgentExampleWorkflow)
- Seeds hidden/system context for the LLM.
- Runs LLM turns with Claude and allowed secrets tools.
- Delegates tool calls and merges callback results.
- Loops until end-turn, while supporting follow-up user messages.
Public API
SecretsExampleModuleSecretsExampleWorkflowSecretsAgentExampleWorkflow
Dependencies
@loopstack/common@loopstack/secrets-module@loopstack/llm-provider-module@loopstack/claude-module
Last updated on