Teams, Rules & Code Protection
Collaborate with teammates on one host Source Code Vault with role-based permissions, shared rules, shared memory, and task claims.
Traditional Git workflows were built for humans taking turns. When multiple people and multiple AI agents edit the same project at once, branches multiply, every agent re-reads the same files, and merge conflicts pile up. LightCode gives your whole team one coordinated workspace—without handing out copies of your source code.
Host Source Code Vault (team collaboration without exposing code)#
In LightCode, your source code, environment files, and AI account credentials live on one central host computer (Pro feature):
- No source downloads: Teammates join through encrypted invite links and work inside agent sessions hosted on the central machine. The app provides no button to download or sync your repository to their personal devices.
- Centralized AI accounts: The project owner connects AI accounts once on the host. Developers and testers work productively without ever touching raw API keys or company account logins.
- Invite & revoke in one click: Open Edit project → Members to add teammates by email, copy invite links, monitor live presence (Online, Offline, or Pending), and revoke access anytime.
Four role-based access levels#
| Role | What they can do |
|---|---|
| Owner | Full workspace control, manages members and rules, approves live deploys, and receives every deploy notification email |
| Approver | Full session access plus permission to approve live and protected deployments |
| Developer | Runs sessions, writes features, and deploys directly to non-protected environments (or submits live deploys for approval) |
| Tester | Runs sessions to test and report issues; receives test/staging deploy emails and notifications when live releases ship |
Shared Rules (AGENTS.md & area rules)#
Keep every agent—yours and your teammates'—following the exact same coding standards and architectural conventions:
- Core rules (
AGENTS.md): Open Edit project → Rules to write project-wide rules that every session loads automatically. - Area rules (
.lcagent/rules-areas.md): Add path-scoped rules (## Title [in: src/deploy/**]) so agents only load specialized rules when working in matching folders—keeping prompts lean and saving tokens. - Built-in Rules Audit: LightCode automatically checks for stale area rules pointing to deleted files, duplicate rules repeated from
AGENTS.md, or unused sections.
Shared Team Memory (.lcagent/knowledge.md)#
Instead of having every new session re-discover your codebase from scratch:
- Persistent knowledge: Agents save verified facts, gotchas, and design decisions via built-in
rememberandrecalltools into.lcagent/knowledge.md(and archive older entries into.lcagent/knowledge-archive.md). - Automatic memory consolidation: LightCode periodically consolidates and deduplicates memory entries so context stays accurate and compact—cutting token waste across parallel runs. You can trigger consolidation or restore previous snapshots anytime from Edit project → Memory.
Task & File Claims (preventing overlap)#
When several agents work simultaneously inside one shared workspace:
- Agents declare their scope and claim the files or folders they are actively editing (
claim_paths) and release or hand them off (release_paths,handoff_paths) when finished. - Coordinated claims stop two agents from editing the same file simultaneously or re-reading unchanged work—cutting token usage and eliminating manual merge-conflict cleanup.