文件历史

提交图

7 次代码提交

作者 SHA1 备注 提交日期
tjb-tech 0c84d85630 fix(bash): surface clearer install workflow guidance 2026-04-14 08:59:09 +00:00
tjb-tech 9f97283320 fix(bash): surface partial output for interactive timeouts 2026-04-13 05:34:05 +00:00
José Maia 874de8864d Add built-in sensitive path protection to PermissionChecker
File tools (read_file, write_file, edit_file, notebook_edit) resolve
user-supplied paths via Path.expanduser().resolve() but the permission
layer has no default deny rules for high-value credential files.  In
FULL_AUTO mode — or when no path_rules are configured — the LLM can be
directed (including via prompt injection) to read ~/.ssh/id_rsa,
~/.aws/credentials, ~/.kube/config, and similar targets.

This commit adds a SENSITIVE_PATH_PATTERNS tuple to the permission
checker that is always evaluated before any other permission logic,
including the FULL_AUTO allow-all rule and the explicit allowed_tools
list.  The patterns cover SSH keys, AWS/GCP/Azure credentials, GPG
keyrings, Docker/Kubernetes configs, and OpenHarness's own credential
stores.

Tests verify that:
- Sensitive paths are blocked in all three permission modes
- Write operations are also blocked, not just reads
- allowed_tools cannot bypass the protection
- Normal project files are unaffected
- Every pattern in the tuple actually matches a concrete path
2026-04-06 11:32:40 +01:00
copilot-swe-agent[bot] f52a2b8c16 test: add whitespace-only and whitespace-stripped pattern test cases
Agent-Logs-Url: https://github.com/yohaann196/OpenHarness/sessions/f499fcce-2dbf-4014-af3a-7c6740380b2c

Co-authored-by: yohaann196 <229655281+yohaann196@users.noreply.github.com>
2026-04-05 02:56:35 +00:00
copilot-swe-agent[bot] 64f0d0bc15 test: move logging import to top of test file (PEP 8)
Agent-Logs-Url: https://github.com/yohaann196/OpenHarness/sessions/595d9ce6-bb66-4413-99bf-9178f796e9d8

Co-authored-by: yohaann196 <229655281+yohaann196@users.noreply.github.com>
2026-04-05 02:47:36 +00:00
copilot-swe-agent[bot] bdeff11749 test: add path_rules parsing tests with caplog for invalid/valid patterns
Agent-Logs-Url: https://github.com/yohaann196/OpenHarness/sessions/595d9ce6-bb66-4413-99bf-9178f796e9d8

Co-authored-by: yohaann196 <229655281+yohaann196@users.noreply.github.com>
2026-04-05 02:46:30 +00:00
tjb-tech 5dd8b952ec Initial release: oh — OpenHarness: Open Agent Harness v0.1.0
A lightweight open-source Python implementation of the Agent Harness architecture.
44x lighter than Claude Code (11K vs 512K lines), 98% core tool coverage.

- 43 tools with Pydantic validation and parallel execution
- Skills system compatible with anthropics/skills (17+ tested)
- Plugin system compatible with claude-code/plugins (12+ tested)
- API retry with exponential backoff
- Multi-level permissions with path rules
- React/Ink TUI with "Oh my Harness!" branding
- 114 unit tests + 6 E2E test suites
- MIT License
2026-04-01 16:32:25 +00:00