This guide shows how to start from an existing agent instead of generating one from scratch. Starting with templates or proven patterns lets you ship faster while learning Hive concepts.Documentation Index
Fetch the complete documentation index at: https://docs.adenhq.com/llms.txt
Use this file to discover all available pages before exploring further.
When to Use This Path
Use this approach when you want to:- Reuse a proven graph pattern
- Add new capabilities to an existing workflow
- Create a variant for a different team, market, or policy
- Fix recurring failures and ship a refined version
Prerequisites
- Existing agent under
exports/(for exampleexports/support_ticket_agent) orexamples/ - Hive environment set up with
./quickstart.sh - A clear change target: goals, constraints, nodes, or tools
Tip: Explore use cases and templates to find a starting point that matches your workflow.
1. Copy the Base Agent
Fromexports/:
name, package/module references, and test fixtures).
2. Update Goal and Constraints First
Open the new agent files and update:- goal statement
- success criteria
- hard/soft constraints
- required capabilities
3. Change Graph Structure
Typical modifications:- Add node(s) for new tool calls or validation
- Add conditional edges for fallback/retry paths
- Insert
human_inputgates for sensitive actions - Split overloaded nodes into smaller steps
4. Validate the New Agent
5. Run Regression + New Behavior Tests
- unchanged baseline behavior
- new branches and constraints
- expected failure and escalation paths
6. Smoke Run
7. Promote Safely
Before replacing the original agent:- Verify success criteria are met on representative inputs.
- Confirm hard constraints are never violated.
- Keep the previous version available for rollback.
Recommended Versioning Pattern
Use explicit suffixes for major revisions:agent_name_v2agent_name_v3
Next Steps
Testing
Strengthen regression coverage and edge-case checks
Key Concepts
Revisit runtime and evolution concepts before major refactors
Deployment
Prepare your refined agent for production
Iteration
Evolve your agent based on production feedback