Commit Graph

46 Commits

Author SHA1 Message Date
Dax b2aee46183 core: refactor tool system to remove agent context from initialization (#21052) 2026-04-07 19:48:12 -04:00
opencode-agent[bot] a62a96603e chore: generate 2026-03-30 21:49:45 +00:00
Kit Langton 54a250fb38 refactor: replace Filesystem util with AppFileSystem service (#20127) 2026-03-30 21:48:28 +00:00
Kit Langton c6af9f1c8d effectify Skill service internals (#19364) 2026-03-27 10:15:51 -04:00
Kit Langton 86fc2389ce skill: use Effect.cached for load deduplication (#19165) 2026-03-26 00:55:43 +00:00
Kit Langton 9ccef679d7 effectify Bus service: migrate to Effect PubSub + InstanceState (#18579) 2026-03-25 20:19:24 -04:00
opencode-agent[bot] fd9a27ae04 chore: generate 2026-03-21 04:52:23 +00:00
Kit Langton b6aa472839 Move service state into InstanceState, flatten service facades (#18483) 2026-03-21 04:51:35 +00:00
Kit Langton 42a5ceb048 fix: apply Layer.fresh at instance service definition site (#18418) 2026-03-20 14:37:12 -04:00
jorge g 8fa53ae5a5 fix: stabilize agent and skill ordering in prompt descriptions (#18261)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-03-19 15:04:03 -05:00
Kit Langton c325ac5b5b feat(filesystem): add AppFileSystem service, migrate Snapshot (#18138) 2026-03-18 19:52:43 -04:00
Kit Langton 05f98c0e42 refactor(effect): unify service namespaces and align naming (#18093) 2026-03-18 13:34:36 -04:00
Kit Langton 2a6909cd07 refactor(truncation): effectify TruncateService, delete Scheduler (#17957) 2026-03-17 21:59:54 -04:00
Kit Langton cbb2e9b0f4 refactor(skill): effectify SkillService as scoped service (#17849) 2026-03-16 23:51:07 +00:00
Aiden Cline 88a6d5445c tweak: adjust skill presentation to be a little less token heavy (#17098) 2026-03-11 16:03:15 -05:00
Aiden Cline 250925fca8 tweak: adjust way skills are presented to agent to increase likelyhood of skill invocations. (#17053) 2026-03-11 10:24:55 -05:00
Dax f03cb504c4 refactor: migrate from Bun.Glob to npm glob package (#14317) 2026-02-19 13:40:09 -05:00
Dax Raad 350a377fca Revert "refactor: migrate from Bun.Glob to npm glob package"
This reverts commit 25917459f0.
2026-02-19 12:48:43 -05:00
Dax Raad 25917459f0 refactor: migrate from Bun.Glob to npm glob package
Replace Bun.Glob usage with a new Glob utility wrapper around the npm 'glob' package.
This moves us off Bun-specific APIs toward standard Node.js compatible solutions.

Changes:
- Add new src/util/glob.ts utility module with scan(), scanSync(), and match()
- Default include option is 'file' (only returns files, not directories)
- Add symlink option (default: false) to control symlink following
- Migrate all 12 files using Bun.Glob to use the new Glob utility
- Add comprehensive tests for the glob utility

Breaking changes:
- Removed support for include: 'dir' option (use include: 'all' and filter manually)
- symlink now defaults to false (was true in most Bun.Glob usages)

Files migrated:
- src/util/log.ts
- src/util/filesystem.ts
- src/tool/truncation.ts
- src/session/instruction.ts
- src/storage/json-migration.ts
- src/storage/storage.ts
- src/project/project.ts
- src/cli/cmd/tui/context/theme.tsx
- src/config/config.ts
- src/tool/registry.ts
- src/skill/skill.ts
- src/file/ignore.ts
2026-02-19 12:34:18 -05:00
Dax 019134be58 Remove use of Bun.file (#14215) 2026-02-19 11:32:32 -05:00
Dax Raad 1567fa548c Revert: all refactor commits migrating from Bun.file() to Filesystem module 2026-02-18 19:41:14 -05:00
Dax f28d2c5fe8 refactor: migrate src/skill/discovery.ts from Bun.file()/Bun.write() to Filesystem module (#14133) 2026-02-18 23:10:24 +00:00
Dax Raad ab49fa8c9c tui: parallelize skill downloads for faster loading
Refactored skill discovery to download skills in parallel instead of sequentially,

reducing load times when multiple skills need to be fetched from remote URLs.

Also updated AGENTS.md with guidance on using dev branch for diffs.
2026-02-06 00:36:11 -05:00
Dax Raad 3ae16bccba feat(skill): add skill discovery from URLs via well-known RFC
Implement the Agent Skills Discovery RFC to allow fetching skills from URLs:
- Add 'urls' field to config.skills for specifying skill registry URLs
- Create Discovery namespace in skill/discovery.ts with pull() function
- Download skills from /.well-known/skills/index.json endpoints
- Cache downloaded skills to ~/.cache/opencode/skills/
- Skip re-downloading existing files for efficiency

Users can now configure:
{
  "skills": {
    "urls": ["https://example.com/.well-known/skills/"]
  }
}

Implements: https://github.com/cloudflare/agent-skills-discovery-rfc
2026-02-06 00:36:11 -05:00
Aiden Cline 8abe272175 chore: adjust way skill dirs are whitelisted (#12026) 2026-02-03 16:33:36 -06:00
Dax 1b4e946537 feat: add support for reading skills from .agents/skills directories (#11842)
Co-authored-by: Filip <34747899+neriousy@users.noreply.github.com>
2026-02-03 15:51:54 -05:00
Aiden Cline 119522129d feat: improve skills, better prompting, fix permission asks after invoking skills, ensure agent knows where scripts/resources are (#11737) 2026-02-03 09:58:31 -06:00
Dax 473f1d020e feat: make skills invokable as slash commands in the TUI (#11390) 2026-01-31 00:41:55 -05:00
Dax Raad f6d9bbe779 Revert "feat: make skills invokable as slash commands in the TUI"
This reverts commit c8418faea0.
2026-01-30 20:37:41 -05:00
Dax Raad c8418faea0 feat: make skills invokable as slash commands in the TUI
- Add Skill.content() method to load skill template content from SKILL.md files
- Modify Command.list() to include skills as invokable commands
- Add 'skill' boolean property to Command.Info schema
- Update autocomplete to show skills with (Skill) label in slash commands
- Regenerate SDK to include skill property in Command type
2026-01-30 20:36:48 -05:00
Spoon 4adb37da41 feat: support config skill registration (#9640)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-01-29 11:47:06 -06:00
Aiden Cline 4a997ca3c0 tweak: adjust skill tool description to make it more clear which skills are available 2026-01-21 11:08:28 -06:00
Aiden Cline 6b56f46281 fix: ensure frontmatter can process same content as other agents (#8719) 2026-01-15 13:06:14 -06:00
Maciek Szczesniak 0540c3b155 fix: show toast error message on ConfigMarkdown parse error (#8049)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-01-15 11:53:06 -06:00
Aiden Cline c49885fe5c chore: upgrade bun from 1.3.5 -> 1.3.6, also update types/bun from 1.3.4 -> 1.3.6 and fix type errs (#8499)
Co-authored-by: Github Action <action@github.com>
2026-01-14 11:53:12 -06:00
freespace8 b60ce3a977 feat(flags): allow disabling .claude prompt and skills loading (#7205) 2026-01-08 00:10:25 -06:00
Aiden Cline c9b4b4ef92 fix: handle skill scan failures for .claude gracefully 2026-01-04 21:39:45 -06:00
Aiden Cline 0b6aa7bfb9 tweak: read plurals too and stop erroring on them 2025-12-30 18:58:31 -06:00
Aiden Cline 8ed7323176 tweak: read global claude skills too (#6420) 2025-12-29 23:48:58 -06:00
Aiden Cline bae4c110f2 Revert "feat: read global ~/.claude/skills"
This reverts commit b0d0e55056.
2025-12-29 17:20:04 -06:00
Aiden Cline b0d0e55056 feat: read global ~/.claude/skills 2025-12-29 17:11:28 -06:00
Connor Adams a680e39f35 feat: add support for .claude/skills directory (#6252) 2025-12-28 22:39:10 -06:00
Mohammad Alhashemi 823f122214 feat(skill): add per-agent filtering to skill tool description (#6000) 2025-12-22 20:14:33 -05:00
Mohammad Alhashemi 43b1501f5a feat: add native skill tool with permission system (#5930)
Co-authored-by: Dax Raad <d@ironbay.co>
2025-12-22 18:24:06 -05:00
Aiden Cline 143ff2b43a fix: disable claude skill loading for now 2025-12-22 15:40:08 -06:00
Dax fbd1576c46 feat: add Agent Skills support (#5921) 2025-12-21 19:44:56 -05:00