Repository navigation
feat(openbitfun): add OpenBitFun target - #3973
Merged
Merged
Conversation
OpenBitFun (formerly BitFun) reads its own .openbitfun/ project tree and an OS-dependent user tree. The new `openbitfun` target writes, in project and global scope: - skills: .openbitfun/skills/<name>/SKILL.md (Agent Skills layout); global in OpenBitFun's user skills dir (~/.local/share/openbitfun/skills on Linux, ~/Library/Application Support/openbitfun/skills on macOS, %APPDATA%\openbitfun\skills on Windows), per path_manager.rs. - subagents: .openbitfun/agents/*.md custom agents with kind: subagent and the `openbitfun` frontmatter block (tools, model, readonly, review, ...) spread on top; global under <user root>/agents. - hooks: Codex-shaped .openbitfun/config/hooks.json; global under <user root>/config/hooks.json. Generated by the Codex hooks translation, now factored into shared helpers, limited to the events OpenBitFun dispatches and to command handlers. Project hooks only run when app.hooks.project_hooks_enabled is on (documented). Global paths are picked from process.platform, like the Warp CLI config dir. Rules (already read from AGENTS.md / CLAUDE.md / .claude/rules), permissions, MCP, commands and ignore are out of scope. Closes #3956 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
# Conflicts: # docs/reference/file-formats.md # src/generated/docs-content.ts
…ler rules - Translate `Bash` in hook matchers to OpenBitFun's `ExecCommand` tool (and back on import), and warn on preToolUse / permissionRequest matchers naming tools OpenBitFun has no built-in for, since such a guard would never fire. - Drop handlers whose timeout OpenBitFun's parse_handler rejects (not a positive integer) with an OpenBitFun-specific reason, and restore the Codex CLI rejection text unchanged. - Warn when a non-default $XDG_CONFIG_HOME / $XDG_DATA_HOME moves OpenBitFun's Linux user tree away from where rulesync writes it. - Document the ExecCommand / tool_input.cmd difference and list OpenBitFun among the preserveUnownedHooks targets. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
This was referenced Nov 25, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an
openbitfuntarget for OpenBitFun covering skills, subagents and hooks, each in project and global scope. Paths and formats were checked against upstreampath_manager.rs,custom_agent.rs, the skills docs anddocs/features/agent-hooks.md.What changed
--global).openbitfun/skills/<name>/SKILL.md~/.local/share/openbitfun/skills(Linux),~/Library/Application Support/openbitfun/skills(macOS),%APPDATA%\openbitfun\skills(Windows).openbitfun/agents/*.md<user root>/agents.openbitfun/config/hooks.json<user root>/config/hooks.json<user root>is~/.config/openbitfun(Linux),~/Library/Application Support/openbitfun(macOS),%APPDATA%\openbitfun(Windows).AgentsSkillsSkill, the same wayqoder/traedo.name,description(empty string if missing, since OpenBitFun requires it) andkind: subagent, then spread theopenbitfun:frontmatter block on top (kind,tools,model,readonly,review,id,user_context_policy, ...). On import, native fields go back intoopenbitfun:and the defaultkind: subagentis dropped.hooks.jsongeneration and import code is now in two shared helpers incodexcli-hooks.ts(buildCodexStyleHooksFileandcodexStyleHooksToRulesyncContent). Codex CLI output is unchanged. OpenBitFun's converter config is Codex's with these changes:Interrupt,PreModelRequest,PostModelRequest).commandhandlers.async/additionalContextLimit: OpenBitFun'sparse_handlerreads onlycommand,commandWindows,timeoutandstatusMessage. A handler with atimeoutthat is not a positive integer is dropped with a warning, because OpenBitFun skips it as invalid.Bashin matchers to OpenBitFun'sExecCommand(and back on import). ApreToolUse/permissionRequestmatcher that names a tool OpenBitFun lacks gets a warning. The docs note that the shell command istool_input.cmd.openbitfun.hooksoverride block.app.hooks.project_hooks_enabledis on.process.platforminsrc/constants/openbitfun-paths.ts, the same approach as Warp'swarpcliConfigDir().$XDG_CONFIG_HOME/$XDG_DATA_HOME/OPENBITFUN_USER_ROOTare not followed, because global output is written relative to the home dir. Rulesync warns once when a non-default XDG value on Linux would move OpenBitFun's user tree.file-formats.mdnotes, the generated tables and docs content,.gitignoreand cspell.Deviation from the requested scope
~/.local/share/openbitfun/skills, not~/.config/openbitfun/skills. Upstreamuser_skills_dir()usesdirs::data_local_dir()on Linux (and the registry loads user skills from there), so this follows the source.Not in scope
Rules (OpenBitFun already reads
AGENTS.md/CLAUDE.md/.claude/rules), permissions (tool_permissions.json), MCP (app config store), commands, ignore.Closes #3956
🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4