Observed since 21 Oct, 11:33 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
The AIN Company Brain Primitive: continuously compiles Slack, Jira, and Gmail into an executable, conflict-resolved operational state for AI agents.
The AIN Company Brain Primitive: continuously compiles Slack, Jira, and Gmail into an executable, conflict-resolved operational state for AI agents.
The ain-state-compiler operates 100% offline at the source level, parsing and aggregating enterprise communication and issue-tracking streams to produce internally consistent state representations. It prevents AI agents from executing against stale, fragmented, or conflicting corporate knowledge.
With the release of v1.0.0, ain-state-compiler graduates to an enterprise-grade agentic framework by incorporating industry-standard paradigms:
pip install ain-state-compiler
Ensure that you have Python 3.9+ installed. For the MCP and Ollama integrations, you must have the respective local dependencies running.
ain-state-compiler is built to run entirely inside your isolated network. To guarantee supply-chain integrity, we explicitly adhere to the highest open-source security standards:
pydantic. The entire core is built using Python standard libraries (e.g. dataclasses), eliminating deeply nested supply-chain vectors and dependency confusion risks.AutoDebugger, it binds to local Ollama instances natively—no telemetry, no cloud webhooks, no OpenAI API keys needed.We provide multiple interfaces depending on your exact integration needs.
Target Audience: Claude Desktop, Cursor, Codex users.
The ain-state-compiler natively exposes the Model Context Protocol via FastMCP. Instead of copying and pasting internal slack logs into your agent window, just mount the MCP server!
How to Start the Server:
python -m ain_state_compiler.mcp_server
Claude Desktop Configuration (claude_desktop_config.json):
{
"mcpServers": {
"ain-brain": {
"command": "python",
"args": ["-m", "ain_state_compiler.mcp_server"]
}
}
}
Available Tools:
search_ain_context(query_text: str, limit: int): BM25 Semantic Search for unstructured questions (e.g. "Why did the analytics migration fail?").search_ain_by_tag(tag: str, limit: int): Exact O(1) matching for specific entities (e.g. "acme_billing").edit_core_memory_replace(key: str, value: str): MemGPT-style tool to rewrite agent instructions and persona.edit_core_memory_append(key: str, value: str): MemGPT-style tool to maintain long-term internal monologue over weeks or months.Target Audience: Local LLM Developers.
If you are running ollama locally, you can route queries securely through native tool-calling pipelines.
Usage:
from ain_state_compiler.ollama_plugin import run_query_with_tools
# The plugin will automatically invoke `search_context` tools behind the scenes!
answer = run_query_with_tools("What did Sara say about the latency spike?", model="gemma3:1b")
print(answer)
Target Audience: DevOps & CI/CD Pipelines.
The CLI allows you to trigger syncing, ingestion, and offline queries.
Initialize the Internal Database:
ain-brain init-db
Ingest from Sources (LlamaIndex-style Typed Extraction): (Pulls from your configured Jira, Slack, and Email APIs, mapping them directly into Pydantic-style Python dataclasses).
ain-brain ingest
Sync with Human-in-the-Loop Reducers: (Runs a one-shot compilation and pauses if LangGraph-style heuristic reducers cannot automatically resolve a conflicting state).
ain-brain sync --human-in-the-loop
Run a Query: (This invokes the Ollama tool-calling pipeline if running, or falls back to deterministic resolvers).
ain-brain query "analytics latency"
Target Audience: Backend Engineers building custom agent frameworks.
from ain_state_compiler.compiler import StateCompiler
from ain_state_compiler.retrieval import search_context
# 1. Compile state and detect conflicts
compiler = StateCompiler(project_dir="/path/to/project")
summary = compiler.compile()
print(f"Detected {summary['detected_conflicts']} active state conflicts.")
# 2. Programmatically Retrieve specific snippets
results = search_context("analytics_v2", limit=3, project_dir="/path/to/project")
for snippet in results:
print(snippet)
Internalizes the spirit of the "lazy senior dev" reductionist mindset directly into the core architecture:
max_tokens, length limits) on LLM compilation passes, aborting cleanly to naive primitives if structural code bloat occurs.--human-in-the-loop prompt.DocumentNode schemas (e.g. SlackMessageNode, JiraIssueNode).ReducerRegistry to programmatically resolve state merge conflicts.--human-in-the-loop to ain-brain sync CLI command.ain_state_compiler.ingest.loaders.DataLoader to enforce Pydantic-like dataclass typing on ingest streams.ain_state_compiler.core_memory.CoreMemory and exposed explicit edit_core_memory self-editing tools to MCP and Ollama pipelines.mcp_server.py using FastMCP exposing search_ain_context and search_ain_by_tag to tools like Claude Desktop and Codex.ollama_plugin.py to route local queries securely through tool-calling pipelines.Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.3 | 27 Jun 2026 | 0 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 21 Oct, 11:33 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:083328c652378cb6d53e45a3493877c9124bf8db5510a89a4ee87693c9824230