AskHN: Using 'claude -p' for running Mr.Jassy - AWS butler agent
High agreement — the answer is well-supported across models.
Models agree on
- ✓Mr. Jassy is a community-built AI agent for AWS tasks.
- ✓Claude is Anthropic’s AI model, and `-p` likely refers to a prompt file or parameter.
- ✓Integration requires configuring Mr. Jassy to use Claude’s API, not a CLI command.
- ✓Security best practices include least-privilege IAM policies and logging.
- ✓A wrapper script is needed to parse Claude’s output and execute AWS SDK calls.
The question involves using a command like claude -p to run Mr. Jassy, a community-built AI agent designed to interact with AWS services (often referred to as an "AWS butler"). Here's a breakdown of the key points and how to proceed:
1. Understanding the Components
- ·Claude: Anthropic’s AI model. The
-pflag likely refers to a prompt file or parameter, though it’s not a standard CLI command for running agents like Mr. Jassy. - ·Mr. Jassy: A third-party agent that automates AWS tasks (e.g., cost analysis, resource management) using natural language prompts. It typically requires integration with an LLM (like Claude) and AWS credentials.
2. Key Issues
- ·Command Validity: The
claude -psyntax isn’t standard for Mr. Jassy. Most LLM agents are run via frameworks like LangChain, custom scripts, or Docker containers. - ·Integration: To use Claude as the LLM backend, you’d need to configure Mr. Jassy to point to Claude’s API (via Anthropic’s API keys), not via a CLI command.
3. How to Proceed
- ·
Check Mr. Jassy’s Documentation: Confirm supported LLMs and setup steps, likely involving Claude API key configuration.
- ·
Set Up Claude API Access: Obtain an API key from Anthropic and configure environment variables (e.g.,
CLAUDE_API_KEY). - ·
Modify Mr. Jassy’s Configuration: Update the agent’s config file to specify Claude as the LLM: yaml llm: type: claude api_key: ${CLAUDE_API_KEY}
- ·
Run the Agent: Use the standard command for Mr. Jassy (e.g.,
python app.pyordocker-compose up), notclaude -p.
4. Security & Best Practices
- ·IAM Permissions: Use least-privilege policies for AWS credentials.
- ·Prompt Engineering: Keep prompts concise and separate user input to avoid token waste.
- ·Logging: Log prompts, Claude outputs, and AWS requests/responses for auditability.
- ·Wrapper Script: Use a secure wrapper to parse Claude’s JSON output and execute AWS SDK calls, enforcing action whitelists and error handling.
5. Alternatives
- ·AWS Bedrock + Claude: If using Bedrock, call Claude via its API for tighter integration.
- ·LangChain/LlamaIndex: For complex orchestration, wrap Claude in a LangChain agent with built-in AWS tools.
- ·Serverless (Lambda): Deploy the wrapper as a Lambda function for scalability.
Final Note
The claude -p command isn’t a standard method for running Mr. Jassy. Focus on configuring the agent to use Claude via its API, following the project’s documentation. Ensure security and compatibility for smooth operation.
Follow-ups
You just saw open-source models answer
Want GPT-5, Claude, Gemini & more on the same question?
Sign in free to run any question against frontier models — side by side, same synthesis, honest comparison.