Claude Agent Core and Headline Generation

planning|implementationChallenge

Prompt Content

Initialize your Claude Agent using the Claude Agents SDK and the `claude-opus-4.1` model. Define the agent's primary role as a news editor. Implement a core function within your agent that takes a news article text as input and generates 3-5 distinct headline options. Focus on headlines that are concise, informative, and neutral in tone. Use Claude's capabilities for summarization and creative text generation. Provide the Python code for agent initialization and the headline generation step.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations