Q is a semantic computing language designed to understand, define, analyze, learn, coordinate, and execute any digital or conceptual object. Unlike traditional programming languages that focus exclusively on compiling logical operations into specific machine code instructions, Q focuses entirely on mapping and orchestrating meaning. In the Q ecosystem, everything is treated as an Objectβwhether it is a raw file, a legacy script, an AI model, a communication protocol, a decentralized blockchain ledger, or a human-defined conceptual framework.
Everything is an Object. Any piece of data, code, or model can be wrapped.2. Everything has Meaning. Entities are mapped by their logical context and capabilities.3. Everything can be Analyzed & Defined. Unknown elements are broken down automatically.4. Everything can be Learned. Once ingested, objects are indexed for future programs.5. Everything can be Coordinated & Executed. Objects seamlessly interact across technical stacks.
The project codebase relies primarily on Ruby and Python, split across specialized directory layers designed to parse and evaluate semantic syntax:
βββ Q_cli/ # Command Line Interface execution binaries
βββ Core/ # Core processing engine of the language environment
βββ Engine/ # Runtime execution state manager
βββ Parser/ # Abstract syntax tree (AST) interpreter for .q / .pq files
βββ Runtime/ # Live context execution machine
βββ Learning_loop/ # Continuous reinforcement layer for discovered objects
βββ Agent/ # Built-in autonomous AI worker integrations
βββ Blockchain/ # Decentralized cryptographic ledger connectors
βββ Extensions/ # Web hooks, plugins, and third-party bindings
βββ example/ # Implementation templates and boilerplate configurations
All evaluations inside Q-lang flow through a linear operation chain known as the Universal Form:
understand * define * analyze * learn * coordinate * run
Where * acts as a placeholder representing any known or unknown system object.
(Program.pq)
// Define a local service object
define Service::"CustomerDB" {
type: "PostgreSQL",
endpoint: "localhost:5432"
}
// Define an AI model that interacts with tools via the Model Context Protocol (MCP)
define Agent::"Analyst" {
model: "Claude-3.5-Sonnet",
protocol: "McpRegistry"
}
// Chain execution using the Universal Form
understand CustomerDB * coordinate Analyst * run Analyst
When the execution runtime encounters an unmapped file type or data stream, it safely loops it through an automated discovery cycle instead of throwing an exception:
[ Volatile Input ] ββ> detect ββ> analyze ββ> infer ββ> classify ββ> register ββ> learn ββ> [ Active Ecosystem ]
detect unknown: Flags the black-box item inside the physical workspace.analyze unknown: Performs parsing checks on internal structural patterns.infer unknown: Contextually determines the operational intent and constraints.classify unknown: Assigns a definitive system type (e.g., protocol, script, dataset).register unknown: Locks a recognizable instance signature into the workspace environment.learn unknown: Incorporates features into the active database, making it fully available to all future program chains.// Discovery scripting example
detect unknown::"etc/analytics.rbx"
analyze unknown
classify unknown as "DataTransformer"
learn DataTransformer
The code distribution consists of the following primary development languages and tool frameworks:
Contributions are welcome! Please review our core guidelines before opening a pull request:
/Core./example directory for any newly supported services./Parser.This project is open-source and maintained under the Aura Ecosystem
βAura Ecosystem Organization Hubβ) organizational guidelines.
cd Q-lang gem install bundler && bundle install pip install -r requirements.txt
### 2. Verification
```bash
./Q_cli/bin/q-lang check example/Program.pq
Objects are managed via the Universal Form (understand * define * analyze * learn * coordinate * run).
The Agent/ directory uses the Model Context Protocol (MCP) to map external tools/data for AI agents.
// Define and coordinate a secure agent
define Agent::"SecurityGuard" { model: "Claude-3.5-Sonnet", protocol: "McpRegistry" }
coordinate Agent::"SecurityGuard" { target: SystemScanner }
run SecurityGuard
When encountering unknown objects, the system automatically runs a discovery cycle: detect -> analyze -> infer -> classify -> register -> learn.
Maintained under Aura Ecosystem guidelines.