Turn Claude Code into a permanent AI company: a hierarchy of agents with roles, memory and vetted skills, and review gates enforced by code. Multi-agent orchestration via MCP.
pip install try-professional==0.2.0 Copy PIP instructions
Preview: proven on Claude only. v0.1.2. It works, and it has rough edges. What was tested.
You describe a business, and Claude Code designs a company for it: departments, roles, and skills from GitHub that are checked before they're used. You approve it, and then you give it commands. It works only when you give it a command, and it remembers between commands: every role, from the CEO down, keeps its own memory and knows what it's working on.
A real run on 2026-11-08, on Sonnet through Claude Code. Waiting is cut, and each cut says how long it was. Long output is shortened, and marked. Claude Code ran non-interactively, and a script answered the real review screen, standing in for the person who approves. How it was recorded.
These are real, from the journey. This catering company was designed from one line, "a catering business that delivers office lunches", and approved:
Catering ├── Executive: CEO (head) · Chief of Staff ├── Operations: Ops Lead (head) · Support · Menu Planner · Delivery Scheduler ├── Finance: Finance Lead (head) ├── Marketing: Marketing Lead (head) · Content Writer ├── Sales: Sales Lead (head) · Proposal Writer └── Legal: Counsel (head) · Compliance Reviewer Asked for "a weekly lunch menu and a price list for a new office client with 30 people", its menu planner wrote this. The ops lead approved it for QA, and Counsel for Legal:
Mon - Lemon-herb grilled chicken, rice pilaf, green salad. Allergens: none of the 14 major allergens in the base recipe (check stock cube/dressing). Halal: yes if halal-certified chicken is sourced. Not vegetarian. Tue - Vegetable lasagna with side salad. Vegetarian. Allergens: gluten, milk, egg, celery. Wed - Chickpea & spinach coconut curry with basmati rice. Vegan, vegetarian, halal, gluten-free. ... PRICE LIST (USD, excl. tax and delivery) Item | Per person | Total for 30 Mon Chicken pilaf | 11.50 | 345.00 ... WEEK TOTAL | 55.50 | 1,665.00 It says what it doesn't know: prices are placeholders, and the allergen notes are for a kitchen to confirm. The whole menu, and its index.
It works in the command's language. For a banana-chip business in Indonesia, asked about shipping to Surabaya, a reply that names no rate it doesn't have:
Halo Kak, terima kasih sudah menghubungi kami! Kami kirim ke Surabaya. Besar ongkir tergantung berat pesanan dan kurir yang dipilih. ... The whole reply, and a two-week Instagram plan in Indonesian.
For Claude Code. You need Python 3.10 or newer, and Claude Code signed in. It uses your own Claude plan, with no API key, and each role runs as its own subagent.
1. Install it, and make a folder for your company.
pip install "try-professional[mcp]" mkdir my-company && cd my-company 2. Set it up for Claude Code. This checks Python, Claude Code, and your GitHub token, says how to fix anything missing, and adds Try Professional to Claude Code for this folder.
trypro setup claude-code If it says GITHUB_TOKEN isn't set, set it before you start Claude Code. Without one a company gets no skills. With the GitHub CLI, that's export GITHUB_TOKEN=$(gh auth token).
3. Describe your business. Claude Code designs a company and chooses skills, and then gives you a proposal id.
claude "Use the trypro tools to design a company for a catering business that delivers office lunches." 4. Read the proposal, and approve it. A person has to do this, in a terminal. No model can. Approving also creates the company's roles in Claude Code. The first approval downloads a local embedding model, about 0.22 GB. Your text is embedded on your machine and isn't sent anywhere.
trypro init --review 5. Start Claude Code again in this folder, and give the company a command. When it asks whether you trust this folder, say yes. Otherwise each role's server can't start, and /company stops rather than do a role's work itself.
/company Write a weekly lunch menu and a price list for a new office client with 30 people Your session only coordinates. Results are files, in deliverables/ /. Start with index.md.
/company Give it more work. It remembers earlier work trypro doctor Check your setup, and how to fix what's wrong trypro status Memory size, and tokens by month and command trypro audit Verify a run's audit log trypro decide resume Answer a command that stopped to ask you /company continue Then carry on with it trypro cancel Stop it. Its records stay trypro agents claude-code Rewrite the roles for Claude Code, after the company changes Build on Try Professional A company can be a part of your own agent. The Python API is stable across 0.x minor versions; the MCP tools and the adapter interface are experimental. What's stable, the Claude Code path, custom roles, and extending it.
from try_professional import Company company = Company.create("acme", name="Acme") # the default company: no model, no cost company.add_role( "marketing", "newsletter-editor", title="Newsletter Editor", mission="Write the weekly customer newsletter.", skill_needs=["write email newsletters"], ) company.setup_claude_code() # then, in Claude Code: /company examples/claude-code-agent has a delegate() tool your agent can call, to hand a goal to the company through Claude Code and read back what it made. Approving a company the AI designed, and answering a run's questions, stay with a person.
Each piece of work has one owner, gets reviewed, and leaves an audit log you can verify. Each role runs as its own subagent, which sees only its own assignment, memory, and skills. The rules that matter are enforced by code, not by asking a model nicely.
/company | v CEO: turns it into criteria someone can check | v Department: does the work /index.md, and an audit log Design. Claude Code calls the trypro tools to adapt one of five industry templates to your business, and to match skills to roles. skill-customs pins each skill to a commit, and checks its license and content. Approve. You read the proposal and approve it in a terminal. No model can do this. Roles. Approving, in a folder trypro setup claude-code set up, writes one subagent per role. Each has no shell and no file tools, only a server bound to that role. trypro agents claude-code writes them again after a company changes. Commands. Your session only coordinates. It can see who's next, and it can't read an assignment or submit anything. A small command goes straight to one role, and a large one is planned by department heads. Memory. Roles keep their own memory, and later commands get the finished work of earlier ones. What was tested, and how Model How Result claude-sonnet-5-5 for every role, and claude-haiku-5-5 for matching skills Claude Code 2.1.319 on Windows 11, through MCP, each role as its own process with only that role's server 9 of 9 commands finished, on 3 businesses. All 108 artifacts were recorded as coming from the right role's own server. Details claude-sonnet-5-5 for every role /company in one Claude Code session, each role as a subagent, on a business kept out of all training One prompt to a company, a command, and a later related command that followed the first. All 23 artifacts came from the right role's own server. It passed on its sixth run, and the fifth stopped at the token limit. Every run claude-haiku-5-5 for every role, and for the session /company in Claude Code, on the acceptance journey, twice 0 of 6 commands finished. Each stopped for a person after its rework limit, or because earlier work wasn't approved. Isolation held: 90 artifacts, none claimed. Its reviewers caught 22 of 22 seeded flaws, and sent back 2 of 4 clean documents. Details deepseek-v4.1-flash-1017 API runner check-model: usable with caveats. The same small command finished once in three runs, and the other two blocked. Why Those are the only models tested. The test suite runs on a scripted model, on Linux, macOS, and Windows.
This doesn't show that a cheap model does good work. Quality on a cheap model is for v0.2.
We put flawed documents into real runs over MCP, and counted how many reviewers rejected for that flaw. How it ran, and every verdict.
This is a small test, and it only shows so much. One run of each document, on claude-sonnet-5-5 only. The documents are short, with one flaw each, and every fact could be checked against the command. Long documents, wrong facts about the world, Legal on its own, and cheap models weren't tested.
The rules are stricter because of this test. On the earlier rules, a reviewer noted an invented claim as minor, and 3 of 4 were caught. The stricter rules also cost something: reviewers now send back some work that didn't need it.
Tokens per command on Claude, measured. It's run through Claude Code, so each role's process also carries Claude Code's own instructions, which is most of the cached input. An API model's numbers will differ. The price is what Claude Code reports at API list prices. On a Claude plan, this comes out of your plan's usage instead.
Those ran before reviews got stricter, which adds rework. The acceptance run on the current rules shows that, with a /company session and its subagents together:
Small commands cost about half as much since 0.1.2. A small command that one role does no longer gets a final report from the CEO, or a legal review of that report. In 2 of the 3 measured below, Legal had sent that summary back twice, after approving the work itself. QA, and Legal on the work, still run. The same 3 commands, on fresh copies of the same companies, measured the same way as the first table:
The last one has a real round of rework on its work in 0.1.2, so it saved little. One run of each, so expect some spread. Details.
A hierarchy spends more than one agent would. On the first table's small commands, reviews alone took 39% to 46% of the output tokens. No comparison with a flat setup has been measured yet. The benchmark is designed, reviewed for bias, and frozen, and it will be run in a later version.
On DeepSeek through the API runner, the one small command that finished took 25,020 tokens: details.
How is this different from using one agent? One agent is cheaper and faster, and for a small one-off job it's probably the better choice. Here, reviews alone took 39% to 46% of the output tokens on small commands. What that buys is a reviewer who didn't do the work, memory for each role across commands, and an audit log. No comparison of results has been measured yet.
How is it different from a flat swarm? In a swarm, agents work side by side. Here work flows through a hierarchy, each piece has one owner, and a role can't see another role's memory or assignments, because its server won't show them. We haven't measured whether that gives better results. That benchmark is on the roadmap.
What does a command cost? On a Claude plan, it comes out of your plan's usage. At API list prices, the small commands we measured came to about $0.13 to $0.66, and the largest to $1.67. Rework makes it cost more. See the tables. A command stops and asks you at 150,000 tokens if small, or 500,000 if large, over MCP, and at 60,000 and 200,000 on the API runner.
Which models work? It has been proven on claude-sonnet-5-5 through Claude Code, with claude-haiku-5-5 matching skills. With every role on Haiku, it finished none of 6 commands. Its rules held, and its reviewers caught every seeded flaw, but its writers couldn't get work past those reviewers. Details. On deepseek-v4.1-flash-1017, the same small command finished in one run of three. No other model has been tried. See what was tested.
Available, not promised. These exist and have tests, and they aren't what this release stands behind.
The API runner, for any OpenAI-compatible model: deepseek-v4.1-flash-1017 is the only one tried, and the table above shows how that went. Grok and others should work the same way, and haven't been tried. Copy .env.example to .env, set TRYPRO_LLM_BASE_URL, TRYPRO_LLM_API_KEY, TRYPRO_LLM_MODEL, and GITHUB_TOKEN, and check the model first:
trypro check-model trypro init "a YouTube Shorts content company" trypro run "Make 5 Shorts about AI tools for this week" trypro run --queue " " # Then: trypro next trypro resume # Continue unfinished work check-model tests tool calling, strict structures, following a brief, replying in the command's language, and treating data as data. Then it has the model finish one small real command, through every review, within 40,000 tokens. It reports suitable, usable with caveats, or not recommended, and it can spend up to about 45,000 tokens. It's one run, so a different run can go differently.
A look with no model at all. A scripted model stands in, so this shows how the company works, not what a model would write:
trypro init trypro run --dry-run "Build a health check endpoint" trypro check-model --dry-run Other MCP clients, such as Cursor and Codex: the server should work with them, and none has been tried. Setting one up, and what it can't guarantee.
In a rough order, which your feedback can change:
MIT licensed. No telemetry. Keys come from environment variables, and are never logged.
Both files in this release have provenance metadata.
agent-memory agent-orchestration agent-skills ai-agents claude claude-code hierarchical-agents llm mcp model-context-protocol multi-agent
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.
Both files in this release have been uploaded with provenance metadata.
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.




