In 2026, Atlas empowers COBOL developers to produce precise documentation that describes what their code actually does today, not what it was intended to do a year ago, by directly reading source code and integrating with familiar tools like GnuCOBOL cobc, COBOL Check, and Z Open Editor formatter.
How Atlas documents COBOL modules accurately in 2026
In 2026, Atlas addresses the common problem of outdated documentation by generating READMEs directly from your COBOL source code, ensuring 100% accuracy regarding current module behavior. It avoids relying on memory or stale specifications, providing a reliable source of truth for your codebase.
Atlas generates documentation for COBOL modules by performing a deep analysis of the actual source code, rather than relying on historical context or developer memory. The process begins by using the `lsp` tool's `documentSymbol` operation to enumerate the module's public API. This ensures that every exported element, whether it's a `PROCEDURE DIVISION` section or a `COPY` member, is identified and documented without omission or invention. Atlas then uses the `read` tool to access the implementation details of each export, understanding the logic within `IDENTIFICATION`, `DATA`, and `PROCEDURE` divisions. To provide real-world context, `codebase_search` is employed to find how other parts of the codebase actually call and use these COBOL exports in practice. This comprehensive approach guarantees that the generated documentation is traceable directly to the code, reflecting its current functionality and usage patterns in 2026.
Concrete COBOL commands and files Atlas uses for documentation
Atlas leverages specific COBOL tools and file structures to produce accurate documentation, integrating direct with your existing development environment. It interacts with your `.cbl` programs and copybooks, using 3 core Atlas tools to extract and verify information directly from the source.
To document a COBOL module, Atlas interacts with your codebase using concrete commands and file paths familiar to any COBOL developer. When enumerating the public API, Atlas uses the `lsp` tool's `documentSymbol` operation on your `.cbl` program files and associated copybooks. This operation precisely identifies paragraphs, sections, and data items that constitute the module's external interface. For understanding the internal workings, the `read` tool accesses the content of your `PROCEDURE DIVISION` to grasp the logic and flow, and it also pulls in every `COPY` member to understand included data structures and code snippets. To illustrate real-world usage, `codebase_search` scans the repository for instances where these COBOL elements are invoked, providing concrete examples of how they are used by callers. The final documentation is then emitted as a `README.md` file, structured to match any existing `README` files found via `grep`, ensuring consistency in tone and format.
Verifying COBOL code samples and ensuring documentation accuracy
Atlas ensures the highest level of accuracy for COBOL documentation by rigorously verifying every code sample. It uses the `bash` tool to execute these samples, guaranteeing that 0 untested code snippets make it into your README, reflecting the code's actual behavior in 2026.
A critical step in Atlas's documentation workflow is the verification of all COBOL code samples included in the generated README. Atlas uses the `bash` tool to run every single code sample, treating any sample that was never executed as a liability. This proactive verification process ensures that the examples provided in the documentation are not only syntactically correct but also functionally accurate and runnable within a COBOL environment. While `GnuCOBOL cobc` is used by Atlas to compile your main programs and `COBOL Check` for running test cases, the `bash` execution of README samples directly confirms their validity. This commitment to executable examples means that a COBOL developer reading the documentation in 2026 can trust that the code snippets will work as described, directly demonstrating the module's current functionality.
Atlas's safety and review process for COBOL documentation edits
Atlas prioritizes safety and developer control throughout the documentation process, implementing a robust 2-step approval system for all changes. This ensures that any modifications to your COBOL codebase or documentation are thoroughly reviewed and explicitly approved before being applied.
Atlas incorporates multiple layers of safety and review to ensure that documentation changes are accurate and approved by the COBOL developer. Before any modifications are made, Atlas drafts a plan in a read-only plan agent, allowing you to understand its proposed actions without risk. When it switches to a build agent, every Atlas tool call is permission-gated, requiring explicit allow, ask, or deny rules to be met before execution. For every file edit, including the creation or modification of a `README.md`, Atlas computes a unified diff and surfaces it for your approval. This allows you to review the exact changes, ensuring they align with your expectations and, crucially, that they respect COBOL's fixed-format column rules if the documentation itself contains code snippets or formatting that needs to adhere to these standards. Atlas also snapshots file changes as git patches, providing a clear audit trail and the ability to roll back edits if necessary, offering complete control over your COBOL codebase in 2026.
Step by step
- 01Run Atlas in your COBOL project directory where your `.cbl` programs and copybooks reside.
- 02Atlas uses the `lsp` tool's `documentSymbol` operation to enumerate the public API of your COBOL module from `IDENTIFICATION DIVISION` and `PROCEDURE DIVISION` entries.
- 03Atlas employs the `read` tool to access the implementation of each COBOL export and uses `codebase_search` to discover how callers actually use it in practice.
- 04Atlas `grep`s the repository for an existing `README.md` to match its heading structure and tone, ensuring consistency with your COBOL project's documentation style.
- 05Atlas drafts the `README.md` using the `write` tool, quoting real COBOL signatures and actual file paths from your codebase.
- 06Atlas verifies every COBOL code sample within the drafted `README.md` by executing it with `bash`, ensuring its accuracy and functionality.
- 07Review the unified diff generated by Atlas for the new `README.md` and approve the changes, paying attention to any COBOL fixed-format column rules if applicable to the documentation content.
Frequently asked questions
- How does Atlas ensure COBOL documentation is up-to-date in 2026?
- Atlas ensures COBOL documentation is current by reading your source code directly. It uses the `lsp` tool to enumerate exports and the `read` tool to understand implementation details, guaranteeing that the documentation reflects the code's actual state in 2026, not outdated specifications.
- Can Atlas document COBOL copybooks and `PROCEDURE DIVISION` logic?
- Yes, Atlas is specifically designed to read your `IDENTIFICATION`, `DATA`, and `PROCEDURE` divisions, along with every `COPY` member it pulls in. It can explain paragraphs in plain English and verify its understanding of `PIC` clauses, providing comprehensive documentation for your COBOL logic.
- What COBOL tools does Atlas integrate with for documentation?
- Atlas integrates direct with your existing COBOL toolchain. It can compile with `cobc` under `GnuCOBOL` and run `COBOL Check` test cases behind a permission prompt, ensuring that its understanding and verification processes align with your established COBOL development environment.
- How does Atlas verify COBOL code examples in the README?
- Atlas rigorously verifies every COBOL code sample included in the documentation by executing it with the `bash` tool. This process guarantees that all examples are runnable and accurately demonstrate the code's current behavior, preventing the inclusion of non-functional or misleading snippets.
- Is Atlas safe to use with existing COBOL codebases?
- Atlas prioritizes safety with permission-gated tool calls, a read-only plan agent, and a unified diff for every file edit that requires your approval. It also snapshots file changes as git patches, allowing for easy rollback and ensuring complete control over your COBOL codebase.
- Does Atlas understand COBOL fixed-format column rules during documentation?
- While Atlas generates documentation, it presents all proposed changes as unified diffs for your review. This allows you to verify that any generated content, especially code snippets or formatting, adheres to your COBOL project's fixed-format column rules before you approve the changes.
- How does Atlas find how COBOL modules are actually used?
- Atlas employs `codebase_search` to analyze your repository and identify how callers actually use each COBOL export in practice. This provides real-world usage patterns and context for the documentation, moving beyond theoretical descriptions to reflect practical application.
Try Atlas in your terminal
The terminal-native AI coding agent. Free core, single binary.
Install AtlasRelated guides
Document a Module with a README Using Atlas (2026 Workflow)
How to document a module with a README using Atlas in 2026: the lsp tool's documentSymbol enumerates the real exports, read supplies the behavior, write emits the README.
Atlas for COBOL: Copybooks, PIC Clauses, and GnuCOBOL in 2026
Atlas is a terminal-native AI coding agent for COBOL in 2026. It reads your divisions and copybooks, explains a paragraph before touching it, and compiles with cobc under GnuCOBOL.
Run the COBOL Test Suite and Triage Failures with Atlas in 2026
In 2026, COBOL developers use Atlas to run COBOL Check test suites, triage failures into distinct root causes, and fix issues efficiently, all within the terminal.
Run Atlas Headless in CI for COBOL in 2026
Automate COBOL development in CI with Atlas. Run Atlas headless to get machine-readable output, integrate with GnuCOBOL cobc and COBOL Check, and ensure safe code changes.
Self-review your working diff before committing in COBOL with Atlas (2026)
Catch your own mistakes in COBOL code before they reach a reviewer or CI. Atlas helps COBOL developers in 2026 self-review uncommitted diffs, integrating with GnuCOBOL cobc, COBOL Check, and Z Open Editor formatter.
Rename a symbol across the repo in COBOL with Atlas in 2026
Rename COBOL functions, classes, or constants across your entire repository with Atlas in 2026. Leverage lsp, grep, and edit for precise, verified refactoring.
Debug a single failing test in COBOL with Atlas in 2026
Pinpoint and fix failing COBOL tests efficiently with Atlas in 2026. Leverage GnuCOBOL cobc, COBOL Check, and Z Open Editor formatter for precise debugging.
Plan a multi-file change before editing in COBOL with Atlas in 2026
Design and review multi-file COBOL changes before modifying a single line with Atlas. Leverage GnuCOBOL cobc and COBOL Check for safe, pre-approved modifications in 2026.