Algorithmic Code & Backlog Analysis Engine with NL-DSL-LLM Architecture and MCP Server.
Adopts the wellmanifest/nl-dsl-llm standard.
algocode provides deterministic, algorithmic analysis of codebases, workstreams, and backlogs to replace manual ad-hoc inspection with reusable, zero-guesswork tools for developers and AI agents.
allowedPaths and ownedPaths between concurrent tickets and branches.proceed_low_risk, close_as_reconciled, consolidate).Conforms to wellmanifest/nl-dsl-llm:
| Layer | Responsibility | Examples |
|---|---|---|
| Layer 1: NL Fast-Path | Zero-latency regex pattern matching for Polish and English | "znajdź duplikaty w src/""sprawdź konflikty""triage zgłoszeń""detect duplicates in ." |
| Layer 2: Canonical DSL | Deterministic domain verbs & execution boundary | code.dedup path=src min_lines=5conflict.check path=.issue.triage path=.code.inspect file=engine.pyrepo.status path=. |
| Layer 3: LLM Fallback | Adaptive fallback compiler for free-form queries | Translates unbounded prompts into constrained DSL statements |
| Interface Parity | Universal accessibility | CLI Shell, JSON API, and Model Context Protocol (MCP) |
AI coding assistants (Antigravity, Claude Code, Cursor, Windsurf) can connect to algocode via MCP stdio to run deterministic analyses automatically.
.mcp.json or Agent Settings{
"mcpServers": {
"algocode": {
"command": "python3",
"args": ["-m", "algocode.cli", "mcp"],
"env": {
"PYTHONPATH": "/home/tom/github/semcod/algocode/src"
}
}
}
}
nl_ask: Natural language query interface (Polish or English).execute_dsl: Direct DSL command execution.code_dedup: Scan repository for duplicate code and structural clones.conflict_check: Detect workstream and path conflicts between active tickets.issue_triage: Algorithmic backlog deduplication and git reconciliation.code_inspect: Inspect AST symbols, functions, and metrics in a source file.# Natural language query (Polish)
algocode --nl "znajdź duplikaty w src/"
# Natural language query (English)
algocode --nl "check conflicts"
# Direct canonical DSL execution
algocode --dsl "code.dedup path=src min_lines=5"
# Subcommands
algocode dedup src/ --min-lines 5
algocode conflicts .
algocode triage .
algocode inspect src/algocode/engine.py
# Run MCP stdio server
algocode mcp
# Conformance self-test
algocode --self-test
python3 -m unittest discover tests
wellmanifest/nl-dsl-llm@0.1.0wellmanifest/new-project