Will Archie commit ARCHITECTURE.md automatically?
No — Archie writes the file to disk but never stages or commits it. You stay in full control of what gets committed.
Archie reads your codebase, analyzes your Git history, and keeps ARCHITECTURE.md accurate — updating only what changed, on every meaningful commit.
Three commands. Then Archie runs quietly in the background — you commit, it documents.
Reads your source files, project identity files, and recent Git history. Sends everything to Gemini 2.5 Flash in a single request. Writes a structured ARCHITECTURE.md in seconds.
Installs a post-commit hook. After every commit, Archie checks whether the changes are significant. If they are, it updates only the affected sections - not a full rewrite.
Your commits work exactly as before. Archie runs asynchronously after the commit completes - zero added latency. Use --no-verify to skip it on any specific commit.
Archie doesn't regenerate your docs from scratch — it identifies exactly which architectural decisions changed and rewrites only those sections.
## Tech Stack- **Commander.js**: Used in `src/index.ts` to defineCLI commands. Chosen for its mature, simple API.- **dotenv**: Loads `GEMINI_API_KEY` from `.env`.- **@google/generative-ai**: Official Gemini client. Chosenfor its 1M token context window — no chunking required.- **Commander.js**: Used in `src/index.ts` to defineCLI commands. Chosen for its mature, simple API.- **dotenv**: Loads `GEMINI_API_KEY` from `.env`.
Detected separation of concern. The authentication module was decoupled from the core API gateway into a standalone microservice.
Everything you need to know about how Archie works.
No — Archie writes the file to disk but never stages or commits it. You stay in full control of what gets committed.
No — the post-commit hook runs asynchronously after the commit completes. Zero added latency to your workflow.
Use git commit --no-verify to bypass the hook for any individual commit.
Yes — source files are sent to the Gemini 2.5 Flash API. Review Google's API data usage policy at https://ai.google.dev/gemini-api/terms before use.
It silently advances its internal state pointer and exits. Only meaningful changes — like a modified package.json or 5+ file edits — trigger a doc update.
Install globally, point Archie at your Gemini key, and run init. From that point on, every meaningful commit updates your architecture doc automatically — no manual steps, no scheduled jobs.
Your code diffs are routed to Google's Gemini API for analysis. Get a free API key · Usage policy
npm install -g archie-aiecho "GEMINI_API_KEY=your_key_here" > .envarchie init