Examples
Learn Hugin through working examples. Each example demonstrates specific features and patterns.
Getting Started
| Example |
Description |
Key Concepts |
| basic_agent |
Simplest agent setup |
Config, Task, Templates, Tools |
Start here to understand the basic structure.
Core Patterns
Advanced Features
| Example |
Description |
Key Concepts |
| branching |
Parallel exploration |
Stack branching, isolation |
| artifacts |
Long-term memory |
save_insight, query_artifacts |
Multi-Agent
| Example |
Description |
Key Concepts |
| sub_agent |
Parent-child hierarchy |
Agent delegation |
| parallel_agents |
Concurrent execution |
Session management |
| agent_messaging |
Agent-to-agent communication |
Message passing |
| shared_state |
Shared data with access control |
Namespaces, permissions |
Running Examples
git clone https://github.com/arnovich/gimle-hugin.git
cd gimle-hugin
uv sync --all-extras
uv run run-agent --task hello_world --task-path examples/basic_agent
uv run run-agent --task hello_world --task-path examples/basic_agent \
--parameters '{"questions": "What is AI?"}'
uv run run-agent --task hello_world --task-path examples/basic_agent \
--storage-path ./data/demo
uv run monitor-agents --storage-path ./data/demo
Production Apps
More complex applications in the apps/ directory:
See the apps README for details on running these.