
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
secure-coding-agent
Advanced tools
Security-first orchestration for Claude Code and OpenCode-based AI workflows.
A security-first workflow layer for Claude Code and OpenCode-based agents.
Secure Coding Agent turns subscription-based coding CLIs into a structured secure development workflow with planning, implementation, review, reporting, and rollback built in.
AI-assisted development is productive, but the default workflow is still weak:
Secure Coding Agent exists to answer a specific problem:
How do you turn AI coding CLIs into a disciplined, security-aware workflow that is usable by real engineers?
This project treats AI-assisted development as a systems problem:
Copy and paste this prompt into your agent session:
Install and configure secure-coding-agent in this repository by following the instructions here:
https://raw.githubusercontent.com/raomaster/secure-coding-agent/main/docs/guide/installation.md
Use curl to fetch the guide.
Default to --host auto.
Keep the security layer enabled unless I explicitly ask to skip it.
If oh-my-openagent / oh-my-opencode is already present, install the OMO-aware setup.
Only ask questions if the host setup is genuinely ambiguous.
Run it from the root of the project you want to bootstrap:
npx secure-coding-agent
Install into a different project without changing directory:
npx secure-coding-agent /path/to/project
Secure Coding Agent installs a two-layer workflow:
Layer 1: npx agent-security-policies -> security rules, policies, baseline agent guidance
Layer 2: npx secure-coding-agent -> orchestration, role config, pipeline commands
Core roles:
| Role | Default CLI / model | Responsibility |
|---|---|---|
| Planner | Claude Sonnet 4.6 or OpenCode host | Research, decomposition, orchestration |
| Coder | Claude Haiku 4.5 or OpenCode host | Implementation workers |
| Reviewer | Gemini 3.1 Pro or OpenCode host | Security review |
| Reporter | Gemini Flash or OpenCode host | Executive reporting |
| Specialist | Codex o4-mini | Second opinion / complex problem solving |
flowchart TD
A["Developer request"] --> B["/plan<br/>Planner"]
B --> C["Task breakdown<br/>and security surface analysis"]
C --> D["/code<br/>Coder workers"]
D --> E["Checkpoint + rollback safety"]
E --> F["/review<br/>Reviewer"]
F --> G["/report<br/>Reporter"]
G --> H["Decision-ready output"]
Key design choices:
claude-code, opencode, and opencode-omo install different surfaces.multi-agent.json controls the preferred stack and runtime commandsThese flows are part of the current v0.2.x stable surface:
npx secure-coding-agentdocs/guide/installation.md--host auto|claude-code|opencode|opencode-omo.multi-agent.json installation and role configurationcreate-skill skillopencode-omo/plan, /code, /review, /report, /full-cycle/checkpoint, /rollback, /rolesnpm run verifyThese capabilities are intentionally shipped as preview / evolving workflows:
/lint/security-reviewThe goal is to keep the core reliable while higher-value workflows mature in public.
Secure Coding Agent is built for:
It is not positioned as:
Most AI coding tools optimize for raw generation speed.
Secure Coding Agent optimizes for:
The differentiator is not “more models”. The differentiator is security-first orchestration for AI coding workflows.
This repository includes the artifacts needed to evaluate the project as a serious engineering system:
Validation:
npm run verify
That runs:
Supported baseline:
>=18Required CLIs depend on the workflow you want:
| Capability | Requirement |
|---|---|
| Orchestration install | Node.js + npm |
| Full security layer | agent-security-policies install path via npx |
| Claude host mode | @anthropic-ai/claude-code |
| OpenCode host mode | opencode |
| OpenCode + OmO host mode | opencode + oh-my-openagent |
| Optional Codex specialist role | @openai/codex |
| Optional Gemini review/reporting | @google/gemini-cli |
See docs/compatibility.md for explicit behavior and limitations.
| Command | Purpose |
|---|---|
/plan | Explore the codebase and produce a structured implementation plan |
/code | Delegate implementation to the configured coder |
/review | Run AI security review with the configured reviewer |
/report | Generate executive output from findings |
/full-cycle | Execute the end-to-end workflow |
/checkpoint | Create a manual safety checkpoint |
/rollback | Restore a previous checkpoint |
/roles | Show or change role assignments |
| Command | Purpose |
|---|---|
/lint | Run language-aware linting |
/security-review | Run a broader static + AI review workflow |
| Skill | Purpose |
|---|---|
create-skill | Create or refine repo-local skills using the project skill contract |
# Claude Code
npm i -g @anthropic-ai/claude-code
# Gemini CLI
npm i -g @google/gemini-cli
gemini auth login
# Codex CLI
npm i -g @openai/codex
codex
# Run in the current project
npx secure-coding-agent
# Let the installer infer the host from the repo
npx secure-coding-agent --host auto
# Force OpenCode + oh-my-openagent mode
npx secure-coding-agent --host opencode-omo
# Install globally if preferred
npm i -g secure-coding-agent
secure-coding-agent
# Advanced: install into another project
npx secure-coding-agent /path/to/project
git clone https://github.com/raomaster/secure-coding-agent.git
cd secure-coding-agent
npm install
npm run verify
Layer 2 from this package installs:
CLAUDE.md for claude-code hostsAGENTS.md for opencode and opencode-omo hosts.multi-agent.json role configuration with host-aware defaults and optional .secure-coding/ persistence settings.claude/commands/* for claude-code and opencode-omo.opencode/command/* for plain opencodecreate-skill in .claude/skills/ or .opencode/skills/ depending on host.claude/agents/ for opencode-omosecure-coding-agent only adds complementary project agents.claude/settings.json for Claude Code MCPNear-term roadmap:
.secure-coding/ persistence and artifact workflowsSee ROADMAP.md for the full progression.
FAQs
Security-first orchestration for Claude Code and OpenCode-based AI workflows.
We found that secure-coding-agent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.