સામગ્રી પર જાઓ
Cosvexa – Cosvexa હોમ

ઍપ્સ

Cosvexa CLI

તમારા ટર્મિનલમાં કોડિંગ એજન્ટ: ઇન્સ્ટૉલ, સાઇન-ઇન, કમાન્ડ, મંજૂરી મોડ, Council રિવ્યૂ અને CI ઉપયોગ.

ઇન્સ્ટૉલ કરો અને સાઇન ઇન કરો

Node.js 20 અથવા તેનાથી નવું જરૂરી છે.

bash
npm i -g https://cosvexa.ai/downloads/cosvexa-cli-0.1.0.tgz
cosvexa --version

cosvexa login --browser   # device code, approve in your browser
cosvexa login             # or paste an API key that starts with cvx_
cosvexa status

સેટિંગ્સ Windows પર %APPDATA%\cosvexa\config.json માં અને macOS અને Linux પર ~/.config/cosvexa/config.json માં રહે છે. COSVEXA_API_KEY, COSVEXA_MODEL અને COSVEXA_BASE_URL એન્વાયર્નમેન્ટ વેરિયેબલ પણ સપોર્ટેડ છે.

મૂળભૂત ઉપયોગ

bash
cd my-project
cosvexa "make the failing date test pass"   # one task
cosvexa                                      # interactive session
cosvexa -c "now add tests"                   # continue the last session
cosvexa sessions                             # list sessions
cosvexa init                                 # draft COSVEXA.md project instructions
cosvexa models                               # models you can use

મૉડલ અને પ્રયત્ન

  • -m claude-sonnet-5-5 ચોક્કસ મૉડલ પસંદ કરે છે અને હંમેશાં અગ્રતા મેળવે છે.
  • --effort low|medium|high (અથવા /effort) પસંદ કરેલું મૉડલ જવાબ આપતાં પહેલાં કેટલું વિચારે તે નક્કી કરે છે; તે મૉડલને ક્યારેય બદલતું નથી. વિચારવાના સ્તરનું સેટિંગ ન ધરાવતાં મૉડલ તેને અવગણે છે.

સુરક્ષા

  • --mode ask|auto-edit|plan|full-auto મંજૂરી મોડ સેટ કરે છે (ઇન્ટરૅક્ટિવ સેશનમાં Shift+Tab). full-auto માટે --yolo પણ જરૂરી છે.
  • --read-only ફક્ત વાંચન, સૂચિ અને શોધ ટૂલની પરવાનગી આપે છે.
  • /undo એજન્ટે છેલ્લે બદલેલી ફાઇલ પાછી લાવે છે. જોખમી કમાન્ડ દરેક મોડમાં પૂછે છે, --yes સાથે પણ.

કોડ રિવ્યૂ અને Council

bash
cosvexa review                  # review local changes
cosvexa review --base main      # review the diff against main
cosvexa "add input validation" --council
cosvexa --team "refactor the payments module"

Council અને ટીમ જૉબ પહેલાં મહત્તમ ખર્ચનો અંદાજ બતાવે છે અને તમને પુષ્ટિ કરવા કહે છે.

સ્ક્રિપ્ટ અને CI

bash
cosvexa -p "summarise the open TODOs"
cosvexa -p --yes "fix the lint errors" --json

એક્ઝિટ કોડ: 0 પૂર્ણ, 1 ભૂલ, 2 ખોટો ઉપયોગ, 3 સ્ટેપ અથવા આઉટપુટ મર્યાદા પર અટક્યું.

ઇન્ટરૅક્ટિવ કમાન્ડ

/model, /mode, /undo, /compact, /context, /init, /review, /team, /cost, /clear, /exit. તમારા પોતાના કમાન્ડ .cosvexa/commands/<name>.md ફાઇલો તરીકે ઉમેરો; @path ફાઇલ જોડે છે. કૉન્ટેક્સ્ટ 80% ભરાય ત્યારે આપમેળે સારાંશ બને છે.

MCP અને OpenCode

cosvexa mcp MCP સર્વરનું સંચાલન કરે છે (--no-mcp તેને બંધ કરે છે). cosvexa opencode Cosvexa ને પ્રોવાઇડર તરીકે રાખીને OpenCode કૉન્ફિગર કરે છે (પહેલાં npm i -g opencode-ai ચલાવો).