Skip to main content
Arka applies bounded refinement passes that clarify objectives, constraints, missing-information behavior, verification, and output structure. It is an original implementation inspired by the evaluation-oriented workflow described by Prompt Optimizer, whose repository is licensed AGPL-3.0-only. No source code is copied or bundled.

Compact intermediate form

For verbose natural-language inputs, Arka also converts the user text into a compact intermediate representation before sending it to the LLM. The original text is still used for symbolic routing, security checks, exact-command detection, and audit metadata. The compact form keeps:
  • high-signal requirements
  • a small amount of context
  • literal URLs, file paths, code blocks, JSON, and shell commands
  • anti-hallucination constraints
It removes or compresses:
  • repeated sentences
  • low-signal filler
  • excess whitespace
Configuration:
Opt out when exact wording must reach the model:
Compaction is skipped for routing prompts and already-compact Task IR: prompts to avoid recursive rewriting.