How grft-dev/graftcode works
This repository’s product is Graftcode guidance for AI coding agents, with language-specific rules distributed in formats for multiple IDE agents. The documented user workflow is to add the rules to a project so an agent can use them to build or migrate Graftcode systems. The sampled configuration identifies the always-on router and language rules; the generator excerpt shows how these source rules map to tool-specific files. The CLI and runtime gateway are not mapped because their implementation was not sampled.
Main entry points: rules Tool-specific rules · build-rules.mjs Supported agent tools · router.md Universal router · rules.config.mjs Rule metadata
Components 7
Rule sources
- Universal router
rules/src/router.md - Language rules
rules/src - Rule metadata
rules/scripts/rules.config.mjs
Agent formats
- Tool-specific rules
rules - Supported agent tools
rules/scripts/build-rules.mjs
Other components
- Project developer
- AI coding agent
Connections 5
- Project developer → Tool-specific rules: adds rules
README.md - Tool-specific rules → AI coding agent: guides
README.md - Universal router → Language rules: selects guidance
- Rule metadata → Supported agent tools: configures generation
rules/scripts/build-rules.mjs - Supported agent tools → Tool-specific rules: generates formats
rules/scripts/build-rules.mjs