Agentic Coding Has No Floor
Opinions Rasmus Ros 6 min readAn agent can remove a check you still need while the tests keep passing. I want to be able to lock that code until I approve a change.
Cloud-native optimization with an HTTP API. Define your constraints, request a configuration, and report the result so the next choice can improve. Open source, ready to run in your own infrastructure.
Applications
Define the available choices, the constraints they must satisfy, and what you want to improve.
Search combinations of software settings when each trial takes time or money.
Select features or layouts for each user and learn from the results.
Build schedules that account for demand, capacity, and dependencies.
Eignex chooses self-service, an AI-drafted reply, or a human handoff for each ticket. Your rules limit the options; the results teach it which flows resolve tickets.
choice = support.propose(needsRefund=True, isUrgent=False)
# This request must go to a human with the order history.
handle_ticket(choice.values) # Your support system runs the chosen flow.
support.observe(choice.id, reward=1) # Later: report that the ticket was resolved.
See the support example
Adaptive optimization
Eignex selects configurations under constraints and learns from their measured outcomes. Define a decision space in YAML, then use the HTTP API for online experiments or offline tuning.
The service uses Klause for constraints and Kumulant for statistical tools. Both are also available as standalone libraries.
For each ticket, choose self-service, an AI-drafted reply, or a human handoff, along with a reply style and the records to retrieve. Refund requests must go to a human with the order history attached. Urgent tickets must skip self-service.
space:
name: SupportFlow
context:
needsRefund: bool
isUrgent: bool
variables:
route:
nominal: [self_service, assisted_reply, human]
replyStyle:
nominal: [brief, step_by_step]
multiples:
sources: [help_center, order_history, previous_tickets]
constraints:
refundsNeedHuman:
implies: [{ref: needsRefund}, {nominalEq: [route, human]}]
urgentSkipsSelfService:
implies: [{ref: isUrgent}, {not: {nominalEq: [route, self_service]}}]
refundsNeedOrderHistory:
implies: [{ref: needsRefund}, {ref: sources.order_history}]
outcome: reward
objective: {maximize: reward}
Send the ticket context to the API. Your support system retrieves the selected records and runs the chosen flow. If no proposal is returned, use your existing support process.
In this sketch, your application handles the ticket and reports the score once the outcome is known.
from eignex import Eignex
support = Eignex().model("support_flow.yaml")
choice = support.propose(needsRefund=True, isUrgent=False)
if choice:
handle_ticket(choice.values)
support.observe(choice.id, reward=resolution_score())
For this example, return 1 when the ticket is resolved without reopening within seven days, and 0 otherwise. Keep the proposal ID so the eventual result can be matched to the chosen flow. The optimizer learns which flows resolve tickets in each context, within the same constraints.
Underlying libraries
Klause finds schedules and configurations that satisfy your constraints. Solve a model, sample feasible solutions, or optimize an objective.
Solutions are checked against the original problem before they are returned. Use Klause with the adaptive optimizer or as a standalone library.
An agent can remove a check you still need while the tests keep passing. I want to be able to lock that code until I approve a change.
Three months into the Eignex rewrite, the libraries finally share one config shape that doubles as a YAML wire format. A checkpoint on what changed in each repo.
Three attempts at typed schemas in Kotlin: an imperative builder, a type-encoded product, and the property-delegate design I ended up shipping as skema.
AI plus a feed isn't a new medium, it's the same engagement loop with cheaper supply. The objective the loop optimizes for is a choice, not a law of physics.
Sometimes 80 characters of URL is all you get, and JSON won't survive the trip. kencode squeezes structured state through it, with the schema written as a plain Kotlin data class.
What I'm actually trying to build: a continuous optimizer that learns from a live stream, fits a probabilistic model, and leans on an SMT solver to stay inside hard constraints.
A quick who-am-I and what-is-this. PhD in continuous optimization, left academia, now building Eignex in the open.