You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve agent harness with LangGraph-style state machine or Polaris-like architecture #4249
The current agent harness runs agents in a linear loop — prompt → tool call → result → next prompt. Context is managed through compaction (old turns get summarized and truncated), which is lossy and makes it hard to carry state across long-running agent sessions. The system prompt grows with cross-chat context, active goals, and memory but there's no explicit state-machine architecture to manage transitions, branching, or persistent working state.
Inspiration
LangGraph (LangChain's state graph framework) models agent execution as a directed graph of nodes (states) and edges (transitions). Agents can branch, loop, pause for human input, and resume — all with explicit state that persists across transitions. Key ideas worth adopting:
Agent execution as a state machine, not a linear loop
Typed state that persists across turns and sub-agent spawns
Conditional routing between nodes based on state
Checkpointing for pause/resume and human-in-the-loop
Activity
feat(agent_graph): per-agent graph.rs chains + blueprint type + regis…
docs(agent_graph): document per-agent graph.rs chains + blueprint (ti…
feat(agent_graph): Phase A — engine drives a real agent turn (tinyhum…
feat(agent_graph): Phase B core — real tool execution on the graph pa…
feat(agent_graph): Phase B — route run_subagent through the graph eng…
feat(agent_graph): Phase C parity — circuit breakers + ask_user pause…
feat(agent_graph): Phase C parity — native tool-call history threading (
feat(agent_graph): Phase C parity — stop hooks + token-budget trimming (
feat(agent_graph): Phase C parity — payload summarizer for oversized …
feat(agent_graph): Phase C parity — RunQueue mid-flight steering (tin…
feat(agent_graph): Phase C parity — context autocompaction (tinyhuman…
feat(agent_graph): Phase C parity — multimodal file/image preparation (…
101 remaining items
fix(agent-harness): repair #4249 agent_graph regressions caught by ra…
docs(tinyagents): retarget migration plan to tinyagents 1.3.0 (verifi…
feat: finish TinyAgents harness migration (#4249) (#4399)
fix(orchestration): repair main build after tinyhumansai#4249/tinyhum…
fix: unmask two seam failures the main build break was hiding
feat(thread_goals): C2a dual-write adapter onto tinyagents graph::goals
feat(config): add session_dual_write agent flag (default ON)
feat(inference): add create_turn_chat_model — per-(role,model) crate-…
chore(vendor): bump tinyagents 4fc8cd8 -> 40cd29b (v1.9.0 + #55 promp…
fix(composio): add global auto-proceed safety net for re-delegated su…
agent_graph: LangGraph-style state-machine harness — checkpointing, H…
fix(agent-harness): repair tinyhumansai#4249 agent_graph regressions …
docs: add history section to context README documenting #4249 removals
docs(core): update READMEs for context and tool registry modules