This library serves as a discovery tool to look into opaque objects (like containers) to figure out what is needed to run, build, etc. Our use case is for scheduling. We want to find the best spot for said opaque container.
For each image in a catalog:
- Start the container running.
- Copy our inspection code (Python) into it.
- An agent drives the inspection (find binary, read ELF and linkage, how compiled).
- Writes results into an artifact.
Use the devcontainer (.devcontainer/).
python3 -m pip install -e .
python3 -m pip install -e .[aws]
# Claude
export ANTHROPIC_API_KEY=sk-ant-...
# AWS
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_DEFAULT_REGION=us-east-1
# OR
export AWS_BEARER_TOKEN_BEDROCK=...Test connection:
aws sts get-caller-identity
aws bedrock list-inference-profiles --region "$AWS_DEFAULT_REGION" \
--query 'inferenceProfileSummaries[].inferenceProfileId' --output textpython3 -c "import boto3; print(boto3.client('sts').get_caller_identity()['Arn'])"
python3 -c "import boto3,os; c=boto3.client('bedrock', region_name=os.environ.get('AWS_DEFAULT_REGION','us-east-1')); print([p['inferenceProfileId'] for p in c.list_inference_profiles()['inferenceProfileSummaries']])"And test:
python3 - <<'PY'
from strands import Agent
from strands.models import BedrockModel
m = BedrockModel(model_id="us.anthropic.claude-sonnet-5", # paste a real one from step 3
region_name="us-east-1")
print(Agent(model=m)("say ok"))
PYHere is a one-off example:
artifact-secretary profile --backend aws \
--model us.anthropic.claude-sonnet-5 \
--catalog ghcr.io/converged-computing/metric-lammps-cpu:zen4-reax \
--out lookup.json --keep-imagesBy default it deletes any image it had to pull so your disk doesn't fill up.
Images you already had are left alone. Use --keep-images to keep everything.
The inspection library works on its own if you just want the facts and don't want an agent or a key:
from secretary import Target, Inspector, derive_capability
insp = Inspector(Target("/opt/lammps"))
elf = insp.inspect_elf("/build/lmp")
cap = derive_capability(elf["needed"], elf["rpath"])Here is how to use the artifact secretary to list packages and tags from GitHub packages:
export GITHUB_TOKEN=... # needs read:packages
artifact-secretary list --org converged-computing --repo performance-studyAnd then derive each one:
for repo in $(cat repos.txt)
do
artifact-secretary profile --backend aws --model us.anthropic.claude-opus-5 \
--catalog "$repo" --out-dir manifests --allow-network
done# default execution is container.
artifact-secretary shape --backend aws --model us.anthropic.claude-sonnet-5 \
--repos https://github.com/lammps/lammps --focus reaxff \
--max-source-tokens 60000 --model-max-tokens 16384 --out shapes.jsonHPCIC DevTools is distributed under the terms of the MIT license. All new contributions must be made under this license.
See LICENSE, COPYRIGHT, and NOTICE for details.
SPDX-License-Identifier: (MIT)
LLNL-CODE- 842614
