Sanctuary DNA - Gnostic agent workflow DSL. Ariadne (threading) + Poimandres (generation) = SDNA spiral
Project description
SDNA - Sanctuary DNA
Gnostic agent workflow composition for Claude Agent SDK.
Ariadne (threading) + Poimandres (generation) = SDNA spiral
Installation
pip install sdna-agent-sdk
Quick Start
from sdna import ariadne, human, inject_file, sdnac, sdna_flow, HermesConfig
# 1. Build Ariadne thread (context prep)
thread = ariadne('my-thread',
inject_file('spec.md', 'spec'),
human('Approve spec?', 'approval'), # Pauses for human input
)
# 2. Create HermesConfig (the message)
config = HermesConfig(
name="generator",
system_prompt="You are a code generator...",
)
# 3. Combine into SDNAC
unit = sdnac('generate-code', thread, config)
# 4. Execute
result = await unit.execute({'initial': 'context'})
The Trinity
| Component | Role | What It Does |
|---|---|---|
| Ariadne | Threader | Context manipulation: inject, weave, dovetail, human input |
| Poimandres | Divine Mind | Generation moment - takes config, runs agent, returns output |
| HermesConfig | The Message | Runner configuration Ariadne sends to Poimandres |
Decision Tree: What to Build
Is this continuous improvement / optimization loop?
├── YES → SDNA^F (SDNAFlowchain)
│ Optimizer + target pairs. Meta-optimization.
│
└── NO → Are you composing multiple agent units in sequence?
├── YES → SDNAF (SDNAFlow)
│ Flow of SDNACs. Sequential execution.
│
└── NO → SDNAC
Single unit: AriadneChain → HermesConfig → Poimandres executes
Ariadne Elements
from sdna import (
ariadne, # Create chain
human, # Human input stop step
inject_file, # Inject file contents
inject_func, # Inject function result
inject_literal, # Inject literal value
inject_env, # Inject env variable
weave, # Context surgery between sessions
)
License
MIT
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
sanctuary_dna-0.2.0.tar.gz
(20.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sanctuary_dna-0.2.0.tar.gz.
File metadata
- Download URL: sanctuary_dna-0.2.0.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13a4bbfa8a5125f092978319cca264a457a7123bd8243efd9f671ea29dc5ebf1
|
|
| MD5 |
2110636e539db6a2fb7815326e4aa4b0
|
|
| BLAKE2b-256 |
296313b667792b2cf80c7371cc592fe0941108c18906d9b27abb1974e46f809f
|
File details
Details for the file sanctuary_dna-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sanctuary_dna-0.2.0-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5525e3d117d470d9aa2728a0e63c0610ec7187d9bceef64d3f67fa0e59c493d
|
|
| MD5 |
6eefcc8c19d25318a68da33a7dbed54a
|
|
| BLAKE2b-256 |
d1a75b9cdd3ef2f9c7f2a085b0310c52e7ee73c9a4bade952c48fa0edcdc7d59
|