@costrict/cs-darwin-x64-baseline 3.0.7 → 3.0.10

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.
package/README.md ADDED
@@ -0,0 +1,131 @@
1
+ <p align="center">
2
+ <a href="https://costrict.ai">
3
+ <img src="packages/console/app/src/asset/logo.png" alt="CoStrict logo" width="120">
4
+ </a>
5
+ </p>
6
+ <p align="center">The open source AI coding agent based on opencode with costrict-specific optimizations.</p>
7
+ <p align="center">
8
+ <a href="https://www.npmjs.com/package/@costrict/cs"><img alt="npm" src="https://img.shields.io/npm/v/@costrict/cs?style=flat-square" /></a>
9
+ </p>
10
+
11
+ [![CoStrict Terminal UI](packages/web/src/assets/lander/screenshot.png)](https://costrict.ai)
12
+
13
+ ---
14
+
15
+ ### Installation
16
+
17
+ ```bash
18
+ npm i -g @costrict/cs@latest
19
+ ```
20
+
21
+ > [!TIP]
22
+ > Remove versions older than 2.x before installing.
23
+
24
+ ### Agents
25
+
26
+ CoStrict includes two built-in agents you can switch between with the `Tab` key.
27
+
28
+ - **build** - Default, full-access agent for development work
29
+ - **plan** - Read-only agent for analysis and code exploration
30
+ - Denies file edits by default
31
+ - Asks permission before running bash commands
32
+ - Ideal for exploring unfamiliar codebases or planning changes
33
+
34
+ Also included is a **general** subagent for complex searches and multistep tasks.
35
+ This is used internally and can be invoked using `@general` in messages.
36
+
37
+ #### CoStrict Specialized Agents
38
+
39
+ CoStrict's agent system includes 11 specialized agents for different tasks:
40
+
41
+ - **WikiProjectAnalyze** - Project classification analysis
42
+ - **WikiCatalogueDesign** - Document structure design
43
+ - **WikiDocumentGenerate** - Document generation
44
+ - **WikiIndexGeneration** - Index file generation
45
+ - **Coding** - Coding agent
46
+ - **FixAgent** - Fix agent
47
+ - **QuickExplore** - Quick exploration
48
+ - **StrictPlan** - Strict planning
49
+ - **SubCoding** - Sub-coding
50
+ - **TaskCheck** - Task checking
51
+ - **TDD** - Test-driven development
52
+
53
+ Learn more about [agents](https://docs.costrict.ai/cli/category/product-features).
54
+
55
+ ### CoStrict-Specific Optimizations
56
+
57
+ CoStrict provides several optimizations on top of the base agent system to improve development efficiency and stability.
58
+
59
+ #### AI Provider Optimizations
60
+
61
+ - **CoStrict Provider**: Custom AI model provider supporting multiple model integrations
62
+ - **Automatic Token Refresh**: Proactive token refresh and 401 error recovery to ensure session continuity
63
+ - **Dynamic Model List**: Real-time fetching of available models from API, no manual configuration updates needed
64
+
65
+ #### Advanced Tool System
66
+
67
+ CoStrict provides a suite of advanced tools for automating complex tasks:
68
+
69
+ - **sequential-thinking**: Structured thinking tool supporting dynamic step count adjustment, thought revision, and branch creation for step-by-step analysis of complex problems
70
+ - **call-graph**: Call graph analysis tool that analyzes function call relationships and symbol resolution to help understand code structure
71
+ - **file-importance**: File importance analysis tool that evaluates file importance across multiple dimensions to optimize code review and refactoring decisions
72
+ - **file-outline**: File structure extraction tool that extracts class, function, method definitions, and docstrings for quick understanding of code organization
73
+ - **checkpoint**: Git checkpoint tool for creating, viewing, and restoring checkpoints to support safe experimentation and state recovery
74
+
75
+ #### Specialized Agent System
76
+
77
+ CoStrict includes 11 specialized agents covering various development scenarios:
78
+
79
+ - **Wiki Generation Agents**: Automatically generate project technical documentation, including architecture descriptions, API documentation, etc.
80
+ - **TDD Agent**: Test-driven development support, automatically generating test cases and validating code
81
+ - **QuickExplore Agent**: Fast project exploration and code understanding to help quickly get started with new projects
82
+ - Other specialized agents cover code review, performance optimization, security checks, and more
83
+
84
+ #### Enhanced Error Handling
85
+
86
+ - **Intelligent Error Recognition**: Automatically identifies common error types like 503, 429
87
+ - **Automatic Retry**: Supports automatic retry for 503, 429, connection errors, etc., improving task success rate
88
+ - **Output Length Limit**: Automatically handles output length limit errors to ensure complete responses
89
+
90
+ ### Documentation
91
+
92
+ For more info on how to configure CoStrict, visit our [official documentation](https://docs.costrict.ai/cli/guide/introduction) or [**head over to our docs**](https://costrict.ai/docs).
93
+
94
+ ### Building on CoStrict
95
+
96
+ If you are working on a project that's related to CoStrict and is using "costrict" as part of its name, for example "costrict-dashboard" or "costrict-mobile", please add a note to your README to clarify that it is not built by the CoStrict team and is not affiliated with us in any way.
97
+
98
+ ### FAQ
99
+
100
+ #### How is this different from OpenCode?
101
+
102
+ It's very similar to OpenCode in terms of capability. Here are the key differences:
103
+
104
+ - **AI Provider**: CoStrict Provider supports automatic token refresh and 401 error recovery
105
+ - **Tool System**: 5 advanced tools (sequential-thinking, call-graph, file-importance, file-outline, checkpoint)
106
+ - **Agent System**: Expanded from 4 to 11 specialized agents
107
+ - **Error Handling**: Intelligent recognition and automatic retry for 503, 429 errors
108
+ - **Plugin System**: @costrict/notify plugin and notification intervention system
109
+ - **Deployment Support**: Optimized Dockerfile and multi-platform NPM image sync
110
+ - **Documentation System**: Automatic project technical documentation and indexing
111
+
112
+ #### How is this different from Claude Code?
113
+
114
+ It's very similar to Claude Code in terms of capability. Here are the key differences:
115
+
116
+ - 100% open source
117
+ - Not coupled to any provider. Although we recommend [CoStrict Pricing Plans](https://costrict.ai/pricing), CoStrict can be used with Claude, OpenAI, Google, or even local models. As models evolve, the gaps between them will close and pricing will drop, so being provider-agnostic is important.
118
+ - Out-of-the-box LSP support
119
+ - A focus on TUI. CoStrict is built by neovim users and the creators of [terminal.shop](https://terminal.shop); we are going to push the limits of what's possible in the terminal.
120
+ - A client/server architecture. This, for example, can allow CoStrict to run on your computer while you drive it remotely from a mobile app, meaning that the TUI frontend is just one of the possible clients.
121
+ - **CoStrict-specific optimizations**: Advanced tool system, specialized agents, intelligent error handling
122
+
123
+ ---
124
+
125
+ ### Community Communication & Feedback
126
+
127
+ <p align="center">
128
+ <img src="packages/console/app/src/asset/wechat.png" alt="WeChat QR Code" width="100">
129
+ &nbsp;&nbsp;&nbsp;&nbsp;
130
+ <img src="packages/console/app/src/asset/communication_group.webp" alt="Communication Group QR Code" width="100">
131
+ </p>
package/bin/cs CHANGED
Binary file