<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>955</ContextCount>
  <ElementCount>292</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>109</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>75000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>75010 - Statement - Consolidated Statements of Assets and Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities</Role>
      <ShortName>Consolidated Statements of Assets and Liabilities</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>75020 - Statement - Consolidated Statements of Assets and Liabilities (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical</Role>
      <ShortName>Consolidated Statements of Assets and Liabilities (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>75030 - Statement - Consolidated Statements of Operations (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited</Role>
      <ShortName>Consolidated Statements of Operations (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>75040 - Statement - Consolidated Statements of Changes in Net Assets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited</Role>
      <ShortName>Consolidated Statements of Changes in Net Assets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>75050 - Statement - Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>75060 - Statement - Schedule of Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/StatementScheduleOfInvestments</Role>
      <ShortName>Schedule of Investments</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>75070 - Statement - Schedule of Investments (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/StatementScheduleOfInvestmentsParenthetical</Role>
      <ShortName>Schedule of Investments (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>75080 - Statement - Schedule of Investments - Portfolio Composition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/StatementScheduleOfInvestmentsPortfolioComposition</Role>
      <ShortName>Schedule of Investments - Portfolio Composition</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995467 - Disclosure - Organization and Business Purpose</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureOrganizationAndBusinessPurpose</Role>
      <ShortName>Organization and Business Purpose</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995477 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995487 - Disclosure - Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstruments</Role>
      <ShortName>Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995497 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995507 - Disclosure - Transactions with Affiliated Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureTransactionsWithAffiliatedInvestments1</Role>
      <ShortName>Transactions with Affiliated Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995517 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995527 - Disclosure - Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureBorrowings</Role>
      <ShortName>Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995537 - Disclosure - Capital</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureCapital</Role>
      <ShortName>Capital</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995547 - Disclosure - Net Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureNetAssets1</Role>
      <ShortName>Net Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995557 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureEarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995567 - Disclosure - Financial Highlights</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureFinancialHighlights</Role>
      <ShortName>Financial Highlights</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995587 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995597 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995607 - Disclosure - Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsTables</Role>
      <ShortName>Fair Value of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstruments</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995617 - Disclosure - Related Party Transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureRelatedPartyTransactionsTables</Role>
      <ShortName>Related Party Transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureRelatedPartyTransactions</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995627 - Disclosure - Transactions with Affiliated Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureTransactionsWithAffiliatedInvestmentsTables</Role>
      <ShortName>Transactions with Affiliated Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureTransactionsWithAffiliatedInvestments1</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995637 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureCommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995647 - Disclosure - Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureBorrowingsTables</Role>
      <ShortName>Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureBorrowings</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>995657 - Disclosure - Capital (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureCapitalTables</Role>
      <ShortName>Capital (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureCapital</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>995667 - Disclosure - Net Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureNetAssetsTables</Role>
      <ShortName>Net Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureNetAssets1</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>995677 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureEarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureEarningsPerShare</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>995687 - Disclosure - Financial Highlights (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureFinancialHighlightsTables</Role>
      <ShortName>Financial Highlights (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureFinancialHighlights</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>995707 - Disclosure - Organization and Business Purpose - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureOrganizationAndBusinessPurposeAdditionalInformationDetails</Role>
      <ShortName>Organization and Business Purpose - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>995717 - Disclosure - Summary of Significant Accounting Policies Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>995727 - Disclosure - Fair Value of Financial Instruments - Schedule of Fair Value Measurements of Investments and Cash Equivalents, by Major Class (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsScheduleOfFairValueMeasurementsOfInvestmentsAndCashEquivalentsByMajorClassDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Fair Value Measurements of Investments and Cash Equivalents, by Major Class (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>995737 - Disclosure - Fair Value of Financial Instruments - Schedule of Reconciliation of the Beginning and Ending Balances for Investments that Use Level 3 Inputs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsScheduleOfReconciliationOfTheBeginningAndEndingBalancesForInvestmentsThatUseLevel3InputsDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Reconciliation of the Beginning and Ending Balances for Investments that Use Level 3 Inputs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>995747 - Disclosure - Fair Value of Financial Instruments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsAdditionalInformationDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>995757 - Disclosure - Fair Value of Financial Instruments - Schedule of the Significant Unobservable Inputs Relevant to the Determination of Fair Values (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsScheduleOfTheSignificantUnobservableInputsRelevantToTheDeterminationOfFairValuesDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of the Significant Unobservable Inputs Relevant to the Determination of Fair Values (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>995767 - Disclosure - Fair Value of Financial Instruments - Schedule of Amortized Cost and Fair Value of Performing and Non-Accrual Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsScheduleOfAmortizedCostAndFairValueOfPerformingAndNonaccrualInvestmentsDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Amortized Cost and Fair Value of Performing and Non-Accrual Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>995777 - Disclosure - Related Party Transactions - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationDetails</Role>
      <ShortName>Related Party Transactions - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>995787 - Disclosure - Related Party Transactions - Summary of Fund's Expiration of Reimbursements Subject to Recoupment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureRelatedPartyTransactionsSummaryOfFundsExpirationOfReimbursementsSubjectToRecoupmentDetails</Role>
      <ShortName>Related Party Transactions - Summary of Fund's Expiration of Reimbursements Subject to Recoupment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>995797 - Disclosure - Transactions with Affiliated Investments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureTransactionsWithAffiliatedInvestmentsAdditionalInformationDetails</Role>
      <ShortName>Transactions with Affiliated Investments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>995807 - Disclosure - Transactions with Affiliated Investments - Schedule of Company's Investments With Affiliates (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureTransactionsWithAffiliatedInvestmentsScheduleOfCompanysInvestmentsWithAffiliatesDetails</Role>
      <ShortName>Transactions with Affiliated Investments - Schedule of Company's Investments With Affiliates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>995817 - Disclosure - Transactions with Affiliated Investments - Schedule of Company's Investments With Affiliates (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureTransactionsWithAffiliatedInvestmentsScheduleOfCompanysInvestmentsWithAffiliatesParentheticalDetails</Role>
      <ShortName>Transactions with Affiliated Investments - Schedule of Company's Investments With Affiliates (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>995827 - Disclosure - Commitments and Contingencies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureCommitmentsAndContingenciesAdditionalInformationDetails</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>995837 - Disclosure - Commitments and Contingencies - Schedule of Company's Unfunded Commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfCompanysUnfundedCommitmentsDetails</Role>
      <ShortName>Commitments and Contingencies - Schedule of Company's Unfunded Commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>995847 - Disclosure - Borrowings - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureBorrowingsAdditionalInformationDetails</Role>
      <ShortName>Borrowings - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>995857 - Disclosure - Borrowings - Schedule of Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureBorrowingsScheduleOfBorrowingsDetails</Role>
      <ShortName>Borrowings - Schedule of Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>995867 - Disclosure - Borrowings - Schedule of Interest and Debt Fees (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureBorrowingsScheduleOfInterestAndDebtFeesDetails</Role>
      <ShortName>Borrowings - Schedule of Interest and Debt Fees (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>995877 - Disclosure - Borrowings - Schedule of Interest and Debt Fees (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureBorrowingsScheduleOfInterestAndDebtFeesParentheticalDetails</Role>
      <ShortName>Borrowings - Schedule of Interest and Debt Fees (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>995887 - Disclosure - Capital - Summary of Total Shares Issued and Net Proceeds Related to Capital Drawdowns (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureCapitalSummaryOfTotalSharesIssuedAndNetProceedsRelatedToCapitalDrawdownsDetails</Role>
      <ShortName>Capital - Summary of Total Shares Issued and Net Proceeds Related to Capital Drawdowns (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>995907 - Disclosure - Capital - Summary of Distributions Declared (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureCapitalSummaryOfDistributionsDeclaredDetails</Role>
      <ShortName>Capital - Summary of Distributions Declared (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>995917 - Disclosure - Capital - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureCapitalAdditionalInformationDetails</Role>
      <ShortName>Capital - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>995927 - Disclosure - Net Assets - Schedule of Stockholders Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureNetAssetsScheduleOfStockholdersEquityDetails</Role>
      <ShortName>Net Assets - Schedule of Stockholders Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>995937 - Disclosure - Net Assets - Schedule of Stockholders Equity (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureNetAssetsScheduleOfStockholdersEquityParentheticalDetails</Role>
      <ShortName>Net Assets - Schedule of Stockholders Equity (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>995947 - Disclosure - Earnings Per Share - Schedule of Earnings Per Share, Basic and Diluted (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureEarningsPerShareScheduleOfEarningsPerShareBasicAndDilutedDetail</Role>
      <ShortName>Earnings Per Share - Schedule of Earnings Per Share, Basic and Diluted (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>995957 - Disclosure - Financial Highlights - Schedule of Financial Highlights (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails</Role>
      <ShortName>Financial Highlights - Schedule of Financial Highlights (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="ck0001987221-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>996007 - Disclosure - Subsequent Events - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://AMGComvestSeniorLendingFund.com/20260331/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails</Role>
      <ShortName>Subsequent Events - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="ck0001987221-20260331.htm">ck0001987221-20260331.htm</File>
    <File>ck0001987221-20260331.xsd</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="4393">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="28">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
