genericmilk/docudoodle
Docudoodle is an AI-powered PHP documentation generator that analyzes your codebase and writes Markdown docs. It supports OpenAI, Claude, Gemini, Azure and Ollama, with smart caching that only processes changed files and skips existing docs.
Architecture fit
docudoodle:generate) that reads source files and emits Markdown. There are no migrations, routes, queue workers, or request-lifecycle hooks described, so it does not couple to the runtime serving path. Install as composer require --dev and it stays out of production builds.Integration feasibility
vendor:publish --tag=docudoodle-config), set env keys, run one command. A time-boxed spike on a single bounded module should produce usable output in under a day.{FILE_PATH}/{FILE_CONTENT} variables, model selection, token ceiling, cache toggles, and CLI overrides (--no-cache, --force-rebuild, --cache-path).Technical risk
max_tokens defaults to 10,000 with no documented chunking strategy. Large service classes or config files may be partially read and documented as if complete — the worst failure mode for a documentation tool..env files, fixtures, and seeders in scope would leak secrets into a third-party prompt._config_hash invalidates the entire cache on any model, provider, or prompt change. Prompt iteration — the thing we will do most — is therefore a full-cost rebuild every time.Key questions
composer.json constrained tightly enough (illuminate/* only?) to avoid dependency conflicts in our application?Stack fit
illuminate/console and illuminate/support as the only framework touchpoints — a minimal footprint that will not fight our existing service providers.Migration path
docs/generated/) so orphan cleanup can never touch curated, human-authored documentation..docudoodle_cache.json) git-ignored, or explicitly pinned to a CI cache path via --cache-path.Compatibility
^2.3.0 at minimum — earlier versions have a skip-directory matching defect that could have documented vendor/ and node_modules/, which is both a cost and a confidentiality problem.Sequencing
gpt-4o-mini. Measure cost per 1k LOC, output quality, and wall-clock time. Compare one cloud provider against Ollama on the same module.Maintenance
Support
Scaling
Failure modes
| Failure | Impact | Mitigation |
|---|---|---|
| Provider outage or rate limit mid-run | Partial, inconsistent docs | Idempotent re-run; verify exit codes; cache makes retries cheap |
| Token truncation on large files | Confidently wrong documentation | Cap processed file size; split large classes; spot-check output |
| Prompt/model change | Full rebuild, cost spike | Batch prompt changes; run with --no-cache knowingly, not accidentally |
| Source file rename | Orphan cleanup deletes the doc | Keep generated docs in a dedicated directory; review cleanup diffs |
| Cache file lost or corrupted | Full reprocessing | Persist cache in CI cache; pin --cache-path explicitly |
| Hallucinated behavior in docs | Team trusts incorrect documentation | Mandatory human review; label generated docs as AI-authored with a run timestamp |
| Secrets in scanned files | Credential leak to third-party API | Restrict extensions and skip dirs; exclude .env, fixtures, seeders; prefer Ollama/Azure for sensitive repos |
| Duplicate Jira/Confluence artifacts on re-run | Wiki and backlog pollution | Validate idempotency before enabling; scope to a dedicated space |
Ramp-up
How can I help you explore Laravel packages today?