Archflow
Task guides

Start from a Repository

Connect your coding agent and review a small architecture model grounded in code

Use your coding agent when a repository already contains the best evidence for the architecture. Start with one useful flow, review the proposed model, and add detail later.

You need: access to the repository, an Archflow account, and a coding agent that can use the supplied skills through CLI or MCP. In-app Archie and your coding agent are separate setups.

1. Open the connection guide

Go to Settings → Developer tools, or choose Bring my repository from Explore Archflow. Choose the agent or destination you actually use.

QuickBite entry with the Bring my repository action

Bring my repository opens the coding-agent setup. You do not need to finish the sample tour first.

Open image separately

Follow the generated configuration for the chosen account or project scope. Keep credentials in the agent's configuration, not in repository files or prompts.

2. Connect And Verify

Choose CLI in the connection guide for guided repository setup. With Node.js 20.19 or newer, run these commands from the intended repository:

npm install -g @archie_archflow/cli
archflow setup
archflow doctor

Follow the authentication and destination selection, install the skills for your agent, and reopen the agent. Check the project name and ID before proposing changes. For self-hosted servers, select the installation URL as described in the CLI reference.

Existing MCP configurations remain supported. If using MCP, follow the generated connection instructions, download/install the current skill bundle, and verify access. Skills provide the workflow; the connection supplies access. Installing one does not establish the other.

3. Ask for a small proposal

Open your repository in the coding agent and start with:

Use archflow-onboard to propose an initial architecture from this repository.
Start with the main systems and one important user flow. Show the code evidence
and any uncertain assumptions before expanding the model.

Confirm the intended destination project and version before accepting changes. Review system boundaries and names, relationship direction, and the evidence for workflow steps. An inferred dependency needs review even when it comes from real source files.

4. Inspect the result in Archflow

Open Architecture → Systems and Architecture → Relationships. Follow the chosen journey under Architecture → Workflows, then create a focused View for the question you want to discuss.

Your result: a model you can explain and connect back to repository evidence. A larger model is useful only if those boundaries and references remain understandable.

5. Keep Architecture Close To The Code

After reviewing the model, use Local Architecture Documentation to download a read-only reference into the repository. Use archflow-sync for later code/model drift reviews and archflow-refresh-docs to refresh the reading copy after accepted model changes.

Continue with Build a C4 View, Map a workflow, or Share an architecture review.

On this page