Skip to main content

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.3.3.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sanctuary_dna-0.3.3-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file sanctuary_dna-0.3.3.tar.gz.

File metadata

  • Download URL: sanctuary_dna-0.3.3.tar.gz
  • Upload date:
  • Size: 43.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for sanctuary_dna-0.3.3.tar.gz
Algorithm Hash digest
SHA256 6dc0694901e99cabf65629854fefc112dc18d2eab3dcccbe61a1e71914caf3a7
MD5 49694fdf7366616e97edfc27e31d3aee
BLAKE2b-256 b8dad2f4473d4001754227d33600dcac9b361b2052fd05b346a30acfbdec5af4

See more details on using hashes here.

File details

Details for the file sanctuary_dna-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: sanctuary_dna-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for sanctuary_dna-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ea1d25eb132377881921ed9951782d2693137bf40af2834373817928078f5e51
MD5 ec42177590b220ed57f3cba3faa7ef5a
BLAKE2b-256 fa5456d8e94e118f540900c15121d934cd0b7c5c666dc65a25f28e4ba85e5940

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page