Skip to main content

A Shadcn-style CLI for building composable AI agents with LangGraph.

Project description

shadcn-agent

The Shadcn for AI Agents

shadcn-agent is a CLI-driven library that provides a collection of reusable, framework-native AI agent components. Inspired by the developer experience of shadcn/ui, it gives you the building blocks for complex, stateful workflows that are yours to own and customize.

Why shadcn-agent?

  • Atomic and Composable: Get individual agent "nodes" (e.g., a summarizer, a web scraper) that can be easily combined into powerful, multi-step workflows.
  • Built for LangGraph: Components are built directly for the LangGraph framework, ensuring seamless integration and compatibility with its graph-based architecture.
  • Own Your Code: The CLI copies the component code into your project, giving you full control to modify, extend, and debug it without waiting for an upstream update.
  • Intuitive CLI: A simple command-line interface makes it easy to add new components and get started in seconds.

Quick Start

1. Project Setup

mkdir shadcn-agent
cd shadcn-agent
pip install langgraph streamlit deep-translator beautifulsoup4 requests python-dotenv

2. Install the CLI

Copy the cli.py and templates/ folders directly into your project.

3. Scaffold Components into Your Project

Use the CLI to copy node and workflow templates into your own agents_library/ folder (or a custom folder):

python cli.py add node summarizer_node --dest agents_library
python cli.py add node search_node --dest agents_library
python cli.py add node translate_node --dest agents_library
python cli.py add node email_node --dest agents_library
python cli.py add workflow summarize_and_email_graph --dest agents_library
python cli.py add workflow translate_and_email_graph --dest agents_library
python cli.py add workflow scrape_and_summarize_graph --dest agents_library

Note: You must scaffold nodes and workflows into your own library folder before running or importing them. The CLI will create this folder for you if it doesn't exist. You can also specify a custom destination folder with --dest.

4. Run the Playground (Recommended)

python cli.py playground
  • Select your library folder in the sidebar (default: agents_library).
  • Choose a workflow, enter your inputs, and see live results in your browser!
  • Custom Workflow Builder: Select and order any nodes to build your own workflow. Download results as JSON.

5. Run a Workflow from the CLI

You can now pass any workflow input as a key-value pair using --inputs:

python cli.py run workflow summarize_and_email_graph --dest agents_library --inputs --url "https://en.wikipedia.org/wiki/Large_language_model" --recipient "your@email.com"
python cli.py run workflow translate_and_email_graph --dest agents_library --inputs --text "Hello, how are you?" --target_lang "fr" --recipient "your@email.com"
python cli.py run workflow scrape_and_summarize_graph --dest agents_library --inputs --url "https://en.wikipedia.org/wiki/Artificial_intelligence"

6. Environment Variables

Create a .env file in your project root with your email credentials:

SENDER_EMAIL=your@email.com
SENDER_PASSWORD=your_app_password

Workflows

  • Summarize + Email: Scrapes a URL, summarizes the content, and emails the result.
  • Translate + Email: Translates text to a target language and emails the result.
  • Scrape + Summarize: Scrapes a URL and summarizes the content.
  • Custom Workflow Builder: Build your own workflow from available nodes in the playground UI.

Contributing

We welcome contributions! If you have an idea for a new node or a bug fix, please open an issue or submit a pull request on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shadcn_agent-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shadcn_agent-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file shadcn_agent-0.1.0.tar.gz.

File metadata

  • Download URL: shadcn_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for shadcn_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 56c8cdf1a459a2a23fcb1cd371d70bb3b56bc13e57cc329138256f5d8b38ede6
MD5 4b9183d53d0ecb14aab939dd19961bac
BLAKE2b-256 222d6306656149283d5c84fe4f58f571baa57fded4c74b15278f646fc559686a

See more details on using hashes here.

File details

Details for the file shadcn_agent-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: shadcn_agent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for shadcn_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29cbb202968023cbbe480dcb362d849e73afa2db4f39da29e3611380dd7e2b08
MD5 d58a7e2bb84aa673cfc7ede5da1d7056
BLAKE2b-256 3e2f68758a6b2b00f20f848c3dc3b109286f3659ea8a223b9a84c2de5cde72db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page