匠人学院 JR Academy
  • Position

    Where am I now, and where should I go?

    How your job is changing, where your experience can take you and what you still need for a target role, worked out from what you have actually done. Free, and the full result needs no sign-up.

    Analyse my career and skills

    Look up a career

    Will AI replace my job?AI impact and transition paths for common careersNew jobs in the AI eraWhat they do, what they need, how to move in

    Focused tools

    AI Engineer interview readiness30 timed questions on what you still need before interviewsCareer personality testDirections that suit how you workReturning to China checkJob prospects in China by school, major and graduation date

    AI coach

    Talk to your AI coachStill unsure after your result? Talk through what is holding you back
  • Core courses

    AI Engineer BootcampEngineering bootcamp from LLM apps to agentsAI Engineer Full-Stack Project Class16 weeks · RAG and full-stack AI projectsVibe Coding Masterclass8 weeks · direct agents to build and ship a productAI Essentials10 hours · use AI for email, reports, data and copyAI Office Automation Course8 weeks · help a whole company adopt AIOne-Person Company (OPC) Bootcamp15 weeks in person · build a one-person company with AIAll courses →

    AI engineering

    Machine Learning & Data Engineering Full-Stack ClassAI Agent & MCP Project BootcampAI Engineer Core TechniquesAI Engineer FoundationsAI Engineer Advanced: RAG to Agents and TuningClaude Code TasterAll AI engineering courses →

    AI at work

    AI Coding for everyoneClaude Code One-Day Masterclass (Non-Technical)Enterprise AI Automation BootcampAI Marketing BootcampAI Risk, Governance and Audit CourseOpenClaw 4-Week Personal AI Assistant BootcampAll AI-at-work courses →

    Career development

    AI Product Manager (BA) Bootcamp + InternshipAustralia IT Interview BootcampAustralia IT Technical Interview BootcampAustralia IT Resume BootcampAustralia Big Tech Job Search BootcampAustralia IT Career Planning BootcampAll career courses →

    Learn free first

    Vibe CodingAI for office workPrompt MasterAI EngineerAI data analysisResource centerInstructorsAll learning paths →
  • Evidence

    What will convince an employer?

    Certifications, projects, team work and competition entries, collected into one portfolio.

    See the portfolio

    Certifications

    Cert Master · all certificationsPrep and mock exams for AWS, Azure, GCP, Claude and moreAWS CLF-C02Entry-level AWS cloud certificationAWS SAA-C03Entry certification for cloud architectsClaude certificationsAnthropic Claude certification seriesAll certifications →

    Projects and team work

    P3 team projectsBuild a project with real teammates in a simulated team workflowP3 project experienceThe parts of a P3 project that go on your resumeDemo DayProject showcaseP3 certificatesProof once a project is completeAll of P3 →

    Competitions and work

    HackathonsBuild something against the clockSubmit your workAdd your project to the showcaseCareerOS portfolioDo tasks in the desktop app; your results become portfolio pieces
    Cert MasterBrowser extension, app and mini programScreenshot a question for analysis and practise anywhereAbout Cert Master
  • Connect

    How do I get myself in front of employers?

    Resume, interviews, referrals and mentors. See how far you are from the target role first, then decide what to fix.

    Start with Jobpin

    Resume and openings

    Graduate careersGraduate preparation across Australia, China, Malaysia, Singapore, the US and UKJobpinAI job search workspace: resume, roles, applicationsAI resumeRewrite your resume against a job descriptionReferralsRoles shared by students and mentorsOpportunitiesInternships, projects and collaborationsOffer boardOffers students have received

    Interviews

    AI Engineer interview guideSeven areas, with worked examplesFDE interview guideFive rounds, from scoping to the customer roundAI mock interviewPractise by text or voice and see the gapsInterview storiesReal interview experiencesSystem Design handbookPrepare for system design interviewsAll interview prep →

    Mentors

    1:1 mentorsBook AI, career and technical mentors by the hourGroup tutoringShare a tutor with a few others and pay less eachCareer coachingResume, interview and direction packages
    Jobpin desktopOne workspace for the whole job searchOrganise real experience and refine resume versions for target roles on macOS or Windows.About Jobpin
BusinessMembershipDownload CareerOS
0
匠人学院 JR Academy

Follow Us

linkedinfacebooktwitterinstagramyoutube

We Accept

/image/layout/pay-paypal.png/image/layout/pay-visa.png/image/layout/pay-master-card.png/image/layout/pay-airwallex.png/image/layout/pay-alipay.png
Airbotix · AI learning & creation for kids Another Life · AI story game
Products46

CareerOS and tools

  • CareerOS
  • Cert Master
  • Jobpin
  • Jobpin web
  • Jobpin report
  • Jobpin desktop download
  • My job search reports
  • Buy report credits
  • Jobpin billing
  • AI Toolbox
  • AI Skill Marketplace

Membership

  • Membership
  • AI membership

Courses

  • Bootcamps
  • Training Camp
  • Kanban learning
  • AI Builder course
  • MCP course
  • NotebookLM workshop
  • Business Analyst course
  • Web Full-Stack Bootcamp
  • DevOps Bootcamp
  • Data Engineering Bootcamp
  • Data Analysis Bootcamp
  • Coding for Beginners
  • Algorithm Bootcamp

Career services

  • Graduate careers
  • Graduate careers in Australia
  • Graduate careers in China
  • Graduate careers in Malaysia
  • Graduate careers in Singapore
  • Graduate careers in the US
  • Graduate careers in the UK
  • 1:1 coaching
  • Career coaching
  • AI Engineer VIP
  • BA & PM Internship
  • Data Science Internship
  • Data Analysis Internship
  • Marketing Internship
  • Resume Review
  • Interview Coaching
  • Job Application Service
  • Job Monitoring
  • LinkedIn Management
  • LinkedIn Networking
Library57

Learning paths

  • All Learning Paths
  • AI Engineer
  • Context Engineering
  • Vibe Coding
  • Prompt Master
  • AI Builder
  • AI Product Manager
  • Python Basics
  • AI Productivity
  • AI Data Analysis
  • AI Finance
  • AI Content Creation
  • AI Image Creation
  • Frontend Development
  • Hermes Agent
  • OpenClaw Local Agent

Interactive labs

  • Prompt Lab
  • Frontend Lab
  • JavaScript Lab
  • Python Lab
  • AWS Lab
  • Azure Lab
  • LLM Lab
  • Git Lab

Reference and guides

  • Resources
  • Wiki
  • Cheat sheets
  • Roadmaps
  • AI roadmaps
  • Videos
  • Ebooks
  • Blog
  • Interview handbook
  • Mock exams
  • Free resources

Cities

  • Sydney
  • Melbourne
  • Brisbane
  • Adelaide
  • Singapore
  • Kuala Lumpur
  • London
  • New York
  • San Francisco
  • Los Angeles
  • Seattle
  • Toronto
  • Vancouver

Immigration

  • Australia Immigration
  • Skilled Visa 189/190/491
  • Employer Sponsored 482/186/494
  • Business Visa 188/888
  • UK Immigration
  • US Immigration
  • Canada Immigration
  • Singapore immigration
  • Malaysia immigration
Business20

For business

  • AI for Business
  • Business portal sign-in
  • Corporate Training
  • Internship Partnership
  • Recruitment Partnership
  • Enterprise (EN)

Metatree AI Lab

  • Metatree AI Lab (Chinese)
  • AI solutions (Chinese)
  • Digital employees (Chinese)
  • Case studies (Chinese)
  • Metatree AI Lab
  • AI services
  • Digital employees
  • Case studies

AI education for kids

  • Airbotix — AI Learning & Creation for Kids
  • AU Family Resource Hub
  • NAPLAN Report Guide
  • My School Data Guide
  • Sydney Private School Fees 2026
  • Kids Coding Programs
About15

Company

  • About Us
  • Our Mentors
  • Become a Mentor
  • Metaverse Classroom
  • JR Careers
  • Another Life — AI Story Game
  • Contact Us

Help and policies

  • FAQs
  • Terms & Conditions
  • Privacy Policy
  • Cancellation & Refund Policy
  • Site map

Friend links

  • CS Browser

Contact

  • hello@jiangren.com.au
  • 0421-672-555

Offices

Level 10b, 144 Edward Street, Brisbane CBD (Headquarter)
Level 2, 171 La Trobe St, Melbourne VIC 3000
45A13, Block B, Oriental Hope Tianxiang Plaza, 500 Tianfu Avenue Middle Section, Wuhou District, Chengdu, Sichuan, China
Business Hub, 155 Waymouth St, Adelaide SA 5000
Disclaimer
footer-disclaimerfooter-disclaimer

JR Academy acknowledges Traditional Owners of Country throughout Australia and recognises the continuing connection to lands, waters and communities. We pay our respect to Aboriginal and Torres Strait Islander cultures; and to Elders past and present. Aboriginal and Torres Strait Islander peoples should be aware that this website may contain images or names of people who have since passed away.

All content on the JR Academy website, including course materials, logos, and information provided, is protected under Australian intellectual property laws. Unauthorized use, sale, distribution, reproduction, or modification is strictly prohibited. Violations may result in legal action. By accessing our website, you agree to respect our intellectual property. JR Academy Pty Ltd reserves all rights, including patents, trademarks, and copyrights. Any infringement will be subject to legal prosecution. View Terms of Service

© 2017-2026 JR Academy Pty Ltd. All rights reserved.

ABN 26621887572

HomeLearnCoursesCerts
  1. Home
  2. Learn
  3. Blog
  4. Cline 实战手册:开源免费的 VS Code AI 编程 Agent — 本地模型 + Kanban:Ollama 离线编程与多代理并行实战
JR Academy · BlogCareer insights

Cline 实战手册:开源免费的 VS Code AI 编程 Agent — 本地模型 + Kanban:Ollama 离线编程与多代理并行实战

用 Ollama / LM Studio 在本地跑模型实现零成本 AI 编程;Cline Kanban 多代理并行执行任务;ClinePass 托管订阅方案对比

Published2026-12-01
Reading time2 min
Author

Contents

  • 本地模型:三种方案
  • Ollama(推荐,最灵活)
  • LM Studio(适合不想用命令行的用户)
  • Atomic Chat
  • 硬件配置参考
  • 本地模型的正确使用姿势
  • ClinePass:懒得管 API key 的方案
  • Cline Kanban:多代理并行
  • 多代理实战:同时写测试 + 重构
  • 常见坑

Cline 的一个核心优势是完全开放模型选择——你可以用 API 托管模型,也可以在本机跑完全离线的模型。这一章讲两件事:怎么配置本地模型实现零 API 成本编程,以及怎么用 Cline Kanban 同时跑多个 AI 代理提高效率。

本地模型:三种方案

Cline 官方支持三个本地推理运行时:Ollama、LM Studio 和 Atomic Chat。装好其中一个,启动本地服务器,在 Cline Settings 里选对应 provider 即可。

Ollama(推荐,最灵活)

# 安装 Ollama
curl -fsSL https://ollama.com/install.sh | sh

# 拉一个适合编程的模型(约 4-8GB)
ollama pull qwen2.5-coder:7b

# 也可以拉更大的模型
ollama pull deepseek-coder-v2:16b

# 启动服务(默认已后台运行)
# 确认服务在跑
curl http://localhost:11434/api/tags

在 Cline Settings → Provider 里选 Ollama,Base URL 填 http://localhost:11434,然后从下拉选你拉好的模型。

LM Studio(适合不想用命令行的用户)

  1. 下载安装 LM Studio
  2. 在 Discover 页搜索模型并下载(比如 Qwen2.5-Coder-7B-Instruct)
  3. 切到 Developer 标签,点 Start Server
  4. Cline Settings 选 LM Studio,Base URL http://localhost:1234

Atomic Chat

Base URL 默认是 http://127.0.0.1:1337/v1,注意要先在 Atomic Chat 里加载模型,它才会出现在 Cline 的模型列表里。

硬件配置参考

机器 RAM 推荐模型规模 适合任务
16–32 GB 7B–13B 量化版(Q4/Q5) 单文件修改、简单 bug fix
32–64 GB 14B–32B 多文件重构、功能开发
64 GB+ 70B+ 或无量化版 大型代码库分析、架构设计

以上数据来自 Cline 官方文档推荐区间。

Use Compact Prompt:本地模型 context window 通常比云端小,建议在 Cline Settings → Features 里开启 Use Compact Prompt,把每次发送的 token 量减少约 40%,速度和稳定性都会更好。

本地模型的正确使用姿势

任务要拆细。 7B 模型的 context 窗口通常只有 8k–16k tokens。把"重构整个 auth 模块"拆成"先看现有代码 → 再改 login 函数 → 再改 token 验证",每步新开一个 task,质量会高很多。

# 给本地模型的好 prompt 结构
你只看 src/auth/login.ts 这一个文件。
任务:把 JWT verify 的错误处理改成抛出具名错误而不是返回 null。
不要修改其他文件。
改完后告诉我改了哪几行。

ClinePass:懒得管 API key 的方案

如果不想自己配 API key、不想担心账单,可以订阅 ClinePass($9.99/月),使用 Cline 托管的开源编码模型,价格比直接调 API 低 2–5 倍(官网声明)。适合已经知道自己常用 Cline 但不想管账单细节的用户。

方案 适合谁
BYO Key(自带 API key) 想用 Claude / GPT-4o 等旗舰模型,自己控制成本
ClinePass($9.99/月) 日常编程用开源模型,省心省钱
本地 Ollama/LM Studio 离线环境、隐私敏感项目、或者零成本实验

Cline Kanban:多代理并行

Kanban 是 Cline 官方出的多代理编排工具,在浏览器里用看板界面管理多个并行 Cline 代理。

# 启动 Kanban(无需安装,npx 直接跑)
npx kanban

启动后在浏览器打开 Kanban 界面,每张卡片对应一个独立的 Cline 代理任务:

典型并行场景:

┌─────────────────────────────────────────────────────┐
│                   Cline Kanban                       │
├──────────────┬──────────────┬────────────────────────┤
│   In Queue   │  In Progress │        Done            │
├──────────────┼──────────────┼────────────────────────┤
│ 写单测:     │ 重构:       │ ✅ 更新 README         │
│ payment.ts   │ user-service │ ✅ 修复 auth bug       │
│              │              │                        │
│ 写单测:     │ 生成文档:   │                        │
│ cart.ts      │ API endpoints│                        │
└──────────────┴──────────────┴────────────────────────┘

每个任务在自己的 git worktree 里执行,互不干扰,完成后自动 commit。

Kanban 的三个核心功能:

  1. per-card worktrees:每张任务卡自动创建独立 worktree,同时修改不同模块不会冲突
  2. dependency chains:可以设置"任务 B 要等任务 A 完成后才开始",适合有依赖的开发流程
  3. auto-commit:每个任务完成后自动 commit,保持历史清晰

多代理实战:同时写测试 + 重构

假设你有一个 Express API 项目需要加测试并重构 service 层:

# 启动 Kanban
npx kanban

# 在 Kanban 界面创建两张卡:

# 卡 1:写测试
# 任务:给 src/services/user.service.ts 写 Jest 单测,
#       覆盖 createUser / findById / updateProfile 三个方法,
#       mock 掉 DB 调用,测试文件放 src/__tests__/

# 卡 2:重构(依赖卡 1 完成后才跑,避免冲突)
# 任务:把 src/services/user.service.ts 里的 raw SQL 换成
#       TypeORM Repository 模式,不改接口签名

两个任务在不同 worktree 里运行,互不影响。测试写完后,重构那个代理可以看到测试文件作为验证基准。

常见坑

坑 1:本地模型切换后模型列表是空的
Atomic Chat 要先在 UI 里加载模型,它才会暴露给 Cline。Ollama 要先 ollama pull 拉模型,LM Studio 要先在 Discover 页下载并加载。

坑 2:Kanban worktree 冲突
如果两个任务都修改同一个文件(比如都改 index.ts),merge 时会冲突。建议在 Kanban 里给有文件重叠的任务加 dependency,让它们串行跑。

坑 3:本地模型忘开服务器
Ollama 安装后一般自动后台运行,但重启电脑后需要确认:curl http://localhost:11434/api/tags 能返回则正常,否则 ollama serve & 手动启动。

坑 4:Compact Prompt 没开,本地模型卡死
本地模型超过 context 限制后通常直接报错而不是像云端模型那样优雅截断。先开 Compact Prompt,再上手复杂任务。


至此,Cline 的完整能力图谱就清晰了:VS Code 扩展做日常编程,CLI 接入自动化流水线,Kanban 编排并行代理,本地模型保护隐私或控制成本——根据场景自由组合。

Author
Share or copy the link
← Previous articleCline 实战手册:开源免费的 VS Code AI 编程 Agent — Cline CLI 与 CI/CD 自动化:在终端和流水线里运行 AI 代理Next article →OpenHands 实战指南:开源 AI 编程 Agent — OpenHands 是什么:免费开源的 AI 编程 Agent

Related articles

USYD 医疗初创盘点、网络平台注意义务法案、全身 MRI 广告研究

2026-12-02

UQ 皮肤癌在线硕士开办 20 周年、中澳绿色钢铁对话、HIV 预防提醒

2026-12-02

UNSW iFire 2.3 火场模拟系统、AI 卵巢癌预后研究、艺术家与 AI 版权调查

2026-12-02

ANS-C01 退役倒计时 29 天 · AIB-C01 Beta $50 新认证上线 · MLA-C02 Beta 报名开放

2026-12-02

Amazon开放首个自研大模型Ergo,代理作弊率实测差距悬殊,Anthropic格密码结果暂无现实威胁

2026-12-02

GitHub Copilot 实战指南 — Copilot AI Code Review:30 秒让 AI 帮你审 PR,三档深度随需切换

2026-12-01
View all articles →

Done reading? Next steps

Not sure what to learn next? Tell us where you are

Tell us what you do now and where you want to go. See your gaps in skills, evidence, experience, expression and positioning, and what to work on first. No sign-in needed.

Compare with my situation
  • SkillAI Coding for EveryoneShip real products with Cursor + AI, no coding background needed. The 6-week Foundation track builds 4 deliverables; the 8-week Advanced track adds an Admin CMS, a chatbot and a data dashboard.See the program →
  • PositioningLearning roadmaps by roleFrontend, backend, data, AI and more, laid out stage by stage in the order to learn them.All roadmaps →
  • ExpressionTry an AI mock interviewPick a role and run a mock interview to practise explaining your experience and projects.Practise now →

Not sure what to do next?

Take this page's topic with you and see where your gaps are.

Compare with my situation
JR Academy
AI learning for the global Chinese community
BootcampsFree resourcesLearn AICareer coaching
精选推荐
AI Career Impact Map
Assess career exposure and explore transition paths and learning options
Popular tool
AI & Data Bootcamps
Build your skills through structured courses and hands-on projects
Popular courses
1:1 Career Coaching
Work with an experienced mentor on your resume and interview preparation
Career coaching
Custom Corporate Training
AI training tailored to your team
Business services
Popular tags
Vibe CodingAI codingCursorClaudeJob searchPromptFrontend developmentBackend development
Subscribe to updates

Receive AI learning resources, technical tutorials and career advice by email.

We respect your privacy and do not send spam.