Hi 👋 I'd like to introduce what I'm building: SpecForge.
The problem: AI coding agents work from Markdown files: specs, plans, to-do lists. Nothing checks those files, so they drift away from the code, and the agent ends up guessing.
SpecForge turns that knowledge into a typed graph that can be checked. You write it in .spec files,
SpecForge compiles them, and agents query the graph instead of rereading pages of text. It ships as a single binary for Mac, Linux and Windows, with a CLI and an MCP server.
Github:
github.com/leaderiop/SpecForgeThere are four parts:
🔹 SpecForge Core
The compiler and the graph. It has a small grammar and extensions that declare each domain's entity kinds and rules. Agents can ask it for the schema (specforge model), why a rule fired (specforge explain), or a slice of the graph (specforge query). It also collects facts from the codebase, so the graph holds both what was intended and what actually exists.
🔹 SpecForge GSD
The GSD workflow for AI agents (phases, plans, tasks, verification, UAT), rebuilt on SpecForge. All state lives in .spec, with no Markdown planning folder. The compiler refuses a bad state with a code and an explanation: 61 entity kinds and 75 rules. The agent always knows where the project stands and what is still open.
🔹 SpecForge Ontology (in progress)
The next layer. It adds kind hierarchies, shared interfaces, and rules written as data instead of code, with explanations generated from the rule itself. It joins three inputs in one graph: what was written, what the code shows, and what the tools observed.
🔹 SpecForge OR
Operations research on top of the ontology: the business modelled as a graph, then real optimisation models solved on real data. Pilots so far cover pharmacy stock and forecasting, asset–liability management for a pension fund, sports clubs, and an industrial plant.