Skip to main content

chainaios — the agent tier: agents made out of compiled chains

chainaios is the agent tier of ChainCompiler, a compiler-compiler for cognition. It builds on the three chain compilers and makes agents out of what they compile:

  • construct_language(domain, ac_chain=…, …) mints a domain's attention chain, its chain of reasoning (the BANDIT unless one is given) and a skill chain over both — three SKILL.md packages in one call;
  • roll_up_algebra(domain, atoms, …) mints a whole chain system — attention chains, a chain of reasoning, the skill-chain rollup and a persona folder — and organizes it as a SkillTree that validates; it is closed when every artifact is a skill and the tree validates with zero violations;
  • make_gba(domain, root, atoms=…) writes a General BanditAgent: a persistent folder an agent goes to and becomes, because Claude Code injects a folder's CLAUDE.md, rules and skills when an agent reads into it. It holds a coordinate-addressed tree of its gated chains, a knowledge base, a search index and the bandit-chain-system skill that teaches its loop, which this package ships as its own data;
  • make_hba makes an agent whose loop dispatches to subagents instead of acting inline, and make_cog makes a Challenger · Generator · Observer flow of three seats;
  • check_gba(root) reads an agent's folder again on disk and says whether it is still closed.

It installs the chaincompiler command: chaincompiler layers, demo, persona, gba new|construct|search|check|hba and cog new|flow.

Install

pip install chainaios

It brings chaincompiler, chaincompiler-accc, corcc and sccc at the same release, and agent-skilltree from PyPI. The extra legend adds glyphsteer, with which roll_up_algebra writes each persona's grade legend: pip install "chainaios[legend]". To work on it, clone the repository and run ./install.sh, which installs all fifteen packages editable.

Use

import chainaios
from corcc.notation import EINSTEIN

bundle = chainaios.construct_language(
    "triage",
    ac_chain="[Symptom] ⇒ [Scope] ⇒ |Severity|",
    cor_persona=EINSTEIN,
    db=".cc.db", skills_dir="skills", out_dir="dist",
)
print(bundle.ac, bundle.cor, bundle.sc, sep="\n")
# skills/triage-attention/SKILL.md
# skills/thinklikeeinstein/SKILL.md
# dist/triage/SKILL.md

Its design

The repository's DESIGN.md §7 (this tier) and §8 (the agent shapes: GBA, COG, HBA and the lattice).

License

MIT.

Metadata

Release files for chainaios 0.3.6

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

Source distribution (sdist)

Source distribution for chainaios 0.3.6
File Size Uploaded Provenance Actions
chainaios-0.3.6.tar.gz 38.4 kB Without provenance Details for chainaios-0.3.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chainaios 0.3.6
File Interpreter ABI Platform Actions
chainaios-0.3.6-py3-none-any.whl Python 3 none any Details for chainaios-0.3.6-py3-none-any.whl

Total release size: 72.2 kB

Release files / chainaios-0.3.6.tar.gz

Download URL chainaios-0.3.6.tar.gz
Size 38.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e6e5adc1698eb20a617f05944a80383a3f6abb4b754f45ef97a073b72f25c290
BLAKE2b-256 checksum
How to use checksums
dd1f51c1d509f9c44f91ca839c953de53bc403fcfe17ffaa6ca72735f5c5b542
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Release files / chainaios-0.3.6-py3-none-any.whl

Download URL chainaios-0.3.6-py3-none-any.whl
Size 33.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e60d6c78036a5b2ad693817c806d1a453e4b28ddf5ab2abd620c81af0d96837
BLAKE2b-256 checksum
How to use checksums
2ca0eaaaa8165c72fc0edca036493f431c2425ac04d5f5fad390498b54aff1c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Security for chainaios 0.3.6

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