Native Shell
Native Shell:AI 生成的 UI,在你的应用中原生呈现,覆盖每个平台。iOS、Android、macOS、Windows 与 Linux 上的应用、GPUI 应用与网页在运行时加载已签名、沙箱隔离的 TSX 模块并绘制 th
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证A zero-legacy, four-layer AI runtime built from first principles for autonomous agents — replacing REST/SQL/OAuth/threads with attended memory (SSE), agent negotiation (INP), zero-knowledge identity (ZKPA), and inference-based scheduling (CK). Native MCP/A2A support. Apache 2.0.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Codename: Anima (Latin: soul, breath, life) License: Apache 2.0 · Copyright 2026 TPT Solutions
TPT Anima is a zero-legacy, four-layer computational stack rebuilt from first principles for the era of autonomous AI. It abandons deterministic, human-centric paradigms (REST APIs, SQL databases, OAuth, thread-based OSes) in favour of a living, probabilistic, and self-defending software environment.
Anima natively implements the Model Context Protocol (MCP) and Agent-to-Agent (A2A) standards as its primary nervous system, while keeping its internal substrate philosophy-free of HTTP and JSON.
Not yet published to crates.io — add it as a git dependency:
[dependencies]
tpt-anima-sse = { git = "https://github.com/tpt-solutions/tpt-anima" }
tpt-anima-inp = { git = "https://github.com/tpt-solutions/tpt-anima" }
tpt-anima-ck = { git = "https://github.com/tpt-solutions/tpt-anima" }
tpt-anima-zkpa = { git = "https://github.com/tpt-solutions/tpt-anima" }
Or pull in all four layers through the thin tpt-anima meta-crate (one
dependency line instead of four), opting into only the layers you need:
# All layers (default features)
tpt-anima = { git = "https://github.com/tpt-solutions/tpt-anima" }
# Only the Cognitive Kernel, trimming the dependency graph
tpt-anima = { git = "https://github.com/tpt-solutions/tpt-anima", default-features = false, features = ["ck"] }
The smallest possible example — ingest a memory into the Semantic State Engine and watch it decay and reinforce:
use std::time::Duration;
use tpt_anima_sse::{InMemoryStorage, MemoryNode, SensoryModality, VectorEmbedding};
let mut storage = InMemoryStorage::new();
let mut node = MemoryNode::new(
[1u8; 32],
VectorEmbedding::new(vec![0.12, 0.44, -0.08, 0.91]),
b"The capital of France is Paris.".to_vec(),
"text/plain".into(),
SensoryModality::Textual,
[9u8; 32],
);
node.apply_decay_for(Duration::from_secs(24 * 3600)); // strength decays exponentially
node.record_access([9u8; 32]); // ...and reinforces on access
storage.write_node(node);
Each core crate ships a self-contained, working example:
| Crate | Command | What it shows |
|---|---|---|
tpt-anima-sse | cargo run -p tpt-anima-sse --example memory_lifecycle | Ingest → decay → reinforce → prune a memory node |
tpt-anima-inp | cargo run -p tpt-anima-inp --example negotiation_swarm | Broadcast an intent, collect competing bids, transfer compute credits |
tpt-anima-ck | cargo run -p tpt-anima-ck --example inference_scheduling | Attention-weight preemption in the inference scheduler + a ThoughtBubble sandbox |
tpt-anima-zkpa | cargo run -p tpt-anima-zkpa --example session_and_attestation | Ephemeral session, real ZK proof generation/verification, hash-chained liveness |
tpt-anima-observatory | cargo run -p tpt-anima-observatory --example full_stack_quickstart | Golden path across all four layers in one request: memory → negotiation → session → thermal budget check |
tpt-anima-co-processor | cargo run -p tpt-anima-co-processor --example intercept | Record an intercepted AI workload and translate it into an INP intent |
tpt-anima-core-hypervisor | cargo run -p tpt-anima-core-hypervisor --example boot | Boot the Tier 1 Core Hypervisor and spawn a legacy-OS VM |
tpt-anima-edge-runtime | cargo run -p tpt-anima-edge-runtime --example run | Store a memory, process an intent, and build a cross-tier envelope for the Core Hypervisor |
tpt-anima-edge-gateway | cargo run -p tpt-anima-edge-gateway --example translate | Translate a native INP intent into MCP and A2A, and back |
Is there a GUI? Yes — the Anima Observatory (see below), a real-time dashboard that visualizes what the four layers are doing.
The fastest way to see Anima in action:
# Terminal 1: start the Observatory telemetry backend
cd tpt-anima-observatory
cargo run
# Terminal 2: start the Observatory UI
cd observatory-ui
npm install
npm run dev
Then open http://localhost:5173. No agents to configure — the demo backend emits sample telemetry across all five panels.
To build and test the rest of the workspace: cargo build --workspace / cargo test --workspace.
For the full walkthrough — deployment tiers, embedding Anima's crates in your own Rust project, and a golden-path tour of memory, negotiation, and observability — see docs/ONBOARDING.md.
| Layer | Crate | Replaces | Tagline |
|---|---|---|---|
| Semantic State Engine (SSE) | tpt-anima-sse | Relational DBs, Vector DBs, Key-Value Stores | Memory is attended, not queried |
| Intent & Negotiation Protocol (INP) | tpt-anima-inp | REST, gRPC, GraphQL, Message Queues | Agents pursue outcomes, not endpoints |
| Zero-Knowledge Proof of Agency (ZKPA) | tpt-anima-zkpa | OAuth, API Keys, IAM, Certificate Authorities | Identity is ephemeral and provable |
| Cognitive Kernel (CK) | tpt-anima-ck | Linux, Windows, thread schedulers, container runtimes | The unit of compute is an inference |
| Concern | Traditional stack | TPT Anima |
|---|---|---|
| Memory | Relational/vector DBs queried by key or ANN | SSE: memories attended by strength, causally linked, decaying over time |
| Inter-agent comms | REST / gRPC / GraphQL / message queues | INP intents + bids + automatic fallback; native A2A for cross-network |
| Identity & auth | OAuth, API keys, IAM, CAs | ZKPA: ephemeral, task-scoped, hardware-bound sessions with ZK proofs |
| Scheduling unit | OS threads / processes | CK inferences scheduled by attention-weight, not CPU time-slices |
| Context memory | RAM vs. disk, explicit paging | Unified VRAM/RAM/NVMe address space with predictive pre-fetch |
| Safety | Process isolation, manual guardrails | Cognitive Circuit Breakers + cryptographically isolated ThoughtBubbles |
| Agent economics | Manual billing / no accounting | Native Compute Ledger micro-economy with conserved credit supply |
| Standards | Bespoke HTTP/JSON contracts | MCP + A2A as the primary nervous system |
| Deployment | One OS, one form factor | Three tiers: Core hypervisor, Co-Processor eBPF, Edge Wasm/native |
| Crate | Role |
|---|---|
tpt-anima-observatory | Real-time human telemetry window — translates machine-speed cognition into observable, auditable visualisations |
tpt-anima-edge-gateway | Lightweight translation layer: native INP ↔ MCP/A2A JSON, preserving internal philosophical purity |
tpt-anima-core-hypervisor | Tier 1 — Type-1 bare-metal hypervisor for the full stack |
tpt-anima-co-processor | Tier 2 — eBPF kernel module (Linux) and Windows driver that intercepts AI workloads |
tpt-anima-edge-runtime | Tier 3 — lightweight SSE + INP for phones, IoT, and browsers |
The memory substrate. Stores data as unified semantic tensors with native temporal dynamics, causal topology, and multi-modal sensory ingestion. Memories decay organically, reinforce on access, and are linked by causal chains — not flat indices. An approximate nearest-neighbour index supports semantic search, and an episode store records sequences of memories. Exposed to AI agents as mcp://resources so agents attend rather than query.
The nervous system. Agents broadcast goal descriptors; capability providers bid; a state-machine protocol routes intents to the optimal provider with automatic fallback chains. A native micro-economy (Compute Ledger) tracks credits between agents. Natively speaks A2A for cross-network agent collaboration.
The immune system. Agents receive cryptographically bound, time-limited identities tied to specific tasks. ZK proofs demonstrate code integrity, policy compliance, and hardware attestation without exposing weights or source. Parent agents spawn child agents with mathematically scoped permissions. Continuous liveness heartbeats form a tamper-evident hash chain.
The brainstem. The fundamental compute unit is an inference, not a thread. The CK manages attention, context, and tensor execution natively — blurring VRAM, RAM, and NVMe into a single addressable context space. Cognitive Circuit Breakers halt inferences that violate causal integrity or enter repetition loops, providing safety at the silicon level.
This is Anima's GUI — see Getting Started above to run it locally. It's a React/Vite frontend (observatory-ui/) fed by a WebSocket telemetry server (tpt-anima-observatory/), and translates machine-speed AI cognition into human-speed telemetry:
| Tier | Target | Mechanism |
|---|---|---|
| Anima Core | Servers, power users | Type-1 bare-metal hypervisor; legacy OSes run as isolated VMs |
| Anima Co-Processor | Everyday laptops/desktops | eBPF kernel module (Linux) or driver (Windows/macOS); intercepts AI workloads |
| Anima Edge | Phones, IoT, browsers | WebAssembly or native Rust binary; full SSE + INP without hardware control |
A JIT Hardware-Fluid Engine detects the available silicon (Apple ANE, NVIDIA CUDA, AMD ROCm, ARM NEON, x86 AVX) and reshapes scheduling logic at install time. The Apple ANE backend now emits a CoreML model container, but its execution path is still a stub.
| Phase | Months | Focus |
|---|---|---|
| 0 | — | Project scaffold |
| 1 | 1–3 | SSE: memory nodes, temporal decay, causal graph, sensory ingestion |
| 2 | 4–6 | INP: intent broadcasting, negotiation state machine, Compute Ledger, Edge Gateway |
| 3 | 7–9 | CK: inference scheduler, circuit breakers, unified memory fabric; ZKPA |
| 4 | 10–12 | Observatory UI, three-tier deployment, beta release |
| 5 | 13–16 | Production hardening, compliance certification, v1.0 |
| Doc | Purpose |
|---|---|
| docs/API.md | API reference across all four layers |
| docs/ONBOARDING.md | Beta onboarding guide |
| DEMO_SCENARIOS.md | Walkthrough scenarios for demoing the stack end-to-end |
| todo.md | Task-level build checklist, phase by phase |
| docs/INCIDENT_RESPONSE.md | Detection signals, severity classification, and response procedure per layer |
| docs/compliance/SOC2.md | SOC 2 Type II control mapping and certification prep |
| docs/compliance/HIPAA.md | HIPAA technical-safeguards mapping and deployer responsibilities |
| docs/compliance/FEDRAMP.md | FedRAMP baseline/control mapping and authorization prep notes |
None of the compliance documents constitute an actual certification — SOC 2, HIPAA, and FedRAMP all require independent third-party assessment/audit of a live deployment, which is outside what a codebase can self-certify.
This project is dual-licensed under your choice of the MIT License or the Apache License 2.0.
This project implements the semantics of MCP (MIT, Anthropic) and A2A (Apache 2.0, Google). No source code from those projects is copied; only their conceptual interfaces are implemented from scratch in Rust. Full attribution is included in the LICENSE file.