Skip to content

Add think and task_tracker tools - #148

Merged
xingyaoww merged 11 commits into
mainfrom
port-think-task-tracker
Sep 9, 2025
Merged

xingyaoww merged 11 commits into
mainfrom
port-think-task-tracker

Conversation

@ryanhoangt

@ryanhoangt ryanhoangt commented Sep 8, 2025 •

Copy link
Copy Markdown
Member

This PRs is to port the think and task_tracker tools to the Agent SDK.

  • One change compared to OH is now we don't persist the task list anymore, i.e. it might be loss when restarting the runtime.

Fix #54

@github-actions

github-actions Bot commented Sep 8, 2025 •

Copy link
Copy Markdown
Contributor

Coverage

Coverage Report
FileStmtsMissCoverMissing
openhands
   __init__.py10100% 
openhands/sdk
   __init__.py14285%22–23
   logger.py732171%33, 57, 64–67, 69–71, 124, 130–132, 135–136, 142–144, 151, 156–157
openhands/sdk/agent
   __init__.py30100% 
   base.py46491%36, 47, 83, 103
openhands/sdk/agent/agent
   __init__.py20100% 
   agent.py1272877%73–75, 128–129, 131–133, 135–137, 171, 185, 208, 238, 271–273, 277–279, 286–287, 291, 295–296, 325, 332
openhands/sdk/context
   __init__.py40100% 
   agent_context.py57296%146, 152
   manager.py330%1, 4–5
   view.py47687%46–50, 52
openhands/sdk/context/condenser
   __init__.py30100% 
   condenser.py17382%68–69, 73
   no_op_condenser.py60100% 
openhands/sdk/context/microagents
   __init__.py40100% 
   exceptions.py50100% 
   microagent.py1432582%129, 132–135, 217–220, 228, 250–251, 256–257, 259, 263, 270–272, 280–282, 336, 338–339
   types.py300100% 
openhands/sdk/context/utils
   __init__.py20100% 
   prompt.py30583%12, 15, 24, 44–45
openhands/sdk/conversation
   __init__.py50100% 
   conversation.py86890%75, 83, 91–93, 97–98, 154
   state.py30293%49–50
   types.py30100% 
   visualizer.py1512881%46, 71, 84, 110, 112, 114, 117, 136, 148–150, 175–177, 180–181, 183, 206, 236, 240, 247, 250, 253–254, 277, 279–280, 282
openhands/sdk/event
   __init__.py50100% 
   base.py672070%38, 42, 62, 66–68, 70–75, 77–78, 80–82, 84–85, 87
   condenser.py25580%29, 33–35, 49
   llm_convertible.py1041486%28–29, 34–35, 183–184, 189, 197, 228–229, 234, 259–260, 265
   types.py30100% 
   user_action.py6183%12
   utils.py110100% 
openhands/sdk/llm
   __init__.py60100% 
   exceptions.py360100% 
   llm.py41814166%269, 274, 287–289, 293–294, 326, 365, 369, 382, 388–389, 406–407, 477, 490–491, 496–497, 499–500, 503–505, 510–512, 516–518, 535–536, 539–541, 544–545, 553–554, 559, 562, 564–565, 570–572, 575, 577–581, 583–584, 594–597, 602–607, 611–612, 621–623, 626–627, 651, 657–658, 704, 753, 759, 762, 771–772, 781, 788, 791, 795–797, 801, 803–808, 810–827, 830–834, 836–837, 843–852, 856–867
   llm_registry.py380100% 
   message.py102298%214–215
   metadata.py150100% 
openhands/sdk/llm/utils
   fn_call_converter.py34311267%74, 343, 345, 348–349, 367, 369, 375, 381, 383, 422, 424, 426, 428, 433–434, 481–482, 518–520, 522, 524, 545–547, 553, 575, 601–602, 610–613, 615, 617, 639, 648, 656, 701–704, 708–711, 723, 727, 738, 748, 794, 796–798, 800, 803, 819–821, 823–826, 829, 833, 844–845, 859, 866–867, 870–871, 875–876, 882–883, 886, 905–908, 912–913, 918–919, 924, 973–974, 980, 994, 1006, 1008–1009, 1012–1014, 1016–1017, 1023–1025, 1027–1028, 1030, 1032, 1036, 1038, 1043, 1045–1046, 1049
   metrics.py111298%17, 117
   model_features.py400100% 
   telemetry.py1361588%71, 94, 99–100, 112–113, 120, 134, 199, 216, 222, 229, 232, 234, 241
openhands/sdk/mcp
   __init__.py50100% 
   client.py631182%41, 56–57, 78, 82, 94–95, 105–106, 112–113
   definition.py27196%54
   tool.py431369%39–42, 46, 49, 52–55, 98–99, 104
   utils.py30486%23–24, 27, 30
openhands/sdk/tool
   __init__.py40100% 
   schema.py1001090%23–25, 27, 36, 204–207, 227
   security_prompt.py30100% 
   tool.py56983%45, 106, 109–115
openhands/sdk/tool/builtins
   __init__.py40100% 
   finish.py150100% 
   think.py15286%28, 45
openhands/sdk/utils
   __init__.py20100% 
   discriminated_union.py56591%156, 195, 200, 207, 210
   json.py28280%1–3, 5, 7–8, 11, 14–21, 25, 28, 30–31, 34, 37–38, 40, 43, 45–48
   truncate.py100100% 
openhands/tools
   __init__.py9277%49–50
openhands/tools/execute_bash
   __init__.py40100% 
   constants.py90100% 
   definition.py410100% 
   impl.py100100% 
   metadata.py50394%95–96, 100
openhands/tools/execute_bash/terminal
   __init__.py60100% 
   factory.py491177%24–25, 30, 32, 35, 37–38, 44–46, 97
   interface.py661478%43, 52, 62, 71, 76, 85, 94, 99, 104, 145, 157, 162, 171, 180
   subprocess_terminal.py2365975%68, 98–99, 125, 131, 138, 145–146, 156–157, 163–164, 178, 180, 184–186, 192, 208, 217–221, 256–258, 263, 275, 289, 313, 315, 324, 345, 361, 366, 372–374, 382–383, 387–388, 390–396, 400–401, 404–405, 407–408, 410–412
   terminal_session.py178895%92, 96–98, 235, 281, 297, 317
   tmux_terminal.py752270%35, 41, 85, 98, 109, 123, 135–142, 150–151, 153–154, 156, 158–160
openhands/tools/execute_bash/utils
   command.py81495%48, 64–66
openhands/tools/str_replace_editor
   __init__.py30100% 
   definition.py33196%78
   editor.py2281892%102, 113, 115, 124, 126, 131, 263, 301, 337, 347, 397–398, 522, 635, 642–643, 657, 662
   exceptions.py220100% 
   impl.py26292%31–32
openhands/tools/str_replace_editor/utils
   __init__.py00100% 
   config.py20100% 
   constants.py50100% 
   encoding.py54198%81
   file_cache.py95990%44–46, 49–50, 54, 59, 151, 154
   history.py66198%79
   shell.py230100% 
openhands/tools/task_tracker
   __init__.py20100% 
   definition.py825137%57, 70–71, 74–75, 79, 81, 83–85, 91, 93–94, 99–100, 104, 113–114, 116–118, 122–123, 125–128, 130, 134–135, 137–139, 141–145, 149, 153–154, 156–157, 159, 161–165, 326, 329
openhands/tools/utils
   __init__.py00100% 
TOTAL427473882% 

@xingyaoww xingyaoww left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just two comments

Comment thread openhands/tools/think/__init__.py Resolved
@ryanhoangt
ryanhoangt requested a review from xingyaoww September 9, 2025 07:05
@xingyaoww
xingyaoww enabled auto-merge (squash) September 9, 2025 14:05
@xingyaoww
xingyaoww disabled auto-merge September 9, 2025 14:05
@xingyaoww
xingyaoww enabled auto-merge (squash) September 9, 2025 14:05
@xingyaoww
xingyaoww disabled auto-merge September 9, 2025 14:06
@xingyaoww
xingyaoww enabled auto-merge (squash) September 9, 2025 14:09
@xingyaoww xingyaoww mentioned this pull request Sep 9, 2025
@xingyaoww
xingyaoww merged commit a5e4997 into main Sep 9, 2025
@xingyaoww
xingyaoww deleted the port-think-task-tracker branch September 9, 2025 14:12
StressTestor pushed a commit to StressTestor/software-agent-sdk that referenced this pull request Jun 1, 2026
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate remaining tools from OpenHands

2 participants