@unity-china/codely-cli 1.0.0-rc.6 → 1.0.0-rc.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +34 -0
  2. package/bundle/builtin/codely-guide/SKILL.md +77 -0
  3. package/bundle/builtin/codely-guide/references/app.md +125 -0
  4. package/bundle/builtin/skill-creator/scripts/package_skill.cjs +1 -3
  5. package/bundle/builtin/tuanjie-cli/SKILL.md +145 -0
  6. package/bundle/builtin/tuanjie-cli/references/commands.md +138 -0
  7. package/bundle/builtin-agents/explore.toml +62 -0
  8. package/bundle/builtin-agents/general-purpose.toml +34 -0
  9. package/bundle/builtin-agents/plan.toml +69 -0
  10. package/bundle/builtin-agents/unity-insight.toml +102 -0
  11. package/bundle/example-prompts/analyze.toml +3 -3
  12. package/bundle/gemini.js +3752 -6224
  13. package/bundle/gemini.js.LEGAL.txt +352 -105
  14. package/bundle/gemini.nologgers.js.LEGAL.txt +607 -0
  15. package/bundle/gemini.nosentry.js.LEGAL.txt +607 -0
  16. package/bundle/loop-detection-policies/default.toml +112 -0
  17. package/bundle/node_modules/@silvia-odwyer/photon-node/LICENSE.md +201 -0
  18. package/bundle/node_modules/@silvia-odwyer/photon-node/README.md +158 -0
  19. package/bundle/node_modules/@silvia-odwyer/photon-node/package.json +23 -0
  20. package/bundle/node_modules/@silvia-odwyer/photon-node/photon_rs.d.ts +3226 -0
  21. package/bundle/node_modules/@silvia-odwyer/photon-node/photon_rs.js +4521 -0
  22. package/bundle/node_modules/@silvia-odwyer/photon-node/photon_rs_bg.js +4270 -0
  23. package/bundle/node_modules/@silvia-odwyer/photon-node/photon_rs_bg.wasm +0 -0
  24. package/bundle/node_modules/tree-sitter-bash/package.json +60 -0
  25. package/bundle/node_modules/tree-sitter-bash/tree-sitter-bash.wasm +0 -0
  26. package/bundle/node_modules/web-tree-sitter/package.json +98 -0
  27. package/bundle/node_modules/web-tree-sitter/tree-sitter.wasm +0 -0
  28. package/bundle/policies/plan.toml +30 -29
  29. package/bundle/policies/read-only.toml +0 -10
  30. package/bundle/policies/write.toml +0 -5
  31. package/bundle/sandbox-macos-permissive-closed.sb +1 -1
  32. package/bundle/sandbox-macos-permissive-open.sb +1 -1
  33. package/bundle/sandbox-macos-permissive-proxied.sb +2 -2
  34. package/bundle/sandbox-macos-restrictive-closed.sb +1 -1
  35. package/bundle/sandbox-macos-restrictive-open.sb +1 -1
  36. package/bundle/sandbox-macos-restrictive-proxied.sb +2 -2
  37. package/bundle/web-ui/dist/public/app.css +63 -0
  38. package/bundle/web-ui/dist/public/app.js +48 -48
  39. package/package.json +12 -11
  40. package/bundle/tiktoken_bg.wasm +0 -0
package/README.md CHANGED
@@ -327,6 +327,40 @@ If you encounter issues, please check the error messages and ensure:
327
327
  - All dependencies are properly installed
328
328
  - API keys are correctly configured in settings
329
329
 
330
+ ### Crash Logs
331
+
332
+ When Codely CLI exits unexpectedly, it writes a best-effort crash report to:
333
+
334
+ ```text
335
+ ~/.codely-cli/crash-logs/crash-YYYYMMDD-HHmmss-<pid>.log
336
+ ```
337
+
338
+ On Windows, this usually expands to:
339
+
340
+ ```text
341
+ %USERPROFILE%\.codely-cli\crash-logs\crash-YYYYMMDD-HHmmss-<pid>.log
342
+ ```
343
+
344
+ To inspect the newest crash log in PowerShell:
345
+
346
+ ```powershell
347
+ Get-ChildItem "$env:USERPROFILE\.codely-cli\crash-logs" -Filter "*.log" |
348
+ Sort-Object LastWriteTime -Descending |
349
+ Select-Object -First 1 |
350
+ Get-Content
351
+ ```
352
+
353
+ Set `CODELY_CRASH_LOG_DIR` to redirect crash reports for reproduction:
354
+
355
+ ```powershell
356
+ $env:CODELY_CRASH_LOG_DIR="C:\Temp\codely-crash-logs"
357
+ codely
358
+ ```
359
+
360
+ Crash reports include the crash type, error message, stack trace, platform,
361
+ Node.js version, memory usage, and current working directory. Review paths before
362
+ sharing logs externally and redact sensitive information if needed.
363
+
330
364
  ## License
331
365
 
332
366
  [LICENSE](./LICENSE)
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: codely-guide
3
+ description: >-
4
+ Codely platform guide. Activate when the user asks about Model Config, Model
5
+ Slot Overrides, Skills, Extension, MCP Server, Hooks, multi-workspace,
6
+ editor view, Unity Insight, Unity Tools, LSP CLI, pricing, billing, usage,
7
+ FAQ, or any how-to / troubleshooting question about Codely. Fetches the
8
+ latest answer from the official docs site (https://codely-docs.tuanjie.cn).
9
+ This skill should be used proactively without asking the user for
10
+ confirmation.
11
+ ---
12
+
13
+ # Codely Guide
14
+
15
+ ## Online Docs Lookup (Primary)
16
+
17
+ All URLs are under `https://codely-docs.tuanjie.cn`.
18
+
19
+ ### Step 1: Always try FAQ first
20
+
21
+ When the user asks a usage / how-to / troubleshooting / pricing question,
22
+ **always fetch the FAQ page first**:
23
+
24
+ `/faq/common-questions`
25
+
26
+ In the `prompt` parameter, specify what information to extract (e.g., "Extract
27
+ all information about how to configure Hooks, including setup steps and
28
+ examples" or "Extract all pricing, billing, and subscription-related
29
+ information").
30
+
31
+ If the FAQ page contains a sufficient answer, respond to the user based on the
32
+ FAQ content. Do not fetch additional pages.
33
+
34
+ ### Step 2: Fall back to the feature-specific page
35
+
36
+ If the FAQ does not cover the question, fetch the corresponding feature page
37
+ from the table below:
38
+
39
+ | Topic | URL path |
40
+ | ------------------------------ | ----------------------------------------------- |
41
+ | Model Config | `/features-introduction/model-config` |
42
+ | Model Slot Overrides | `/features-introduction/model-slot-overrides` |
43
+ | Skills | `/features-introduction/skills-experimental` |
44
+ | Extension | `/features-introduction/extensions` |
45
+ | MCP Server | `/features-introduction/MCP-guide` |
46
+ | Hooks | `/features-introduction/Hooks` |
47
+ | 多工作区 (Multi-workspace) | `/features-introduction/multiworkspace` |
48
+ | 编辑器视图 (Editor View) | `/features-introduction/unity-view-user-manual` |
49
+ | Unity Insight | `/features-introduction/unity-insight-guide` |
50
+ | Unity Tools | `/features-introduction/unity-tools-guide` |
51
+ | Language Server Protocol - CLI | `/features-introduction/lsp-cli` |
52
+
53
+ ### Answering rules
54
+
55
+ 1. Answer using only the fetched content. Do not fabricate information not
56
+ present on the page.
57
+ 2. If neither the FAQ nor the feature page contains enough detail, tell the
58
+ user and link to the full page URL.
59
+
60
+ > **重要:** 当用户询问收费、价格、计费相关问题时,必须去 FAQ 页面
61
+ > (`/faq/common-questions`) 查询,**不要**去 usage 页面查询。Usage 页面
62
+ > 仅展示用量数据,不包含收费标准。
63
+
64
+ ## Offline References (Fallback)
65
+
66
+ If the online docs are unavailable, or for Codely topics not listed above,
67
+ consult the offline references in `references/`:
68
+
69
+ - **Codely App (Tuanjie Cowork)**: [references/app.md](references/app.md)
70
+ - Desktop application: unified interface surfaces (sidebar, chat canvas),
71
+ agent settings & permissions, scheduled tasks, project management.
72
+
73
+ ## Fallback
74
+
75
+ If the user asks about a Codely topic not covered above, fetch the docs
76
+ homepage `https://codely-docs.tuanjie.cn` to discover available documentation
77
+ pages, then fetch the most relevant page.
@@ -0,0 +1,125 @@
1
+ # Codely App (Cowork) Reference
2
+
3
+ Cowork is a standalone desktop application that provides a unified GUI
4
+ platform to orchestrate agent activities independently of a terminal or IDE. It
5
+ shares the same underlying agentic capabilities as Codely CLI.
6
+
7
+ > [!NOTE] Cowork coexists with **Codely CLI**. While the CLI provides
8
+ > a terminal-based experience, Cowork offers a full desktop application with
9
+ > graphical project management, visual settings, and integrated workspaces. Both
10
+ > share the same settings hierarchy, skills system, and MCP support.
11
+
12
+ ## 1. Unified Interface Surfaces
13
+
14
+ ### Left-hand Sidebar
15
+
16
+ The sidebar provides session history, workspace management, and quick actions.
17
+
18
+ - **New Session**: Start a new chat session with the agent.
19
+ - **Asset Marketplace**: Browse and install assets via natural language.
20
+ - **Search**: Search across session history.
21
+ - **History**: Scrollable list of past sessions, grouped by time period
22
+ (Today, Yesterday, Last 7 Days, etc.).
23
+ - **Workspaces**: In Hub mode, the sidebar shows multiple workspace sections,
24
+ each with its own session list. Workspaces can be opened, closed,
25
+ reordered, and pinned.
26
+ - **User Profile**: Bottom of sidebar — access Settings, Theme switching,
27
+ Account, and Login/Logout.
28
+
29
+ ### Settings Page
30
+
31
+ Accessed via the User Profile menu or the settings gear icon. Organized into
32
+ sidebar groups:
33
+
34
+ **Workspace group:**
35
+
36
+ - **General**: Chat settings (wrap codeblocks, session titles, format
37
+ markdown), notifications, appearance (language, font size), autocomplete
38
+ settings, and external script editor.
39
+ - **Devices**: Remote tunnel and keep-awake settings (Tauri shell only).
40
+ - **Shortcuts**: Keyboard shortcut reference.
41
+
42
+ **Personal group:**
43
+
44
+ - **Account & Usage**: Opens the usage dashboard in a browser.
45
+
46
+ **Capabilities group:**
47
+
48
+ - **Models**: Custom model profile management.
49
+ - **Skills**: Manage skills (list, enable/disable, install/uninstall).
50
+ - **Subagents**: Manage custom subagent definitions.
51
+ - **Commands**: Manage custom slash commands.
52
+ - **Extensions**: Manage installed extensions (bundles of skills, agents, and
53
+ MCP servers).
54
+ - **MCP Servers**: Add, edit, and remove MCP server configurations.
55
+
56
+ **Help group:**
57
+
58
+ - **Docs**: Opens external documentation.
59
+
60
+ ### Chat Canvas
61
+
62
+ The main panel for direct agent interaction, planning, and task execution.
63
+
64
+ - **Slash Commands**: Type `/` to invoke built-in workflows. Available
65
+ commands include `/manage skills`, `/manage commands`, `/manage extensions`,
66
+ `/manage mcp`, `/manage subagents`, `/switch model`, `/attach file`,
67
+ `/mention file`, `/clear conversation`, `/account usage`, and more.
68
+ - **@ Mentions**: Type `@` to attach context directly to your message.
69
+ Supported categories include files and folders, previous conversations, and
70
+ MCP tools.
71
+ - **Media Uploads**: Drag-and-drop or paste images and files into the chat
72
+ canvas to share them with the agent. Uploaded media is analyzed via the
73
+ `analyze_multimedia` tool.
74
+
75
+ ## 2. Agent Settings & Permissions
76
+
77
+ The **Settings** page provides global and project-level controls for agent
78
+ behavior, security, and permissions. All settings are stored in JSON
79
+ configuration files and shared with Codely CLI.
80
+
81
+ ### Global Settings
82
+
83
+ Path: `~/.codely-cli/settings.json`
84
+
85
+ These settings apply across all projects and conversations:
86
+
87
+ - **Model Selection**: Choose the active model (e.g., `codely-core`,
88
+ `codely-flash`, `codely-air`). Configured via `model-config.json`.
89
+ - **Authentication**: Configure auth method via `selectedAuthType`
90
+ (e.g., `codely-oauth`).
91
+ - **MCP Servers**: Add HTTP(S)-based MCP server endpoints under
92
+ `mcpServers`.
93
+ - **Unity Insight**: Enable/disable Unity project analysis via
94
+ `unityInsight.enabled`.
95
+ - **IDE Mode**: Toggle `ideMode` for IDE integration features.
96
+
97
+ ### Project-Level Settings
98
+
99
+ Path: `<project-root>/.codely-cli/settings.json`
100
+
101
+ Each project can override specific fields from global settings:
102
+
103
+ - **Model Override**: Use a different model for a specific project (e.g.,
104
+ `codely-core` for large codebases, `codely-flash` for lightweight tasks).
105
+ - **MCP Servers**: Project-level servers are merged with global servers.
106
+ - **Skills**: Project-level skills in `.codely-cli/skills/` can be shared via
107
+ Git. Team members clone and use the in-app Skills manager to install or
108
+ enable them.
109
+
110
+ > **Security**: Do not commit API keys or tokens in project-level settings.
111
+ > Store secrets in user-level settings or local overrides excluded from Git.
112
+
113
+ ## 3. Applying Changes
114
+
115
+ | Change | How to apply |
116
+ | :-------------------------- | :------------------------------------------- |
117
+ | Skill content / new install | Use in-app Skills manager, or restart Cowork |
118
+ | Subagent (`agents/*.toml`) | Restart Cowork or open new session |
119
+ | Settings / MCP / Model | Restart Cowork |
120
+
121
+ ## 4. FAQ
122
+
123
+ For common questions and troubleshooting (including pricing and billing),
124
+ see the official FAQ page:
125
+ <https://codely-docs.tuanjie.cn/faq/common-questions>
@@ -19,9 +19,7 @@ async function main() {
19
19
  console.log(
20
20
  'Usage: node package_skill.cjs <path/to/skill-folder> [output-directory]',
21
21
  );
22
- console.log(
23
- ` output-directory: optional, default: ${DEFAULT_OUTPUT_DIR}`,
24
- );
22
+ console.log(` output-directory: optional, default: ${DEFAULT_OUTPUT_DIR}`);
25
23
  process.exit(1);
26
24
  }
27
25
 
@@ -0,0 +1,145 @@
1
+ ---
2
+ name: tuanjie-cli
3
+ description: Manage Tuanjie Engine editors, project templates, and projects through the Windows-only tuanjie-cli. Use on Windows when the user asks to list or install Tuanjie editor versions, manage editor modules or install paths, list or download templates, register, inspect, create, remove, or open a Tuanjie project, or uninstall an editor.
4
+ allowedTools:
5
+ - run_shell_command
6
+ ---
7
+
8
+ # tuanjie-cli
9
+
10
+ Use tuanjie-cli for editor and project management. Read
11
+ [commands.md](references/commands.md) before constructing a command when exact
12
+ arguments or current implementation limits matter.
13
+
14
+ ## Invoke the executable
15
+
16
+ Cowork places its bundled `tuanjie.exe` executable at the front of the child
17
+ process `PATH`. Invoke it by command name. Do not run setup or path-discovery
18
+ commands before the requested command.
19
+
20
+ ```powershell
21
+ tuanjie.exe editors list-installed
22
+ ```
23
+
24
+ If `tuanjie.exe` cannot be resolved, report that Cowork must be restarted or
25
+ updated; do not search the filesystem.
26
+
27
+ Always quote user-provided paths by passing them as PowerShell arguments; do
28
+ not concatenate them into a command string.
29
+
30
+ ## Operating rules
31
+
32
+ 1. Use this skill only on Windows. On macOS, Linux, or any other platform,
33
+ report that tuanjie-cli is currently unsupported and do not invoke it.
34
+ 2. Use long command and option names for clarity.
35
+ 3. Every version argument passed to the CLI must use the public `1.x.x`
36
+ semantic version shown by Hub, for example `1.6.11`. Never pass the internal
37
+ editor version such as `2022.3.61t12`. When output contains both forms, use
38
+ the `1.x.x` value.
39
+ 4. Do not add `--json`. Preserve the CLI's human-readable output and live
40
+ progress in the standard terminal tool UI.
41
+ 5. Inspect current state before changing it:
42
+ - Before installing an editor, run `editors list-releases` and
43
+ `editors list-installed`.
44
+ - Before installing modules, run `install-modules <semver> --list`.
45
+ - Before uninstalling, run `editors list-installed`.
46
+ - Before removing a project, run `projects info <path>`.
47
+ 6. Treat editor installation and module installation as long-running
48
+ foreground commands. Wait for completion and report the final output.
49
+ 7. Never run `uninstall` or `projects remove` unless the user explicitly
50
+ requested that exact destructive action. If intent is ambiguous, ask for
51
+ confirmation after showing the resolved version or project path.
52
+ 8. Prefer a specific module list over `--all`. Use `--all` only when the user
53
+ explicitly requests every available module.
54
+ 9. Report command failures faithfully. Do not claim success based only on a
55
+ zero exit code when output says the operation is unsupported.
56
+ 10. Before using `template`, `projects create`, or the implemented `open`
57
+ workflow, verify that `template` appears in
58
+ `tuanjie.exe --help`. If it
59
+ does not, report that the installed tuanjie-cli is outdated.
60
+
61
+ ## Common workflows
62
+
63
+ ### List editor versions
64
+
65
+ ```powershell
66
+ tuanjie.exe editors list-releases
67
+ tuanjie.exe editors list-installed
68
+ ```
69
+
70
+ ### Install an editor
71
+
72
+ Confirm that the requested semantic version appears in `list-releases`, then:
73
+
74
+ ```powershell
75
+ tuanjie.exe install <semver>
76
+ ```
77
+
78
+ To include selected modules, repeat `--module`:
79
+
80
+ ```powershell
81
+ tuanjie.exe install <semver> --module <module-id-1> --module <module-id-2>
82
+ ```
83
+
84
+ ### Manage modules
85
+
86
+ ```powershell
87
+ tuanjie.exe install-modules <semver> --list
88
+ tuanjie.exe install-modules <semver> --module <module-id>
89
+ ```
90
+
91
+ ### Manage the install path
92
+
93
+ ```powershell
94
+ tuanjie.exe install-path --get
95
+ tuanjie.exe install-path --set '<absolute-path>'
96
+ ```
97
+
98
+ ### Manage registered projects
99
+
100
+ ```powershell
101
+ tuanjie.exe projects list
102
+ tuanjie.exe projects info '<project-path>'
103
+ tuanjie.exe projects add '<project-path>'
104
+ ```
105
+
106
+ `projects remove` removes only the Hub registry entry according to the current
107
+ CLI documentation, but it is still destructive registry state and requires
108
+ explicit user intent.
109
+
110
+ ### Manage project templates
111
+
112
+ The editor version must already be installed. List templates before choosing
113
+ one:
114
+
115
+ ```powershell
116
+ tuanjie.exe template list <semver>
117
+ tuanjie.exe template download <semver> '<template-name>'
118
+ ```
119
+
120
+ Use `--upgrade` with `template download` only when the user asks to update an
121
+ existing template.
122
+
123
+ ### Create a project
124
+
125
+ Before creation, verify the editor is installed and list valid templates for
126
+ that version. Obtain the project name, parent directory, editor semantic
127
+ version, and exact template ID from the user or unambiguous context.
128
+
129
+ ```powershell
130
+ tuanjie.exe projects create '<name>' --path '<parent-directory>' --editor-version <semver> --template '<template-id>'
131
+ ```
132
+
133
+ Add `--uos-enabled` only when requested. If `--path` is omitted, the CLI uses
134
+ the project directory configured in Hub.
135
+
136
+ ### Open a project
137
+
138
+ By default, the CLI reads the required editor version from the project:
139
+
140
+ ```powershell
141
+ tuanjie.exe open '<project-path>'
142
+ ```
143
+
144
+ Use `--editor-version <semver>` only when the user explicitly requests a
145
+ different editor version. On Windows, leave `--architecture` unset.
@@ -0,0 +1,138 @@
1
+ # tuanjie-cli command reference
2
+
3
+ This CLI skill is supported only on Windows.
4
+
5
+ The executable is named `tuanjie.exe`. Run `<exe> <command> --help` if the
6
+ installed CLI differs from this reference.
7
+
8
+ ## Version arguments
9
+
10
+ Every `<semver>` and `--editor-version` argument below requires the public
11
+ `1.x.x` version reported by Hub, such as `1.6.11`. Do not pass the internal
12
+ editor version, such as `2022.3.61t12`. If a command output shows both values,
13
+ select the `1.x.x` value for subsequent commands.
14
+
15
+ ## Editors
16
+
17
+ ```text
18
+ editors list-releases [--architecture <value>]
19
+ editors list-installed [--architecture <value>]
20
+ editors add <paths...>
21
+ ```
22
+
23
+ - `list-releases` lists downloadable releases.
24
+ - `list-installed` lists installed editors and their locations/platforms.
25
+ - `add` accepts an editor root, an `Editor` directory, or an editor executable
26
+ path. On Windows, directory inputs are resolved to `Editor/Tuanjie.exe`.
27
+ - `--architecture` is intended for macOS. Leave it unset on Windows.
28
+
29
+ ## Install an editor
30
+
31
+ ```text
32
+ install <semver> [--module <id> ...] [--childModules]
33
+ ```
34
+
35
+ - `<semver>` is the public `1.x.x` version, such as `1.9.3`; it is not the
36
+ internal `2022.x.x` editor version.
37
+ - Repeat `--module` for multiple module IDs.
38
+ - `--childModules` defaults to true and expands selected parent modules to
39
+ include their child modules.
40
+ - The command waits for installation progress to finish.
41
+
42
+ ## Editor modules
43
+
44
+ ```text
45
+ install-modules <semver> --list
46
+ install-modules <semver> --module <id> ... [--childModules]
47
+ install-modules <semver> --all [--childModules]
48
+ ```
49
+
50
+ - The editor version must already be installed.
51
+ - Use `--list` to obtain valid module IDs and installation state.
52
+ - Repeat `--module` for multiple module IDs.
53
+ - `--all` installs all currently uninstalled modules.
54
+ - `--childModules` defaults to true.
55
+
56
+ ## Install path
57
+
58
+ ```text
59
+ install-path --get
60
+ install-path --set <path>
61
+ ```
62
+
63
+ `--get` defaults to true when `--set` is absent.
64
+
65
+ ## Uninstall an editor
66
+
67
+ ```text
68
+ uninstall <semver> [--architecture <value>]
69
+ ```
70
+
71
+ - Confirm the semantic version against `editors list-installed`.
72
+ - `--architecture` is normally unnecessary on Windows.
73
+ - This is destructive and must follow the confirmation rule in `SKILL.md`.
74
+
75
+ ## Projects
76
+
77
+ ```text
78
+ projects list [pattern]
79
+ projects add <paths...>
80
+ projects remove <paths...>
81
+ projects info <path>
82
+ projects create <name> [--path <parent-directory>]
83
+ --editor-version <semver> --template <template-id>
84
+ [--architecture <value>] [--uos-enabled]
85
+ ```
86
+
87
+ - `list` optionally filters by a case-insensitive title/path substring.
88
+ - `add` registers existing Tuanjie project directories with Hub.
89
+ - `remove` removes projects from the Hub registry without an interactive
90
+ confirmation. The CLI source indicates registry removal, not filesystem
91
+ deletion.
92
+ - `info` reports title, path, editor version, architecture, modification time,
93
+ cloud metadata, arguments, and project size.
94
+ - `create` creates and registers a project. `--editor-version` and `--template`
95
+ are required.
96
+ - When `--path` is omitted, `create` uses the project directory configured in
97
+ Hub.
98
+ - Obtain template IDs from `template list <semver>`.
99
+ - `--uos-enabled` enables the UOS template variant.
100
+
101
+ ## Project templates
102
+
103
+ ```text
104
+ template list <semver>
105
+ template download <semver> <template-name> [--upgrade]
106
+ ```
107
+
108
+ - The semantic editor version must be installed.
109
+ - `list` returns template IDs, display names, status, and versions.
110
+ - `download` downloads a remote template and waits for completion.
111
+ - `--upgrade` updates an existing template; omit it for a normal download.
112
+
113
+ ## Open a project
114
+
115
+ ```text
116
+ open <path> [--editor-version <semver>] [--architecture <value>]
117
+ ```
118
+
119
+ - Without `--editor-version`, the command reads the required version from the
120
+ project's settings.
121
+ - With `--editor-version`, the public semantic version is resolved to the
122
+ editor's internal version.
123
+ - The command delegates to Hub's project opening service.
124
+ - `--architecture` is intended for macOS; leave it unset on Windows.
125
+
126
+ ## Version compatibility
127
+
128
+ The current command set includes `template`, implemented `projects create`,
129
+ and implemented `open`. Older binaries may expose older help text while those
130
+ operations are unavailable. Check top-level `--help`; if `template` is absent,
131
+ do not attempt these newer workflows.
132
+
133
+ ## Exit and output handling
134
+
135
+ - Preserve the CLI's human-readable stdout and live progress output.
136
+ - Installation and uninstallation may emit progress before the final result.
137
+ - The top-level CLI error handler may print help and exit with code 0 for some
138
+ argument errors. Check output content as well as the process exit code.
@@ -0,0 +1,62 @@
1
+ name = "explore"
2
+ description = "Fast read-only codebase search agent for finding files, patterns, and answering questions about the codebase. Use when you need to quickly find files by patterns, search code for keywords, or understand how parts of the codebase work. Specify thoroughness: 'quick' for basic searches, 'medium' for moderate exploration, 'very thorough' for comprehensive analysis."
3
+ display_name = "Explore"
4
+
5
+ tools = ["*"]
6
+ disallowed_tools = ["replace", "write_file", "apply_patch"]
7
+
8
+ [prompts]
9
+ system_prompt = """
10
+ You are a file search specialist. You excel at thoroughly navigating and exploring codebases.
11
+
12
+ === CRITICAL: READ-ONLY MODE - NO FILE MODIFICATIONS ===
13
+ This is a READ-ONLY exploration task. You are STRICTLY PROHIBITED from:
14
+ - Creating new files (no writing, touch, or file creation of any kind)
15
+ - Modifying existing files (no edit operations)
16
+ - Deleting files (no rm or deletion)
17
+ - Moving or copying files (no mv or cp)
18
+ - Creating temporary files anywhere, including /tmp
19
+ - Using redirect operators (>, >>, |) or heredocs to write to files
20
+ - Running ANY commands that change system state
21
+
22
+ Your role is EXCLUSIVELY to search and analyze existing code.
23
+
24
+ Your strengths:
25
+ - Rapidly finding files using glob patterns
26
+ - Searching code and text with powerful regex patterns
27
+ - Reading and analyzing file contents
28
+
29
+ Guidelines:
30
+ - Use glob for broad file pattern matching
31
+ - Use search_file_content for searching file contents with regex
32
+ - Use read_file when you know the specific file path you need to read
33
+ - Use run_shell_command ONLY for read-only operations (ls, git status, git log, git diff, find, cat, head, tail)
34
+ - NEVER use run_shell_command for: mkdir, touch, rm, cp, mv, git add, git commit, npm install, pip install, or any file creation/modification
35
+ - Adapt your search approach based on the thoroughness level specified by the caller
36
+ - Wherever possible, spawn multiple parallel tool calls for searching and reading files
37
+
38
+ NOTE: You are meant to be a fast agent that returns output as quickly as possible. In order to achieve this you must:
39
+ - Make efficient use of the tools at your disposal: be smart about how you search for files and implementations
40
+ - Wherever possible you should try to spawn multiple parallel tool calls for grepping and reading files
41
+ - Start broad and narrow down. Use multiple search strategies if the first doesn't yield results.
42
+ - Be thorough: Check multiple locations, consider different naming conventions, look for related files.
43
+
44
+ Complete the search request efficiently and report your findings clearly.
45
+ """
46
+ query = "${task}"
47
+ inherit_core_system_prompt = false
48
+
49
+ [model]
50
+ #### Builtin transport is pinned (TOML is the ground truth). explore always
51
+ #### runs on codely-air via the Codely OAuth provider, independent of the
52
+ #### user's main session model or subagent-slot (/model config) settings.
53
+ model = "codely-air"
54
+ auth = "codely-oauth"
55
+ wire_api = "chat"
56
+
57
+ [run]
58
+ max_turns = 15
59
+ timeout_mins = 10
60
+
61
+ [validation]
62
+ input_schema = { task = "string" }
@@ -0,0 +1,34 @@
1
+ name = "general-purpose"
2
+ description = "General-purpose agent for researching complex questions, searching for code, and executing multi-step tasks. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries use this agent to perform the search for you."
3
+ display_name = "General Purpose"
4
+
5
+ tools = ["*"]
6
+
7
+ [prompts]
8
+ system_prompt = """
9
+ You are an agent for Codely CLI. Given the user's message, you should use the tools available to complete the task. Complete the task fully — don't gold-plate, but don't leave it half-done.
10
+
11
+ When you complete the task, respond with a concise report covering what was done and any key findings — the caller will relay this to the user, so it only needs the essentials.
12
+
13
+ Your strengths:
14
+ - Searching for code, configurations, and patterns across large codebases
15
+ - Analyzing multiple files to understand system architecture
16
+ - Investigating complex questions that require exploring many files
17
+ - Performing multi-step research tasks
18
+
19
+ Guidelines:
20
+ - For file searches: search broadly when you don't know where something lives. Use read_file when you know the specific file path.
21
+ - For analysis: Start broad and narrow down. Use multiple search strategies if the first doesn't yield results.
22
+ - Be thorough: Check multiple locations, consider different naming conventions, look for related files.
23
+ - NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one.
24
+ - NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested.
25
+ """
26
+ query = "${task}"
27
+ inherit_core_system_prompt = false
28
+
29
+ [run]
30
+ max_turns = 60
31
+ timeout_mins = 30
32
+
33
+ [validation]
34
+ input_schema = { task = "string" }