Skip to main content

CodeLogician applies neurosymbolic AI to translate source code into precise mathematical logic, striving to create a formal model of the program's behavior that's functionally equivalent to the original source code. Use with tools like Claude Code or by itself.

Project description

CodeLogician

CodeLogician is the neurosymbolic agentic governance framework for AI-powered coding.

It helps your coding agent think logically about the code it's producing and test cases it's generating. The fundamental flaw that all LLM-powered assistants have is the reasoning they're capable of is based on statistics, while you need rigorous logic-based automated reasoning.

  • Generated code is based on explainable logic, not pure statistics
  • Generated test cases are generated come with quantitative coverage metrics
  • Generated code is consistent with the best security practices leveraging formal verification

To run CodeLogician, please obtain an Imandra Universe API key available (there's a free starting plan) at Imandra Universe and make sure it's available in your environment as IMANDRA_UNI_KEY.

Three typical workflows:

  1. DIY mode - this is where your agent (e.g. Grok) uses the CLI to:
  • Learn how to use IML/ImandraX via doc command (e.g. codelogician doc --help)
  • Synthesizes IML code and uses the eval command to evaluate it
  • If there're errors, use codelogician doc view errors command to study how to correct the errors and re-evalute the code
  1. Agent/multi-agent mode - CodeLogician IML Agent is a Langgraph-based agent for automatically formalizing source code into Imandra Modeling Language (IML).
  • With agent command you can formalize a single source code file (e.g. codelogician agent PATH_TO_FILE)
  • With multiagent command you can formalize a whole directory (e.g. codelogician agent PATH_TO_DIR)
  1. Server
  • This is a "live" and interactive version of the multiagent command
  • It monitors the filesystem and fire's off formalization tasks on source code updates as necessary
  • You can start the server and connect to it with the TUI (we recommend separate terminal screens)

Learn more at CodeLogician!

To get started,

codelogician --help

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

codelogician-2.9.0.tar.gz (640.0 kB view details)

Uploaded Source

Built Distribution

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

codelogician-2.9.0-py3-none-any.whl (746.6 kB view details)

Uploaded Python 3

File details

Details for the file codelogician-2.9.0.tar.gz.

File metadata

  • Download URL: codelogician-2.9.0.tar.gz
  • Upload date:
  • Size: 640.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for codelogician-2.9.0.tar.gz
Algorithm Hash digest
SHA256 a81ee57a7d422272128a13e9d634c8c28fe3a5da03756940032f6563f540f5d6
MD5 efc6b56130fa52c4edc44f9d7cb818f4
BLAKE2b-256 5b6bbd2ab8c227077f7ef85a1c8ab16dcbe16e474029593a3b7de1bb0ab9ae35

See more details on using hashes here.

File details

Details for the file codelogician-2.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for codelogician-2.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b5307c8a79c3df0d84a4cfc281b9d7a8cb9da29e36bf080c38912583e6fdd42
MD5 3b1694129625f40f055bdf9ab9055adf
BLAKE2b-256 0b5730c1b9ee39f95bb7093d9d7b41707632868e11c1bea0c0e744014aacd777

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