Skip to content
System One

morcoan/JMP

A local desktop and CLI coding agent where Jev selects the next tool from the user's request and recorded execution results, while DeepSeek or a local model supplies the arguments.

Archived

morcoan/JMP on GitHub

Stars
3
Forks
0
Language
Python
License
MIT
Last push
20 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

def _decision(self, state, criteria, question, stage):
    start=time.perf_counter()
    self.session.append('model_started',provider='jev',stage=stage,model=self.settings.jev_model)
    response=self.jev.system_one(state=state,questions={'decision':Choice(instructions=question,criteria=criteria)})
    answer=response.answers['decision']; raw=response.raw_http_response.json()
    self.session.append('usage', provider='jev', stage=stage, seconds=time.perf_counter()-start,
                        model=raw.get('model'), usage=raw.get('usage',{}))
    if answer.choice not in criteria: raise ValueError('Router selected unavailable choice')
    return answer.choice, answer.confidence

def route(self, state, catalog):
    choice, confidence=self._decision(state,self.choices(catalog),ROUTER_QUESTION,'router')
    if choice!='done': return choice, confidence
    # Stopping is a separate decision: absence of execution is not evidence
    # that a requested action requires no tools. No keyword-based forcing.

View in jmp/models.py

Open on GitHub

More like this

Use cases this is tagged with