Show HN:Theus – 一個讓AI生成程式碼安全執行的框架

Show HN:Theus – 一個讓AI生成程式碼安全執行的框架

Hacker News·

Theus 是一個創新的架構框架,引入了流程導向程式設計(POP)來管理複雜系統中的狀態,旨在將應用程式視為確定性工作流程,從而提高 AI 生成程式碼的運行安全性。

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

To see all available qualifiers, see our documentation.

License

Uh oh!

There was an error while loading. Please reload this page.

dohuyhoang93/theus

Folders and files

Latest commit

History

Repository files navigation

Theus: Process-Oriented Operating System for Python

Image

Image

Image

Image

"Data is the Asset. Code is the Liability. Theus protects the Asset."

Theus is a next-generation architectural framework that treats your application not as a collection of objects, but as a deterministic workflow of processes. It introduces the Process-Oriented Programming (POP) paradigm to solve the chaos of state management in complex systems like AI Agents, Core Banking, and Industrial Automation.

🌪️ The Problem

In modern software (OOP, EDA, Microservices), the biggest source of bugs is State Management:

🛡️ The Theus Solution

Theus acts as a micro-kernel for your logic, enforcing strict architectural invariants at runtime:

1. The 3-Axis Context Model

State is no longer a "bag of variables". It is a 3D space defined by:

2. Zero-Trust Memory

3. Industrial-Grade Audit

📦 Installation

Theus requires Python 3.12+ to leverage advanced typing and dataclasses.

⚡ Quick Start: Building a Bank

This example demonstrates Contracts, Zoning, and Transaction safety.

1. Define the Context (The Asset)

2. Define the Process (The Logic)

3. Run with Safety (The Engine)

🛠️ CLI Tools

Theus provides a powerful CLI suite to accelerate development and maintain architectural integrity.

🧠 Advanced Architecture

The Transaction Engine

Theus uses a Hybrid Transaction Model:

The Heavy Zone (Optimization)

For AI workloads (Images, Tensors) > 1MB, use heavy_ variables.

🚀 High Performance Training (New in v2.2)

For Pure Training Loops (Simulations/Games) where Transaction safety is overkill:

The Audit Recipe (audit.yaml)

Decouple your business rules from your code.

The Orchestrator (FSM)

Manage complex flows using workflow.yaml:

📚 Documentation

⚖️ License

Maintained by: Hoàng Đỗ Huy

About

Resources

License

Uh oh!

There was an error while loading. Please reload this page.

Stars

Watchers

Forks

Releases

Packages

  0

Languages

Footer

Footer navigation

Hacker News

相關文章

  1. Show HN:Nucleus - 一個使用數學方程式的 AI 提示框架

    3 個月前

  2. Show HN:TDAD - 開源的測試驅動開發工作流程,讓 AI 逐步完善程式碼

    3 個月前

  3. Show HN:ARES Dashboard – 開源 AI 紅隊測試與治理平台

    4 個月前

  4. Show HN:Neo - 首個自主式機器學習與AI工程師代理

    3 個月前

  5. AI約束的治理系統已部署於以太坊主網

    3 個月前