Skip to content

Atlas Library for Go ​

Atlas guides AI coding agents through GoForj scaffolding and App wiring, version-aware docs search, and read-only runtime inspection.

Published version or module tagPublished GitHub release count

Atlas guides AI coding agents through GoForj conventions, libraries, and best practices. It shows agents how to put business behavior in domain packages under internal/<domain> and register and wire changes in the App that owns them.

Atlas installs reusable skills or agent-native instructions and configures one project-level MCP server. Agents can look up version-aware docs, inspect the project's App and resource boundaries, and use read-only diagnostics to check runtime behavior.

Quick start ​

From an existing GoForj project, install the Codex integration and check that Atlas is configured:

sh
forj atlas:install --agent codex
forj atlas:doctor

After a successful install, the doctor report starts with Atlas installed: true. Start a new session in your agent to load its project guidance and MCP tools. Use forj atlas:update to refresh the material as the project changes.

What Atlas Provides ​

Atlas gives local agents a framework-aware view of a GoForj project:

  • concise project guidance for Codex, Claude Code, GitHub Copilot, and Gemini CLI
  • synchronized skills and agent-native instruction files
  • one project-level MCP server
  • app-aware project layout, route, schedule, and command inspection
  • version-aware docs search and section reads
  • safe database, log, browser, URL, and metrics inspection hooks

Project Integration ​

Atlas keeps the selected agents, enabled surfaces, and generated-file ownership in .goforj/atlas.json. Native files such as AGENTS.md, .agents/skills, and .codex/config.toml are projections written only for the selected agents so the tools can discover them without manual setup.

A normal update follows the committed selection instead of re-detecting every agent installed on the machine:

bash
forj atlas:update

Use forj atlas:update --discover when the project should deliberately switch to the preferred locally installed agent. Explicit --agent and --all-agents selections remain available for projects that intentionally use more than one agent. Atlas removes only its owned blocks, MCP entries, and generated skill files when an agent or surface is deselected.

Safety Model ​

Atlas starts read-only. It does not expose arbitrary shell execution or write-capable MCP tools in the MVP.

When source scaffolding is needed, agents should use normal GoForj commands:

bash
forj billing make:controller billing:invoices
forj marketplace make:job sync-catalog

For a Project with a billing App and Web API enabled, the controller command creates internal/billing/invoices/controller.go, registers its routes in app/billing/routes.go, and adds its constructor to the App's Wire set in app/billing/wire/inject_http_controllers_app.go.

Live Agent Evaluation ​

Atlas includes a diagnostic harness for measuring how fresh coding agents turn natural requests into working, maintainable GoForj Projects. The promoted portfolio can compare four cumulative guidance profiles: no framework guidance, AGENTS.md, recommended skills, and Atlas MCP. Start with the smallest adjacent smoke comparison that answers the question instead of paying for the complete portfolio:

bash
make -C /path/to/clean/goforj eval-runner EVAL_RUNNER=/tmp/forj-eval

openssl rand -out /tmp/goforj-eval-artifact.key -hex 32
chmod 600 /tmp/goforj-eval-artifact.key

/tmp/forj-eval atlas:eval suite core \
  --tier smoke \
  --control agents \
  --treatment agents-skills \
  --model <model> \
  --workers 4 \
  --trials 1 \
  --credential /path/to/disposable-auth.json \
  --artifact-key /tmp/goforj-eval-artifact.key \
  --artifacts /tmp/goforj-eval-artifacts

The credential must be disposable, revocable, and restricted to this diagnostic; the current unconfined backend cannot keep file-backed provider authority secret from candidate processes. Keep the artifact key outside the artifact directory; it authenticates retained evidence and should remain readable only by the evaluation operator. The command retains redacted evidence with post-run integrity checks and verifies the final Project after the agent session. Missing supervisor-grade isolation and observation keep top-level outcomes ineligible rather than promoting local diagnostics to an authoritative claim. See the implementation plan and Codex adapter qualification for the boundary and release sequence.

Maintainers resuming evaluation work should begin with the implementation plan's Maintainer Handoff, then read GoForj's maintainer guide and recorded benchmark before interpreting pass rates or starting provider sessions.

Development ​

bash
make build
make release-check
make test
make vet

At runtime, Atlas reads docs from GOFORJ_DOCS_PATH when set. Otherwise it clones or refreshes github.com/goforj/docs in the user's cache directory, loads the Markdown tree into memory, and serves MCP docs tools from memory. Atlas uses the git executable when it is available and silently falls back to native Go git support when it is not.

Atlas is consumed by GoForj as a Go module, not as a prebuilt binary. A release should run make release-check, tag the module, and then bump GoForj to that tag. The normal docs path is a local git cache loaded into memory by the MCP server, so Atlas does not need to commit a copied docs tree.

Equivalent direct validation:

bash
GOCACHE=/tmp/gocache GOMODCACHE=/tmp/gomodcache go test ./...