Skip to content

Context & Orientation

Use these tools to orient an AI assistant within your Compose project — from a quick overview to fine-grained context budgeting and session reports.


Return a concise project overview: module graph, Compose targets, preview count, and recommended next steps.

What to ask your AI:

  • “what does this project look like?”
  • “learn the codebase”
  • “give me an overview of the app”

Parameters

NameTypeRequiredDefaultDescription
project_pathstringYesAbsolute or relative path to the root of the target project

Tips

  • Always a good first call at the start of a session — the response tells you exactly which other tools to reach for next.
  • The output includes a module graph summary and flags whether the project uses Compose Multiplatform, Android-only Compose, or both.

Return token-budgeted context about the project, scoped to the most relevant layer.

What to ask your AI:

  • “show the project structure”
  • “what are the Compose patterns used here?”
  • “give me the full context”

Parameters

NameTypeRequiredDefaultDescription
project_pathstringYesPath to the root of the target project
scopeenumNofullOne of: structure, compose, previews, patterns, full
max_tokensintNoHard cap on tokens returned — useful when context window is tight
focus_filesarray[string]NoLimit context to these specific source files

Tips

  • Use scope: structure when you only want the module/package layout without source details.
  • Use scope: previews right before calling cp_render so the AI already knows which preview names are available.
  • focus_files pairs well with scope: compose when reviewing a single screen’s composable hierarchy.

Persist a context profile for the project so subsequent cp_get_context calls respect the budget automatically.

What to ask your AI:

  • “set context to performance mode”
  • “switch to minimal context”

Parameters

NameTypeRequiredDefaultDescription
project_pathstringYesPath to the target project
context_profileenumYesOne of: performance, balanced, minimal
custom_token_budgetintNoOverride the profile’s default token ceiling

Tips

  • performance returns the richest context (good for architecture exploration); minimal strips everything except file names and preview counts.
  • Profile is stored in .composeproof/context-profile.json and is gitignored by default — each developer can set their own.

Produce a self-contained HTML report of the session — screenshots, diffs, context summary, and any verification results.

What to ask your AI:

  • “generate a report for this session”
  • “summarize what we did”
  • “create a shareable report”

Parameters

NameTypeRequiredDefaultDescription
project_pathstringYesPath to the target project
output_pathstringNo.composeproof/reports/report-<timestamp>.htmlWhere to write the HTML file
include_screenshotsboolNotrueEmbed rendered preview PNGs in the report
include_contextboolNotrueInclude the project context summary section
report_reasonstringNoFree-text label shown as the report title (e.g. “Pre-release visual audit”)

Tips

  • The HTML file is fully self-contained (base64 images, inline CSS) — safe to attach to a PR or Jira ticket.
  • Set report_reason to keep a clear audit trail when reviewing multiple features in one session.