Requirements Agent
Self-contained Spec Circuit requirements agent: multi-persona BMAD review → quality score → refine → BRD → Markdown/PDF.
No Atlas / FastAPI / Mongo dependency. Configure LLMs in JSON, agent settings in YAML, run from CLI or Textual TUI.
Install & init
cd Requirement_Agent
pip install -e ".[dev]"
# Scaffold config in the current directory
req-agent init
# Or into ~/.config/requirements-agent/
req-agent init --global
npm launcher (optional)
The agent is Python. For npx / npm discoverability there is a thin wrapper in npm/:
cd npm && npm install && npm link
npx req-agent --help
Publish PyPI for the real package; publish npm only as the launcher (see npm/README.md).
One-shot release (same version on both registries; assumes you already ran twine/npm login):
./scripts/publish.sh # current pyproject version
./scripts/publish.sh 0.2.0 # bump + publish
./scripts/publish.sh --dry-run # build only
init writes:
| File | Purpose |
|---|---|
requirements-agent.yaml |
Agent settings (context, prompts, export, active LLM profile) |
llms.json |
Named LLM profiles (multiple models/providers) |
.env.example |
Env var cheat-sheet for API keys |
Configure LLMs (llms.json)
{
"default": "azure-gpt4o",
"models": {
"azure-gpt4o": {
"provider": "azure",
"model": "gpt-4o",
"deployment": "gpt-4o",
"endpoint": "https://YOUR.openai.azure.com/",
"api_key_env": "RA_AZURE_API_KEY",
"temperature": 0.3
},
"ollama-llama": {
"provider": "ollama",
"model": "llama3.2",
"endpoint": "http://127.0.0.1:11434/v1"
},
"mock": { "provider": "mock", "model": "mock" }
}
}
List profiles: req-agent models
Configure agent (requirements-agent.yaml)
llm:
models_file: ./llms.json
active: azure-gpt4o # or override with --profile
context:
providers: [folder]
folder_paths: [./docs]
prompts:
personas:
architect:
system_extra: "Emphasize zero-trust boundaries."
export:
default_format: both
out_dir: ./out
Examples: config.example.yaml, llms.example.json. Legacy TOML still loads if present.
Env overrides: RA_CONFIG, RA_LLMS_JSON, RA_LLM_PROFILE, RA_LLM_PROVIDER, RA_LLM_MODEL, RA_API_KEY / OPENAI_API_KEY / RA_AZURE_*.
CLI
# Offline dry-run
req-agent run \
--title "Identity Hub SSO" \
--design-file ./brief.md \
--profile mock \
--format both \
--out ./out/identity-hub
# Use a named profile from llms.json
req-agent run --profile azure-gpt4o --title "..." --design-file brief.md
# Interactive TUI
req-agent tui --profile mock
# Stages
req-agent review --title "..." --design-file brief.md --out ./out
req-agent score --title "..." --design-file brief.md --report ./out/01-spec-circuit-report.md
req-agent refine --title "..." --design-file brief.md --report ./out/01-spec-circuit-report.md \
--message "Add measurable NFRs" --out ./out/01-refined.md
req-agent consolidate --title "..." --design-file brief.md --report ./out/01-refined.md \
--out ./out/02-requirements-report.md
req-agent export --report ./out/02-requirements-report.md --out ./out/report --format both
Context injection
| Provider | v1 |
|---|---|
| folder | --attach / --context-dir / folder_paths |
| rag | Stub (phase 2) |
| mcp | Stub (phase 2) |
Personas
Eight BMAD roles (vendored bmad-core-spec): orchestrator → analyst → pm → po → architect → dev → qa → sm.
TUIOS
Optional: when running inside tuios, the agent calls tuios set-agent-state. Force with RA_TUIOS_HOOK=1.
vs Atlas Requirements Architect
Same Spec Circuit brain and BMAD pack; Memory AI → local folder (future RAG/MCP); LLMs from llms.json instead of Mongo Settings. See REQUIREMENTS_ARCHITECT.md.
Release files for requirements-agent 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| requirements_agent-0.0.4.tar.gz | 57.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| requirements_agent-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 130.7 kB
Release files / requirements_agent-0.0.4.tar.gz
| Download URL | requirements_agent-0.0.4.tar.gz |
|---|---|
| Size | 57.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
420ed21a7bac13aa62e1103fdfa4cf770b002393beac7ee1cad5c6456b0fbd31
|
|
BLAKE2b-256 checksum How to use checksums |
f05a010ed0b8bb46a96b107de2ea1244fe68a4648d0af3ad7cb6814098630bff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.13
|
Release files / requirements_agent-0.0.4-py3-none-any.whl
| Download URL | requirements_agent-0.0.4-py3-none-any.whl |
|---|---|
| Size | 73.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6446ec924e6bdfbebfd74fca2aff2438dfd2968b20cc74b493c00a1edb68b40f
|
|
BLAKE2b-256 checksum How to use checksums |
e27830ef1123ae2b6791d90aa71b3c88d77a1eedbfe22e579cc132c386570deb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.13
|