Skip to main content

Reservation package for the Genitus AI-native programming language. The working CLI is built from the Rust workspace.

Project description

Genitus

Genitus is a small schema-first programming language kernel for AI assistants, LLM workflows, and agent tooling.

Status

Genitus v0.0.1 is the final 0.0.1 developer-preview release string. It is not a stable 1.0 release. The language, AST JSON, schema JSON, diagnostics, trace format, and CLI behavior may still change before v1.0.0.

What Genitus Can Do Today

  • Parse .gen source files.
  • Check names, types, tool calls, task uses clauses, and limits max_tool_calls.
  • Print deterministic JSON AST output.
  • Print JSON Schema-like output for declared types, tools, tasks, AST metadata, and trace metadata.
  • Run one selected task in a deterministic interpreter.
  • Call only mocked tools supplied by the CLI.
  • Validate task input JSON, mocked tool output JSON, and final output JSON.
  • Write deterministic JSONL execution traces.
  • Emit human-readable or JSON diagnostics.

What Genitus Cannot Do Yet

Genitus v0.0.1 does not call live models, access the network from programs, run shell commands from programs, write arbitrary files from programs, implement MCP, manage packages, use memory or RAG, orchestrate multiple agents, provide an LSP, format code, compile to WebAssembly, or compile to native code.

The language also does not include loops, classes, inheritance, macros, generics, async, user-defined functions, arrays, unions, optional fields, or enums.

Install From Source

Prerequisites: stable Rust and Cargo. The repository includes rust-toolchain.toml, which selects stable Rust and installs rustfmt and clippy.

From the repository root:

cargo build --workspace
cargo test --workspace
cargo run -p genitus-cli -- --version

The working CLI Cargo package is named genitus-cli. It builds two binaries: genitus and gen. The public version output is genitus 0.0.1.

More detail: docs/install.md.

Quickstart

Check the ticket example:

cargo run -p genitus-cli -- check examples/ticket.gen

Inspect its AST and schema:

cargo run -p genitus-cli -- ast examples/ticket.gen --json
cargo run -p genitus-cli -- schema examples/ticket.gen --json

Run it with a mocked tool response and write a trace:

cargo run -p genitus-cli -- run examples/ticket.gen --input examples/ticket.input.json --mock-tool classify_text=examples/classify_response.json --trace /tmp/genitus-ticket-trace.jsonl

Expected output:

{
  "category": "account_access",
  "confidence": 0.91
}

More detail: docs/quickstart.md.

Examples

  • examples/ticket.gen: classifies a support ticket.
  • examples/sentiment.gen: analyzes sentiment.
  • examples/route_request.gen: uses named multi-argument tool calls.
  • examples/support_multi_task.gen: demonstrates --task <task_name> for a multi-task file.

Each example has input JSON and mocked tool output JSON next to the .gen file.

Safety Posture

Genitus v0.0.1 is deterministic and intentionally limited:

  • Programs cannot access the network.
  • Programs cannot execute shell commands.
  • Programs cannot read or write arbitrary files.
  • Tools only return mocked JSON provided through --mock-tool.
  • Tools must be declared and listed in the selected task uses clause.
  • Inputs, mocked tool outputs, and final outputs are validated.
  • Trace files are written only when the CLI user passes --trace.

Genitus v0.0.1 is not a production sandbox, policy engine, MCP server, or autonomous agent runtime. See SECURITY.md.

Documentation

Contributing

Read CONTRIBUTING.md before opening a pull request.

Security Reporting

Report suspected security issues privately. See SECURITY.md for the current reporting path.

License

Genitus is licensed under either MIT or Apache-2.0, at your option. See LICENSE-MIT, LICENSE-APACHE, LICENSE, and NOTICE.

Programs written in Genitus, generated AST JSON, generated schema JSON, generated traces, and outputs produced by running Genitus programs are not claimed by the Genitus project solely because they were created with Genitus.

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

genitus-0.0.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

genitus-0.0.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file genitus-0.0.1.tar.gz.

File metadata

  • Download URL: genitus-0.0.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for genitus-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d91e5fe773ee313ff4b9238b872b2d370612e4a85e7e4b9f401477919a3534aa
MD5 552419c3818b064c92ee66592ed2b00f
BLAKE2b-256 31a4250bb2bed78bdb9f2250f0e2d0541576825b84e44433a42a75582e1667cd

See more details on using hashes here.

File details

Details for the file genitus-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: genitus-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for genitus-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1f10665630e1d618e5eac8dbba9fa6305b6c36b537d85130893fbe5aff27ae6
MD5 d8ba0b55858938d61d6552a9be037a32
BLAKE2b-256 578556fcd88715968212e50684cfcf633983813e6a2e2c913be0d99a96e6ad99

See more details on using hashes here.

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