Skip to main content

The G-Brain Company Brain Primitive: continuously compiles Slack, Jira, and Gmail into an executable, conflict-resolved operational state for AI agents.

Project description

AIN State Compiler 🧠

Welcome to the AIN State Compiler!

Imagine if your entire company had a single, giant brain that remembered everything anyone ever said on Slack, wrote in Jira, or sent in an email. That's what this tool does!

🧒 Explain Like I'm 5 (ELI5)

Think of the AIN State Compiler like a super smart librarian that works for you:

  1. Reading the Books (Ingestion): Every day, the librarian reads all the sticky notes, letters, and to-do lists from everyone in your company (Slack, Gmail, Jira).
  2. Finding Arguments (Contradiction Engine): Sometimes, Alice says "The sky is green" on Slack, but Bob says "The sky is blue" in Jira. The librarian is very smart. It uses math (TF-IDF Similarity) to realize Alice and Bob are arguing about the same thing!
  3. Asking You to Be the Boss (Interactive Resolution): The librarian pauses and asks you: "Hey Boss! Alice says green, Bob says blue. Which one is right?" You pick the correct answer.
  4. Keeping the Truth (Knowledge Graph): The librarian throws away the wrong answer and keeps the right one. It then organizes all the truths into an incredibly neat map (Map of Contents) so it can find any answer in 1 second later!

🚀 How to Install and Run

It is so easy to set up that anyone can do it!

1. Install the Library

Open your terminal (command prompt) and type this:

pip install ain-state-compiler

2. Setup your Brain

Type this to connect your Slack, Jira, and Gmail:

ain-brain setup

Just follow the on-screen instructions!

3. Sync and Find Contradictions!

To start the librarian and let it find arguments:

ain-brain sync

When it finds a contradiction, it will pause on the screen and ask you to choose the winner by typing 1 or 2!

4. Ask a Question

Once the brain is compiled with the truth, ask it anything:

ain-brain query "What is the status of the new billing system?"

🛠️ For the Grown-ups (Technical Details)

  • Contradiction Engine: Uses TF-IDF cosine similarity to match vector embeddings of ingested nodes in real-time during compilation. Thresholds are customizable.
  • Interactive Resolution: The pipeline pauses execution when cosine similarity > 0.85 between any two text nodes, enforcing deterministic state resolution by the user before committing to the state graph.
  • Knowledge Graph: Compiles resolved nodes into an exact inverted tag index, a vector snapshot, and modular hub MOCs (INDEX.md), fully preparing the data for 3D visualizers (visualizer_data.json).

Author: Sambit Mishra
Contact: sambit1912@gmail.com

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

ain_state_compiler-0.8.0.tar.gz (61.0 kB view details)

Uploaded Source

Built Distribution

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

ain_state_compiler-0.8.0-py3-none-any.whl (60.2 kB view details)

Uploaded Python 3

File details

Details for the file ain_state_compiler-0.8.0.tar.gz.

File metadata

  • Download URL: ain_state_compiler-0.8.0.tar.gz
  • Upload date:
  • Size: 61.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for ain_state_compiler-0.8.0.tar.gz
Algorithm Hash digest
SHA256 09c3493ebb41fe518d41e8ee8b32c16ff44fee28a21e53dba182dccc13f73e7e
MD5 e494e0724112277c2116eb4cd653037d
BLAKE2b-256 58667f9d4f3ffc59678dcfe47c4387fc36a26d43daaedc433bf2aa61c31deeca

See more details on using hashes here.

File details

Details for the file ain_state_compiler-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ain_state_compiler-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 938683966f5590c58a07bfb3bf1610a6b52054b6fd5601678c1753103cb0d8f9
MD5 2bcb033f8f92c4025f194c78c4875eca
BLAKE2b-256 7858f3867cfd533197bd57f9a5229dec758a0db149eb474d553d9ecae71c4d38

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