Lightweight Python agent framework — tool-calling loop, permissions, sub-agents, streaming
yakAgent provides two well-structured tools with complete input schemas and clear descriptions. Both tools follow verb_noun naming (glob, apply_patch) and include parameter descriptions. However, output schemas are not formally documented, error handling lacks recovery guidance, and parameter constraints could be more explicit. The glob tool caps results at 500 with truncation notice (good), but apply_patch lacks dry-run/confirmation patterns for a destructive operation. No tool annotations (readOnlyHint/destructiveHint) present despite clear risk profiles.
Apply a patch to create, update, or delete files. Uses a lightweight format: *** Begin Patch *** Add File: path +new line *** Update File: path @@ context line -old line +new line *** Delete File: path *** End Patch More token-efficient than individual edit calls for multi-file changes.
Find files matching a glob pattern. Supports patterns like '**/*.py', 'src/**/*.ts'. Returns matching file paths sorted by modification time.
apply_patch lacks confirmation/dry-run pattern for destructive multi-file operations. No way to preview changes before committing. Agents can accidentally delete or corrupt files without review.
Output schemas not formally documented. glob returns unstructured text output; apply_patch returns summaries without structured field definitions. LLMs cannot reliably extract or chain results.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). glob is read-only; apply_patch is destructive, these should be declared in the tool definition for agent safety.
Error messages lack recovery guidance. 'Directory not found' and 'Invalid glob pattern' do not suggest next steps. Per pattern:recovery-guide, errors should guide the agent toward resolution.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 60 | 2026-07-28+ | v2 |
apply_patch parameter 'patch_text' lacks format constraints. Description shows format but no regex pattern or length limits. LLMs may generate malformed patches without explicit validation rules.