NewsCrawler.org

MomongaCode: an open-source terminal coding agent focused on memory and token control

モデルの賢さ任せにしないOSSコーディングエージェント「MomongaCode」を公開しました(メモリ・トークン最適化・Z3/TLA+)
MomongaCode: an open-source terminal coding agent focused on memory and token control
Image: zenn.dev

The author has released MomongaCode, an MIT-licensed AI coding agent for the terminal, run with the command momonga. It works with local models such as Ollama and LM Studio, with subscriptions such as OpenAI and xAI, and with API keys from Anthropic, OpenAI and Open Responses. The article lists five problems the author wanted to solve: memory going stale in long sessions, growing token use, unverified task completion, fragile long runs and updates, and unstable behavior when the model changes.

Memories are stored in a database under ~/.momonga/state and can be linked to the files they came from, so a memory is marked as possibly outdated when its file changes. Knowledge the agent suggests after a task waits for the user's approval in /memory review, and memories that are not used for a long time are archived automatically after 90 days by default. Token-saving features such as prompt cache[1] stabilization, deferred loading of unused tools and output compression are on by default, and /cost --breakdown shows the token breakdown.

Shell commands run inside a sandbox[2]: Seatbelt on macOS and bubblewrap on Linux, while Windows asks for confirmation each time. Network access is blocked by default, and permission rules can be checked with /policy verify using the Z3 SMT solver[3]. After the model finishes, the test commands registered for a folder run again inside the sandbox, and the task is marked complete only when all of them pass. Updates are handled by a background daemon that finishes running tasks before it exits, and core state transitions are checked with 36 TLA+[4] specifications.

Repository MomongaCode github.com

Open source terminal coding agent (run as momonga) for local and hosted LLMs, with memory and token controls.

Stars: 0Forks: 0License: MITUpdated:

Read the original zenn.dev

Sources

  • Zenn JA

    モデルの賢さ任せにしないOSSコーディングエージェント「MomongaCode」を公開しました(メモリ・トークン最適化・Z3/TLA+)

    6 likes0 bookmarks0 comments

Published: First seen: Читать по-русски

Open as a page