Token-efficient Domain-Specific Language for LLM interactions
CompText DSL is a specialized language designed for efficient communication with Large Language Models. Instead of sending massive context repeatedly, you define structured, reusable commands that integrate seamlessly with modern AI tooling.
- 90-95% token reduction - Dramatically reduce API costs
- MCP Compatible - Full Model Context Protocol support (November 2025 spec)
- Codex Skills - Native OpenAI Codex CLI integration
- Standardized patterns - Consistent, reusable commands
- Version controlled - Track changes to your AI interactions
- Team collaboration - Share commands across your organization
Instead of:
"Here's my entire coding style guide... [25,000 tokens]"
Use:
use:code-style-v2
# Invoke Codex skills directly
$code-review
$draft-commit-message(style="conventional")
$analyze-tests
# Define MCP-compatible tools
tool fetch-data {
name: "fetch-data"
description: "Fetches data from external sources"
inputSchema: {
type: "object",
properties: {
source: { type: "string" },
limit: { type: "number" }
}
}
}
# Use MCP resources
@database/users/schema
@config/settings
# Define long-running operations
task data-processing {
name: "data-processing"
timeout: 300000
handler: "process_data"
}
CompText DSL works with:
| Platform | Protocol | Status |
|---|---|---|
| Claude | MCP | Full Support |
| Codex CLI | Skills | Full Support |
| ChatGPT | Skills/MCP | Full Support |
| Claude Code | MCP | Full Support |
- CompText MCP Server - Universal MCP integration
- CompText Docs - Full documentation
- Public Codex - 150+ ready commands
# Coming soon: parser installation
pip install comptext-dsl# Import modules
import "data-processing" as dp
# Define variables
api_url := "https://api.example.com"
# Use commands
dp.fetch(source=$api_url)
dp.transform(type="json")
# Invoke skills
$validate-output
CompText DSL v1.1 is fully compatible with the MCP November 2025 Specification:
- JSON-RPC 2.0 protocol
- Tool definitions and invocations
- Resource access with
@syntax - Async Tasks primitive
- OAuth 2.1 authorization
CompText DSL v1.1 supports OpenAI Codex Agent Skills:
$skill-nameinvocation syntax- SKILL.md generation
- Skill composition and pipelines
- AGENTS.md integration
| Version | Date | Highlights |
|---|---|---|
| v1.1.0 | Jan 2026 | MCP Nov 2025 & Codex Skills alignment |
| v1.0.0 | Dec 2025 | Initial release |
Contributions are welcome! Please see our Contributing Guidelines and Code of Conduct.
For security issues, please see our Security Policy.
MIT License - see LICENSE
If you use CompText DSL in your research, please cite:
@software{comptext-dsl,
title = {CompText DSL},
author = {ProfRandom92},
year = {2025},
url = {https://github.com/ProfRandom92/comptext-dsl}
}Resources: