Commit Graph

41 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 840e5fc5af Add comprehensive tests for CommandGraph and build_command_graph
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com>
2026-04-05 16:00:05 +00:00
copilot-swe-agent[bot] b4269ecd88 Add comprehensive tests for ToolPool and assemble_tool_pool
Tests cover:
- assemble_tool_pool returns ToolPool with correct types
- Default mode produces non-empty tools
- simple_mode and include_mcp flags stored correctly
- simple_mode reduces tool set to BashTool/FileReadTool/FileEditTool
- include_mcp=False excludes MCP tools
- Permission context filters blocked tools
- as_markdown includes header, flags, and tool count
- as_markdown shows at most 15 tools
- Empty tools tuple renders correctly
- Tool lines contain name and source_hint
- Frozen dataclass prevents mutation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com>
2026-04-05 15:56:57 +00:00
copilot-swe-agent[bot] be6dc4cc19 Add comprehensive tests for ToolPermissionContext
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com>
2026-04-05 15:54:32 +00:00
copilot-swe-agent[bot] e646410abb Add comprehensive tests for CostTracker class
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com>
2026-04-05 15:53:05 +00:00
Abdelrahman Abdallah 444b430c85 Merge pull request #12 from HarnessLab/copilot/update-pull-request-guidelines
Harden agent_tools.py: fix path traversal, SSRF, env leakage, and runtime safety issues
2026-04-05 13:13:30 +02:00
copilot-swe-agent[bot] 94cf05abf9 improve env variable filtering with keyword-based matching
Use keyword-based matching (SECRET, TOKEN, PASSWORD, etc.) instead of
prefix-based matching for more comprehensive sensitive env var filtering.

Agent-Logs-Url: https://github.com/HarnessLab/claw-code-agent/sessions/94dfb41f-57dd-48ea-ab0d-d2f2249ef950

Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com>
2026-04-05 11:04:41 +00:00
copilot-swe-agent[bot] 93de5ca4f8 fix: address security vulnerabilities and code quality weaknesses
- Fix path traversal in _glob_search by validating resolved paths stay within workspace root
- Fix ReDoS vulnerability in _grep_search by adding regex compilation error handling
- Replace 6 assert statements with explicit validation (assertions are disabled with -O flag)
- Replace bare except Exception with specific exception types (OSError, KeyError, ValueError)
- Block file:// scheme in web_fetch to prevent SSRF attacks
- Filter sensitive environment variables from subprocess execution
- Update test to verify file:// scheme rejection

Agent-Logs-Url: https://github.com/HarnessLab/claw-code-agent/sessions/94dfb41f-57dd-48ea-ab0d-d2f2249ef950

Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com>
2026-04-05 11:03:09 +00:00
Abdelrahman Abdallah 287334e5ca Merge pull request #11 from HarnessLab/feature/readme-update-april-2026
update readme with the new features
2026-04-05 03:48:29 +02:00
Abdelrahman Abdallah e0b7d0ec38 add mcp and online search 2026-04-05 03:47:49 +02:00
Abdelrahman Abdallah 6dc0c50c1f Merge pull request #10 from HarnessLab/feature/readme-update-april-2026
add mcp and online search
2026-04-05 02:36:19 +02:00
Abdelrahman Abdallah 783145fe6a add mcp and online search 2026-04-05 02:35:49 +02:00
Abdelrahman Abdallah 851733fb4d Merge pull request #9 from HarnessLab/feature/readme-update-april-2026
add claw-code-agent/src/plan_runtime.py and claw-code-agent/src/backg…
2026-04-03 18:32:02 +02:00
Abdelrahman Abdallah 3f31cee395 add claw-code-agent/src/plan_runtime.py and claw-code-agent/src/background_runtime.py. The agent now has a real
persistent plan runtime with update_plan, plan_get, and plan_clear, plus plan-to-task sync wired through claw-code-agent/src/
  agent_tools.py, claw-code-agent/src/agent_runtime.py, claw-code-agent/src/agent_context.py, claw-code-agent/src/agent_prompting.py, and claw-code-agent/src/
  agent_slash_commands.py. New local plan slash commands are /plan and /planner.
2026-04-03 18:31:25 +02:00
Abdelrahman Abdallah 1dad90656b Merge pull request #8 from HarnessLab/feature/readme-update-april-2026
update README with April 2026 major release announcements
2026-04-03 17:14:33 +02:00
Abdelrahman Abdallah 045413e5e1 update README with April 2026 major release announcements
Add What's New section with 16 new features, expanded key features table,
plugin system and nested delegation sections, budget/limit/context/structured
output CLI flag tables, zero-dependencies badge, and links to TESTING_GUIDE.md
and PARITY_CHECKLIST.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 17:13:53 +02:00
Abdelrahman Abdallah dbdac00882 Merge pull request #7 from HarnessLab/dev
add test guide cases
2026-04-03 16:51:06 +02:00
Abdelrahman Abdallah 4de3da10e4 add test guide cases 2026-04-03 16:50:19 +02:00
Unknown 0d960768cc Merge pull request #5 from aherzinger/docs/openrouter-setup
added OpenRouter setup guide to README
2026-04-03 12:35:25 +02:00
Andreas Herzinger 8db29f7d91 added OpenRouter setup guide to README 2026-04-03 09:27:29 +02:00
Unknown 3a06266000 Merge pull request #4 from HarnessLab/dev
add File-history snapshot ids and replay summaries for file edits
2026-04-02 22:19:59 +02:00
Abdelrahman Abdallah 5ad10c660c add File-history snapshot ids and replay summaries for file edits 2026-04-02 22:19:32 +02:00
Unknown 4aae29ae8f Merge pull request #3 from HarnessLab/dev
Add new agent core components
2026-04-02 22:10:15 +02:00
Abdelrahman Abdallah 9d90d6a10a add ىثص ؤخقث شلثىف قعىفهةث 2026-04-02 22:08:24 +02:00
Unknown 0128a298ef Merge pull request #2 from HarnessLab/dev
add new agent components
2026-04-02 21:13:26 +02:00
Abdelrahman Abdallah 2c6763eb08 add new agent components 2026-04-02 21:12:48 +02:00
Abdelrahman Abdallah 12eef3fe47 Merge pull request #1 from HarnessLab/readme
edit readme and create checklist
2026-04-02 10:52:46 +02:00
Abdelrahman Abdallah bf808572d3 edit 2026-04-02 10:51:51 +02:00
Abdelrahman Abdallah 46778c1b5f add missing parts 2026-04-02 10:19:07 +02:00
Abdelrahman Abdallah eaf2ff63d6 add missing parts 2026-04-02 10:17:24 +02:00
Abdelrahman Abdallah b12fb428d7 demo 2026-04-02 00:12:22 +02:00
Abdelrahman Abdallah 607aad288e demo 2026-04-02 00:09:11 +02:00
Abdelrahman Abdallah ca6112a820 demo 2026-04-02 00:07:53 +02:00
Abdelrahman Abdallah 17845a6dc4 demo 2026-04-02 00:01:53 +02:00
Abdelrahman Abdallah db2acc26ec edit 2026-04-01 23:07:46 +02:00
Abdelrahman Abdallah f3793935bb update readme to include ollama 2026-04-01 22:45:37 +02:00
Abdelrahman Abdallah 0bbe81da2a update readme 2026-04-01 22:29:37 +02:00
Abdelrahman Abdallah 1d808453c5 update readme 2026-04-01 22:17:21 +02:00
Abdelrahman Abdallah 49ab1bd7be add toml 2026-04-01 21:59:55 +02:00
Abdelrahman Abdallah 9c057bbba9 add toml 2026-04-01 21:59:20 +02:00
Abdelrahman Abdallah ead2086feb add toml 2026-04-01 21:58:34 +02:00
Abdelrahman Abdallah 27aff5611b first commit 2026-04-01 21:51:49 +02:00