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
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