ML-intern / agent /core /agent_loop.py

Commit History

  1. Read max context from litellm + compact at 90% (#54)⁠

    Aksel Joonas Reedi
    Unverified signature
    28b8f2b
  2. Fix parallel-research display: per-call stats in CLI and web UI (#49)⁠

    Aksel Joonas Reedi +1: lee101
    Unverified signature
    5ab7c4e
  3. Route HF inference through /v1 auto-router + add reasoning_effort knob⁠

    0a9e96d

  1. Fall back to user HF token for router when INFERENCE_TOKEN is unset (#39)⁠

    Aksel Joonas Reedi +1: Claude Opus 4.7 (1M context)
    Unverified signature
    182ddee

  1. Refactor approval handling and enhance markdown table styles

    4501765

  1. Improve agent loop, tools, and research subagent for long-running autonomous tasks⁠

    73882d9

  1. feat: add headless CLI mode with local filesystem tools and rich terminal rendering⁠

    577ec48
  2. feat: LLM-based pruning for complex tool outputs (hf_jobs)⁠

    akseljoonas +1: Claude Opus 4.6 (1M context)
    d4b1495
  3. Add deterministic pruning of old tool outputs before LLM compaction⁠

    akseljoonas +1: Claude Opus 4.6 (1M context)
    64437d0
  4. Add per-tool error limits and per-turn request cap

    544a574
  5. feat: add doom-loop detection for repeated tool call patterns⁠

    d3bb2d2

  1. feat: render cancelled tool state in UI after user interrupt⁠

    akseljoonas +1: Claude Opus 4.6
    887da19
  2. feat: kill sandbox processes and cancel HF jobs on user interrupt⁠

    akseljoonas +1: Claude Opus 4.6
    3c91fc8

  1. fix: auto-retry on truncated tool calls + correct activity status on refresh⁠

    akseljoonas +1: Claude Opus 4.6
    8e63f40
  2. fix: live event streaming after reconnection + LiteLLM timeout⁠

    akseljoonas +1: Claude Opus 4.6
    47d6895
  3. fix: clear pending_approval before tool execution starts⁠

    akseljoonas +1: Claude Opus 4.6
    c2a3f88

  1. refactor: simplify tool call validation and make interrupts cancel tool execution⁠

    akseljoonas +1: Claude Opus 4.6
    f03cbf4
  2. feat: CLI local mode, slash commands, interrupt support; remove lmnr; frontend fixes⁠

    akseljoonas +1: Claude Opus 4.6
    82b0c13

  1. fix: correct context_length init and emit tool_call events for malformed calls⁠

    288473a

  1. fix: handle interrupt during streaming tool calls without corrupting context⁠

    akseljoonas +1: Claude Opus 4.6
    4eb958e
  2. fix: recover malformed tool calls instead of crashing session⁠

    akseljoonas +1: Claude Opus 4.6
    c7899fc

  1. fix: properly close SDK message on error, show tool errorText

    b22c5f3
  2. fix: patch dangling tool calls on error, move undo to context manager

    a1ce5bc

  1. feat: resolve sandbox file paths and show tool description in status⁠

    ae24efc
  2. fix: route all HF token usage through session.hf_token from OAuth⁠

    33f29a8

  1. feat: implement cooperative agent cancellation with cancel button

    ecbfd3c

  1. feat: restore sandbox tools and proactive compaction

    a644598
  2. feat: merge HF Space improvements

    79b2fcc

  1. adding compaction

    369d828
  2. sandbox working and agent can use it

    786b8bc

  1. add create sandbox tool

    2464c2e

  1. log streaming

    Henri Bonamy
    b7bfe6f

  1. Add hf_repo_files and hf_repo_git tools⁠

    bea6687
  2. Fix: look for hardware_flavor at top level of tool_args, not nested

    ea8fe87
  3. Merge configurable-permissions: add confirm_cpu_jobs, auto_file_upload, keep yolo mode

    d8e979d

  1. fixing logs

    990ecba
  2. Add yolo mode for auto-approving tool calls

    f4655f7

  1. cleaned comments

    Yoan Di Cosmo
    f5e1da2
  2. Add auto_file_upload and confirm_cpu_jobs config settings

    Yoan Di Cosmo
    3fa386c

  1. subprocess uploading

    c60bea4
  2. session logging

    fa4ba99

  1. poc github tools

    ccbe2d2
  2. Merge branch 'main' into private-repo-tool⁠

    b70fed7
  3. made cli able to take in copy pasted things

    71477da

  1. Added tools to create repos, view them, upload files to them (private). added a clock tool.

    Henri Bonamy
    82baf19
  2. reworked job tool descriptions + implemented batch processing for hf_job tool calls in cli

    6e51e5b

  1. color for output, tool output truncation, plan printing

    Henri Bonamy
    258ab19

  1. adding a user approval step to jobs api + ruff formatting

    122b05c

  1. prompt update and loading from file

    5099f9d

  1. added compaction every x tokens

    Henri Bonamy
    8c943c2