Skip to content

feat: add code-agent skill and builtin tools#26

Merged
initializ-mk merged 4 commits intomainfrom
skills/code-agent
Mar 11, 2026
Merged

feat: add code-agent skill and builtin tools#26
initializ-mk merged 4 commits intomainfrom
skills/code-agent

Conversation

@initializ-mk
Copy link
Contributor

Summary

  • Code-agent skill: Full-featured embedded skill with file read/write/edit, bash execute, glob/grep search, directory tree, and file patch tools — enabling autonomous code generation and modification workflows
  • Builtin tool expansion: Added bash_execute, file_edit, file_patch, file_read, file_write, glob_search, grep_search, directory_tree, and truncate builtin tools with path traversal prevention via pathutil
  • GitHub skill scripts: Added shell scripts for clone, checkout, commit, push, create-pr, and status operations
  • Telegram reliability fix: Detached handler context from polling lifecycle to prevent context canceled crashes on long-running tasks; added interim "Working on it" message after 15s for user feedback
  • Runtime improvements: Updated config, memory compactor, guardrails, loop, and skill contract types

Test plan

  • cd forge-core && go test ./...
  • cd forge-cli && go test ./...
  • cd forge-plugins && go test ./...
  • cd forge-skills && go test ./...
  • Verify code-agent skill appears in forge skills list
  • Test Telegram long-running task shows interim message after ~15s
  • Verify Telegram handler survives polling context cancellation

…ancellation

- Add code-agent skill with file read/write/edit, bash execute, glob/grep search,
  directory tree, and file patch tools
- Add github skill shell scripts for clone, checkout, commit, PR, and issues
- Fix telegram handler context cancellation by detaching from polling lifecycle
- Add interim "Working on it" message for long-running telegram tasks (>15s)
- Extract shared telegram handler logic into handleEvent method
- Update runtime config, memory compactor, guardrails, and loop
- Update skill contract types and requirements derivation
- Update CLI init, TUI wizard, and runner
…ails features

- guardrails.go: remove stale duplicate loop, fix piiPatterns API for CheckOutbound
- types.go: keep both WorkflowPhase and Guardrails fields in ForgeSkillMeta and AggregatedRequirements
- requirements.go: aggregate both workflow_phase and guardrails from skill metadata
- guardrails_test.go: update TestCheckOutbound_PIIBlocked to verify redaction (not blocking)
… PII redaction

- init_test.go: provide GH_TOKEN in test EnvVars since github skill moved it to optional
- guardrails_test.go: align CheckOutbound test with redact-only behavior
Description and default summary referenced GPT 5.3 Codex / GPT 5.2
but the actual model list offers GPT 5.4, GPT 5 Mini, GPT 5 Nano.
@initializ-mk initializ-mk merged commit 8818416 into main Mar 11, 2026
9 checks passed
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.

1 participant