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 initorcodecortex openis a tab. Runningcodecortex openagain elsewhere adds a tab to the viewer that is already running.codecortex reposlists them andcodecortex 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) andtrash/(rejected and removed cards). Commit it with the rest of the repository. Cards can be edited by hand;codecortex checkfinds mistakes. - Done takes proof.
codecortex done <id> --proof "what changed and how it was checked"marks a card done, with--shot <image>for a screenshot; without proof it is refused, for people and agents alike. The canvas shows the proof, the screenshot and the card's commits. Questions (settled by their answer) and decisions (by their approval) need none. - Zones. A card's status is
planning,progressordone. Waiting is worked out, not stored: a card in progress waits while something it depends on is unfinished, and any card waits while itswaiting_onfield 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 theCODECORTEX_ACTORvariable, or your git user name. A name listed underagentsinboard.jsonis an agent (claude,codex,cursorand a few others by default); a tool with another name setsCODECORTEX_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:
--filewhen 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=1to 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.
- Its task list shows on the card. The list the agent keeps while it works shows on the card it is working on (the card it last started), with the step it is on, and in full when you open the card. It stays on this machine, in
.codecortex/.local/sessions/. - You see when it waits for you. When the agent asks for a permission, asks you a question or finishes its turn, a badge on that card and a button in the top bar say so. What it asked to run is not kept.
- A plan becomes proposals. When you approve a plan the agent wrote in plan mode, its steps go onto the board as proposed cards in a plan of their own.
- Its subagents show too. When the agent hands work to a subagent, a line under its task list on the card names the subagent, what it was asked and what it is doing; a finished one stays in view for ten minutes.
- Its commits land on the cards. After the agent runs
git commit, the commit (short hash, message, time) is noted on every card whose listed files it changed, and the card counts them. Commits you make yourself are not noted. - Nothing moves by itself. An edit lights a card up; only
codecortex startandcodecortex donechange 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.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codecortex_board-0.6.0.tar.gz | 104.8 kB | Without provenance | Details for codecortex_board-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codecortex_board-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for codecortex_board-0.6.0-py3-none-any.whl |
Total release size: 191.1 kB
Release files / codecortex_board-0.6.0.tar.gz
| Download URL | codecortex_board-0.6.0.tar.gz |
|---|---|
| Size | 104.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eaa823cca524154e297a7e99bda51f7e0258ef1ca5e127ae5e35620fd7e3fef9
|
|
BLAKE2b-256 checksum How to use checksums |
ab3ca882925e8c099a541a3cddb109950e58a89f01b15a5482a46c38e5afb072
|
| 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.6.0-py3-none-any.whl
| Download URL | codecortex_board-0.6.0-py3-none-any.whl |
|---|---|
| Size | 86.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50088f5061872792a4e60deedc3a19d95cac9d4b0c51c638fad0ec12b7ae7734
|
|
BLAKE2b-256 checksum How to use checksums |
1535b79ba4bb44bae39983328545fddb8652124859a37884c7fa0a33b0d60314
|
| 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.6.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.