fix: wire up tick engine scheduler + add journal + systemd timer (#163)

This commit is contained in:
Alexander Whitestone
2026-03-11 08:47:57 -04:00
committed by GitHub
parent a927241dbe
commit 07f2c1b41e
5 changed files with 83 additions and 1 deletions

View File

@@ -23,6 +23,20 @@ _MODEL_SIZE_OPTION = typer.Option(
)
@app.command()
def tick():
"""Run one autonomous thinking cycle (used by systemd timer)."""
import asyncio
from timmy.thinking import thinking_engine
thought = asyncio.run(thinking_engine.think_once())
if thought:
typer.echo(f"[{thought.seed_type}] {thought.content}")
else:
typer.echo("No thought produced (thinking disabled or Ollama down).")
@app.command()
def think(
topic: str = typer.Argument(..., help="Topic to reason about"),