SDNA - Sanctuary DNA
Gnostic agent workflow composition for Claude Agent SDK.
Ariadne (threading) + Poimandres (generation) = SDNA spiral
Installation
pip install sanctuary-dna
The package is sanctuary-dna on PyPI and imports as sdna; the name sdna there is another project's.
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
Metadata
Release files for sanctuary-dna 0.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sanctuary_dna-0.3.8.tar.gz | 492.7 kB | Without provenance | Details for sanctuary_dna-0.3.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sanctuary_dna-0.3.8-py3-none-any.whl | Python 3 | none | any | Details for sanctuary_dna-0.3.8-py3-none-any.whl |
Total release size: 681.4 kB
Release files / sanctuary_dna-0.3.8.tar.gz
| Download URL | sanctuary_dna-0.3.8.tar.gz |
|---|---|
| Size | 492.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c34760633f5d330b36d7257ad02955148eb59495974324fbcda199d064df7dc7
|
|
BLAKE2b-256 checksum How to use checksums |
40529273387b90781a76e334e1ef9f12ef52e22d6b6527275d0ecc81bbfffa22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.13
|
Release files / sanctuary_dna-0.3.8-py3-none-any.whl
| Download URL | sanctuary_dna-0.3.8-py3-none-any.whl |
|---|---|
| Size | 188.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d15fb4fc42af731ba61f38df4465633748c7ea376ddf56513867933baaa6c12
|
|
BLAKE2b-256 checksum How to use checksums |
823c337af767893e6fa17ad29272a8af1e31f95dd6a275241258f8b74ecf8348
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.13
|
Security for sanctuary-dna 0.3.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.