Charly Agent

The model chooses tools.
Code enforces boundaries.

A custom coding agent for Java/Maven projects using local LLMs. It answers questions, edits code, verifies results and runs as an interchangeable runner in Charly AI Factory.

Task & allowed paths
AGENT HARNESS · JAVA
ContextAGENTS.md · Code
LLMlocal / Ollama
ToolsRead · Search · Edit

Permissions · Token budgets · Step limits · Event log

Build & tests → Result or bounded repair

Inside the harness

Use intelligence.
Control execution.

Assemble context deliberately

Project rules, the file tree, notes and condensed history are assembled within budgets. A symbol index helps locate relevant declarations in the code.

Enforce permissions in code

Questions are handled in read-only mode. Writing requires an explicit mode and allowed paths. Tools check write permissions. The agent does not commit or push.

Verify success

Completion triggers checks against placeholder tests and a Maven build. A build with no executed tests does not count as passing. Failed checks lead to bounded repairs.

Make behaviour inspectable

The event stream records prompts, model responses, tool calls and builds. Scripted scenarios test behaviour without an LLM; live scenarios add evaluation with a model.

A factory component

An agent works.
The factory coordinates.

CLI, browser UI and a container contract support different uses. In the factory, the agent performs a bounded task. Issue status, push, CI and review remain responsibilities of the orchestrator.

Factory architecture