Conn2Flow
Docs navigation

Reference / CLI

CLI: AI and SDD

c2f ai commands, arguments and options declared in source code.

The ai:* family has 4 command(s) registered in Application.php.

Run php cli/c2f.php <command> --help at the Core root to check the installed version. The console uses its own contracts; --help is handled before execute(). The syntax below comes from each command.

ai:archive-sdd

Source: cli/src/Commands/AiArchiveSddCommand.php.

Usage: c2f ai:archive-sdd [options]
Keeps only the most recent sequenced files in sdd/human-requests/ and sdd/implementation/.
Older files are moved to the matching archive/ subfolder and every markdown link that
referenced them (in BATCH-INDEX.md, VALIDATION-CHECKLIST.md, DECISION-LOG.md, CURRENT.md
and any other .md under sdd/) is rewritten to the new path.
Options:
  --repo=PATH       Repository root to process (default: the current Core repository).
  --keep=N          How many sequenced files stay in each folder root (default: 10).
  --protect=A,B     Extra file names that must never be archived.
  --repair-links    Also re-anchor links already broken by earlier manual archiving.
  --dry-run         Show the plan without moving files or rewriting links.
  --verbose         List every archived file and every rewritten link.

ai:mcp-setup

Source: cli/src/Commands/AiMcpSetupCommand.php.

Usage: c2f ai:mcp-setup
Detects and injects 'conn2flow-hub' MCP server into Claude Desktop, Cursor, and VS Code settings.

ai:prune-memories

Source: cli/src/Commands/AiPruneMemoriesCommand.php.

Usage: c2f ai:prune-memories
Validates sdd/MEMORIA-ENGENHARIA-EXECUCAO.md with a 50KB / 200-line warning, a 75KB / 300-line mandatory pruning ceiling, and a ~25KB post-pruning target.

ai:sync

Source: cli/src/Commands/AiSyncCommand.php.

Usage: c2f ai:sync [options]
Verifies the integrity and contracts of the 37 Core and SDD skills in .claude/, .cursor/, .gemini/, .github/ and .codex/.
Options:
  --verbose     Display details of each verified skill contract.

The Future is Hybrid: Human + AI.

Conn2Flow is the tool. If you need the Architect to design your company's strategy using this technology...

Hire Specialized Consulting