DevCortex← Back to home

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
  • pnpm package manager
  • Code Agent: Claude Code CLI — see docs.anthropic.com/claude-code
  • A DevCortex account (created in the next step)

Create Account

#
  1. Go to app.devcortexai.com/register
  2. Enter your email and a secure password
  3. Verify your email address via the confirmation link
  4. You will be redirected to your dashboard with a default project already created
DevCortex creates an organisation and a default project automatically on registration. You do not need to set anything up manually.

Install CLI

#

Install the DevCortex CLI globally:

bash
npm install -g @devcortex/cli

Or with pnpm:

bash
pnpm add -g @devcortex/cli

Verify the installation:

bash
dcx --version

Then authenticate with your DevCortex account:

bash
dcx login

Choose Your AI Agent

#

DevCortex supports two AI coding agents. Choose the one you prefer and install it alongside the DCX CLI:

Claude Code (recommended)

bash
npm install -g @anthropic-ai/claude-code
dcx init
dcx start

OpenCode

bash
npm install -g opencode-ai
dcx init --agent opencode
opencode
Config files: .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:

bash
dcx init

This 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.

json
{
  "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:

bash
# 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 MUST

DevCortex 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:

bash
# Preview the import
dcx import csv ./requirements.csv --dry-run

# Import into your initialised project
dcx import csv ./requirements.csv

List supported import formats

bash
dcx import --list

Flags available for all import formats

FlagDescriptionDefault
--dry-runPreview import without making changesfalse
--verboseShow full AC text during previewfalse
--spec-versionVersion string for the created Spec1.0.0
--spec-titleTitle for the created SpecImported from [format]
--priorityDefault priority for all requirementsMUST
--statusDefault status for all requirementsDRAFT
--projectOverride 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

json
{
  "mcpServers": {
    "devcortex": {
      "type": "http",
      "url": "https://api.devcortexai.com/mcp",
      "headers": { "x-api-key": "dc_live_YOUR_KEY" }
    }
  }
}

OpenCode — opencode.json

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.

Never commit your API key to version control. 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:

bash
dcx start

Code Agent automatically loads the DevCortex MCP tools. Prompt the agent to begin implementing:

text
implement the next approved requirement

The agent follows the DevCortex workflow automatically:

  1. Calls dc_health to verify the MCP connection
  2. Fetches the next APPROVED requirement with dc_get_requirement
  3. Marks it IN_PROGRESS with dc_update_requirement_status
  4. Implements the code and runs tests
  5. Records verification results with dc_record_verification
  6. 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
You can interrupt the agent at any point. DevCortex preserves all state — the next session picks up from where the last one left off.

Workflow

#

The recommended DevCortex development cycle:

  1. Write a spec — describe your product or feature in the Spec editor
  2. Generate requirements — use the AI assistant to break the spec into MUST / SHOULD / COULD requirements, each with Acceptance Criteria
  3. Approve requirements — review and set status to APPROVED for the requirements you want the agent to work on
  4. Run an agent session — start Code Agent and let it implement the approved requirements
  5. Review and verify — check the implementation against the ACs, mark VERIFIED when satisfied
  6. 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:

text
https://api.devcortexai.com/mcp

Test connectivity with:

bash
dcx health

Agent 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:

bash
cat .devcortex-link.json

dcx 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:

bash
pnpm typecheck

Check 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:

bash
dcx init --agent opencode

Then 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.