How ecoa-puc-rio/gaide_cli works
GAIDE CLI scaffolds a governed AI development environment into a project. The main workflow gathers project choices, resolves and checks module constraints, composes selected template content, then writes the project and its configuration. After installation, gaide doctor reports drift and exercises real gates with canaries; gaide check runs fail-closed enforcement, including task-profile-aware checks. The template-fetching, module, and generated-project boundaries are documented in the README. Some init internals were only partially excerpted, so uncertain orchestration links are omitted.
Main entry points: checks/__init__.py Check dispatcher · init_cmd.py Init workflow · doctor/__init__.py Doctor command · cli.py CLI commands
Components 24
Project setup
- Init workflow
gaide/init_cmd.py - Setup wizard
gaide/prompts.py - Project detection
gaide/detect.py - Module constraints
gaide/solver.py - Project config
gaide/config.py - CLI commands
gaide/cli.py - Terminal UI
gaide/ui.py
Template composition
- Template source
gaide/template.py - Module manifests
gaide/modules/__init__.py - File composition
gaide/assemble.py
Runtime enforcement
- Check dispatcher
gaide/checks/__init__.py - Fail-closed envelope
gaide/envelope.py - Secret scanning
gaide/checks/secrets.py - Syntax checks
gaide/checks/syntax.py - SAST checks
gaide/checks/sast.py - Dependency checks
gaide/checks/sca.py - Clean-state gate
gaide/checks/clean_state.py - Task reference gate
gaide/checks/task_ref.py - Task profiles
gaide/tasks.py
Installation audit
- Doctor command
gaide/doctor/__init__.py - Installation report
gaide/doctor/report.py - Gate canaries
gaide/doctor/canary.py
Other components
- Developer
- Generated project
Connections 28
- Developer → CLI commands: runs
README.md - CLI commands → Init workflow: routes init
gaide/cli.py - CLI commands → Check dispatcher: routes check
gaide/cli.py - CLI commands → Doctor command: routes doctor
gaide/cli.py - Init workflow → Setup wizard: collects answers
gaide/init_cmd.py - Setup wizard → Project detection: offers detected defaults
gaide/prompts.py - Init workflow → Module constraints: checks constraints
gaide/init_cmd.py - Init workflow → Template source: resolves template
README.md - Template source → Module manifests: loads manifests
gaide/template.py - Init workflow → File composition: composes files
README.md - File composition → Generated project: writes files
README.md - Init workflow → Project config: records choices
README.md - Init workflow → Terminal UI: shows walkthrough
gaide/init_cmd.py - Check dispatcher → Project config: loads settings
gaide/checks/__init__.py - Check dispatcher → Task profiles: resolves profile
gaide/checks/__init__.py - Check dispatcher → Secret scanning: dispatches
gaide/checks/__init__.py - Check dispatcher → Syntax checks: dispatches
gaide/checks/__init__.py - Check dispatcher → SAST checks: dispatches
gaide/checks/__init__.py - Check dispatcher → Dependency checks: dispatches
gaide/checks/__init__.py - Check dispatcher → Clean-state gate: dispatches
gaide/checks/__init__.py - Check dispatcher → Task reference gate: dispatches
gaide/checks/__init__.py - Check dispatcher → Fail-closed envelope: wraps result
gaide/checks/__init__.py - Doctor command → Project config: loads installation
gaide/doctor/__init__.py - Doctor command → Template source: resolves recorded source
gaide/doctor/__init__.py - Doctor command → Installation report: builds report
gaide/doctor/__init__.py - Doctor command → Gate canaries: runs canaries
gaide/doctor/__init__.py - Gate canaries → CLI commands: exercises binary
gaide/doctor/canary.py - Installation report → Project config: checks installation
gaide/doctor/report.py