Skip to content

Code map

Who can use it: all firm staff read and edit code maps, in the app or through an AI coding assistant. Clients don’t see them.

Before an AI coding assistant can change a module, it has to work out where that module’s code lives, how its pieces connect, and which rules the code must follow. A code map writes that down once per module, so every task starts with it instead of exploring the code again.

The Harbor project has three modules: Catalogue, Cart and Orders. When Tom’s coding assistant finishes REQ-4 Reorder a past order, it updates the Orders code map in the repository and syncs it to NorthFloe in the same pull request. The next day Lena picks up a task tagged Orders, and her assistant gets the up-to-date Orders map with the task, including its table diagram.

  • Business (system folder)
  • Technical (system folder)
  • DirectoryCode map (system folder, firm staff only)
    • Cart
    • Catalogue
    • Orders
  • Payments (your folder)
  • Every module has one code map, in the Code map folder of Project Docs. A new module gets its code map straight away. Renaming a module renames its code map, and archiving a module hides its code map until you restore the module.
  • A code map starts empty and shows Not synced yet. NorthFloe never writes it for you.
  • What goes in it is up to your team. Typically it covers the module’s purpose, its backend and frontend files, its API, its tests, its rules, and a Mermaid diagram of its tables.
  • Code maps have no review or sign-off, and they never block a feature’s requirement or spec.
  • Each change is a new version. The page shows who made it, when, whether it came from the app or an AI assistant (MCP), and the commit or pull request it came from.
  1. Open the project and go to Docs → Code map, or select Code map next to a module in Project settings → Modules. On a feature, select one of its module chips.
  2. Select Edit, change the Markdown, and save.

If someone else saved the code map while you were editing, NorthFloe refuses your save and loads the latest version, so nobody’s change is lost by accident.

The usual way to keep a code map current is to keep a copy in the repository (for example docs/codemap/orders.md), update it in the same pull request as the code, and let the AI coding assistant sync it with the save_code_map tool. The assistant reads the current version first, so a sync never overwrites a newer edit, and sending the same content again creates no new version.

When an assistant opens a task, it receives the code maps of the feature’s modules along with the task. See Connect AI.