Skip to main content

iEvo kernel — provider-agnostic agent templates, skills, and pipeline conventions

Project description

Cortex

iEvo kernel source — provider-agnostic agent templates, skills, and pipeline conventions.

What

Cortex stores the iEvo kernel as Jinja2-templated source and builds provider-specific artifacts at release time. The iEvo CLI downloads the latest Cortex release asset via HTTPS during ievo init.

For detailed architecture, see docs/ARCHITECTURE.md.

Structure

cortex/
├── src/
│   └── cortex/          # Python package (cli.py, compile.py, version.py)
├── templates/
│   ├── kernel/          # Brain region .md files + consciousness.md.j2
│   ├── agents/          # Agent templates (provider-agnostic)
│   └── codex/           # Codex target (BUILD_TARGET.md placeholder)
├── tests/               # Build script tests
└── .github/
    └── workflows/
        └── release.yml  # CI: push to main → build → validate → GitHub Release + PyPI

Template variables

The templates/kernel/consciousness.md.j2 template supports the following variables:

Variable Type Source Example
cortex_version string --tag CLI argument "v1.2.0"

Variables are injected into the template using standard Jinja2 syntax:

<!-- cortex {{ cortex_version }} -->

Release assets

Each GitHub Release includes cortex-<tag>.tar.gz containing:

cortex-<tag>.tar.gz
├── iEVO.md             # Rendered from templates/kernel/consciousness.md.j2 (provider-agnostic)
├── claude/             # Claude Code provider artifacts
│   └── agents/
│       └── *.md        # Agent templates rendered for Claude Code
└── codex/              # OpenAI Codex provider artifacts
    └── BUILD_TARGET.md # Placeholder — full templates in future REQs

Building locally

uv run cortex compile
# Output: dist/cortex-<version>.tar.gz

Version is auto-read from package metadata (CalVer) — no --tag argument needed.

Link validation runs by default. Add --skip-validate for faster local builds when lychee is not installed:

uv run cortex compile --skip-validate

Link validation runs automatically in CI after the build.

Running tests

uv run pytest tests/
# With coverage:
uv run pytest tests/ --cov

Dependencies

All dependencies are managed by uv — see pyproject.toml for the full list. Lychee (Markdown link validator) is a Rust binary used in CI only — not a Python dependency.

Contributing

Prerequisites

  • uv (required) — Python package manager and virtualenv tool:
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  • lychee (optional) — Markdown link validator. Only needed to run cortex compile without --skip-validate. Link validation runs automatically in CI.

Quick start

git clone https://github.com/ievo-ai/cortex
cd cortex
uv sync --extra dev        # installs cortex + pytest + ruff + mypy + watchfiles
uv run cortex dev --watch  # hot-reload on templates/ changes

Run tests:

uv run pytest tests/

Godfather dev mode

When developing cortex templates inside the godfather workspace, you can point .ievo/iEVO.md at the cortex build output so cortex dev --watch rebuilds are immediately picked up by godfather's context.

From the godfather root:

# Point iEVO.md at cortex dev output (live rebuilds)
ln -sf ../repos/cortex/dist/iEVO.md .ievo/iEVO.md

# Restore (points back to CLI-distributed template)
ln -sf ../repos/cli/src/ievo/marketplace/templates/iEVO.md .ievo/iEVO.md

Verify the symlink with:

ls -la .ievo/iEVO.md

Integration

The iEvo CLI downloads and unpacks the latest release asset:

ievo init          # Downloads latest Cortex release automatically
ievo cortex build  # Rebuild locally from source (power-user path)

See: ievo-ai/cli

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

ievo_cortex-26.3.6.1617.tar.gz (122.7 kB view details)

Uploaded Source

Built Distribution

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

ievo_cortex-26.3.6.1617-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file ievo_cortex-26.3.6.1617.tar.gz.

File metadata

  • Download URL: ievo_cortex-26.3.6.1617.tar.gz
  • Upload date:
  • Size: 122.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ievo_cortex-26.3.6.1617.tar.gz
Algorithm Hash digest
SHA256 a08c6b337ee112c084c9c2d07f5d0d6b4a47a301d26351cb589abd3c9ed3b6a0
MD5 4abf558a8b96046a411019466997d944
BLAKE2b-256 9dfb4df69726f00934eeb58380f484db79185c33794c092124025f659448e535

See more details on using hashes here.

Provenance

The following attestation bundles were made for ievo_cortex-26.3.6.1617.tar.gz:

Publisher: release.yml on ievo-ai/cortex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ievo_cortex-26.3.6.1617-py3-none-any.whl.

File metadata

File hashes

Hashes for ievo_cortex-26.3.6.1617-py3-none-any.whl
Algorithm Hash digest
SHA256 7de002fec0b236c787dc6018960db5e15bf75a5ad4804cd7a6b0819986ca2803
MD5 64b7018f4e6ffd8dce2262caf9c407df
BLAKE2b-256 0444cf6d11e793756c4c14de7e08995d3195f53d1161dcccf85922818fc4d173

See more details on using hashes here.

Provenance

The following attestation bundles were made for ievo_cortex-26.3.6.1617-py3-none-any.whl:

Publisher: release.yml on ievo-ai/cortex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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