Skip to main content

CodeCortex

A project board that lives in the repository. Plans, ideas, decisions and references are cards; each card is planned, in progress, waiting or done. People watch the board on a canvas, and coding agents read and update it through a command line that answers in a few lines, so project context does not pile up in the agent's conversation.

Status: the file format, the command line, the canvas, the activity hooks for Claude Code and the plugin work. Card translation is written but has only been exercised in a browser without a built-in translator.

Install

Python 3.9 or newer, no other dependencies.

pip install codecortex-board

The package is called codecortex-board; the command it installs is codecortex. It is not related to the project named codecortex on PyPI, and the two should not be installed into the same Python environment, since both use that name.

To work on CodeCortex itself, install it from a copy of this folder with pip install -e ., or run it without installing as python -m codecortex with src on PYTHONPATH.

A first board

codecortex init
codecortex plan add core "Core work"
codecortex add checklist "Build the parser" --plan core --item "Read headers" --item "Read lists"
codecortex add note "Write the docs" --plan core --dep build-the-parser
codecortex start build-the-parser
codecortex tick build-the-parser 1
codecortex status

codecortex --help lists every command, and each one explains itself with --help. Add --json to any command for full data.

The canvas

codecortex open

This starts a small server on this machine only and opens the canvas in the browser. Cards sit in four zones (planning, in progress, waiting, done) and move on their own while the board changes, whether the change comes from the command line, an agent or a file edited by hand. Click a card to read it in full. Press Ctrl+C in the terminal to stop the server.

codecortex open --background
codecortex stop

With --background the command returns and the viewer keeps running. It stops by itself after 30 minutes with no canvas open and no board changing (--idle-minutes sets another limit), and codecortex stop ends it at once, from any folder.

  • Approve, reject, comment. A proposal shows Approve and Reject buttons; rejecting lets you say why, and any card takes comments. The agent reads them with codecortex inbox.
  • Answer. A question card shows the answers its asker offers, the recommended one marked with a star, and takes an answer of your own too. Answering settles the question and lets the cards that waited on it move on. When several questions come together, one button accepts every recommendation. From a terminal: codecortex answer <id> "your answer".
  • Edit. Open a card and press Edit to change its title, summary and text; a line that starts with - [ ] is a checklist item. On a proposal, Save and approve does both at once. Approving, rejecting, commenting, answering and editing are all the canvas can change.
  • By plan. The By plan switch regroups the same cards into one column for each plan, with the zones inside it.
  • Replay. The Replay switch opens a bar that steps through every change the board went through, or plays them. Nothing can be changed while looking at the past, and a card's text shows as it is now, since the log records that a text changed but not what it was.
  • Several repositories. Every repository where you ran codecortex init or codecortex open is a tab. Running codecortex open again elsewhere adds a tab to the viewer that is already running. codecortex repos lists them and codecortex repos remove <name> hides one; the list is kept in your home folder, not in any repository.
  • Activity. With the hooks installed (see below), a card lights up while the agent edits a file the card lists. Turn on Detail to see every file edited or read and every program run. A small counter shows edits to files that no card lists.
  • Languages. The interface is in English, Portuguese or Spanish. Card content is translated only by the browser's own built-in translator (Chrome on desktop has one), on your machine; where there is none, cards stay as written.

How it works

  • Files. The board is the .codecortex/ folder: board.json (name and plans), nodes/<id>.md (one card per file: a short header plus markdown), events.jsonl (every change, in order) and trash/ (rejected and removed cards). Commit it with the rest of the repository. Cards can be edited by hand; codecortex check finds mistakes.
  • Zones. A card's status is planning, progress or done. Waiting is worked out, not stored: a card in progress waits while something it depends on is unfinished, and any card waits while its waiting_on field says what for. Finishing a card releases the ones that waited on it.
  • People and agents. Every change records who made it: --actor NAME, or the CODECORTEX_ACTOR variable, or your git user name. A name listed under agents in board.json is an agent (claude, codex, cursor and a few others by default); a tool with another name sets CODECORTEX_AGENT=1. Everyone else is a person.
  • Proposals. Cards added by an agent start as proposals, drawn as ghosts, and cannot be started until a person approves them.
  • Images. codecortex attach <id> <image> copies an image into .codecortex/assets/ and shows it on the card.
  • Files. A card can list the project files it is about: --file when adding it, codecortex set <id> --add-file <path> later. A folder covers everything inside it.

Agents

codecortex install claude

This writes two things into the repository's .claude/ folder, so everyone who clones it gets them: a skill that teaches Claude Code to use the board, and hooks that call codecortex hook claude. Existing settings are kept, and codecortex install claude --remove takes it all out again. CodeCortex has to be installed on each machine; where it is missing the hooks do nothing. On Windows the hooks also try py -m codecortex, so they work even when the folder holding the codecortex command is not on PATH; without it, run the commands in this file as py -m codecortex ....

  • When a session starts, the agent is given the board in one line, plus what other people changed since it last looked. The viewer also comes up in the background, without opening a browser, and the agent is told its address; it stops by itself as described above. Set CODECORTEX_NO_VIEWER=1 to keep it from starting.
  • While it works, each file it edits or reads and each program it runs is noted in .codecortex/.local/activity.jsonl. That file stays on your machine, is never committed and is cut back when it grows. Of a command, only the program names are kept, never its arguments. Files outside the repository are not noted.
  • When you answer on the canvas, the agent hears of it with your next message: approvals, rejections and comments ride in with whatever you type.
  • Nothing moves by itself. An edit lights a card up; only codecortex start and codecortex done change its status.

Waking an idle session. The agent can also react without you typing anything:

codecortex install claude --wake

After each turn a hook then waits in the background, for up to two hours. When a person approves, rejects or comments on the canvas, it lets a few quiet seconds pass, so that a run of clicks counts as one, and wakes the session with what changed. The agent is told to report what it saw and to ask before it starts building. Other agents' changes do not wake it. Each wake is a turn of the agent, so it is off unless you ask for it; codecortex install claude --no-wake turns it off again. This hook names the Python of the machine it was installed on, so it lives in .claude/settings.local.json: keep that file out of git, and run the command on each machine that should have it. It works only while the session is open.

As a plugin. To have the same skill and hooks in every repository on your machine instead of installing them into each one, add the Claude Code plugin in the plugin/ folder of this repository:

claude plugin marketplace add <path to this folder>
claude plugin install codecortex@codecortex

In a repository without a board the plugin does nothing, and in one that carries its own hooks it stands aside, so nothing is reported twice.

codecortex activity prints the same log in a terminal. Other tools can report through codecortex hook edit --file <path>, codecortex hook read --file <path> and codecortex hook run --cmd "<command>"; these are silent and never fail, so they are safe to call from any hook.

Tests

python -m unittest discover -s tests

Metadata

Release files for codecortex-board 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codecortex-board 0.3.0
File Size Uploaded Provenance Actions
codecortex_board-0.3.0.tar.gz 88.4 kB Without provenance Details for codecortex_board-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codecortex-board 0.3.0
File Interpreter ABI Platform Actions
codecortex_board-0.3.0-py3-none-any.whl Python 3 none any Details for codecortex_board-0.3.0-py3-none-any.whl

Total release size: 161.1 kB

Release files / codecortex_board-0.3.0.tar.gz

Download URL codecortex_board-0.3.0.tar.gz
Size 88.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f5177ef2faa548b405c433284ed8d0bd6b82fc60b59162447bf4094c453f5597
BLAKE2b-256 checksum
How to use checksums
5384abe7382d50359c5514b2bd92ddc8dfa698fdde6078bfb8b0b026bc338cb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.2

Release files / codecortex_board-0.3.0-py3-none-any.whl

Download URL codecortex_board-0.3.0-py3-none-any.whl
Size 72.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc4c5f8490658e5ea36995ae1c9cc81e9dfc70a9b4e70ff0a8d10b9153ca0171
BLAKE2b-256 checksum
How to use checksums
536d6ffde7ec60bf6d8f7827069112a26484d75532607016c9e40f8a3213f758
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.2

Security for codecortex-board 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page