@loopstack/code-agent-example-workflow
v0.22.0
Published
Example workflow demonstrating @loopstack/code-agent usage with codebase exploration tools
Downloads
335
Maintainers
Readme
@loopstack/code-agent-explore-example-workflow
Demonstrates how to launch the ExploreAgentWorkflow from @loopstack/code-agent as a sub-workflow to explore a remote workspace and surface a synthesized summary.
By using this example you'll get...
- A parent workflow that runs
ExploreAgentWorkflowwith a fixed exploration brief - A
LinkDocumentthat renders the embedded sub-workflow while it runs - A final
MessageDocumentsummarizing the agent's findings
Installation
loopstack add @loopstack/code-agent-explore-example-workflow@loopstack/code-agent transitively requires @loopstack/claude-module and @loopstack/remote-client — make sure both are configured (Anthropic API key + sandbox environment) before running.
How It Works
- The workflow starts and calls
ExploreAgentWorkflow.run({ instructions }). - The sub-agent iterates over
glob,grep, andreadtool calls against the remote workspace until it reaches a final answer. - The callback fires with the agent's synthesized response.
- A
MessageDocumentis saved with the response text.
Public API
CodeAgentExploreExampleModuleCodeAgentExploreExampleWorkflow
Dependencies
@loopstack/common,@loopstack/core@loopstack/code-agent
