Documentation
Getting Started
Set up DevCortex and run your first AI agent session in under 10 minutes.
What is DevCortex
#DevCortex is a structured requirements management platform built for agentic software development. It bridges the gap between human product thinking and AI-driven implementation by giving your AI agent a source of truth to work from.
- A requirements backlog with Acceptance Criteria linked to implementation
- An MCP (Model Context Protocol) server that AI agents use to read requirements and record verification results
- A CLI (
dcx) for local project management - A web dashboard to monitor agent sessions and review audit trails
Prerequisites
#Before you begin, ensure you have the following installed:
- Node.js 18 or higher
pnpmpackage manager- Code Agent: Claude Code CLI — see docs.anthropic.com/claude-code
- A DevCortex account (created in the next step)
Create Account
#- Go to app.devcortexai.com/register
- Enter your email and a secure password
- Verify your email address via the confirmation link
- You will be redirected to your dashboard with a default project already created
Install CLI
#Install the DevCortex CLI globally:
npm install -g @devcortex/cliOr with pnpm:
pnpm add -g @devcortex/cliVerify the installation:
dcx --versionThen authenticate with your DevCortex account:
dcx loginChoose Your AI Agent
#DevCortex supports two AI coding agents. Choose the one you prefer and install it alongside the DCX CLI:
Claude Code (recommended)
npm install -g @anthropic-ai/claude-code
dcx init
dcx startOpenCode
npm install -g opencode-ai
dcx init --agent opencode
opencode.mcp.json is generated for Claude Code; opencode.json is generated for OpenCode. Neither file is read by the other agent. Both contain your API key and are added to .gitignore automatically — never commit them.Create Project
#In the root directory of your software project, run:
dcx initThis creates a .devcortex-link.json file that links the local directory to your DevCortex project. Commit this file so all team members share the same project link.
{
"orgSlug": "your-org",
"projectId": "cmmxbv3v60008b0pz..."
}Importing Requirements
#DevCortex supports importing requirements from existing tools so you can migrate existing specs without manual re-entry.
Import from AWS Kiro
If your project uses AWS Kiro for spec-driven development, import your requirements.md directly into DevCortex:
# Preview what will be imported (no changes made)
dcx import kiro ./requirements.md --dry-run --verbose
# Import into your initialised project
dcx import kiro ./requirements.md
# Import with custom spec version and title
dcx import kiro ./requirements.md \
--spec-version 2.0.0 \
--spec-title "Sprint 15 Requirements" \
--priority MUSTDevCortex will create a Spec from the Kiro Introduction and Glossary, and a Requirement with Acceptance Criteria for each requirement in the file.
Import from CSV
Import requirements from a DevCortex-formatted CSV export:
# Preview the import
dcx import csv ./requirements.csv --dry-run
# Import into your initialised project
dcx import csv ./requirements.csvList supported import formats
dcx import --listFlags available for all import formats
| Flag | Description | Default |
|---|---|---|
| --dry-run | Preview import without making changes | false |
| --verbose | Show full AC text during preview | false |
| --spec-version | Version string for the created Spec | 1.0.0 |
| --spec-title | Title for the created Spec | Imported from [format] |
| --priority | Default priority for all requirements | MUST |
| --status | Default status for all requirements | DRAFT |
| --project | Override project slug from dcx init | (from config) |
Connect Your AI Agent
#dcx init generates the right config file automatically. Both formats connect to the same DevCortex MCP server.
Claude Code — .mcp.json
{
"mcpServers": {
"devcortex": {
"type": "http",
"url": "https://api.devcortexai.com/mcp",
"headers": { "x-api-key": "dc_live_YOUR_KEY" }
}
}
}OpenCode — opencode.json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"devcortex": {
"type": "remote",
"url": "https://api.devcortexai.com/mcp",
"headers": { "x-api-key": "dc_live_YOUR_KEY" }
}
}
}Your API key is available in Project Settings → MCP Connection in the DevCortex dashboard, or is generated automatically by dcx init.
dcx init adds both .mcp.json and opencode.json to your .gitignore automatically.Run Agent Session
#With .mcp.json in place, start Code Agent from your project directory:
dcx startCode Agent automatically loads the DevCortex MCP tools. Prompt the agent to begin implementing:
implement the next approved requirementThe agent follows the DevCortex workflow automatically:
- Calls
dc_healthto verify the MCP connection - Fetches the next APPROVED requirement with
dc_get_requirement - Marks it IN_PROGRESS with
dc_update_requirement_status - Implements the code and runs tests
- Records verification results with
dc_record_verification - Logs the implementation with
dc_log_implementation
Monitor and Supervise
#While the agent works, use the DevCortex dashboard to track progress:
- Backlog — view requirement statuses (APPROVED → IN_PROGRESS → VERIFIED) in real time
- Activity — a full audit trail of every MCP call the agent made, timestamped and searchable
- Issues — any problems the agent logged via
dc_create_issue, ready for human review - Spec — the product specification the requirements were derived from
Workflow
#The recommended DevCortex development cycle:
- Write a spec — describe your product or feature in the Spec editor
- Generate requirements — use the AI assistant to break the spec into MUST / SHOULD / COULD requirements, each with Acceptance Criteria
- Approve requirements — review and set status to APPROVED for the requirements you want the agent to work on
- Run an agent session — start Code Agent and let it implement the approved requirements
- Review and verify — check the implementation against the ACs, mark VERIFIED when satisfied
- Repeat — add more requirements to the backlog and start the next sprint
Troubleshooting
#MCP connection fails
Check that your API key in .mcp.json matches the one shown in Project Settings. The URL must be exactly:
https://api.devcortexai.com/mcpTest connectivity with:
dcx healthAgent can't find APPROVED requirements
Ensure requirements are in APPROVED status in the backlog — the agent only picks up APPROVED items. Check the project link is correct:
cat .devcortex-link.jsondcx init warns about overwriting
If a .devcortex-link.json already exists, dcx init will prompt before overwriting. Type y to confirm or N to cancel (default).
TypeScript errors in generated code
Run the type checker before marking an implementation complete:
pnpm typecheckCheck your CLAUDE.md for project-specific type rules the agent should follow.
OpenCode can't find MCP tools
Ensure opencode.json exists in your project root. Run:
dcx init --agent opencodeThen restart OpenCode — config is loaded once at startup.
OpenCode is using curl instead of native MCP tools
opencode.json is missing or OpenCode was not restarted after dcx init. Run dcx init --agent opencode and restart OpenCode.