Prism-inspired multi-agent orchestration framework built on LangGraph. Security-first, provider-agnostic, composable.
pip install prismal-ai==3.20.0 Copy PIP instructions
Prismal AI Agent Framework — the core engine powering multi-agent orchestration, security guardrails, RAG, MCP integration, and observability.
This package is the agent framework layer extracted from the larger monorepo as a standalone, publishable PyPI package. It provides everything needed to build and run AI agents without the web server, dashboard, or CLI. It was published as lightagent-agents through v2.x and rebranded in v3.0.0: the distribution is published on PyPI as prismal-ai while the import namespace is prismal (lightagent.* → prismal.*). End-user backward compatibility is provided by the deprecated lightagent-agents distribution, which now depends on prismal-ai. The sibling lightagent app package historically shared this import namespace and is rebranded/coordinated in tandem.
Prismal is split across eight repositories in the prismal-ai organization. prismal (this repo) is the core engine and the only one currently developed; everything else is a consumer or host that builds on top of it.
The macro architecture is a layered, client–server design where a single engine does the agent work and every other component talks to it through well-defined protocols:
Communication flows top-to-bottom: front-ends call the SDK, the SDK speaks REST/WebSocket/SSE to prismal-server, and the server invokes the prismal engine in-process. The engine, in turn, reaches external systems — LLM providers through LiteLLM, MCP servers for tools, vector stores via VectorStorePort, datastores (SQLite/Postgres/Chroma) for checkpoints and memory, observability through OpenTelemetry/Langfuse, and other vendors' agents bidirectionally over A2A (outbound from the engine, inbound served by the server). In the diagram, the solid green block marks the developed core, while dashed outlines mark the planned/early-stage repositories.
pip install prismal-ai # or with uv: uv pip install prismal-ai The distribution is named prismal-ai, but the import namespace is prismal (e.g. from prismal.agents.graph import get_async_compiled_graph).
pip install "prismal-ai[postgres]" # PostgreSQL checkpointing pip install "prismal-ai[mongodb]" # MongoDB long-term memory pip install "prismal-ai[ollama]" # Local LLMs via Ollama pip install "prismal-ai[local-embeddings]" # HuggingFace embeddings pip install "prismal-ai[ml]" # ML/AutoML pipeline pip install "prismal-ai[ml-dl]" # ML + PyTorch Lightning pip install "prismal-ai[finance]" # yfinance + pandas-ta pip install "prismal-ai[analytics]" # matplotlib + plotly pip install "prismal-ai[datetime]" # tzdata + NTP pip install "prismal-ai[maintenance]" # pip-audit pip install "prismal-ai[multimodal]" # Pillow + ffmpeg-python + imagehash (Phase F) pip install "prismal-ai[multimodal-local]" # faster-whisper (local STT) pip install "prismal-ai[multimodal-premium]" # elevenlabs TTS pip install "prismal-ai[multimodal-embed]" # open-clip-torch (CLIP cross-modal embeddings) pip install "prismal-ai[lancedb]" # LanceDB embedded vector store (Phase Z) pip install "prismal-ai[sqlite-vec]" # sqlite-vec embedded vector store (Phase Z) pip install "prismal-ai[qdrant]" # Qdrant vector store, embedded or server (Phase Z) pip install "prismal-ai[pgvector]" # PostgreSQL + pgvector vector store (Phase Z) pip install "prismal-ai[rerank]" # Cross-encoder RAG rerank (Phase TKE) pip install "prismal-ai[compression]" # LLMLingua-2 passage compression (Phase TKE) pip install "prismal-ai[all]" # Everything above Quick Start from prismal.agents.graph import get_async_compiled_graph from prismal.agents.state import create_initial_state from prismal.core.config import get_settings async def main(): settings = get_settings() graph = await get_async_compiled_graph() # async contexts MUST use this state = create_initial_state( session_id="my-session", user_message="Analyse the sales data in data/sales.csv", ) result = await graph.ainvoke( state, config={"configurable": {"thread_id": "my-session"}}, ) print(result["messages"][-1].content) A synchronous get_compiled_graph() entry point is also available for non-async callers.
The package ships 19 composable architectures under specs/advanced-architectures/ (Phases A/B/C, ≥82% coverage per module, 0 bandit issues). Every component follows a callable-injection pattern — business logic accepts generate_fn, evaluate_fn, reward_fn, plan_fn, tool_executor, … so tests run without LLM backends. Defaults wire ProviderRegistry().get_llm() lazily.
Each subgraph exports both build_ _subgraph() (returns a SubgraphDefinition) and an idempotent register_ () mirroring the existing register_ml_pipeline. Wiring into the top-level supervisor is opt-in operational work — the primitives are ready to register.
config/mcp_servers.yaml declares each server's capabilities: list[str]. MCPClientManager.get_all_langchain_tools(capabilities=…) and get_tools_for_agent(agent, required_capabilities=…) filter the tool pool per agent. Servers tagged general are always included; omitting capabilities from a YAML entry defaults to ["general"] for backward compatibility. The capability set is extended in Phase F to include vision, audio, and video.
See specs/advanced-architectures/SPEC.md for the full interface contracts of Phases A/B/C/D/E.
The multimodal expansion described in specs/multimodal-agents/ adds voice, image, and video to the existing text-only stack without modifying any existing agent. It is opt-in: gated by settings.multimodal_enabled (default False) and registered via register_multimodal_pipeline(registry) when the operator is ready.
router_node → [vision_node | audio_node | video_node | text passthrough] → fusion_node → output_formatter_node Exports build_multimodal_subgraph() (returns SubgraphDefinition) and an idempotent register_multimodal_pipeline() matching the existing register_ml_pipeline pattern.
MultimodalRAGEngine indexes text + image captions + audio/video transcripts and exposes search(query, modalities=[...]) with metadata-based modality filtering. Without the [multimodal-embed] extra it falls back to textual captions; with it, vectors come from CLIP-style cross-modal embeddings. New loaders: loaders/image_loader.py, loaders/audio_loader.py, loaders/video_loader.py.
MediaValidator enforces magic-byte verification + size/duration limits before any media reaches an agent. InputSanitizer.sanitize_media() strips EXIF; AuditLogger.log_media() records SHA-256 + modality (never content); ActionInterceptor.check_media_op() gates filesystem media operations; FFmpeg always runs through SandboxExecutor.run_command (out of process, time-limited — the container/namespace isolation backends apply only to run_code; see docs/sandbox.md).
See specs/multimodal-agents/SPEC.md for the full interface contracts of Phase F.
The extension surface (user guide: docs/extension.md; contracts: specs/extension-surface/) exposes LangGraph as a first-class build target for users and third-party plugins, so you can write new patterns without forking prismal. All public symbols import from prismal.agents.extension. Five components:
from prismal.langgraph import StateGraph, START, END, Send, interrupt, add_messages, AgentState, VERSION graph = StateGraph(AgentState) graph.add_node("my_node", my_node) graph.add_edge(START, "my_node") graph.add_edge("my_node", END) compiled = graph.compile() Importing from prismal.langgraph (rather than langgraph.* directly) guarantees the LangGraph version prismal was tested against, exposed as VERSION.
from prismal.agents.extension import prismal_node @prismal_node(name="my_classifier", capabilities=["general"], security="standard", audit=True) async def my_classifier(state): last = state["messages"][-1].content label = await classify(last) return {"metadata": {"my_classifier": {"label": label}}} Wraps any async (state) → state_update with a middleware chain: InputSanitizer + SecurePromptBuilder + ActionInterceptor → OTel span → structured logger bind → retry/backoff → timeout → user function → audit log → error mapping. Side effect: registers the node's capabilities in tool_registry.DEFAULT_CAPABILITY_MAP.
prismal/agents/extension/ports.py declares CheckpointPort, AuditPort, EmbeddingsPort, ToolPort, ToolProviderPort as Protocols. Existing implementations (AsyncSqliteSaver, AuditLogger, ChromaDB embeddings, BaseTool, the Phase Y tool providers) conform structurally; users substitute their own (Redis checkpointer, Splunk audit, custom tool source, etc.) without modifying the core.
See specs/extension-surface/SPEC.md for the full interface contracts of Phase X.
Tool resolution is a hexagonal port (user guide: docs/tool-providers.md; contracts: specs/tool-provider-injection/): the agent core asks an injected ToolProviderPort for tools and never imports prismal.mcp / prismal.skills (enforced by an architecture test). The host composes the providers and injects them at startup:
Configuration is a hexagonal port (user guide: docs/configuration.md; contracts: specs/config-source-injection/): the core stops reading .env/os.environ and instead consumes an injected ConfigSourcePort that supplies raw values. Settings keeps its schema and only validates. Additive and opt-in — with no source injected the default EnvConfigSource reproduces today's behaviour byte-for-byte, so the ~151 get_settings() call sites are untouched.
from prismal.core.config_source import ChainedConfigSource, EnvConfigSource, set_config_source # Front a secrets manager, fall back to the environment (first-wins). set_config_source(ChainedConfigSource([VaultConfigSource(), EnvConfigSource()])) Sources (prismal.core.config_source): EnvConfigSource (the only core reader of os.environ/.env; folds the legacy LIGHTAGENT_ mirror into its mapping, no global mutation), MappingConfigSource, ChainedConfigSource (first-wins, sub-error skipped), FakeConfigSource for tests. Global — set_config_source(source) once per process; invalidates the get_settings cache so the next read rebuilds Settings. Per-tenant — build_settings(source) is a pure constructor (no global state, ContextVar-isolated); composition-root threads it via apply_org_overrides(*, source=...). Strict — config_source_strict=True makes build_settings raise ConfigSourceError when no source is available instead of falling back. Guardrail — an AST guard (tests/unit/core/test_no_env_reads.py) forbids new direct config os.getenv/os.environ reads in prismal/** (exempt: EnvConfigSource, the LiteLLM write-bridge). Runnable examples: examples/config_source_env.py, examples/config_source_custom.py.
The enforcement layer atop the monitoring stack (user guide: docs/budget.md; contracts: specs/cost-budget-governance/): meter real per-run usage, compare it to a Budget, and cut off when exceeded. Additive and opt-in — gated by settings.budget_enabled (default False); with the flag off there is zero extra state and the compiled supervisor graph is byte-for-byte unchanged (snapshot-tested).
# settings (env: PRISMAL_BUDGET_*) budget_enabled = True budget_scope = "turn" # turn | session | tenant budget_max_tokens = 200_000 # 0 = unlimited on that dimension budget_max_cost_usd = 5.0 budget_soft_ratio = 0.8 # warn/degrade at 80% of any cap budget_hard_cap = True # raise BudgetExceeded on a hard breach Value objects (prismal/budget/types.py): Budget (per-dimension ceiling; 0 = unlimited), BudgetScope (turn|session|tenant), Usage (cumulative, summable), BudgetStatus, Degradation. Meter (prismal/budget/meter.py): CostMeter accumulates Usage per run (O(1), no hot-path I/O), prices each call via providers/cost.py (LiteLLM native map → budget_pricing table → zero-cost none), emits OTel counters tagged agent/pattern/model/tenant, and optionally persists to a CostTracker (FinOps history). Guard (prismal/budget/guard.py): BudgetGuard.check() is a pure within/soft/hard verdict; enforce() audits (hash-first) and raises BudgetExceeded on a hard cap; make_budget_guard_fn() adapts it to the budget_guard_fn the patterns consume. Per-run wiring (prismal/budget/resolve.py): seed_budget_run installs the {meter, guard} in an in-process registry keyed by session_id (never checkpointed — only a serializable marker lands in state["metadata"]["budget"]), idempotent per user-turn so usage resets between turns. Enforcement sites: react_loop (record after, check before, hard → partial answer + break) and the expensive patterns debate / tree_of_thoughts / lats / mixture_of_agents / reflection_loop; Skynet builds Budget(max_tokens=skynet_token_budget) over a shared meter and raises SkynetBudgetExceeded(BudgetExceeded, SkynetError). Runnable example: examples/budget_governance.py.
Already implemented: extension surface (Phase X), tool provider injection (Phase Y), advanced architectures (Phase A/B/C), multimodal (Phase F), Kokoro (Phase K), Skynet (Phase S) plus the Skynet S+ heterogeneous/metered/remote swarms (Phase S+), the vector store port (Phase Z), the runtime composition root (Phase R), the config source injection (Phase W), the cost & budget governance (Phase C), the runtime hardening (Phase H), the agent evaluation & reliability harness (Phase V), the agent identity & access governance (Phase IDN), the A2A interop (Phase I), the guardrails modernization (Phase GRD), the loop hardening (Phase LH), the node I/O type-safety (Phase NTS), the observability integration (Phase OBS), the blind review pipeline (Phase BRP), the token efficiency layer (Phase TKE, v3.13.0), the LLM gateway providers (Phase GW, v3.14.0), the typed decision models (Phase DEC, v3.15.0), the adaptive model routing (Phase AMR, v3.16.0), the protocol upgrades + host read surface (Phase PRT + HRS, v3.17.0), the agentic memory v2 (Phase MEM, v3.18.0), the local Ollama decision backend + one-way human-review gate (DEC delta, v3.19.0), and the dependency remediation (18/18 alerts in a terminal state).
Wave 2026-10 (GW, DEC, AMR, PRT + HRS, MEM) is planned in specs/wave-2026-10-implementation-plan.md; TKE, GW, DEC, AMR, PRT + HRS and MEM have shipped; only the out-of-repo M7 remains. The prismal-server reference host is a separate repository and out of this repo's scope — it is not tracked in this roadmap.
Each shipped feature has its SDD contract in specs/.
Rule: contract/logic → framework (prismal/); serving HTTP, authenticating, rendering, persisting config → host (prismal-server / prismal-dashboard). That's why A2A and Identity are split across both.
The framework defines the ports and logic; the host composes and exposes them. Details in docs/competitive-analysis.md.
A full analysis and comparison with 2026 frameworks is in docs/competitive-analysis.md.
Python 3.13+ is required. uv is the recommended package manager.
# Install with dev tools uv pip install -e ".[dev]" # or with dev + extras: uv pip install -e ".[dev,all]" # Run the test suite (pytest-asyncio auto-mode, filterwarnings="error") uv run pytest # full suite uv run pytest tests/unit # one tier uv run pytest -m unit # by marker (unit|integration|security|slow|live_api) uv run pytest tests/unit/security/test_sanitizer.py::test_strip_removes_null_byte # single test uv run pytest -n auto # parallel (pytest-xdist) uv run pytest --cov=prismal --cov-report=term-missing # coverage (fail_under = 80) # Lint + format (ruff, line-length=100, target py313) uv run ruff check . uv run ruff check --fix . uv run ruff format . # Strict type-check (mypy strict mode, namespace_packages=true) uv run mypy prismal # Security linting uv run bandit -r prismal -c pyproject.toml # Build the distribution uv run python -m build live_api tests call real LLM APIs and require provider keys; skip them locally with -m "not live_api". Integration tests under tests/integration/ expect running services (sandbox backends, databases).
The core is a LangGraph StateGraph[AgentState] assembled in prismal/agents/graph.py following the SUPERVISOR pattern: a central supervisor_node routes each turn to one of 30 routes (15 core members always registered + 15 opt-in members gated by settings flags), each of which returns control to the supervisor; the supervisor routes to END when the task is complete. Checkpointing is handled by AsyncSqliteSaver (or PostgreSQL via the [postgres] extra).
The diagram above reads top-to-bottom as a request flows through the framework, organized into eight layers plus a detail panel for A2A.
1 — Entry + Security. Every request enters through get_async_compiled_graph() and immediately crosses the five-layer defense-in-depth stack before it can touch any state: InputSanitizer (L1) strips control characters and normalizes unicode, GuardrailsEngine + NeMo Guardrails (L2/L3) apply regex and risk scoring, SecurePromptBuilder isolates user input with canary tokens, ActionInterceptor (L4) runs pre-tool permission checks, and AuditLogger (L5) writes a hash-chained JSONL trail alongside the PermissionManager and filesystem guard. No user text is ever f-stringed into a prompt — it always passes through SecurePromptBuilder first.
2 — Core supervisor. The heart of the framework is the LangGraph StateGraph[AgentState]. A deterministic regex intent_router.match_intent() runs ahead of LLM supervision; the SUPERVISOR node then routes each turn to the right specialist (or to END). All turn state lives in AgentState, a TypedDict whose messages field uses the add_messages reducer, and progress is persisted by the checkpointer (SQLite by default, PostgreSQL optional).
3 — Specialist agents. The supervisor dispatches to the 15 core routes — researcher, coder, codeact, cua, rag_agent, planner, critic, data_analyst, file_manager, skill_manager, cron_manager, parallel_researcher (map-reduce fan-out) and the dev_pipeline / ml_pipeline / financial_analyst subgraphs — plus up to 15 opt-in routes (patterns, domain pipelines, multimodal, Kokoro, Skynet, blind review). codeact and cua are downgraded at routing time when their flags are off. With hierarchical_mode=True the graph becomes a 3-level hierarchy (analysis / engineering / research orchestrators built on domain_supervisor). Modules such as meta_learner, skill_creator, network_supervisor and spawner are standalone helpers, not supervisor routes — the full inventory is in docs/agents.md.
4 — Agent patterns. Composable reasoning strategies live in prismal/agents/patterns/: Tree-of-Thoughts, N-agent Debate, Constitutional self-revision, LATS (MCTS with UCB1), LLM-Compiler (parallel task DAG), Mixture-of-Agents, Swarm handoff, the reflection_loop and the Send() parallel dispatcher. Six of them (ToT, Debate, Constitutional, LATS, LLM-Compiler, MoA) become supervisor routes when enable_subgraphs is on — see docs/patterns.md.
5 — Subgraphs / pipelines. Multi-node pipelines assembled by SubgraphFactory and held in SubgraphRegistry: 15 packages — dev_pipeline, ml_pipeline, financial, customer_service, document_generation, data_etl, code_review, debate_consensus, multimodal_pipeline, kokoro, skynet, blind_review_pipeline, plus the analysis/engineering/research orchestrators — see docs/subgraphs.md.
6 — RAG + vector store. Eleven retrieval engines (standard, CRAG, HyDE, RAG-Fusion, Hybrid BM25+semantic, Self-RAG, Hierarchical, Multi-Vector, the Adaptive router, Multimodal and Federated — see docs/rag.md) sit on top of the hexagonal VectorStorePort. A factory selects the backend — Chroma is the default, with LanceDB, sqlite-vec, Qdrant, and pgvector available via extras — and embeddings plus federated search round out the layer.
7 — Opt-in layers. Capabilities gated by settings flags that, when off, leave the compiled graph byte-for-byte identical: Multimodal (vision/audio/video), Kokoro deliberation (Spirit/Mind/Heart souls + a Judge), Skynet swarm map-reduce (dynamic worker fan-out via Send), A2A interop, Cost/Budget governance (CostMeter + BudgetGuard), runtime hardening, identity, the blind review pipeline, and the wave 2026-10 layers — token efficiency, LLM gateways (gw: refs), typed decision cascades (DecisionPort), adaptive model routing (RoutingPolicyPort), protocol upgrades (A2A v1.0, MCP stateless, AG-UI) and agentic memory v2.
8 — Hexagonal ports, providers & infrastructure. Tool resolution is inverted behind ToolProviderPort (composing MCP, Skills, A2A and stub providers); configuration behind ConfigSourcePort; and build_runtime() is the single composition root that wires every port together. All LLM calls are isolated behind the LiteLLM-based providers layer (Anthropic, OpenAI, Gemini, Ollama). Supporting infrastructure includes short/long-term memory, the scheduler (APScheduler/Prefect), the sandbox (SandboxExecutor; docker/podman/nsjail/bwrap/firejail for Python code), monitoring (OpenTelemetry/Langfuse/structlog), and the public Extension API (@prismal_node, plugins).
A2A detail panel. Expanding layer 7's A2A box: build_agent_card() publishes an AgentCard (one AgentSkill per capability, identified by a did:web). Inbound traffic is served by A2AServerHandler over JSON-RPC + SSE (message/send, tasks/get, tasks/cancel); outbound, A2AClient + A2AConnectionManager reach remote agents behind an fnmatch allowlist with bearer/oauth2 auth. A2AAgentNode.as_node() turns a remote agent into a graph node, and A2AToolProvider (conforming to ToolProviderPort) surfaces remote skills as a2a__agent__skill tools. A2A complements MCP (tools vs. agents), and the trust boundary holds: every remote response is L1-sanitized and audited by hash, never by content.
prismal/ ← PEP 420 namespace package (NO __init__.py at root) ├── agents/ ← LangGraph state machine (30 supervisor routes) — docs/agents.md │ ├── graph.py ← get_compiled_graph() / get_async_compiled_graph() │ ├── supervisor.py ← Central router (MEMBERS + opt-in *_MEMBERS) │ ├── state.py ← AgentState (TypedDict; messages uses add_messages) │ ├── intent_router.py ← Deterministic regex routing │ ├── tool_registry.py ← stable facade over the injected ToolProviderPort (Phase Y) │ ├── context_compaction.py · loop_phase.py · tool_gate.py · tool_search.py │ ├── tool_output_budget.py · artifacts.py · handoff.py ← loop hardening + TKE │ ├── extension/ ← @prismal_node, builder, plugins, adapters, ports, providers │ ├── patterns/ ← reflection, parallel, ToT, debate, constitutional, LATS, │ │ LLM-compiler, mixture of agents, swarm — docs/patterns.md │ ├── multimodal/ ← (Phase F) vision / audio / video agents + router + fusion │ ├── kokoro/ ← (Phase K) soul agents, deliberation, judge │ ├── skynet/ ← (Phase S/S+) swarm supervisor, workers, reduce, roles │ └── subgraphs/ ← 15 pipeline packages — docs/subgraphs.md │ ├── factory.py · registry.py · gates.py (hitl_gate) │ ├── dev_pipeline/ · ml_pipeline/ · financial/ │ ├── customer_service/ · document_generation/ · data_etl/ · code_review/ │ ├── debate_consensus/ · multimodal_pipeline/ · kokoro/ · skynet/ │ ├── blind_review_pipeline/ │ └── analysis_orchestrator/ · engineering_orchestrator/ · research_orchestrator/ ├── a2a/ ← (Phase I/PRT) A2A v0.3 + v1.0: card, server, client, provider ├── budget/ ← (Phase C) CostMeter + BudgetGuard — docs/budget.md ├── composition/ ← (Phase R/HRS) build_runtime(), RuntimeContext, host surface ├── core/ ← Settings (486 fields), ConfigSourcePort, logging, exceptions ├── data/ ← DuckDB + Polars utilities — docs/data-utilities.md ├── decisions/ ← (Phase DEC) typed decision cascade — docs/decisions.md ├── eval/ ← (Phase V) eval harness, judges, red-team, token gate ├── events/ ← AG-UI translator, file watcher, webhook dispatcher — docs/events.md ├── identity/ ← (Phase IDN) DIDs, vaults, delegation, PolicyEngine ├── mcp/ ← MCP client, capability routing, stateless 2026 — docs/mcp.md ├── memory/ ← short/long-term memory + v2/ agentic memory — docs/memory.md ├── monitoring/ ← Langfuse, OpenTelemetry, ObservabilityPort, run summaries ├── providers/ ← LiteLLM wrapper (ONLY place for provider SDK imports): │ registry, cost, prompt cache, STT/TTS/vision, rerank, │ batch adapters, gateways/ (OpenRouter, OpenCode, OmniRoute) ├── rag/ ← 11 engines + loaders/ + stores/ (VectorStorePort) — docs/rag.md ├── routing/ ← (Phase AMR) RoutingPolicyPort, policies, caches, batch ├── sandbox/ ← SandboxExecutor + isolation backends — docs/sandbox.md ├── scheduler/ ← APScheduler CronExecutor, DateTimeService, Prefect flows ├── security/ ← 5-layer defense-in-depth + hardening + guardrails ├── skills/ ← available/ (source) · active/ · custom/ (gitignored) ├── souls/ ← (Phase K) Kokoro persona SOUL.md files ├── utils/ ← Shared utilities ├── langgraph.py ← official LangGraph re-export + visualization helpers └── plugins.py ← `python -m prismal.plugins` CLI Namespace package prismal/ has no __init__.py — it is a PEP 420 implicit namespace package (renamed from lightagent/ in v3.0.0). Both prismal and the sibling lightagent app package contribute modules into the same prismal.* namespace. Do not add prismal/__init__.py; it would break the sibling package.
See CLAUDE.md for the full working guide (commands, testing notes, architectural context for contributors and AI assistants).
This package follows Semantic Versioning. Tag format for releases: prismal/vMAJOR.MINOR.PATCH
git tag prismal/v3.20.0 git push --tags See CHANGELOG.md for release history.
Publishing is automated by .github/workflows/release.yml: every push to main builds the distribution and publishes it to PyPI (skip-existing, so it is a no-op while the version is unchanged), and pushing a prismal/vX.Y.Z tag additionally creates the GitHub Release (notes extracted from the matching CHANGELOG section) and triggers docker-publish.yml (GHCR image). Run only after the full suite, linters and type/security checks are green.
# 0) On the release branch, bump `version` in pyproject.toml and add the CHANGELOG section git switch main # 1) Quality gates (must all pass) uv pip install -e ".[dev,all]" uv run pytest -m "not live_api" uv run ruff check . && uv run mypy prismal && uv run bandit -r prismal -c pyproject.toml uv run python scripts/gen_settings_docs.py --check # generated settings docs in sync # 2) Optional local validation of the distribution rm -rf dist/ && uv run python -m build && uv run twine check dist/* # 3) Publish: push main (PyPI) and the release tag (GitHub Release + GHCR image) git push origin main git tag prismal/vX.Y.Z && git push origin prismal/vX.Y.Z # tag format: prismal/vMAJOR.MINOR.PATCH # 4) Manual, only when it changes: the deprecated compatibility bridge (lightagent-agents -> prismal-ai) cd compat/lightagent-agents rm -rf dist/ && python -m build && twine check dist/* twine upload dist/* Post-release follow-ups: configure DNS/site for prismal.dev, coordinate the sibling lightagent app package (the namespace rename breaks the shared PEP 420 namespace), and regenerate the branded binary assets (PDF/PPTX/HTML).
a2a all analytics compression datetime dev finance graph-memory guardrails-ai jev lancedb laya local-embeddings maintenance ml ml-dl mongodb multimodal multimodal-embed multimodal-local multimodal-premium ollama pgvector postgres qdrant rerank sqlite-vec
agent agent-framework agentic-ai ai guardrails langchain langgraph llm mcp multi-agent prismal rag security supervisor-pattern
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




