image
Akan.js
Docs
DocsConventionsReferencesCheatsheet
English
image
Akan.js
Akan.js v2 docs are now available.View the v1 docs
DocsConventionsReferencesCheatsheet
Released under the MIT License
Official Akan.js Consulting onAkansoft
Copyright © 2026 Akan.js All rights reserved.
System managed bybassman
CLI Reference
• Commands
• Workspace
• Application
• Library
• Module
• Scalar
• Package
• Page
• Cloud
• Context
• Agent
• Guideline
AkanJS Reference
• akanjs/base
• akanjs/common
• akanjs/constant
• akanjs/fetch
• akanjs/signal
• akanjs/server
• akanjs/client
• akanjs/webkit
UI Reference
• Overview
• Core
• Display
• Forms
• Overlays
• System
CLI Reference
• Commands
• Workspace
• Application
• Library
• Module
• Scalar
• Package
• Page
• Cloud
• Context
• Agent
• Guideline
AkanJS Reference
• akanjs/base
• akanjs/common
• akanjs/constant
• akanjs/fetch
• akanjs/signal
• akanjs/server
• akanjs/client
• akanjs/webkit
UI Reference
• Overview
• Core
• Display
• Forms
• Overlays
• System
Next
Commands

Context CLI

Context commands expose Akan workspace structure in forms that people, agents, CI jobs, and MCP clients can consume.
Use `context` to understand the workspace, `doctor` to validate conventions, and `mcp` when an MCP-aware client should query the same information over stdio.

context

Print agent-readable Akan workspace context. Use it when an external coding agent, CI job, or IDE extension needs a structured summary of apps, libraries, packages, modules, generated files, validation commands, and module abstracts.
Signature
Options
OptionTypeDefaultEnum / FlagDescription
--formatStringmarkdownmarkdown | jsonOutput format. Use json for tools and markdown for people or chat context.
--appString-nullableLimit the context to one app.
--moduleString-nullableLimit module output and include the matching *.abstract.md content first.
--format
Type
String
Default
markdown
Enum / Flag
markdown | json
Description
Output format. Use json for tools and markdown for people or chat context.
--app
Type
String
Default
-
Enum / Flag
nullable
Description
Limit the context to one app.
--module
Type
String
Default
-
Enum / Flag
nullable
Description
Limit module output and include the matching *.abstract.md content first.
Notes
NameDescription
abstract exposureWorkspace summaries include abstract metadata only; module-scoped context includes the abstract body.
privacyThe context analyzer does not print .env values or secrets.
abstract exposure
Description
Workspace summaries include abstract metadata only; module-scoped context includes the abstract body.
privacy
Description
The context analyzer does not print .env values or secrets.
Examples

doctor

Report Akan workspace convention diagnostics. Use it before or after agent changes to catch unsupported files, missing module abstracts, and convention drift in machine-readable form.
Signature
Options
OptionTypeDefaultEnum / FlagDescription
--formatStringtexttext | jsonOutput format. Use json for agent validation loops.
--strictBooleanfalse-Treat recommended conventions such as missing module abstracts as errors.
--format
Type
String
Default
text
Enum / Flag
text | json
Description
Output format. Use json for agent validation loops.
--strict
Type
Boolean
Default
false
Enum / Flag
-
Description
Treat recommended conventions such as missing module abstracts as errors.
Examples

mcp

Start the read-only Akan MCP server over stdio. The server exposes workspace context, module context, guideline instructions, command explanations, diagnostics, and resources for MCP-aware coding agents.
Signature
Notes
NameDescription
modeRead-only. It does not write files, scaffold modules, or call LLM providers.
module context`get_module_context` returns the module abstract first, then surrounding module file metadata.
mode
Description
Read-only. It does not write files, scaffold modules, or call LLM providers.
module context
Description
`get_module_context` returns the module abstract first, then surrounding module file metadata.
Examples
Context CLI
context
doctor
mcp