Skip to main content

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

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sanctuary-dna 0.3.7
File Size Uploaded Provenance Actions
sanctuary_dna-0.3.7.tar.gz 488.0 kB Without provenance Details for sanctuary_dna-0.3.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sanctuary-dna 0.3.7
File Interpreter ABI Platform Actions
sanctuary_dna-0.3.7-py3-none-any.whl Python 3 none any Details for sanctuary_dna-0.3.7-py3-none-any.whl

Total release size: 675.3 kB

Release files / sanctuary_dna-0.3.7.tar.gz

Download URL sanctuary_dna-0.3.7.tar.gz
Size 488.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e3e9fdf0124e698d22b2c1f73e120a1b8ea7d85d73818d47f3d395c232d8c751
BLAKE2b-256 checksum
How to use checksums
02f8625513ef8f45a4fe2ed0ebd536a626efdabeeef57db2b1b006a0358aa494
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.7-py3-none-any.whl

Download URL sanctuary_dna-0.3.7-py3-none-any.whl
Size 187.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bb27f7471794f23ae40a4fedb2292688f1636170e32cbdfa4a3382bfe523255
BLAKE2b-256 checksum
How to use checksums
d1b21b266c04fbcdc049e29b8a52227b0459793fda76e60046974f9a407dd228
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.7

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page